cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
969
Views
10
Helpful
1
Replies

wireless MAC address to hostname mapping (IOS-XE 16.3.x)

Hi, I was able to map the AP's to a static name so I can recognize from the logs which AP and which port is connected to:

C3850#show ap jo s s
Number of APs : 3

Base MAC        Ethernet MAC    AP Name               IP Address       Status      
---------------------------------------------------------------------------------
2037.060a.5e80  0007.7d43.05be  AP_1_Sala_Gi1/0/39    192.168.9.3      Joined      
5835.d9c6.d160  0007.7d42.fdb9  AP_2_BdRoom_Gi1/0/40  192.168.9.4      Joined      
5835.d9d5.b530  0007.7d42.fe90  AP_3_Local_Gi1/0/41   192.168.9.2      Joined      

 

But, is there a way to map the MAC address of the wireless clients to a static name (or hostname will work too)?

I would like to configure names such as "Joh's Laptop", or "Son's Tablet" stuff like that so I would see in the logs which clients are there. I tried with the command "show wireless client mac-address" and it outputs a bunch of useful information but no hostnames.

 

C3850#show wireless client summary 
Number of Local Clients : 7


MAC Address    AP Name                          WLAN State              Protocol 
--------------------------------------------------------------------------------
001e.ffff.0001 AP_1_Sala_Gi1/0/39               3    UP                 11g      
001e.ffff.0002 AP_3_Local_Gi1/0/41              3    UP                 11g      
08cc.ffff.0003 AP_3_Local_Gi1/0/41              2    UP                 11n(5)   
24ee.ffff.0004 AP_3_Local_Gi1/0/41              2    UP                 11n(2.4) 
5652.ffff.0005 AP_2_BdRoom_Gi1/0/40             3    UP                 11n(2.4) 
5aa9.ffff.0006 AP_3_Local_Gi1/0/41              3    UP                 11n(2.4) 
7cd9.ffff.0007 AP_1_Sala_Gi1/0/39               3    UP                 11n(2.4) 

Thanks in advance!

1 Accepted Solution

Accepted Solutions

Hi

 Well, relationship between hostname and mac address usually can be made using monitoring tools like prime for example.  Or authentication tools like ISE.

 If you want to see this on the switch CLI, you need to do some programabillity cause this doesn´t exist on Cisco world as far as I know.   I saw something in Juniper in the past.

 However, Cisco IOX XE started to support programability with Python. So, I believe that with a bit of effort you may get something.

  Honestly, I dont think this really helps and I´d prefer to have Cisco Prime instead.

 

https://content.cisco.com/chapter.sjs?uri=/searchable/chapter/content/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/cli_python_module.html.xml 

View solution in original post

1 Reply 1

Hi

 Well, relationship between hostname and mac address usually can be made using monitoring tools like prime for example.  Or authentication tools like ISE.

 If you want to see this on the switch CLI, you need to do some programabillity cause this doesn´t exist on Cisco world as far as I know.   I saw something in Juniper in the past.

 However, Cisco IOX XE started to support programability with Python. So, I believe that with a bit of effort you may get something.

  Honestly, I dont think this really helps and I´d prefer to have Cisco Prime instead.

 

https://content.cisco.com/chapter.sjs?uri=/searchable/chapter/content/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/cli_python_module.html.xml 

Review Cisco Networking for a $25 gift card