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.
do it yourself ;) *** This bug has been marked as a duplicate of 38210 ***
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.
Created attachment 36311 [details] proposed ifup/ifdown mechanism
check out the new networking stuff in baselayout-1.11.*, It does all of this that you want.