Seeing as ifconfig/route were supposed to be phased out of use arround kernel 2.2 or 2.4 and the fact that they are unsuitable for use on a linux based router, here is a patch to add the ability to use iproute instead of net-tools for network configuration. This patch also removes some duplication in code caused by the use of net-tools. Included is also an updated /etc/conf.d/net file with examples for all three styles of network config. It probably needs polish as it is a quick hack to get my servers working properly.
Created attachment 29178 [details, diff] baselayout-1.8.8 patch to allow iproute2 usage.
Appears I had a typo in the first patch. Attaching a fixed version.
Created attachment 29181 [details, diff] baselayout-1.8.8: patch to enable iproute2 style network config - fixed Updated patch, there was a typo in the first one.
You put a lot of work into this! I'll work on getting it merged... post-2004.1. Thanks!
I found another typo on my part. I also have built a net.wlan0 script based on the net.eth0 script I worked on. The net.wlan0 script is of course for wireless connections. Expect a patch update from me later tonight.
Dean, I haven't forgotten about this, I still plan to get it in :-)
Does Gentoo plan to keep backward compatibility with old-style iface and ifconfig settings? It's pretty obvious from the patch that you cannot convert old-stype iface/ifconfig settings to the new iproute2 settings format; so if Gentoo keeps backward compatibility you will not be able to remove the dependency on net-tools (I'm not sure you want that either...) Will iproute2 become a prerequisite for baselayout? If so, would it not make sense to use the /sbin/ip utility for status_IFACE too?
Created attachment 31244 [details, diff] forward ported Dean's patch to baselayout-1.9.1 Don't know if this helps in any way, but I needed this patch forward-ported to baselayout-1.9.1 (rc-scripts-1.4.12) so I did this myself; if it helps development, here it is;
Created attachment 31247 [details, diff] forward ported Dean's patch to baselayout-1.9.1 revised I introduced a typo in the last patch;
I made some MAJOR modifications to this patch so that ifconfig is completely unneeded for an iproute2-based configuration. Nonetheless, thanks a TON for your patches. You gave this a serious boost. Now committed to rc-scripts cvs. Will show up in the next baselayout :-)
baselayout-1.10 is now in portage. It's package.masked at the moment but will be unmasked shortly.