cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
936
Views
0
Helpful
3
Replies

DHCP in Router

hs08
VIP
VIP

HI..

How we can query information about DHCP leases from the cisco router? I just want to query active mac addr along with the ip address and hostname?

1 Accepted Solution

Accepted Solutions

Hello,

unfortunately, the output of 'show ip dhcp binding' is all the info you get. Hostnames are not shown using the IOS DHCP server...

R1#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
192.168.1.2 0100.5079.6668.00 Dec 01 2022 08:21 AM Automatic

View solution in original post

3 Replies 3

Mark Elsen
Hall of Fame
Hall of Fame

 

 - FYI : https://www.oreilly.com/library/view/cisco-ios-cookbook/0596527225/ch20s13.html

 M.



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)

can we got client hostname for each mac addr?

Hello,

unfortunately, the output of 'show ip dhcp binding' is all the info you get. Hostnames are not shown using the IOS DHCP server...

R1#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
192.168.1.2 0100.5079.6668.00 Dec 01 2022 08:21 AM Automatic