user@host# set client-identifier prefix [host-name logical-system-name
routing-instance-name]
3. Set the DHCP lease time.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set lease-time 86400
4. Set the number of attempts allowed to retransmit a DHCP packet.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set retransmission-attempts 6
5. Set the interval (in seconds) allowed between retransmission attempts. The range
is 4 through 64. The default is 4 seconds.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set retransmission-interval 5
6. Set the IPv4 address of the preferred DHCP local server.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set server 10.1.1.1
7. Set the vendor class ID for the DHCP client.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set vendor-id ether
8. Propagate DHCP options received from an external DHCP server to a local DHCP
server. By default, this option is not turned on.
[edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
user@host# set update-server
NOTE: To configure the DHCP client in a routing instance, configure the
interface in the [edit routing-instances] hierarchy.
Verifying and Managing DHCP Client Configuration
You can view or clear information about client address bindings and statistics for the
DHCP client.
•
To display the address bindings in the client table on the DHCP client:
user@host> show dhcp client binding
•
To display DHCP client statistics:
user@host> show dhcp client statistics
•
To clear the binding state of a DHCP client from the client table on the DHCP client:
361Copyright © 2017, Juniper Networks, Inc.
Chapter 10: Configuring DHCP Client and DHCP Server