dhcp-attributes (Address-Assignment Pools)
Syntax
dhcp-attributes { boot-file filename; boot-server (address | hostname); dns-server [ ipv6-address ]; domain-name domain-name; exclude-prefix-len exclude-prefix-length; grace-period seconds; maximum-lease-time seconds; name-server [ server-list ]; netbios-node-type node-type; option { [ (id-number option-type option-value) (id-number array option-type option-value) ]; } option-match { option-82 { circuit-id value range named-range; remote-id value range named-range; } } preferred-lifetime seconds; router [ router-address ]; server-identifier ip4-address; sip-server-address [ ipv6-address ]; sip-server-domain-name domain-name; t1-percentage percentage; t1-renewal-time; t2-percentage percentage; t2-rebinding-time; tftp-server address; valid-lifetime seconds; wins-server [ servers ]; }
Description
Configure DHCP attributes for the protocol family in a specific address pool. The attributes determine options and behaviors for the DHCP clients.
Options
boot-file | Set the boot file advertised to DHCP clients. After the client receives an IP address and the boot file location from the DHCP server, the client uses the boot image stored in the boot file to complete DHCP setup. This configuration is equivalent to DHCP option 67.
|
boot-server | Configure the name of the boot server advertised to DHCP clients. The client uses a boot file located on the boot server to complete DHCP setup. This configuration is equivalent to DHCP option 66.
|
dns-server | Specify a DNS server to which clients can send DNS queries. This is equivalent to DHCPv6 option
23. To specify multiple DNS servers, add multiple
|
domain-name | Configure the name of the domain in which clients search for a DHCP server host. This is the default domain name that is appended to hostnames that are not fully qualified. This is equivalent to DHCP option 15.
|
exclude-prefix-len exclude-prefix-length | Specify the length of the IPv6 prefix to be excluded from the delegated prefix. Range: 1 through 128. |
grace-period | Configure the amount of time that the client retains the address lease after the lease expires. The address cannot be reassigned to another client during the grace period.
|
maximum-lease-time | Specify the maximum length of time, in seconds, that the lease is held for a client if the client
does not renew the lease. This is equivalent to DHCP option 51. The
|
name-server | Configure one or more Domain Name System (DNS) name servers available to the client to resolve hostname-to-client mappings. This is equivalent to DHCP option 6.
|
netbios-node-type | Specify the NetBIOS node type. This is equivalent to DHCP option 46.
|
option | Specify user-defined options that are added to client packets. Starting in Junos OS Release 13.3,
the
|
preferred-lifetime | Specify the length
of time, in seconds, that the DHCPv6 server keeps the IPv6 prefix
active. When the lifetime expires, the address is deprecated. If the
|
router | Specify one or more routers located on the client’s subnet. This statement is the equivalent of DHCP option 3.
|
server-identifier | Specify the IP address that is used as the source address the DHCP server includes in IP packets when communicating with clients. The address is included in the DHCP packet in option 54.
|
sip-server-address | Specify a SIP outbound proxy server that DHCPv6 local server clients can use. This is equivalent
to DHCPv6 option 22. To specify multiple servers, add multiple
|
sip-server-domain-name | Configure the domain name of the SIP outbound proxy server that DHCPv6 local server clients can use. This is equivalent to DHCPv6 option 21.
|
t1-percentage | Specify a percentage of the
|
t1-renewal-time | Specify the time (T1) at which the
DHCPv4 or DHCPv6 client requests an extension (renewal) of the existing
lease. This time is expressed as the number of seconds since the
beginning of the lease. Using this statement to configure a duration in
seconds is an alternative to using the
|
t2-percentage | Specify a
percentage of the
|
t2-rebinding-time | Specify the time (T2) at which the
DHCPv4 or DHCPv6 client attempts to contact any DHCP server to request
an extension (rebinding) of the existing lease. This time is expressed
as the number of seconds since the beginning of the lease. Using this
statement to configure a duration in seconds is an alternative to using
the
|
tftp-server | Specify the Trivial File Transfer Protocol (TFTP) server that the client uses to obtain the client configuration file. This is equivalent to DHCP option 150.
|
valid-lifetime | Specify the length
of time, in seconds, that the DHCPv6 server keeps the IPv6 prefix valid.
When the lifetime expires, the address becomes invalid. If the
|
wins-server | Specify one or more NetBIOS name servers (NBNS) that the client uses to resolve NetBIOS names. This is equivalent to DHCP option 44.
|
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 9.0.
exclude-prefix-len
statement introduced in Junos
OS Release 17.3 for MX Series.