Options

A switch has unique MAC for each of its ports?

johnifanx98johnifanx98 Member Posts: 329
I thought only a switch's uplink port or AUI admin has MAC. What is the use for assigning MAC to each of its ports?

When a switch forwards a frame, the decision is made based on the MAC of the host connected, not by the port's MAC address. Then what is the necessity to assign an unique MAC for each of its ports?

Or, such MAC addresses serve only for certain scenario, like STP protocol?

Comments

  • Options
    sizeonsizeon Member Posts: 321
    you can assign a mac to a port for security reason.
  • Options
    YFZbluYFZblu Member Posts: 1,462 ■■■■■■■■□□
  • Options
    johnifanx98johnifanx98 Member Posts: 329
    YFZblu wrote: »
    No, a switch does not have a unique MAC address for each of its ports. It might help if you told us where you're seeing/reading this and its context.


    Switch>show int FastEthernet 0/1
    Hardware is Lance, address is 0010.111e.1601 (bia 0010.111e.1601)

    Switch>show int FastEthernet 0/2
    Hardware is Lance, address is 0010.111e.1602 (bia 0010.111e.1602)

    Switch>show int FastEthernet 0/3
    Hardware is Lance, address is 0010.111e.1603 (bia 0010.111e.1603)

    .....
  • Options
    YFZbluYFZblu Member Posts: 1,462 ■■■■■■■■□□
    I apologize, I misunderstood your original question - The port MAC address is used for things like CDP, STP, etc. My understanding is the port MAC address is used for traffic originated by the switch.
  • Options
    sizeonsizeon Member Posts: 321
    you can manually type a mac address and make the port reject any other mac address.
  • Options
    her.yangher.yang Member Posts: 22 ■□□□□□□□□□
    The only reason I could think of is for STP elections and to uniquely identify CDP neighbors.
  • Options
    vishaw1986vishaw1986 Member Posts: 40 ■■□□□□□□□□
    Hey john ,

    In CISCO Switches we have unique MAC Address for ever port and there usage are :

    STP , When we want to do Telent , Ping , SNMP to the switch or CDP
Sign In or Register to comment.