Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52763 - more flexible init scripts for networking
Summary: more flexible init scripts for networking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 03:09 UTC by Jörg Hoh
Modified: 2005-01-16 14:42 UTC (History)
2 users (show)

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


Attachments
proposed ifup/ifdown mechanism (ifupdown.tgz,2.08 KB, application/x-compressed-tar)
2004-07-28 03:11 UTC, Jörg Hoh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Hoh 2004-06-02 03:09:34 UTC
The init scripts for networks (eg. net.eth0) are rather unflexible, because I'm limited to specifiy only some predefined variables. This usually works pretty well, but I have now a problem with IPV6. With these initscripts I can an ipv6-adress, but no route. Yes, I can hack the rc-script, but on the next emerge of baselayout I had to track all changes I've made and add them again. I would like to add my changes only to files in /etc/conf.d/, which are not affected by an emerge of baselayout.

So I would suggest to change this to something like debians interfaces(5). The filename could be the same than before (/etc/conf.d/net.eth0), but let's change the file format:

iface eth0 inet static
        address 192.168.0.254
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.14
        up iproute -6 ip add ...
        up iproute -6 route add ...
        down iproute -6 ip del ...
        down iproute -6 route del ...

the lines beginning with "up" can be executed when putting the interface up, respectivly "down". 

And the variant with DHCP:

interface eth0 inet dhcp
       up ....
       down ...

If you then provide some variables for the lines being executed (like $IP, $NETMASK, $GATEWAY) it would be great :-)




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-06-02 11:23:02 UTC
do it yourself ;)

*** This bug has been marked as a duplicate of 38210 ***
Comment 2 Jörg Hoh 2004-07-28 03:08:46 UTC
This issue isn't resolved with #38210 :-(

Bug 38210 resolves only a small part of my wishes (and it resolves not that good). I've reopen that bug again and attach my proposal.
Comment 3 Jörg Hoh 2004-07-28 03:11:48 UTC
Created attachment 36311 [details]
proposed ifup/ifdown mechanism
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-16 14:42:50 UTC
check out the new networking stuff in baselayout-1.11.*,
It does all of this that you want.