dhcp-client
Syntax
dhcp-client { client-identifier { prefix { host-name; logical-system-name; routing-instance-name; } use-interface-description (device | logical); user-id (ascii string| hexadecimal string); } force-discover; lease-time (length | infinite); no-dns-install; options no-hostname; retransmission-attempt value; retransmission-interval seconds; server-address server-address; update-server; vendor-id vendor-id ; }
Hierarchy Level
[edit interfaces interface-name unit logical-unit-number family family]
Description
Configure the Dynamic Host Configuration Protocol (DHCP) client.
Options
force-discover—Forces the DHCP client to send a DHCP discover packet after one to three failed
dhcp-request
attempts. Theforce-discover
option ensures that the DHCP server will assign the same or a new IP address to the client.lease-time—Specify the time to negotiate and exchange DHCP information.
infinite—Lease never expires.
length—Number of seconds.
no-dns-install—Do not add DNS information to the DHCP client (resolve.conf) even after learn from DHCP server
retransmission-attempt—Specify the number of times the device attempts to retransmit a DHCP packet fallback. Range is 0-6.
server-address—Specify the preferred DHCP server address that is sent to DHCP clients.
update-server—Propagate TCP/IP settings to a local DHCP server.
vendor-id—Vendor class ID for the DHCP client.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 12.1X44-D10.
Starting with Junos OS Release 17.4R1 and Junos OS Release 15.1X49-D60, on all SRX Series
Firewalls and vSRX Virtual Firewall instances, the CLI option
dhcp-client
at [edit interfaces interface-name unit
logical-unit-number family inet]
hierarchy is changed to
dhcp
to align with other Junos platforms. There is no change in
the functionality.