Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116445 - baselayout-1.12.0_pre12 cannot set gateway
Summary: baselayout-1.12.0_pre12 cannot set gateway
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-22 19:43 UTC by George Garvey
Modified: 2005-12-23 02:25 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 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.