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