cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1055
Views
0
Helpful
11
Replies

sh mac address-table question

jayd1960
Level 1
Level 1

how can i output a range of all access ports with vlan and mac address information?

11 Replies 11

jayd1960
Level 1
Level 1

on 3850 switches

 

"sh vlan" will show you the vlans you have configured and the access ports that are members of each vlan. To see the MAC address for the same vlan, use 

sh mac address-table vlan xx

HTH

 

doesnt output right

What is the output of "sh vlan"?

 

it just shows the usual vlan numbers with all the ports on those vlans

sh mac address-table vlan xyz

Now

The mac address table show mac add that SW learn it (i.e. the host is active and send frame SW see it and learn mac)

If the host silent then the SW can not learn mac.

So if you do show vlan and get 10 ports and then do show mac address vlan and see 3 port with it mac that meaning there is 7 host silent or the port is not connect to anything (this also you can see by show interface status).

jayd1960
Level 1
Level 1

Not sure if you all understand what i am looking for. I need the output of the sh mac address-table interface gix/x/x but with a range of ALL the access ports on the switch.

There is no "range" command when using this show command. If you want to see everything, than just use "sh mac address-table"

 

 

but that shows all the trunk ports and thats too much info. just trying to get just the access port info

CLI may not be able to give you that. Try using switchmap.It is gui based with pretty good filtering and also free.

https://sourceforge.net/projects/switchmap/

HTH

 

Screenshot (674).png

I run lab and use 
show mac address-table | include 0/ (/0)

you can see it work fine 
hope this help you 
thanks 
MHM