Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 116445

Summary: baselayout-1.12.0_pre12 cannot set gateway
Product: Gentoo Linux Reporter: George Garvey <tmwg>
Component: [OLD] baselayoutAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: High    
Version: 2005.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description George Garvey 2005-12-22 19:43:40 UTC
In /etc/conf.d/net, the ifconfig line:
routes_eth0=( "default via 192.168.1.12" )
result in:
route add default gw -net 192.168.1.12 metric 0 dev eth0
(or something close to that).

As a result, networking is pretty much hosed. 192.168.1.12, here, does NAT for everyone in the company.

I changed /lib/rcscripts/net.modules.d/ifconfig line 306 to:

[[ " ${x} " != *" -net "* && " ${x} " != *" -host "* && " ${x} " != *" default "* ]] && x="-net ${x}"

so I could at least boot the computer. (Although, not being able to boot may have been from vmware, not this. I also remove vmware from the boot process, because it always hung and I didn't want to find out why.)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-23 02:25:59 UTC
How exactly is it "hosed"? After trying your patch, the routing table is exactly the same as it was before your patch for default routes.

If you dis-agree then please re-open this bug, post any error messages relating to adding the default route, the routing table you end up with and the routing table you exepct.