service dhcp-server shared-network-name <name> subnet <ipv4net> lease <seconds>
Specifies how long the address assigned by the DHCP server is valid.
The default number of seconds is 86,400 (24 hours).
- name
- Mandatory. A DHCP address pool.
- ipv4net
- Mandatory. Multinode. The IPv4 network served by the DHCP address pool. The format is ip-addr/prefix.
- seconds
- Optional. The number of seconds the address that is assigned by the DHCP server is valid. The number of seconds ranges from 120 through 4294967296.
Configuration mode
service {
dhcp-server {
shared-network-name name {
subnet ipv4net {
lease seconds
}
}
}
}
Use this command to specify how long the address assigned by the DHCP server is valid.
Use the set form of this command to specify how long the address assigned by the DHCP server is valid.
Use the delete form of this command to remove the lease configuration.
Use the show form of this command to view the lease configuration.