Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
Date: Fri, 11 Nov 2011 22:27:32
Message-Id: 20111111222639.GB32082@linux1
In Reply to: Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux by Matt Thode
1 On Fri, Nov 11, 2011 at 04:10:50PM -0600, Matt Thode wrote:
2 > I think that we should be using the new tools by now, it's been in development for the last ten years. There would have to be some sort of migration path for people to use though.
3
4 If you have iproute2 installed, and you do not have a line like the
5 following in your /etc/conf.d/net file:
6
7 modules="!ifconfig"
8
9 or
10
11 modules_ifname="!ifconfig"
12
13 you are already using iproute2 to configure your routes and static
14 addresses, so the only thing that would need to change, and this doesn't
15 have to happen now, is that you would have to change over to using cidr
16 addresses,, for example:
17
18 config_ethx="x.x.x.x/24"
19
20 instead of
21
22 config_ifname="x.x.x.x netmask 255.255.255.0"
23
24 But, because of the way the network scripts are written, this is a
25 separate issue from dropping support for ifconfig, so it could be
26 handled with a migration path later.
27
28 William