Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

switch mac address

Hi guys,

Ok , I am studying little bit of switching technology for my day to day job requirement. May be following are very basic questions for you guys but really difficult to understand for me.

  • How one can fine the MAC address of a cisco switch. For example, when I run "sh ver" I get the MAC address. & when I run "sh mac addre-table"

       I also get the MAC address. So what MAC address is announced in BPDU's to decide the root of the network ?

  • How to fine the port priority of a cisco switch ?

Thanks

Tahir.

  • LAN Switching and Routing
9 REPLIES
New Member

Re: switch mac address

BPDU's are used Spanning-tree, and while there is more to be explained than that, the easiest way is to point you to the section of cisco's site that covers the configuration, explanation of and adminitration of spanning-tree, and its uses.

http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_9_ea1/configuration/guide/swstp.html#wp1106153

I hope this helps, if you need anything else just post any additional questions.

New Member

Re: switch mac address

Thanks Norman for your reply.

The document you refered is much technicial. I only need the answer of one question.

  1. How to find the MAC address of a cisco switch ?
  2. "sh mac address-table" shows mac addresses. "sh ver" show mac address. What is the actual MAC address of a cisco switch, Please.

Thanks

Re: switch mac address

Your switch is likely to have many MAC addresses.

If you do a show interface for each of the interfaces, you will probably find that each one has a different MAC address.

There is one "master" MAC address for the switch, known as the Bridge ID.  You can see that be doing a show spanning-tree and looking for the "Bridge ID" (not necessarily the Root ID).

If you do a show mac-address-table, those are not the MAC addresses of your switch, but the MAC addresses of the things attached to your switch, together with the ports they are attached to.

Does that help?

Kevin Dorrell

Luxembourg

New Member

Re: switch mac address

Yes Kevin , it is good explaination but when we run "show version" we see the MAC address. So is this MAC address the Bridge ID that is used in spanning-tree for the selection of root bridge ?

Thanks.

Re: switch mac address

Not all switches will tell you the base MAC address for a show version. For example, my 4500s do not, but my 3560s do so.  And in my 3560s, yes, the MAC address shown in show version is the same as the Bridge ID shown in show spanning-tree.

But the really reliable way to find out the Bridge ID used in spanning-tree is to do a show spanning-tree.

Kevin Dorrell

Luxembourg

New Member

      Try, sh switch

      Try, sh switch

Silver

switch mac address

[Kevin Dorrell] If you do a

show mac-address-table

, those are not the MAC addresses of your switch, but the MAC addresses of the things attached to your switch, together with the ports they are attached to.

i agree though if you type show mac-address-table | i No  then I think you'll find what you're after.

thank you

The mac address of a switch

The mac address of a switch is usually the preceding number of the MAC-Address on the first port .

 

Eg: The mac-address on the first port gi0/1 is  0019.e728.8101. The mac address of  the switch would be 0019.e728.8100.

 

 

 

 


 

New Member

I know this is old but I

I know this is old but I recently learned this command. Try it out. It shows the mac address of the interface, not what's attached.

show interfaces | i (.* line protocol is )|(.* address is)
44341
Views
17
Helpful
9
Replies
This widget could not be displayed.