service dhcp-server shared-network-name <name> subnet <ipv4net> exclude <ipv4>
Excludes an IP address from a DHCP address pool.
- name
- Mandatory. A DHCP address pool.
- ipv4net
- Mandatory. Multinode. The IPv4 network served by the DHCP address pool. The format is ip-addr/prefix.
- ipv4
- Optional. Multinode. An IP address to exclude from the lease range.
You can exclude more than one IP address by creating multiple exclude configuration nodes.
Configuration mode
service {
dhcp-server {
shared-network-name name {
subnet ipv4net {
exclude ipv4
}
}
}
}
Use this command to exclude an IP address from a DHCP address pool. An excluded address is never leased to DHCP clients. The exception is an IP address that is statically mapped by using service dhcp-server static-mapping mapname. This address is not excluded.
Use the set form of this command to exclude an IP address from the lease range.
Use the delete form of this command to delete an IP address from the list of excluded addresses.
Use the show form of this command to display excluded IP addresses.