View previous topic :: View next topic |
Author |
Message |
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Wed Dec 11, 2002 7:08 pm Post subject: After new Baselayout eth0 refuses to start HELP! |
|
|
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 |
|
|
m0pr0be Guru
Joined: 29 Aug 2002 Posts: 308
|
Posted: Wed Dec 11, 2002 7:11 pm Post subject: |
|
|
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 |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Wed Dec 11, 2002 7:26 pm Post subject: |
|
|
Thanks.. I can't belive I didn't notice it before...
I used different ips when doing it manually... well well.. |
|
Back to top |
|
|
m0pr0be Guru
Joined: 29 Aug 2002 Posts: 308
|
Posted: Wed Dec 11, 2002 7:30 pm Post subject: |
|
|
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 |
|
|
|