How to show MAC Address from switch

  • by

In a JUNOS devices you can show the MAC table for the better trouble shooting. A media access control address (MAC address) of a device is a unique identifier assigned to network interfaces for communications at the data link layer of a network segment. Here I am trying to show how we can view the MAC Address in Juniper Network Switch:

It will show all MAC Address learn from all of your switch network. That mean it it’ll show the full MAC table. MAC table is have the maximum size that is depend on the hardware model.
#run show ether-switching table
It will show all MAC Address learn from interface ge-0/0/16. How many devices are connected in this interface we can show that devices mac address for using this command. And here using the match condition with the interface name. We can also show the interface learned mac address in a different way.
#run show ether-switching table | match ge-0/0/16
It will show all MAC Address learn from interface ge-0/0/6.0. How many devices are connected in this interface we can show that devices mac address for using this command.
# run show ethernet-switching table interface ge-0/0/6.0
We can match another condition that VLAN name is “GEEK”. And It will show all MAC Address learn from VLAN name “GEEK”.
#run show ether-switching table | match GEEK

If we need to know the mac table size and summary of mac table then just use this command.

# run show ethernet-switching table summary
    Total                               : 1648
    L3 recieve route entries            : 1
    Dynamic entries                     : 1319
    Flood entries                       : 328

{master:5}[edit]     
Sometimes we need to show the mac address in a different type of sorting way. Like if we want to show the mac address in a ascending way then just enter this command
# run show ethernet-switching table sort-by tag

We can also show the ascending way with the VLAN NAME

# run show ethernet-switching table sort-by name

Leave a Reply