Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After new Baselayout eth0 refuses to start HELP!
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
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Wed Dec 11, 2002 7:08 pm    Post subject: After new Baselayout eth0 refuses to start HELP! Reply with quote

Ok after doing an emerge -u world with a new baselayout this happens after I rebooted. eth0 fails to come up.
Code:
27 root # /etc/init.d/net.eth0 start
 * Bringing eth0 up...                                                                                        [ ok ]
 *   Setting default gateway...
SIOCADDRT: Network is unreachable
 * Failed to bring eth0 up                                                                                    [ !! ]

 * Bringing eth0 down...


But if I do it manually like this:
Code:
ifconfig eth0 130.236.212.27 broadcast 130.236.212.255 netmask 255.255.255.0
route add default gw 130.236.212.1

It works..

The problem seem to be in net.eth0 where it adds 'dev eth0' to the end of the route command.

Code:
grep -v ^# /etc/conf.d/net
face_eth0="130.236.212.27 broadcast 130.236.212.255 netmask 255.255.255.0"
gateway="eth0/136.236.212.1"



I guess I could start eth0 manually each time but that just sucks.
So whats wrong? Using baselayout-1.8.5.3 and up has made no difference.
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Wed Dec 11, 2002 7:11 pm    Post subject: Reply with quote

simple question simple answer.

your default gateway does not lie within your own ip subnet.

:-)
maxmc wrote:
Code:
face_eth0="130.236.212.27 broadcast 130.236.212.255 netmask 255.255.255.0"
gateway="eth0/136.236.212.1"
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Wed Dec 11, 2002 7:26 pm    Post subject: Reply with quote

Thanks.. I can't belive I didn't notice it before...
I used different ips when doing it manually... well well..
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Wed Dec 11, 2002 7:30 pm    Post subject: Reply with quote

no problem :-)

btw. a friend of mine has been to linköping with the band touring. must be a nice little town :-)
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