

check the description of this interface.check which interface is the MAC address transmitted in the parameters.The proposed script will do the following: Set interfaces xe- 0/ 0/ 23 description SW> DS1 When configured, we indicate that this interface leads to the downstream switch: Show interfaces xe -0/ 0/ 23 descriptions These are lines in the switch configuration file that allow you to assign text labels to interfaces.
#JUNIPER SHOW MAC ADDRESS HOW TO#
But how to understand where this interface leads? And here Interface Descriptions come to the rescue. The last column will be the interface name of the switch on which the MAC is registered. If there is such a MAC, the answer will be as follows: Show ethernet-switching table | match 08: 62: 66:c7:b3: 45 To find the MAC 08: 62: 66: c7: b3: 45 on the Juniper switch, run the following command: I didn’t want to do it all with my hands, sort through all the switches in the loop and determine where uplink was and where not too, so the next solution was born, which I want to share. By logging on to the DS1, we will discover this MAC on the port leading to AS2, going to AS2, we will see that it leads us to AS3, and only on AS3 will we find the specific port to which the device of interest is connected. In any case, the port of the upstream switch contains all the MAC addresses of the devices connected to the downstream switch.įor example, if the device of interest to us is connected to the AS3 switch, then, starting the search with CORE, we will find this address on the port leading to DS1. This rule is not always executed, access switches can be connected in series. If the network design is correct, that is, the root switch CORE, to which distribution switches DS (Distribution Switch) are connected, and, in turn, switches of access level AS (Access Switch). I want to share a small Python script that looks for the desired MAC address on the network and returns the name and port of the switch on which this MAC is registered.Ĭonstructive criticism is welcome. The problem is solved easily if there are several switches in the network, but when there are more than 30 of them, everything becomes much more complicated.

Set the VLAN membership on the trunk set interfaces unit family ethernet-switching vlan membersģ.On the local network, you often need to know which switch port the device’s MAC address is on. With a 200 comes Each EX 4 CB ½-meter V Up to 1 0( can be s ten) EX 4200 tacked into a V s CSĢ. Set system root-authentication plain-text-password OR Press the conf ig button for les s than Request syst em configur ation rescue save rollback re scue – nfig o c scue t re eate it! l u a r ef no d et to c s i g r re The don’t fo Create Login as root, run ezsetup OR Connect to ge-0/0/0, use DHCP and access 192.168.1.1 (web or telnet/SSH) OR Choose Enter Ezsetup from LCD screen OR Connect to me0 and access 192.168.2.1 (EX-series)

S interf ace shutdo wn interf ace no shu tdown conf.gz /config/rescue sy cleanup /var/tmp for ea conf.n.gz /config/juniper in ed or St f.n.gz fig/n /config/db/con. JUNOS Cheat-Sheet Quick Reference – Active n = 1-3 Rollbacks
