sh mac address-table question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 06:33 AM
how can i output a range of all access ports with vlan and mac address information?
- Labels:
-
Catalyst 3000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 06:34 AM
on 3850 switches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 07:31 AM
"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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 07:58 AM
doesnt output right
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 08:01 AM
What is the output of "sh vlan"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 08:17 AM
it just shows the usual vlan numbers with all the ports on those vlans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 09:14 AM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 09:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 10:02 AM
There is no "range" command when using this show command. If you want to see everything, than just use "sh mac address-table"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 10:15 AM
but that shows all the trunk ports and thats too much info. just trying to get just the access port info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 10:31 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 03:24 PM
I run lab and use
show mac address-table | include 0/ (/0)
you can see it work fine
hope this help you
thanks
MHM
