Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network Configuration Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 12:58 am    Post subject: Network Configuration Problem Reply with quote

Hello, I was able to do everything up to the point of connecting to the network. I manually configured my wired network connection
Code:
enp3s0
using
Code:
ifconfig enp3s0 192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0 up


I also set the gateway with
Code:
route add default gw 192.168.0.1


I also added my nameserver by going to
Code:
nano -w /etc/resolv.conf
and adding
Code:
nameserver 192.168.0.1
then exiting and saving.

When I try
Code:
# ping -c 3 192.168.0.2
I get all three pings.

When I try
Code:
# ping -c 3 www.google.com
I get host not found.

I even tried using the netsetup and I still get the same result.
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 253

PostPosted: Thu Jul 04, 2013 1:22 am    Post subject: Reply with quote

Is 192.168.0.1 actually running a nameserver, and is it listening on an interface such that you would be able to access it from 192.168.0.2?
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2585

PostPosted: Thu Jul 04, 2013 1:25 am    Post subject: Reply with quote

First off, welcome to Gentoo!

Your probably better setting the nameserver to 8.8.8.8 or 8.8.4.4 to use Google. Your ISP probably provides some, but you will need to ask. Anyway, I wouldn't worry about that during an instillation.

Any particular reason you are not just using dhcpcd?
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 1:31 am    Post subject: Network Configuration Problem Reply with quote

I am not quite sure what you are asking. I forgot to mention that I am a complete noob at this. Anyway, I went to the main computer in my network opened command prompt (it has windows xp) and used the command
Code:
ipconfig /all

It said the DHCP server was 192.168.0.1 then I did the same on my laptop and it was the same.

Now what do you mean listening on an interface?

Alright, I will try those nameservers.

Well, I actually tried using dhcpcp and nothing changed.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 04, 2013 1:42 am    Post subject: Reply with quote

Code:
ping -c 3 192.168.0.2
is not meaningful
try
Code:
ping -c 3 192.168.0.1


what does
Code:
ifconfig
tell you?
_________________
Defund the FCC.


Last edited by DONAHUE on Thu Jul 04, 2013 1:51 am; edited 1 time in total
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 1:47 am    Post subject: Reply with quote

I tried the new namservers and I still was unable to reach google.

Also, I tried pinging 192.168.0.1 and I received 0.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 04, 2013 1:52 am    Post subject: Reply with quote

what does
Code:
ifconfig
tell you?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 2:03 am    Post subject: Reply with quote

ifconfig tells me
Code:
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu  1500
inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
inet6 fe80::96de:80ff:fe75:1840  prefixlen 64  scopeid 0x20<link>
ether 94:de:80:75:18:40  txquelen 1000  (Ethernet)
RX packets 306  bytes 33411  (32.6 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0  (0.0 B)
TX errors 0  dropped 47  overruns 0  carrier 0  collisions 0
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 253

PostPosted: Thu Jul 04, 2013 2:04 am    Post subject: Reply with quote

My apologies; I didn't read your post carefully enough and started asking overly specific questions without knowing your background. Welcome to Gentoo. It looks like DONAHUE or The Doctor can help you from here; they are both reputable. :)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 04, 2013 2:13 am    Post subject: Reply with quote

Code:
lspci -k
make and model of the ethernet NIC? Driver in use?

for reference:
Quote:
RX packets 55 bytes 5765 (5.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 87 bytes 12310 (12.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17
ifconfig from a just started ethernet NIC. Yours is not transmitting or transmission is not succeeding.
_________________
Defund the FCC.


Last edited by DONAHUE on Thu Jul 04, 2013 2:24 am; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2585

PostPosted: Thu Jul 04, 2013 2:19 am    Post subject: Reply with quote

I take it that this is the first network configuration of the instillation?

If that is the case, I suggest that you use the system rescue CD instead. There is no difference in the instillation except that you can use network manager to configure your network and you have a full X environment, complete with terminals and web browser to ease the instillation process.

Other than that, I think DONAHUE can be of more assistance than I can.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 2:21 am    Post subject: Reply with quote

when I type
Code:
lspci -k


the Ethernet controller is
Code:
Ethernet controller: Realtek Semiconductor Co., Ltd.  RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: Giga-byte Technology Motherboard
Kernel driver in use: r8169
Kernel modules: r8169
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 2:27 am    Post subject: Reply with quote

Yes, it is, but I have already partitioned the disk because I thought the network was configured but when it came to chapter 5, I realized the network was in fact, not configured. Aslo, this a brand new computer with no previous operating system. I am running the minimal off of the livecd.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2585

PostPosted: Thu Jul 04, 2013 2:38 am    Post subject: Reply with quote

riecherd wrote:
Yes, it is, but I have already partitioned the disk because I thought the network was configured but when it came to chapter 5, I realized the network was in fact, not configured. Also, this a brand new computer with no previous operating system. I am running the minimal off of the livecd.


That doesn't matter. The nice thing about Gentoo is you can literally power off your computer at any time without losing your place as long as you remember what comes next and what you need to mount. If you wanted to switch media the process would be as simple as burning the new disk or preparing the usb, rebooting, mounting your partitions, and then you are set.

Don't be fooled by the name of the system rescue CD. All it is is a Gentoo based live CD that includes good hardware support and some applications you can use to recover data. In fact, there is somewhat serous suggestions to the effect that the minimal CDs should be dropped in favor of directing people to use the system rescue CD.

If you want to try to get the command line networking going, of course that is fine. The r8169 should work, so it is really surprising that netsetup didn't work.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 2:48 am    Post subject: Reply with quote

hmmm, alright, if this does not work out, I will take your advice and go to eh systemrescuecd. That is odd, perhaps I did not do it correctly. I chose wired, used dhcp to auto-detect, and then pressed enter. I tried pinging again, and it did not work.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 04, 2013 3:02 am    Post subject: Reply with quote

I have a machine for which lspci -nnk returns :
Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller [10ec:8168] (rev 03)
Subsystem: ASUSTeK Computer Inc. M4A785TD Motherboard [1043:83a3]
Kernel driver in use: r8169
Kernel modules: r8169

On which I gave up trying to get ethernet to work after googling extensively lead me to believe that r8169 was the correct driver choice but did not work with the RTL8111/8168 PCI Express Gigabit Ethernet controller [10ec:8168] NIC.

I'll revisit the topic but ...

I ended up using wifi for the install on that machine.

you can try
Code:
 ifconfig etho down
modprobe -r r8169
modprobe r8168
net-setup

_________________
Defund the FCC.
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 3:19 am    Post subject: Reply with quote

Well, that is not good. I do not have a wifi card for this computer. Alright, it said
Code:
modprobe: FATAL: Module r8168 not found
Back to top
View user's profile Send private message
riecherd
n00b
n00b


Joined: 03 Jul 2013
Posts: 9

PostPosted: Thu Jul 04, 2013 3:25 am    Post subject: Reply with quote

Also, instead of eth0 it is enp3s0. Now, after I went through the code, when I try
Code:
ls /sys/class/net
all I get is
Code:
lo
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 04, 2013 3:35 am    Post subject: Reply with quote

ubuntu might run your NIC if you have their livecd. not surprising that r8168 not on the cd. when r8169 was fixed it lost popularity. if you do manage to buy or borrow a usb wifi NIC you will need sysresccd or ubuntu livecd as the minimal lacks wifi support. if you lived here I tend to collect wifi NICS usb and pci. my wifi favorite is the ralink chipset.
compiling a 3.10 kernel now to see if r8169 is fixed now for me. 3.8.13 was in use and r8169 not working on that machine.
3.10.0 kernel also fails
trying the r8168 kernel in portage: fails to compile
trying the r8168 after direct download from realtek: fails to compile
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum