Switching

 View Only
last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Location of Mac address on the Switch

    Posted 06-07-2018 02:37

    Hi,

     

    I have a list of computer MAC addresses in my network. I need to locate the switch and port of all the listed MAC address. We have around 18 Ex switches and 60 odd computers to locate. The VLAN assigned to the computer are L3 VLAN.

     

    There should be a way to do this but I cant find it. Any leads would be helpful.

     

    Harish



  • 2.  RE: Location of Mac address on the Switch
    Best Answer

     
    Posted 06-07-2018 02:58

    Hi Harish,

     

    Even if the vlan is configured as a IRB vlan, the mac addresses of the PC's connected to the switch port will be displayed under "show ethernet-switching table"

     

    {master:0}[edit]
    root# run show ethernet-switching table

    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC
    SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)


    Ethernet switching table : 3 entries, 3 learned
    Routing instance : default-switch
    Vlan MAC MAC Age Logical NH RTR
    name address flags interface Index ID
    default 84:c1:c1:ac:07:c5 D - ge-0/0/2.0 0 0
    test_112 84:c1:c1:ac:07:c4 D - ge-0/0/1.0 0 0
    vlan_test 30:7c:5e:47:b3:15 D - sxe-0/0/0.0 0 0

    {master:0}[edit]
    root# run show vlans test_112

    Routing instance VLAN name Tag Interfaces
    default-switch test_112 112
    ge-0/0/1.0*

    {master:0}[edit]
    root# show vlans test_112
    vlan-id 112;
    l3-interface irb.112;

    {master:0}[edit]
    root# show interfaces irb.112
    family inet {
    address 112.112.112.112/24;
    }

    {master:0}[edit]
    root# show interfaces ge-0/0/1.0
    family ethernet-switching {
    vlan {
    members test_112;
    }
    }

    {master:0}[edit]
    root#



  • 3.  RE: Location of Mac address on the Switch

    Posted 06-07-2018 04:47

    Thanks that worked for me 🙂



  • 4.  RE: Location of Mac address on the Switch

    Posted 06-07-2018 03:05

    Try this one:

    show ethernet-switching table