show dhcp-server
Syntax
show dhcp-server [all-vrfs]
show dhcp-server leases {all-vrfs | vrf <VRF-NAME>}
show dhcp-server pool <POOL-NAME> [vrf <VRF-NAME>]
Description
Shows configuration settings for the DHCPv4 server.
Command context
Manager (#)
Parameters
all-vrfs
Shows DHCPv4 server configuration settings for all VRFs.
leases {all-vrfs | vrf <VRF-NAME>}
Shows DHCPv4 server lease configuration settings for all VRFs or a specific VRF.
pool <POOL-NAME> [vrf <VRF-NAME>]
Shows DHCPv4 server pool configuration settings for all VRFs or a specific VRF.
Authority
Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.
Examples
Showing all DHCPv4 server configuration settings.
switch# show dhcp-server VRF Name : default DHCP Server : enabled Operational State : operational Authoritative Mode : false Pool Name : test Lease Duration : 00:01:00 DHCP dynamic IP allocation -------------------------- Start-IP-Address End-IP-Address Prefix-Length ---------------- -------------- -------------- 192.168.1.1 192.168.1.20 24 DHCP Server options ------------------- Option-Number Option-Type Option-Value ------------- ----------- ------------ 6 ip 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 DHCP Server static IP allocation -------------------------------- IP-Address Client-Hostname State MAC-Address ----------- ---------------- ------ ------------ 10.0.0.3 * OPERATIONAL aa:aa:aa:aa:aa:aa BOOTP Options --------------- Boot-File-Name TFTP-Server-Name TFTP-Server-Address -------------- ---------------- --------------------- boot.txt * 10.0.0.10
Showing DHCP server configuration settings for VRF primary-vrf.
switch# show dhcp-server vrf primary-vrf VRF Name : primary-vrf DHCP Server : disabled Operational State : disabled Authoritative Mode : false Pool Name : test Lease Duration : 00:01:00 DHCP dynamic IP allocation -------------------------- Start-IP-Address End-IP-Address Prefix-Length ---------------- -------------- -------------- 10.0.0.1 10.0.0.30 * 192.168.1.1 192.168.1.20 24 192.168.10.30 192.168.10.60 16 DHCP Server options ------------------- Option-Number Option-Type Option-Value ------------- ----------- ------------ 6 ip 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 18 ascii aswed DHCP Server static IP allocation -------------------------------- IP-Address Client-Hostname MAC-Address ---------- --------------- ----------------- 10.0.0.1 * aa:bb:cc:11:12:a4 20.0.0.1 * 11:22:11:22:aa:dd BOOTP Options --------------- Boot-File-Name TFTP-Server-Name State TFTP-Server-Address -------------- ---------------- ------ --------------------- boot.txt * OPERATIONAL 10.0.0.10