Brain Twister Part II

llllvllllllllvllll Member Posts: 58 ■■□□□□□□□□
How Can a switch learn same Mac-address on two of its ports?
P.S :- There are no loops :)

Comments

  • NetworkVeteranNetworkVeteran Member Posts: 2,338 ■■■■■■■■□□
    llllvllll wrote: »
    How Can a switch learn same Mac-address on two of its ports?
    P.S :- There are no loops :)

    "Switch" unqualified refers to a L2 device, and if no loops, the end device has only one active link.

    Link bundling tends to learn MAC addresses on either the logical aggregate port or the primary physical port, not on two physical ports at once. Its hashing algorithm can use src/dst, but that isn't considered the MAC learning process.

    HSRP or spoofing can be ruled out, because only one source MAC is actually learned by the switch at any time.

    The most obvious case remains--two devices on different VLANs with the same MAC address.

    Not sure, if you have something less obvious in mind, what it is. :)
  • llllvllllllllvllll Member Posts: 58 ■■□□□□□□□□
    :D Connect Router B on switch's fa0/1 , switch will learn its Mac, then take out its cable and plug it in on switch fa0/5 so now switch will learn same Mac address. :P
  • SettSett Member Posts: 187
    llllvllll wrote: »
    :D Connect Router B on switch's fa0/1 , switch will learn its Mac, then take out its cable and plug it in on switch fa0/5 so now switch will learn same Mac address. :P
    Nope. Try it in a lab and you'll see.
    Non-native English speaker
  • networker050184networker050184 Mod Posts: 11,962 Mod
    What happens to the MAC entries when the interface goes down?
    An expert is a man who has made all the mistakes which can be made.
  • phoeneousphoeneous Member Posts: 2,333 ■■■■■■■□□□
    What happens to the MAC entries when the interface goes down?


    They age out?
  • busines4ubusines4u Member Posts: 67 ■■□□□□□□□□
    I believe when an interface goes down the MAC Address will be flushed out of the Mac-Address-Table immediately rather than aged out after a given amount of time.
  • d6bmgd6bmg Member Posts: 242 ■■■□□□□□□□
    phoeneous wrote: »

    They age out?

    Who knows? I don't think there is clarification about this issue in cisco documentation.
    [ ]CCDA; [ ] CCNA Security
  • networker050184networker050184 Mod Posts: 11,962 Mod
    Yes there is clarification in documentation and you can see for yourself with a simple lab set up.
    An expert is a man who has made all the mistakes which can be made.
  • phoeneousphoeneous Member Posts: 2,333 ■■■■■■■□□□
    d6bmg wrote: »
    Who knows? I don't think there is clarification about this issue in cisco documentation.

    MAC addresses aren't Cisco specific.
  • powmiapowmia Users Awaiting Email Confirmation Posts: 322
    Like Network Veteran said, the answer is two different vlans.

    When a link goes down.. that's a Topology Change (Spanning-Tree) and causes a CAM flush.
  • powmiapowmia Users Awaiting Email Confirmation Posts: 322
    Also, if you've ever attempted MAC spoofing (causing the same mac to be seen on two ports), you get a mac-flap notification... as in the mac flaps between ports. It will not be retained in the mac-address table for the same vlan on multiple ports.
  • dmcneil330dmcneil330 Users Awaiting Email Confirmation Posts: 33 ■■□□□□□□□□
    Isn't normal switching operation to add the source mac address of the frame to the MAC table for the port the frame was received on. If a duplicate entry exists the old one is removed and the new one replaces it. This comes straight from the Cisco SWITCH OCG. The mac flap notification would be generated if this were occurring frequently. So, unplugging the router from one switch port to the other would just make it move it's already learned Mac address to port mapping to a different port. So it's not learning one mac on two ports, it's moving the mac address mapping to another port.
    CCNP: SWITCH[X] ROUTE[] TSHOOT[]
Sign In or Register to comment.