Displays information on a DHCP subnet.
show ip dhcp-server subnet [A.B.C.D/X] [detail]
User EXEC
The show ip dhcp-server subnet [A.B.C.D/X] [detail] command displays the following information:
Output field |
Description |
---|---|
SUBNET |
Specifies the subnet network address and mask. |
IP ADDRESS RANGE |
Specifies the starting and ending IP addresses of the address pool. |
TOTAL ADDRESSES |
Specifies the total number of addresses that the pool allows irrespective of whether those addresses are leased currently. |
LEASED ADDRESSES |
Specifies the total number of addresses that are leased currently. |
Lease-Time |
Specifies the lease expiration timer that is configured for the subnet. |
TFTP Server IP |
Specifies the IP address of the TFTP server that the subnet uses. |
TFTP Server Name |
Specifies the server name of the TFTP server that the subnet uses. |
TFTP Bootfile-Name |
Specifies the filename of the boot image file that the subnet uses. |
Domain name |
Specifies the subnet domain name. |
Netbios-name-server |
Specifies the NetBIOS name server that the subnet uses. |
Netbios-type |
Specifies the node type for the NetBIOS name server that the subnet uses. |
Router |
Specifies the IP address of the subnet router. |
DNS |
Specifies the IP address of the DNS server that the subnet uses. |
NTP Server |
Specifies the IP address of the NTP server that the subnet uses. |
Custom Option <224-254> |
Specifies the subnet data value for any DHCP Custom Option. This value can be an IPv4 address, integer, or string. |
The following example displays information on a DHCP subnet:
Switch:1#show ip dhcp-server subnet ======================================================================================== DHCP Server Subnets Info ======================================================================================== SUBNET IP ADDRESS RANGE TOTAL ADDRESSES LEASED ADDRESSES ---------------------------------------------------------------------------------------- 192.0.2.0/24 192.0.2.1 - 192.0.2.254 254 0 198.51.100.0/24 198.51.100.1 - 198.51.100.80 80 2 ---------------------------------------------------------------------------------------- Total Number of DHCP Server subnets displayed: 2 ----------------------------------------------------------------------------------------
The following example displays detailed information on a DHCP subnet:
Switch:1#show ip dhcp-server subnet detail ================================================================================ DHCP Server Subnets Detailed Info ================================================================================ ================================================================================ Subnet 192.0.2.0/24 ================================================================================ IP Address Range : 192.0.2.1 - 192.0.2.254 Total Addresses : 254 Leased Addresses : 0 Lease-Time : 4000 TFTP Server IP : 0.0.0.0 TFTP Server Name : TFTP Bootfile-Name : Domain Name : Netbios-name-server : 0.0.0.0 Netbios-type : 0x0 Router 1 : 192.0.2.5 DNS 1 : 203.0.113.14 DNS 2 : 203.0.113.15 ================================================================================ Subnet 198.51.100.0/24 ================================================================================ IP Address Range : 198.51.100.1 - 198.51.100.80 Total Addresses : 80 Leased Addresses : 2 Lease-Time : 4000 TFTP Server IP : 203.0.113.20 TFTP Server Name : TFTP Bootfile-Name : Domain Name : Netbios-name-server : 0.0.0.0 Netbios-type : 0x0 Router 1 : 198.51.100.79 Router 2 : 198.51.100.80 NTP Server 1 : 203.0.113.34 Custom-Option 250 : 203.0.113.23 -------------------------------------------------------------------------------- Total Number of DHCP Server subnets displayed: 2 --------------------------------------------------------------------------------