Juniper IOS Cheat Sheet
EX Series Ethernet Switch Commands
by Steven Jordan November 25th, 2013
Juniper commands to configure and manage a Juniper EX switch. My formal training is with Cisco; I was lost the first couple times I used JUNOS CLI. These commands should help out other Cisco minded people.
N.B. The list below is blog friendly. I included a printer friendly Word version here.
General Commands:
Operation Mode: | #CLI |
Move up tree: | #up |
Move down tree: | #down |
Enter Configuration: | #config |
View Configuration: | #show |
Ascend to top of tree: | #top |
Descend one or multiple levels: | #edit |
Add line to config: | #set |
Delete a line: | #delete |
Changes:
Save changes | #commit | |
* Confirm changes are permanent. | ||
View changes since previous commit: |
#show | compare | |
Verify changes: | #commit check | |
Confirm changes: | #commit confirmed | |
*Commit confirm will roll back after 10 minutes. |
||
Descend one or multiple levels: | #edit | |
Add line to config: | #set | |
Delete a line: | #delete |
Configure Physical Interface:
#set interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24 | ||
|
|
* For additional RVIs, increase the unit number. **It is recommended the RVI unit number match the VLAN-id. |
|
#set interfaces vlan unit 1 family inet address 192.168.1.2/24 | |
#set vlans vlan-1 l3-interface vlan.1 |
Configure VLAN:
| |
2. Assign VLAN-ID for tags: | |
#set vlans servers vlan-id 100 | |
3. To delete VLAN replace the command set with “delete”. |
Configure VLAN Range:
| |
| |
2. Assign ports via Port-centric method. |
|
#set interfaces ge-0/0/0.0 family Ethernet-switching vlan members servers OR: #set interfaces ge-0/0/0.0 family Ethernet-switching vlan members 100 #set interfaces fe-0/0/0.0 family Ethernet-switching vlan members [1 5 7-100]
|
|
| |
Shutdown: |
#request system halt |
No comments:
Post a Comment