Sunday, February 06, 2022

CLI Command Switch L2 Juniper EX2300

Check Version
user@Juniper-Ex2300>show version
Hostname: Juniper-Ex2300
Model: ex2300-24t-dc
Junos: 18.1R3.3

Clock, Date and Uptime
user@Juniper-Ex2300>show system uptime 

Show User
user@Juniper-Ex2300>show system users 

Show run
user@Juniper-Ex2300>show configuration 

Show log
user@Juniper-Ex2300>show log messages | last/match/find ...

Check Status Interface
user@Juniper-Ex2300>show interfaces terse 
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
ge-0/0/0.225 up up eth-switch
pfe-0/0/0 up up
pfh-0/0/0 up up
pfh-0/0/0.16384 up up inet
ge-0/0/1 up down
xe-0/1/3 up up
xe-0/1/3.1054 up up eth-switch

user@Juniper-Ex2300>show interfaces brief | last/match/find ...

user@Juniper-Ex2300>show interfaces brief | match Physical
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Physical interface: pfe-0/0/0, Enabled, Physical link is Up
Physical interface: pfh-0/0/0, Enabled, Physical link is Up
Physical interface: ge-0/0/1, Enabled, Physical link is Down

Check Port Configuration
user@Juniper-Ex2300>show configuration interfaces ge-0/0/1
flexible-vlan-tagging;
native-vlan-id 2;
encapsulation extended-vlan-bridge;
unit 154 {
vlan-id-list 2-4094;
input-vlan-map push;
output-vlan-map pop;
}
{master:0}

Check Optical Value
user@Juniper-Ex2300>show interfaces diagnostics optics xe-0/1/3 | match dBm
Laser output power : 0.6920 mW / -1.60 dBm
Laser receiver power : 0.2847 mW / -5.46 dBm
Laser output power high alarm threshold : 1.4120 mW / 1.50 dBm
Laser output power low alarm threshold : 0.1770 mW / -7.52 dBm
Laser output power high warning threshold : 1.2580 mW / 1.00 dBm
Laser output power low warning threshold : 0.1990 mW / -7.01 dBm
Laser rx power high alarm threshold : 1.0000 mW / 0.00 dBm
Laser rx power low alarm threshold : 0.0251 mW / -16.00 dBm
Laser rx power high warning threshold : 0.7943 mW / -1.00 dBm
Laser rx power low warning threshold : 0.0315 mW / -15.02 dBm

Check SN and Hardware Installed (SFP)
user@Juniper-Ex2300>show chassis hardware
Hardware inventory:
Item Version Part number Serial number Description
Chassis LZ0219390388 EX2300-24T-DC
Pseudo CB 0
Routing Engine 0 BUILTIN BUILTIN RE-EX2300-24T-DC
FPC 0 REV 18 650-060509 LZ0219390388 EX2300-24T-DC
CPU BUILTIN BUILTIN FPC CPU
PIC 0 REV 18 BUILTIN BUILTIN 24x10/100/1000 Base-T
PIC 1 REV 18 650-060509 LZ0219390388 4x10G SFP/SFP+
Xcvr 0 NON-JNPR 2001060035 SFP-LX10
Xcvr 3 NON-JNPR 00101S19218U0074 SFP+-10G-LR

Power Supply 0 JPSU-100W-DC-AFO
Fan Tray 0 Fan Module, Airflow Out (AFO)

Show Mac Address
user@Juniper-Ex2300>show ethernet-switching table brief 

IP OAM Logical Interface
*irb = Integrated Routing and Bridging)*
user@Juniper-Ex2300>show configuration interfaces irb
unit 0 {
family inet {
dhcp {
vendor-id Juniper-ex2300-24t-dc-LZ0219390388;
}
}
}
unit 1054 {
family inet {
address 10.54.101.1/29;
}
}

Static Route for Gateway IP Interface
user@Juniper-Ex2300>show configuration routing-options
static {
route 0.0.0.0/0 next-hop 10.54.101.3;
}
{master:0}

Entering Config Mode
user@Juniper-Ex2300>configure
user@Juniper-Ex2300#

Out From Config Mode
bit@Juniper-Ex2300# exit
bit@Juniper-Ex2300>

Shut-No Shut Interface
user@Juniper-Ex2300>configure
user@Juniper-Ex2300#set interfaces ge-0/0/10 disable
user@Juniper-Ex2300#set interfaces ge-0/0/10 enable

Edit Interface
user@Juniper-Ex2300>configure
user@Juniper-Ex2300#edit interfaces ge-0/0/10