[arch-projects] [PATCH 7/7] Use iproute2 tools instead of net-tools

Dave Reisner d at falconindy.com
Sat Mar 26 19:13:35 EDT 2011


On Sun, Mar 27, 2011 at 12:02:37AM +0100, Tom Gundersen wrote:
> This patch did not apply due to a problem with PKGBUILD. I fixed it up 
> manually.
> 
> I did not test this at all, but at first glance it looks like the right 
> approach.
> 
> What userintervention does this require?
> 
> I guess those who use nisdomainname, must install yp-tools and enable them in 
> the DAEMONS array. Is that correct? Does any configuration files need 
> adjustment? 
> 
> Anything else?
> 
> Cheers,
> 
> Tom
> 

Yes, the big deal about this change is that it affects syntax in
/etc/rc.conf. Best way to illustrate with examples, perhaps:

# net-tools
eth0="eth0 192.168.2.100 netmask 255.255.255.0"
gateway="default gw 192.168.2.1"

# iproute2
eth0="eth0 192.168.2.100/24"
gateway="default via 192.168.2.1"

DHCP is the same, excepting the fact that you need to declare the name
of the interface. Two reasons: uniformity, and to be friendly towards
interfaces with a dash (-) in the name. Simply,

eth0="eth0 dhcp"

Thomas has suggested that if we're going to change the config format
that we use something a little more universal. Should the need ever
arise to switch to yet another userspace tool some time off in the
future, we could do the swap-out without bothering end users. I'm not
sure what that config would look like, but it seems reasonable to me,
provided that we're very clear about the limitations of the network
service.

dave



More information about the arch-projects mailing list