Switching

last person joined: 12 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.  show mac address, IP and interface in EX switch

    Posted 05-26-2011 06:02

    Is there any commands that we can use to show something like show arp that will display mac address, ip address and interface in one table. I have 4 access switches, 1 core switches, and 1 srx firewall, while i run show arp in srx, yes there lot of output, but when run the same command on core switch or access switch nothing display. I know there is a command "show ethernet-switching table brief", but this will show you mac address with interface, without ip address.

     



  • 2.  RE: show mac address, IP and interface in EX switch

    Posted 05-26-2011 18:21

    Hi,

     

    Unless I missed something myself, I don't think there is.  I typically use a combination of the mac-learning-log and arp.  You can add | match as well to narrow down your search.

     

    show ethernet-switching mac-learning-log

    sh arp

     

    John

     



  • 3.  RE: show mac address, IP and interface in EX switch

    Posted 05-27-2011 04:08

    There isn't a way to do this natively yet, but there is an op script up at the Junoscriptorium that will do just this:

     

    http://code.google.com/p/junoscriptorium/source/browse/trunk/library/juniper/op/display/find-ip/find-ip.slax

     

     



  • 4.  RE: show mac address, IP and interface in EX switch

    Posted 05-30-2011 06:23

    root@junik# run show arp


    MAC Address       Address         Name                      Interface           Flags
    00:e0:4c:50:26:9d 10.3.0.101      10.3.0.101                vlan.6              none
    00:1b:21:57:44:14 10.7.7.250      10.7.7.250                vlan.4              none
    00:1e:8c:c3:49:a3 10.10.109.109   10.10.109.109         vlan.11             none
    00:1f:c6:7b:17:b8 10.10.111.111   10.10.111.111             ge-0/0/4.0          none
    00:1b:21:5d:5a:11 10.10.113.113   10.10.113.113             ge-0/0/6.0          none
    00:1b:21:3c:53:45 10.10.154.154   10.10.154.154             ge-0/0/7.0          none



  • 5.  RE: show mac address, IP and interface in EX switch

    Posted 05-30-2011 06:25

    this command only work if you configure l3-interface on EX switch, in other way switch only know mac-address and interface (not ip address)



  • 6.  RE: show mac address, IP and interface in EX switch

    Posted 05-04-2015 09:23
    • Use the following command to determine which MAC ID is associated with which interface:

     

    user@switch> show ethernet-switching table

     

    • if you already know the interface ID and want to determine the MAC ID that it's associated with (example interface 44) use:


    user@switch> show ethernet-switching table | match ge-0/0/44

     

    DATA 00:11:22:33:aa:bb Learn 0 ge-0/0/44.0

     

     

    • If you already have the MAC ID and wanna determine the interface use the following command:

    user@switch> show ethernet-switching table | match 00:11:22:33:aa:bb
    DATA 00:00:68:17:f9:8a Learn 0 ge-0/0/44.0

     

    -Mo



  • 7.  RE: show mac address, IP and interface in EX switch

    Posted 05-18-2015 10:31

    That is real easy. Enable dhcp-snooping and then run the command:

    >show dhcp snooping binding   



  • 8.  RE: show mac address, IP and interface in EX switch

    Posted 08-17-2016 22:06

    Hi, 

     

    I am new in Junos plateform.Please share the procedure to use op script in EX2200 Switches.

     

    Thanks

    Sandeep



  • 9.  RE: show mac address, IP and interface in EX switch

    Posted 08-21-2016 10:59

    To use an op script:

     

    Copy the script file to this directory on the device:

    /var/db/scripts/op/

     

    Run from the command line:

    user@host> op (filename-or-alias)

     

    https://www.juniper.net/documentation/en_US/junos15.1/topics/usage-guidelines/automation-executing-an-op-script.html



  • 10.  RE: show mac address, IP and interface in EX switch

    Posted 08-26-2016 05:42

    Thanks , i have checked many notes and knowledge base from you. you are excellent and always respond on tech queries.



  • 11.  RE: show mac address, IP and interface in EX switch

    Posted 08-26-2016 07:19
      |   view attached

    please help me in below

     

    I need output in below format.I can be possible by adding these commands

    show ethernet-switching table

    show dhcp snooping binding

    show interfaces descriptions | except down

    I have attached Ben Dale`s script where he has combined two switching command to get possible output.

    i want to add above three command and want to get below output.

     

    Mac-id    vlan-id   Interface description IP address(optional)

     

    Thanks 

    Sandeep Shukla

     


    #ethernetswitching

    Attachment(s)

    zip
    find-ip.zip   7 KB 1 version