cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
612
Views
0
Helpful
1
Replies

snmp euqivallent of show mac address-table dynamic

charlesyju
Level 1
Level 1

show mac address-table dynamic will display the vlan of the MAC. Is there an equivallent mib to get such information? I know the BRIDGE-MIB can get the MAC and the port from which the MAC is learnt. But it does not give the vlan the MAC belongs to. 

1 Reply 1

Jaderson Pessoa
VIP Alumni
VIP Alumni

@charlesyju hello,

 

If you are good at regular expression you probably could figure something out. I'm not, but played with it a bit and if you use the pipe and designate the proper output modifiers you can get some range functionality:

 

Provides the output for ports G1/0/10 thru 19:

sh mac address-table | include Gi1/0/([1][0-9])

 

Provides the outputs for G1/0/20 thru 39:

sh mac address-table | include Gi1/0/([2-3][0-9])

 

If you want know what port device is connected and his vlan itself from another device, you cant do it. You need access the device directly to know it. 

 

more information:https://community.cisco.com/t5/switching/show-mac-address-table-interface-lt-interface-range-gt/m-p/2955998

Jaderson Pessoa
*** Rate All Helpful Responses ***