Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171544 - host route set instead of default route
Summary: host route set instead of default route
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 12:07 UTC by Kim Sönksen
Modified: 2009-02-08 02:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Sönksen 2007-03-20 12:07:34 UTC
Hi,

after having not restarted the network-devices after several updates I today noticed that a net restart would fail.

Reason: Instead of adding the default route ifconfig sets a host route ... hopefully I have serial-console access to my boxes :-|

I have not made any changes to the conf.d/net file an verified it's syntax with the current Version of the Gentoo Handbook, making me astonished that it did not work as expected.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/net.eht0 restart
2. route
3.

Actual Results:  
default         172.25.1.254    255.255.255.255 UGH   0      0        0 eth0
172.25.1.0      *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo


Expected Results:  
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
172.25.1.0      *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         172.25.1.254    0.0.0.0         UG    0      0        0 eth0
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-20 12:19:51 UTC
Maybe we could even help you if you posted your baselayout version and attach your  /etc/conf.d/net file; sorry but we cannot guess.
Comment 2 Kim Sönksen 2007-03-20 13:04:05 UTC
so this is like my /etc/conf.d/net files are looking like ( I have 6 identical Machines with the same problem )

--- 8< ---
modules_eth0=("ifconfig")
config_eth1=( null )
config_eth0=( "1.2.3.4/24")
routes_eth0=(" default via 1.2.3.254 ")
--- 8< --

Profile is default-linux/x86/2006.1

installed baselayout version is sys-apps/baselayout-1.12.9
Comment 3 Kim Sönksen 2007-03-20 13:04:50 UTC
I don't need Help but I guess you guys need to fix this.
Comment 4 Glenn Crawford 2009-02-08 02:46:42 UTC
(In reply to comment #2)
> so this is like my /etc/conf.d/net files are looking like ( I have 6 identical
> Machines with the same problem )
> 
> --- 8< ---
> modules_eth0=("ifconfig")
> config_eth1=( null )
> config_eth0=( "1.2.3.4/24")
> routes_eth0=(" default via 1.2.3.254 ")
> --- 8< --
> 
> Profile is default-linux/x86/2006.1
> 
> installed baselayout version is sys-apps/baselayout-1.12.9
> 

Believe it or not, it appears to be the 'space' between the " and the word default.

I was just having the same issue with a new install of Gentoo I did today using the 2008.0 stage3 tarball etc. and following the gentoo online documentation.  Once I booted directly from the HDD I could no longer access anywhere but the local network.  

Googling showed me this issue and a bit more investigation showed that in the net.example there was no space between the " and the word default... so I tried it, and it worked.  Wow, picky.

Anyway, definitely something to be aware of.  Your default routes should work properly if your /etc/conf.d/net looks like this: -

modules_eth0=("ifconfig")
config_eth1=( null )
config_eth0=( "1.2.3.4/24")
routes_eth0=("default via 1.2.3.254 ")