Juniper CLI Commands

Post Reply
zemerdon
Site Admin
Posts: 390
Joined: Mon Jan 23, 2023 8:13 pm

Juniper CLI Commands

Post by zemerdon »

unlimited terminal

Code: Select all

set cli screen-length 0
show ip

Code: Select all

show interfaces terse
how interfaces terse | match inet
stop DHCP on switch (cannot run DHCP and static IP

Code: Select all

delete interfaces vlan unit 0 family inet dhcp
set dns

Code: Select all

set system name-server 8.8.8.8
set ip and gateway and http/https axx

Code: 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-quit
change ip

Code: 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/24
set L3 interface

Code: Select all

set vlans VLAN1 l3-interface vlan.0
set root password

Code: Select all

cli
request system zeroize
show interfaces

Code: Select all

show interfaces
VLAN

Code: 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.
create VLAN

Code: Select all

configure
# 2. Create the VLAN and assign an ID
set vlans VLAN1 vlan-id 1
commit
1. Create a Range and Group the Ports

Code: Select all

set interfaces interface-range ports1to12 member-range ge-0/0/0 to ge-0/0/11
2. Apply Configuration to the Range

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
enable snmp

Code: Select all

configure
set snmp community readonly authorization read-only
commit
disable front LED alarms

Code: Select all

set chassis alarm management-ethernet link-down ignore
request system configuration rescue save
Post Reply