Juniper CLI Commands
Posted: Sat Jul 25, 2026 3:28 pm
unlimited terminal
show ip
stop DHCP on switch (cannot run DHCP and static IP
set dns
set ip and gateway and http/https axx
change ip
set L3 interface
set root password
show interfaces
VLAN
create VLAN
1. Create a Range and Group the Ports
2. Apply Configuration to the Range
enable snmp
disable front LED alarms
Code: Select all
set cli screen-length 0Code: Select all
show interfaces terse
how interfaces terse | match inetCode: Select all
delete interfaces vlan unit 0 family inet dhcpCode: Select all
set system name-server 8.8.8.8Code: Select all
cli
configure
set interfaces vlan unit 0 family inet address 192.168.1.106/24
set routing-options static route 0.0.0.0/0 next-hop 192.168.1.1
set system services web-management http
set system services web-management https system-generated-certificate
commit and-quitCode: Select all
configure
set interfaces vlan unit 0 family inet address 192.168.1.200/24
delete interfaces vlan unit 0 family inet address 192.168.1.107/24Code: Select all
set vlans VLAN1 l3-interface vlan.0Code: Select all
cli
request system zeroizeCode: Select all
show interfacesCode: Select all
show vlans: Lists all configured VLANs along with their parameters, IDs, and associated interfaces.
show vlans brief: Displays a summarized version of the VLAN table.
show vlans extensive: Shows detailed technical data and statistics for each VLAN.
show vlans name <vlan-name>: Filters the output to display information for a specific VLAN.
Code: Select all
configure
# 2. Create the VLAN and assign an ID
set vlans VLAN1 vlan-id 1
commit
Code: Select all
set interfaces interface-range ports1to12 member-range ge-0/0/0 to ge-0/0/11
Code: Select all
set interfaces interface-range ports1to12 unit 0 family ethernet-switching port-mode access
set interfaces interface-range ports1to12 unit 0 family ethernet-switching vlan members all
Code: Select all
configure
set snmp community readonly authorization read-only
commitCode: Select all
set chassis alarm management-ethernet link-down ignore
request system configuration rescue save