11-29-2022 06:47 PM
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?
Solved! Go to Solution.
11-30-2022 12:25 AM
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
11-29-2022 11:11 PM
- FYI : https://www.oreilly.com/library/view/cisco-ios-cookbook/0596527225/ch20s13.html
M.
11-30-2022 12:18 AM
can we got client hostname for each mac addr?
11-30-2022 12:25 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide