Hero

...

Juniper commands

 

collection of useful commands

interface config example


# create LACP:
set interface ae27 description "some description"
set interface ae27 aggregated-ether-options lacp active
set interface ae27 aggregated-ether-options lacp periodic fast
# add interfaces to LACP bundle:
set interfaces xe-0/0/16:0 description "some description here"
set interfaces xe-0/0/16:0 ether-options 802.3ad ae27
set interfaces xe-1/0/16:0 description "some description here"
set interfaces xe-1/0/16:0 ether-options 802.3ad ae27
# configure group to tag traffic with VLAN xxx
set interfaces ae27 unit 0 family ethernet-switching interface-mode trunk
set interfaces ae27 unit 0 family ethernet-switching vlan members xxx_vlan_members

show


show config (and display in “normal” way)


show configuration | display set

show interface config


show configuration | display set | match xe-0/0/10
show configuration | display set | match ae74

show interfaces xe-0/0/10 terse
show interfaces ae75 terse

find mac address


show ethernet-switching table | match xx:xx:xx:xx:xx:xx
show ethernet-switching table

check interface for SFP

show interfaces terse | match <interface>
show interfaces <interface> media

check module compatibility

show interfaces diagnostics optics <interface>