Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network not working any more
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 11:57 am    Post subject: Network not working any more Reply with quote

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
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 3:44 pm    Post subject: Reply with quote

I removed the udev-Error (inotify was missing in my kernel) but the network is not working yet.

Any ideas?
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 3:55 pm    Post subject: Reply with quote

how does your /etc/conf.d/net look like?
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 4:15 pm    Post subject: Reply with quote

connect: No such device
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 5:14 pm    Post subject: Reply with quote

No :(

Same result...
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 5:44 pm    Post subject: Reply with quote

No error messages on the console.

After that, my eth0 has an IP, but a ping returns network unreachable...
Back to top
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 5:45 pm    Post subject: Reply with quote

Ok,

after route add everything works fine. But I don't know how I solved it...
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Diavolo
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 151

PostPosted: Sun Dec 25, 2005 6:05 pm    Post subject: Reply with quote

Everything works again...but I am afraid to reboot my machine :)
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 25, 2005 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
metalfan
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 260
Location: 127home0sweet0home1 .endofinternet.net

PostPosted: Mon Dec 26, 2005 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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