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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: