View previous topic :: View next topic |
Author |
Message |
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sat Apr 04, 2009 2:51 am Post subject: Gentoo not acknowledging Ethernet-Controller, or Dhcp. |
|
|
Hello. I am a new Gentoo user, but have used Arch for a while.
I installed Gentoo AMD64 2005 from live disc on an old Compaq sr1920NX tower. it has an nVidia-bridged ethernet controller, ( to which the green light is on, which i would assume should mean it is working properly )
I have not been able to get it to acknowledge or start eth0. there is no wireless card as an option. Also, i downloaded the forecdeth driver on my laptop,
But the Gentoo compaq will not recognized the jump drive for me to even pull that off of it. I also typed dmesg, and the jump drive shows up there, but nowhere else.
resolv.conf only displays:
#Generated by dhcpd for interface eth0
nameserver 192.168.2.1
"resolve.conf" [converted] 2L, 64C
192.168.2.1 is the address that my macbook pro is assigned for internet sharing over eth0, so i dont see the problem there.
net-setup as a command says "command not found" and ifconfig only acknowledges loopback interface:
lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU: 16436 Metric:1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns:0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 0 (0 .0 b) TX bytes 0 (0 .0 b)
also, i tried to do: /etc/init.d./net.eth0 start
and i received the error message
Starting eth0
* configuration not set for eth0 - assuming DHCP
* No DHCP client installed.
So, here is where it get's worse. i cant use portage to update anything, because there is no internet connection. I cant transfer files to the gentoo box yet, because i cannot access the jump drives.
yeah, so it seems like i could be close to a solution, but i need some more insight on this.
cheers, - metacym. _________________ help. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Sat Apr 04, 2009 3:02 am Post subject: |
|
|
"jump drive" - wtf is this ?
what kind of nvidia ethernet card do you have ? maybe provide us some info for example the outpout of
Code: | lspci |grep Ethernet |
/etc/resolv.conf should contain your dns servers addres each server in new line - this is in Gentoo instalation guide
net-setup works only from Gentoo minimal/install cd - this probobly is in Gentoo instalation guide
if ifconfig shows only loopback devices, that's mean you didn't compile your drivers into kernel, or the module is not loaded
/etc/conf.d/net - there is a place when you set-up your networking - this is in Gentoo instalation guide _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
kevstar31 Guru
Joined: 22 Nov 2006 Posts: 449 Location: Ohio
|
Posted: Sat Apr 04, 2009 3:10 am Post subject: |
|
|
If you can get network to work on a differint distro or a livecd run post the output of lsmod and dmesg from that to determine what drivers are being used. _________________ while(true) std::cout << "Jesus I trust in you." << std::endl;
My Political Compass |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sat Apr 04, 2009 3:16 am Post subject: |
|
|
tgR10 wrote: | "jump drive" - wtf is this ?
what kind of nvidia ethernet card do you have ? maybe provide us some info for example the outpout of
Code: | lspci |grep Ethernet |
/etc/resolv.conf should contain your dns servers addres each server in new line - this is in Gentoo instalation guide
net-setup works only from Gentoo minimal/install cd - this probobly is in Gentoo instalation guide
if ifconfig shows only loopback devices, that's mean you didn't compile your drivers into kernel, or the module is not loaded
/etc/conf.d/net - there is a place when you set-up your networking - this is in Gentoo instalation guide |
Hi. thanks for the reply. what i meant by "jump drive" was just a USB-external 1GB flash drive. Since i could not use network on the gentoo box, i downloaded the
forcedEth driver from a different computer with the hopes that i could just transfer the driver and install manually.
lspci | grep Ethernet gives this info:
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller ( rev a3 ) _________________ help. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Sat Apr 04, 2009 3:27 am Post subject: |
|
|
metacym wrote: | i downloaded the
forcedEth driver from a different computer with the hopes that i could just transfer the driver and install manually. |
those drivers are in kernel (2.6.29 duno about the one's before i got realtek ethernet card)
Code: | Device Drivers
[*] Network device support --->
[*] Ethernet (10 or 100Mbit) --->
<M> nForce Ethernet support |
should looks like that for example, if you wan't it to be as module remember to add automodule loading in kernel
Code: | [*] Enable loadable module support ---> |
_________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sat Apr 04, 2009 4:23 am Post subject: Update: |
|
|
So i booted the machine in question into a Backtrack3 live disc that i had laying around, and i was unsuccessful at getting ethernet connectivity as well.
I suppose that any more trouble shooting Gentoo at this point is pointless if i cant even discern if this is a hardware issue or not.
the ethernet light appears. the ethernet controller shows up in the lspci | grep ethernet command. I am stumped at this point. _________________ help. |
|
Back to top |
|
|
doctork Guru
Joined: 25 Apr 2004 Posts: 370 Location: Cleveland, OH
|
Posted: Sat Apr 04, 2009 4:29 am Post subject: |
|
|
The forcedeth driver has been available in Gentoo since at least 2006 (probably before). I've had one of these running since that time:
Code: | dwarf / # lspci | grep Ethernet
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3) |
--
doc |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sat Apr 04, 2009 4:49 am Post subject: |
|
|
doctork wrote: | The forcedeth driver has been available in Gentoo since at least 2006 (probably before). I've had one of these running since that time:
Code: | dwarf / # lspci | grep Ethernet
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3) |
--
doc |
are you saying that the forcedeth driver is already in the Gentoo install, and that i dont need internet connection to install it? _________________ help. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sat Apr 04, 2009 6:38 am Post subject: |
|
|
indeed it should be
if you're booted from the install image:
Code: |
zcat /proc/config.gz |grep -i deth
|
should be in there
far as the kernel you'll end up using, should be in there as well - just need to make sure youve selected it for inclusion
now having said that, what happens if (as root) you do:
does it throw an error?
to take dhcp out of the picture, any joy setting a static IP? |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 3:29 am Post subject: |
|
|
cach0rr0 wrote: | indeed it should be
if you're booted from the install image:
Code: |
zcat /proc/config.gz |grep -i deth
|
this ^ command yields : CONFIG_FORCEDTH=m
#CONFIG_FORCEDETH_NAPI is not set
should be in there
far as the kernel you'll end up using, should be in there as well - just need to make sure youve selected it for inclusion
now having said that, what happens if (as root) you do:
This code ^ just repeats the root-shell prompt. It could have done something, it gave no explanation or confirmation.
does it throw an error?
to take dhcp out of the picture, any joy setting a static IP? |
I have tried setting up static IP, but i could have done something wrong. it didnt work, but I wasnt sure about a few things. it could have been user error. _________________ help. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 6:00 am Post subject: |
|
|
update: , ifconfig now acknowledges eth0. unfortunately, i dont know what changed it. it could have been the command i issued earlier to modprobe forcedeth.
unfortunately, even though it sees eth0, it is not providing internet connectivity. Any advice is appreciated.
Link encap: Ethernet HWaddr 00:17:31:F7:7D:7A
BROADCAST MULTICAST MTU: 1500 Metric:1
All the normal parts that list the packets, errors, droped, overruns and frame all list
"0"
Interupt reads :3 _________________ help. |
|
Back to top |
|
|
doctork Guru
Joined: 25 Apr 2004 Posts: 370 Location: Cleveland, OH
|
Posted: Sun Apr 05, 2009 6:06 am Post subject: |
|
|
The modprobe created what you're now seeing with ifconfig.
Now try your /etc/init.d/net.eth0 start.
--
doc |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 6:35 am Post subject: |
|
|
thanks for your help.
/etc/init.d/net.eth0 start prints:
starting eth0
Configuration not set for eth0 - assuming DHCP
No DHCP client installed.
root etc # _________________ help. |
|
Back to top |
|
|
alatar n00b
Joined: 12 Feb 2009 Posts: 61
|
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sun Apr 05, 2009 7:54 am Post subject: |
|
|
if you can get eth0 up, then you *should* be able to set a static IP if nothing else
you should write down your netmask, broadcast, and default gateway that's known to work on another box for that network
then configure a static IP once you've gotten eth0 recognized
then /etc/init.d/net.eth0 start
that should give you connectivity - then emerge dhcpcd, undo your changes to /etc/conf.d/net, and carry on (assuming you want to use dhcp, start dhcpcd, and add it to your default runlevel) |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 9:51 am Post subject: Update. |
|
|
Still no ethernet.
Okay. so here are my variables:
networks configuration:
loopback 127.0.0.0
link-local 169.254.0.0
# the primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.120 <---- static IP i manually set
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
gateway 192.168.2.1
#dns-* options are implemented by the resolvconf package, if installed.
dns-nameserver 192.168.2.1
here is my resolv.conf
#Generated by dhcpcd for interface eth0
nameserver 192.168.2.1
nameserver 192.168.1.1
/etc/init.d/net.eth0 start prints:
* Starting eth0
*configuration not set for eth0 - assuming DHCP
*No DHCP client installed.
/etc/conf.d/net is blank, and says that if left blank, DHCP will be the default, However i dont know what to put there instead of the blank, dhcp default. _________________ help. |
|
Back to top |
|
|
alatar n00b
Joined: 12 Feb 2009 Posts: 61
|
Posted: Sun Apr 05, 2009 10:48 am Post subject: |
|
|
You are using wronf config file format. The one you had used is taken from Ubuntu Linux, it will not be recognized by Gentoo, that is why you see
Quote: | configuration not set for eth0 - assuming DHCP |
Read this for Gentoo network configuration. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 8:46 pm Post subject: |
|
|
thanks for your reply.
I re-did everything per the guide you linked to, and the same DHCP error persists.
* i should add that i re-did the config for static-IP per the guide you linked me to . _________________ help. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 9:07 pm Post subject: Update: |
|
|
So i have made a sliver of progress.
After re-configuring conf.d/net, I once again issued the command /etc/init.d/net.eth0 start, and this time it printed:
* Cachine service dependencies...
* Starting eth0
* Bringing up eth0
* 192.168.1.120
* network interface eth0 does not exist
* please verify hardware or kernel module ( driver )
localhost init.d #
So being a n00b, How do i go about verifying hardware or kernel module? I had thought this is what i did when i did "modprobe forcedeth" _________________ help. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 10:52 pm Post subject: |
|
|
Update:
eth0 is now up and running, but still not facilitating internet.
ifconfig prints:
eth0 LInk encap: Ethernet HWaddr 00:17;31:F7:7D:7A
inet addr" 192.168.1.120 Bcast: 192.168.1.255 Mask: 255.255.255.0
inet addr: fe80::217:31ff:fef7:7d7a/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 134 errors: 0 dropped: 0 overruns: 0 frame:0
TX packets: 262 errors: 0 dropped:0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 31928 (31.1Kb) TX bytes: 16876 (16.4 kb)
Interrupt: 23
Lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
inet5 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU: 16436 Metric: 1
RX packets: 132 errors: 0 dropped: 0 overruns:0 frame:0
TX packets: 132 errors: 0 dropped: 0 overruns:0 frame:0
collisions:0 txqueuelen: 0
RX bytes: 12156 (11.8Kb) TX bytes: 12156 (11.8 kb)
cv
i also re-did "modprobe forcedeth" , and "ln -s net.lo net.eth0" , and "rc-update add net.eth0 start", as well as set "kernel-version 2.6" in modules.autoload.d.
Everything seems so close to working, i just still am not sure what to do next. _________________ help. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Sun Apr 05, 2009 11:13 pm Post subject: |
|
|
after reboot, ifconfig is even acknowledging eth0 at runtime. So everything seems to be dialed, except that the internet connection still does not work.
i can ping the static IP address of the gentoo box, but other networks are still unreachable.
any help from you guys is appreciated. I feel so close! _________________ help. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23066
|
Posted: Mon Apr 06, 2009 4:17 am Post subject: |
|
|
If you are literally seeing a Network is unreachable error, then you are missing one or more required routes. What is the output of ip route show ; nl /etc/conf.d/net? If you are using a static IP assignment, this is normal, and you need to explicitly define your default route. |
|
Back to top |
|
|
metacym n00b
Joined: 04 Apr 2009 Posts: 17 Location: Oregon
|
Posted: Mon Apr 06, 2009 11:18 am Post subject: |
|
|
Hu wrote: | If you are literally seeing a Network is unreachable error, then you are missing one or more required routes. What is the output of ip route show ; nl /etc/conf.d/net? If you are using a static IP assignment, this is normal, and you need to explicitly define your default route. |
ip route show says 'command not found'
however, " nl /etc/conf.d/net" prints my static IP config:
HOSTNAME="loftbox"
dns_domain_lo="loftboxnetwork"
config_eth0=(192.168.1.120 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.2.1" ) _________________ help. |
|
Back to top |
|
|
alatar n00b
Joined: 12 Feb 2009 Posts: 61
|
Posted: Mon Apr 06, 2009 12:27 pm Post subject: |
|
|
It looks like you are working not from root-user, so you should use 'sudo ip route'. By the way, what is the type of your connection to the Internet?
[EDITED] I have noticed that your default gateway is not in the same subnet. By default such configuration wil not work |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Mon Apr 06, 2009 3:05 pm Post subject: |
|
|
metacym wrote: | ip route show says 'command not found' |
That is because sys-apps/iproute2 is not part of the base install. Use this command instead.
|
|
Back to top |
|
|
|