Switching

last person joined: 14 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  how to find client device plugged into port

    Posted 07-06-2011 14:25

    is there an easy way to map a client device (i.e.) to a specific port on an ex series switch? 



  • 2.  RE: how to find client device plugged into port

    Posted 07-06-2011 15:32

    Do you want to allow only one client(MAC) to use specific port? If so than you have to use allowed-mac feature:

     

    [edit ethernet-switching-options secure-access-port]

    user@switch> show

    secure-access-port {

            interface ge-0/0/1.0 {

                allowed-mac {

                    00:01:23:45:CD:23

                }

            }

    }



  • 3.  RE: how to find client device plugged into port

    Posted 07-09-2011 21:38

    If you just want to see what device is plugged into what port, the following should work.

     

    'show arp' to get the MAC address of the IP you are looking for.

     

    dscott> show arp                                              
    MAC Address       Address         Name                      Interface           Flags
    60:33:4b:04:5b:7b 192.168.1.192   192.168.1.192             me0.0               none
    00:24:dc:15:8f:01 192.168.101.1   192.168.101.1             vlan.101            none
    00:50:56:a8:00:02 192.168.101.10 192.168.101.10 vlan.101 none
    00:24:dc:15:8f:01 192.168.102.1   192.168.102.1             vlan.102            none
    00:24:dc:15:8f:00 192.168.200.1   192.168.200.1             vlan.200            none
    Total entries: 5

     'show ethernet-switching table' to see the physical port the MAC address is on.

     

    dscott> show ethernet-switching table                             
    Ethernet-switching table: 11 entries, 5 learned
      VLAN	            MAC address       Type         Age Interfaces
      Customer_1        *                 Flood          - All-members
      Customer_1        00:24:dc:15:8f:01 Learn       1:49 ge-0/0/12.0
      Customer_1        00:26:88:62:d7:40 Static         - Router
      Customer_1 00:50:56:a8:00:02 Learn 48 ge-0/0/13.0
      Customer_2        *                 Flood          - All-members
      Customer_2        00:24:dc:15:8f:01 Learn          0 ge-0/0/12.0
      Customer_2        00:26:88:62:d7:40 Static         - Router
      Intranet          *                 Flood          - All-members
      Intranet          00:24:dc:15:8f:00 Learn       1:10 ge-0/0/0.0
      Intranet          00:26:88:62:d7:40 Static         - Router
      Intranet          00:50:56:a8:00:03 Learn         55 ge-0/0/1.0

     

    You can limit your results using the 'match' command.

     

    dscott> show arp | match 192.168.101.10 
    00:50:56:a8:00:02 192.168.101.10  192.168.101.10            vlan.101            none

     

     

    dscott> show ethernet-switching table | match 00:50:56:a8:00:02 
      Customer_1        00:50:56:a8:00:02 Learn          0 ge-0/0/13.0

     



  • 4.  RE: how to find client device plugged into port

    Posted 07-13-2011 02:02

    but these commands only shows the mac adrress learned by switch through which interface. what if client wanted to know the mac address of the pc connected directly to 24 port ex series switches comprising of various vlans.



  • 5.  RE: how to find client device plugged into port

    Posted 07-13-2011 04:59

    Then you would use the command dscott provided, but filter on port instead of MAC Address:

     

    root@EX3200> show ethernet-switching table | match ge-0/0/24.0     
      voice             00:04:96:27:b6:22 Learn          0 ge-0/0/24.0
      data              00:04:96:34:8c:eb Learn          0 ge-0/0/24.0
      video             00:e0:2b:00:00:01 Learn         35 ge-0/0/24.0