Dynamic Host Configuration Protocol
DHCP client
iMG/RG Software Reference Manual (System Administration)
5-6
5.1.3.2 Support for AutoIP
The DHCP client supports also IP address auto-configuration, to be referred to as
AutoIP
in this manual. This
includes support for RFC2563, which allows network administrators to configure DHCP servers to deny this
auto-configuration capability to clients.
In summary,
AutoIP
will be engaged after a DHCP client fails to contact a DHCP server and cannot obtain a
lease. A pseudo-random algorithm invents an IP address on the 169.254 subnet. Collisions are avoided by issu-
ing ARP requests for the suggested IP address, abandoning the address if it is already active on the network.
Additionally, the suggested address will be abandoned if any other host on the network issues an ARP probe
(i.e. the host issuing the ARP has source address 0.0.0.0) for that IP address.
Having auto-configured an IP address, the DHCP client will periodically check that it still cannot contact a
DHCP server. If the client finds it can now obtain a legitimate lease from a DHCP server, this lease will super-
sede any auto-configured IP address.
To turn on the
AutoIP
feature use DHCPCLIENT SET INTERFACECONFIG AUTOIP ENABLED command
To prevent the DHCP client from using
AutoIP
, USE DHCPCLIENT SET INTERFACECONFIG AUTOIP DISA-
BLED command.
5.1.3.3 Additional DHCP client modes
There are two additional DHCP client modes for more fine control of how configuration parameters are
accepted and propagated. The first mode allows you to choose how DNS servers are to be used; the second
mode allows you to use parameters received on a DHCP client interface to automatically set up a DHCP
server on another interface in the system.
5.1.3.4 Propagating DNS server information
You can tell the DHCP client what to do with received DNS server addresses. The pertinent attributes are
giveDnsToRelay
and
giveDnsToClient
. As is evident from the parameter names, the effect of these settings is
to cause the DHCP process to pass to the DNS relay and client processes the DNS server address(es) it has
learnt, which they are then able to use for DNS queries.
By default, DNS server addresses are only given to the DNS relay, if present.
For example, to set this up via the CLI, the following command sequence can be used:
dhcpclient add interfaceconfig client1 ip0
dhcpclient interfaceconfig 1 add requested option domain-name-servers
dhcpclient set interfaceconfig client1 givednstorelay enabled
dhcpclient set interfaceconfig client1 givednstoclient enabled
5.1.3.5 Automatically setting up a DHCP server
It is possible to tell the DHCP client to use parameters it has obtained to automatically set up a DHCP server.