[patch] get rid of ifconfig / route in dhclient-script for Linux

Peter Marschall peter at adpm.de
Sun Jan 16 17:37:59 UTC 2011


Hi,

ISC DHCP's dhclient-script for Linux still uses the legacy commands
"ifconfig" & "route" to manage IPv4 network addresses & routes,
while it uses iproute2's new "ip" command to manage IPv6 network data.

This requires users & distributions to have both types of commands installed.

The attached patch tries to improve the situation by replacing the
old "ifconfig" resp. "route" commands with their "ip" counterparts.

It even improves the logic a bit by only flushing the IPv4 addresses
instead of taking down the whole interface, which may still have active IPv6
connections.

Please consider including it into the next release of ISC DHCP.

Best
Peter

-- 
Peter Marschall
peter at adpm.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcp-4.2.0-P2-dhclient-script_linux.patch
Type: text/x-patch
Size: 5718 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110116/66f3821e/attachment.bin>


More information about the dhcp-users mailing list