Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47659 - baselayout-1.8.8: patch to enable iproute2 style network config
Summary: baselayout-1.8.8: patch to enable iproute2 style network config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-04-12 19:38 UTC by Dean Bailey
Modified: 2004-10-05 08:35 UTC (History)
1 user (show)

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


Attachments
baselayout-1.8.8 patch to allow iproute2 usage. (rc-scripts-1.4.6-iproute2.diff,12.94 KB, patch)
2004-04-12 19:39 UTC, Dean Bailey
Details | Diff
baselayout-1.8.8: patch to enable iproute2 style network config - fixed (rc-scripts-1.4.6-iproute2.diff,12.94 KB, patch)
2004-04-12 21:29 UTC, Dean Bailey
Details | Diff
forward ported Dean's patch to baselayout-1.9.1 (baselayout-iproute2-1.4.12.patch,13.05 KB, patch)
2004-05-12 01:21 UTC, George Barbarosie
Details | Diff
forward ported Dean's patch to baselayout-1.9.1 revised (baselayout-iproute2-1.4.12.patch,13.05 KB, patch)
2004-05-12 02:18 UTC, George Barbarosie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Bailey 2004-04-12 19:38:35 UTC
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.
Comment 1 Dean Bailey 2004-04-12 19:39:36 UTC
Created attachment 29178 [details, diff]
baselayout-1.8.8 patch to allow iproute2 usage.
Comment 2 Dean Bailey 2004-04-12 21:28:09 UTC
Appears I had a typo in the first patch. Attaching a fixed version.
Comment 3 Dean Bailey 2004-04-12 21:29:22 UTC
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.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-04-13 13:40:43 UTC
You put a lot of work into this!  I'll work on getting it merged... post-2004.1.  Thanks!
Comment 5 Dean Bailey 2004-04-13 19:06:01 UTC
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.
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-05-10 07:56:52 UTC
Dean, I haven't forgotten about this, I still plan to get it in :-)
Comment 7 George Barbarosie 2004-05-11 09:59:11 UTC
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?
Comment 8 George Barbarosie 2004-05-12 01:21:58 UTC
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;
Comment 9 George Barbarosie 2004-05-12 02:18:15 UTC
Created attachment 31247 [details, diff]
forward ported Dean's patch to baselayout-1.9.1 revised

I introduced a typo in the last patch;
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-06-26 13:58:24 UTC
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 :-)
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-06-26 15:48:50 UTC
baselayout-1.10 is now in portage.  It's package.masked at the moment but will be unmasked shortly.