Command
Show DHCP Server
Use
This command shows information about known DHCP servers that have communicated with the router.
Syntax
Router#show dhcp server
Example
In the below example we configure R1’s Fa0/0 to use DHCP.
R1(config)#int fa0/0 R1(config-if)#ip address dhcp R1(config-if)# *Mar 1 01:39:29.295: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.1.1.2 (FastEthernet0/0) is down: interface down R1(config-if)# *Mar 1 01:39:40.455: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.1.1.1, mask 255.255.255.0, hostname R1 R1(config-if)# *Mar 1 01:39:42.143: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.1.1.2 (FastEthernet0/0) is up: new adjacency
Then we verify the lease information with show dhcp server
R1(config)#do sh dhcp server DHCP server: ANY (255.255.255.255) Leases: 1 Offers: 1 Requests: 1 Acks : 1 Naks: 0 Declines: 0 Releases: 0 Query: 0 Bad: 0 DNS0: 4.2.2.2, DNS1: 0.0.0.0 Subnet: 255.255.255.0