cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
438
Views
5
Helpful
3
Replies

DHCP binding output

magdy fekry
Level 1
Level 1

How can i get mac address of devices instead of  client-id ?

 

CORE#sh ip dhcp binding


Bindings from all pools not associated with VRF:
IP address           Client-ID/                Lease expiration              Type           State        Interface
                     Hardware address/User name
                                 

10.220.7.4      0100.25ab.ac4s.57       Nov 17 2018 01:16 PM  Automatic    Active     Vlan7
10.220.8.13    016c.b749.1645.a2      Nov 17 2018 09:33 PM  Automatic    Active     Vlan8
10.220.8.27    01e4.70b8.a487.bf       Nov 17 2018 05:28 PM  Automatic    Active     Vlan8
10.220.8.31    0100.e18d.d0ce.f1       Nov 18 2018 12:54 AM  Automatic    Active     Vlan8
10.220.8.32    0100.ec0a.46f2.54       Nov 17 2018 07:54 PM  Automatic    Active     Vlan8
10.220.8.40    0108.d40c.dd79.c0      Nov 17 2018 11:06 PM  Automatic    Active     Vlan8

3 Replies 3

brselzer
Cisco Employee
Cisco Employee

Hello,

 

To get the Mac addeess, just remove the 01 off the front:

 

016c.b749.1645.a2 = 6cb7.4916.45a2

 

Hope that helps!

-Bradley Selzer
CCIE# 60833

Hello

You could also check the arp table.

sh ip arp | in 10.220


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

You have mentioned all MAC address in your post too.

 

Client ID: 0100.25ab.ac4s.57  == Mac address: 0025.abac.4s57

01 represents the Ethernet media type and the remaining bytes represent the MAC address of the DHCP client.

 

Regards,

Deepak Kumar

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
Review Cisco Networking for a $25 gift card