View previous topic :: View next topic |
Author |
Message |
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 11:57 am Post subject: Network not working any more |
|
|
Hi,
today I rebootet my gentoo machine and now I have no network connection. On booting up I get "udev starting....!!" but the rest seems to work. Later I get an error "Adding routes default gw....!!". Bringing up eth0 seems to work.
ifconfig returns eth0 but without IP address:
eth0 Link encap: Ethernet HWaddr 00:26:54:15:83:1C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...
route add returns "SIOCADDRT: No such device".
Any idea? |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 3:44 pm Post subject: |
|
|
I removed the udev-Error (inotify was missing in my kernel) but the network is not working yet.
Any ideas? |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 3:55 pm Post subject: |
|
|
how does your /etc/conf.d/net look like? _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 3:59 pm Post subject: |
|
|
iface_eth0="192.168.2.2 broadcast 192.168.2.255 netmask 255.255.255.0"
iface_eth1="192.168.2.9 broadcast 192.168.2.255 netmask 255.255.255.0"
routes_eth0=(
"default via 192.168.2.1"
)
routes_eth1=(
"default via 192.168.2.1"
) |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 4:08 pm Post subject: |
|
|
if you comment out the routes_* parts,
you should get an IP on your cards,
when you then try to ping your gateway:
Code: | ping -c 2 -I eth0 192.168.2.1 |
what does it output? _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 4:15 pm Post subject: |
|
|
connect: No such device |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 4:38 pm Post subject: |
|
|
so if you leave out the routes_* part
does your ethernet interface an IP? _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 5:14 pm Post subject: |
|
|
No
Same result... |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 5:24 pm Post subject: |
|
|
ok, first what is output when running: Code: |
[code]ifconfig[/code]
then what is output after running that:
[code]ifconfig eth0 192.168.2.2
ifconfig[/code]
? |
_________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 5:44 pm Post subject: |
|
|
No error messages on the console.
After that, my eth0 has an IP, but a ping returns network unreachable... |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 5:45 pm Post subject: |
|
|
Ok,
after route add everything works fine. But I don't know how I solved it... |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 5:50 pm Post subject: |
|
|
I just read /etc/conf.d/net.example :
Quote: | ##############################################################################
# INTERFACE HANDLERS
#
# We provide two interface handlers presently: ifconfig and iproute2.
# You need one of these to do any kind of network configuration.
# For ifconfig support, emerge sys-apps/net-tools
# For iproute2 support, emerge sys-apps/iproute2
# If you don't specify an interface then we prefer ifconfig it it's installed
# Prefer iproute2 over ifconfig
#modules=( "iproute2" )
# For a static configuration, use something like this
# (They all do exactly the same thing btw)
#config_eth0=( "192.168.0.2/24" )
#config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
|
try using those commands, and as modules:
Quote: | modules=( "ifconfig" ) |
_________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Diavolo Apprentice
Joined: 09 Jan 2005 Posts: 151
|
Posted: Sun Dec 25, 2005 6:05 pm Post subject: |
|
|
Everything works again...but I am afraid to reboot my machine |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 25, 2005 6:47 pm Post subject: |
|
|
if you start:
Code: | /etc/init.d/net.eth0 start |
and if it stats without errors, then it will also do while booting (same for eth1) _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
metalfan Apprentice
Joined: 09 Apr 2005 Posts: 260 Location: 127home0sweet0home1 .endofinternet.net
|
Posted: Mon Dec 26, 2005 5:56 am Post subject: |
|
|
please check if bash-3.1 was installed. if youre using an ustable baselayout try to downgrade to bash-3.0-r14 for example.
greets
metalfan _________________ please add [SOLVED] to the topic if you found the answer |
|
Back to top |
|
|
|