Show DHCP Lease Command on CISCO Router/Switch

Command

Show DHCP Lease

Use

This command shows DHCP lease information for interfaces that are configured with DHCP on the router.

Syntax

Router#show dhcp lease

Example

Show DHCP Lease Command on CISCO Router/Switch 1

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 lease.

R1(config)#do show dhcp lease
Temp IP addr: 10.1.1.1 for peer on Interface: FastEthernet0/0
Temp sub net mask: 255.255.255.0
DHCP Lease server: 10.1.1.2, state: 3 Bound
DHCP transaction id: 937
Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs
Temp default-gateway addr: 10.10.2.1
Next timer fires after: 11:59:38
Retry count: 0 Client-ID: cisco-cc01.0750.0000-Fa0/0
Client-ID hex dump: 636973636F2D636330312E303735302E
303030302D4661302F30
Hostname: R1
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x