Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48737 - Adding better route handling to /etc/init.d/net.eth0 and an example to /etc/conf.d.net
Summary: Adding better route handling to /etc/init.d/net.eth0 and an example to /etc/c...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 16:04 UTC by Mitchell
Modified: 2004-05-06 20:12 UTC (History)
0 users

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


Attachments
the modified /etc/init.d/net.eth0 file (net.eth0,8.63 KB, text/plain)
2004-04-22 16:04 UTC, Mitchell
Details
the modified /etc/conf.d/net file (net,1.02 KB, text/plain)
2004-04-22 16:05 UTC, Mitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mitchell 2004-04-22 16:04:07 UTC
I changed line 130 in the /etc/init.d/net.eth0 file to read "/sbin/route add ${routes_IFACE[i] -dev ${IFACE}".  This way the static route is applied to interface that called it.  I also added a line to /etc/conf.d/net demostrating how static routes can be easily added to an interface.

Reproducible: Always
Steps to Reproduce:
Comment 1 Mitchell 2004-04-22 16:04:47 UTC
Created attachment 29852 [details]
the modified /etc/init.d/net.eth0 file
Comment 2 Mitchell 2004-04-22 16:05:22 UTC
Created attachment 29853 [details]
the modified /etc/conf.d/net file
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-06 20:12:35 UTC
How does this affect routing in the system?  I.e. what is the point of attaching the route directly to an interface instead of letting it float?  Are there cases where you wouldn't want it to be directly associated with the interface?

Presently /etc/conf.d/net lets you specify when this will occur and when it won't.  I.e. you can put "-dev eth0" in your routes_eth0 variable.  If I apply your patch then I decrease the flexibility of the system.  So I'm closing this bug "invalid".  Please re-open if you believe you have sufficient rationale for this change.