dhcp (DHCP Client)
Syntax (EX Series)
dhcp { client-identifier duid-type (duid-ll | duid-llt | vendor); no-dns-install; rapid-commit; options name; }
Syntax (SRX Series)
dhcp { client-identifier { (ascii string | hexadecimal string); } force-discover; lease-time (length | infinite); metric; no-dns-install; options; requested-options; retransmission-attempt value; retransmission-interval seconds; server-address server-address; update-server; vendor-id vendor-id ; }
Hierarchy level (EX Series)
[edit interfaces interface-name unit logical-unit-number family inet] [edit logical-systems name interfaces interface-name unit logical-unit-number family inet] [edit tenants tenant-name interfaces interface-name unit logical-unit-number family inet]
Hierarchy level (SRX Series)
[edit interfaces interface-name unit logical-unit-number family inet]
Description
Configure a Dynamic Host Configuration Protocol (DHCP) client for an IPv4 interface for logical systems and tenant systems.
The remaining statements are described separately.
Starting in Junos OS Release 18.1R1, DHCPv4 and DHCPv6
clients are supported on management interfaces (fxp0 and em0) configured
in the non-default management routing instance, mgmt_junos
.
Options
client-identifier duid-type | Identify a client by a client-identifier value. This statement is mandatory. |
no-dns-install | Do not add DNS information to the DHCP client even after it is learned from the DHCP server. |
options | Specify options requested by the DHCPv4 client. |
force-discover | Send DHCPDISCOVER after DHCPREQUEST retransmission failure |
lease-time | Specify lease time in seconds requested in DHCP client protocol packet (60 through 2147,,483,647 seconds for SRX devices) |
metric | client initiated default-route metric (0..255 for SRX Series devices) |
requested-options | Specify the DHCP options. |
The remaining statements are explained separately.
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 9.0.
The logical-systems
and tenants
options
are introduced in Junos OS Release 18.4R1.