]> git.ipfire.org Git - thirdparty/dracut.git/commit
Add support for ethernet point-to-point connections configured via DHCP 51/head
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Thu, 5 Mar 2015 11:07:57 +0000 (12:07 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Mar 2015 15:38:33 +0000 (16:38 +0100)
commit99ccbc30dff9fa51dd3187dc10f8f632e5e54e4b
tree41f84b378104678fa009633330de805eecad749b
parent2bc5054a64465d8d15f2670a8cc49e0795f33228
Add support for ethernet point-to-point connections configured via DHCP

When current dracut receives an ip with netmask of 255.255.255.255 via DHCP,
setting the also supplied default gateway fails (because it is obviously not
within the netmask).

The setup with a netmask of /32 is quite common in colocation datacenters
where you don't want the machines of two different customers to directly talk
to each other. At least two of the biggest colocation providers in Germany
(1&1 and Strato) do it that way. NetworkManager supports this kind of setup
and the dhclient-scripts of several distributions too.

In this patch I have implemented a simple approach very similar to what is
found in Debian. The dhclient-script from Fedora uses a more sophisticated
approach, but that relies on the ipcalc utility which would introduce a
dependency on Fedora-initscripts for dracut.

Signed-off-by: Gerd von Egidy <gerd.von.egidy@intra2net.com>
modules.d/40network/dhclient-script.sh