|
|
26a25c |
diff -up dhcp-4.3.5b1/client/dhclient.conf.5.man dhcp-4.3.5b1/client/dhclient.conf.5
|
|
|
26a25c |
--- dhcp-4.3.5b1/client/dhclient.conf.5.man 2016-08-26 20:19:53.000000000 +0200
|
|
|
26a25c |
+++ dhcp-4.3.5b1/client/dhclient.conf.5 2016-09-12 17:09:23.243313514 +0200
|
|
|
26a25c |
@@ -228,7 +228,8 @@ responding to the client send the client
|
|
|
26a25c |
options. Only the option names should be specified in the request
|
|
|
26a25c |
statement - not option parameters. By default, the DHCPv4 client
|
|
|
26a25c |
requests the subnet-mask, broadcast-address, time-offset, routers,
|
|
|
26a25c |
-domain-name, domain-name-servers and host-name options while the DHCPv6
|
|
|
26a25c |
+domain-search, domain-name, domain-name-servers, host-name, nis-domain,
|
|
|
26a25c |
+nis-servers, ntp-servers and interface-mtu options while the DHCPv6
|
|
|
26a25c |
client requests the dhcp6 name-servers and domain-search options. Note
|
|
|
26a25c |
that if you enter a \'request\' statement, you over-ride these defaults
|
|
|
26a25c |
and these options will not be requested.
|
|
|
26a25c |
@@ -736,6 +737,17 @@ know the DHCP service(s) anycast MAC add
|
|
|
26a25c |
client. The \fIlink-type\fR and \fImac-address\fR parameters are configured
|
|
|
26a25c |
in a similar manner to the \fBhardware\fR statement.
|
|
|
26a25c |
.PP
|
|
|
26a25c |
+ \fBbootp-broadcast-always;\fR
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
+The
|
|
|
26a25c |
+.B bootp-broadcast-always
|
|
|
26a25c |
+statement instructs dhclient to always set the bootp broadcast flag in
|
|
|
26a25c |
+request packets, so that servers will always broadcast replies.
|
|
|
26a25c |
+This is equivalent to supplying the dhclient -B argument, and has
|
|
|
26a25c |
+the same effect as specifying 'always-broadcast' in the server's dhcpd.conf.
|
|
|
26a25c |
+This option is provided as an extension to enable dhclient to work
|
|
|
26a25c |
+on IBM s390 Linux guests.
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
.SH SAMPLE
|
|
|
26a25c |
The following configuration file was used on a laptop running NetBSD
|
|
|
26a25c |
1.3, though the domains have been modified.
|
|
|
26a25c |
diff -up dhcp-4.3.5b1/client/dhclient-script.8.man dhcp-4.3.5b1/client/dhclient-script.8
|
|
|
26a25c |
--- dhcp-4.3.5b1/client/dhclient-script.8.man 2016-08-26 20:19:53.000000000 +0200
|
|
|
26a25c |
+++ dhcp-4.3.5b1/client/dhclient-script.8 2016-09-12 17:08:09.516254385 +0200
|
|
|
26a25c |
@@ -45,7 +45,7 @@ customizations are needed, they should b
|
|
|
26a25c |
exit hooks provided (see HOOKS for details). These hooks will allow the
|
|
|
26a25c |
user to override the default behaviour of the client in creating a
|
|
|
26a25c |
.B /etc/resolv.conf
|
|
|
26a25c |
-file.
|
|
|
26a25c |
+file, and to handle DHCP options not handled by default.
|
|
|
26a25c |
.PP
|
|
|
26a25c |
No standard client script exists for some operating systems, even though
|
|
|
26a25c |
the actual client may work, so a pioneering user may well need to create
|
|
|
26a25c |
@@ -89,6 +89,26 @@ present. The
|
|
|
26a25c |
.B ETCDIR/dhclient-exit-hooks
|
|
|
26a25c |
script can modify the valid of exit_status to change the exit status
|
|
|
26a25c |
of dhclient-script.
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
+Immediately after dhclient brings an interface UP with a new IP address,
|
|
|
26a25c |
+subnet mask, and routes, in the REBOOT/BOUND states, it will check for the
|
|
|
26a25c |
+existence of an executable
|
|
|
26a25c |
+.B ETCDIR/dhclient-up-hooks
|
|
|
26a25c |
+script, and source it if found. This script can handle DHCP options in
|
|
|
26a25c |
+the environment that are not handled by default. A per-interface.
|
|
|
26a25c |
+.B ETCDIR/dhclient-${IF}-up-hooks
|
|
|
26a25c |
+script will override the generic script and be sourced when interface
|
|
|
26a25c |
+$IF has been brought up.
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
+Immediately before dhclient brings an interface DOWN, removing its IP
|
|
|
26a25c |
+address, subnet mask, and routes, in the STOP/RELEASE states, it will
|
|
|
26a25c |
+check for the existence of an executable
|
|
|
26a25c |
+.B ETCDIR/dhclient-down-hooks
|
|
|
26a25c |
+script, and source it if found. This script can handle DHCP options in
|
|
|
26a25c |
+the environment that are not handled by default. A per-interface
|
|
|
26a25c |
+.B ETCDIR/dhclient-${IF}-down-hooks
|
|
|
26a25c |
+script will override the generic script and be sourced when interface
|
|
|
26a25c |
+$IF is about to be brought down.
|
|
|
26a25c |
.SH OPERATION
|
|
|
26a25c |
When dhclient needs to invoke the client configuration script, it
|
|
|
26a25c |
defines a set of variables in the environment, and then invokes
|
|
|
26a25c |
diff -up dhcp-4.3.5b1/common/dhcp-options.5.man dhcp-4.3.5b1/common/dhcp-options.5
|
|
|
26a25c |
--- dhcp-4.3.5b1/common/dhcp-options.5.man 2016-08-26 20:19:53.000000000 +0200
|
|
|
26a25c |
+++ dhcp-4.3.5b1/common/dhcp-options.5 2016-09-12 17:08:09.517254386 +0200
|
|
|
26a25c |
@@ -1013,6 +1013,21 @@ classless IP routing - it does not inclu
|
|
|
26a25c |
classless IP routing is now the most widely deployed routing standard,
|
|
|
26a25c |
this option is virtually useless, and is not implemented by any of the
|
|
|
26a25c |
popular DHCP clients, for example the Microsoft DHCP client.
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
+NOTE to Fedora dhclient users:
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+dhclient-script interprets trailing 0 octets of the target as indicating
|
|
|
26a25c |
+the subnet class of the route, so for the following static-routes value:
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+ option static-routes 172.0.0.0 172.16.2.254,
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+ 192.168.0.0 192.168.2.254;
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+dhclient-script will create routes:
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+ 172/8 via 172.16.2.254 dev $interface
|
|
|
26a25c |
+.br
|
|
|
26a25c |
+ 192.168/16 via 192.168.2.254 dev $interface
|
|
|
26a25c |
.RE
|
|
|
26a25c |
.PP
|
|
|
26a25c |
.nf
|
|
|
26a25c |
diff -up dhcp-4.3.5b1/server/dhcpd.conf.5.man dhcp-4.3.5b1/server/dhcpd.conf.5
|
|
|
26a25c |
--- dhcp-4.3.5b1/server/dhcpd.conf.5.man 2016-08-26 20:19:53.000000000 +0200
|
|
|
26a25c |
+++ dhcp-4.3.5b1/server/dhcpd.conf.5 2016-09-12 17:10:11.205351980 +0200
|
|
|
26a25c |
@@ -528,6 +528,9 @@ pool {
|
|
|
26a25c |
};
|
|
|
26a25c |
.fi
|
|
|
26a25c |
.PP
|
|
|
26a25c |
+Dynamic BOOTP leases are not compatible with failover, and, as such,
|
|
|
26a25c |
+you need to disallow BOOTP in pools that you are using failover for.
|
|
|
26a25c |
+.PP
|
|
|
26a25c |
The server currently does very little sanity checking, so if you
|
|
|
26a25c |
configure it wrong, it will just fail in odd ways. I would recommend
|
|
|
26a25c |
therefore that you either do failover or don't do failover, but don't
|
|
|
26a25c |
@@ -542,9 +545,9 @@ primary server might look like this:
|
|
|
26a25c |
failover peer "foo" {
|
|
|
26a25c |
primary;
|
|
|
26a25c |
address anthrax.rc.example.com;
|
|
|
26a25c |
- port 519;
|
|
|
26a25c |
+ port 647;
|
|
|
26a25c |
peer address trantor.rc.example.com;
|
|
|
26a25c |
- peer port 520;
|
|
|
26a25c |
+ peer port 847;
|
|
|
26a25c |
max-response-delay 60;
|
|
|
26a25c |
max-unacked-updates 10;
|
|
|
26a25c |
mclt 3600;
|
|
|
26a25c |
@@ -1246,7 +1249,7 @@ the zone containing PTR records - for IS
|
|
|
26a25c |
.PP
|
|
|
26a25c |
.nf
|
|
|
26a25c |
key DHCP_UPDATER {
|
|
|
26a25c |
- algorithm HMAC-MD5.SIG-ALG.REG.INT;
|
|
|
26a25c |
+ algorithm hmac-md5;
|
|
|
26a25c |
secret pRP5FapFoJ95JEL06sv4PQ==;
|
|
|
26a25c |
};
|
|
|
26a25c |
|
|
|
26a25c |
@@ -1269,7 +1272,7 @@ dhcpd.conf file:
|
|
|
26a25c |
.PP
|
|
|
26a25c |
.nf
|
|
|
26a25c |
key DHCP_UPDATER {
|
|
|
26a25c |
- algorithm HMAC-MD5.SIG-ALG.REG.INT;
|
|
|
26a25c |
+ algorithm hmac-md5;
|
|
|
26a25c |
secret pRP5FapFoJ95JEL06sv4PQ==;
|
|
|
26a25c |
};
|
|
|
26a25c |
|
|
|
26a25c |
@@ -2742,7 +2745,8 @@ statement
|
|
|
26a25c |
The \fInext-server\fR statement is used to specify the host address of
|
|
|
26a25c |
the server from which the initial boot file (specified in the
|
|
|
26a25c |
\fIfilename\fR statement) is to be loaded. \fIServer-name\fR should
|
|
|
26a25c |
-be a numeric IP address or a domain name.
|
|
|
26a25c |
+be a numeric IP address or a domain name. If no \fInext-server\fR statement
|
|
|
26a25c |
+applies to a given client, the address 0.0.0.0 is used.
|
|
|
26a25c |
.RE
|
|
|
26a25c |
.PP
|
|
|
26a25c |
The
|