Juniper IOS Cheat Sheet - EX Switch Commands

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


Configure SVI/RVI:
  1. Configure an IP on the RVI.
  2. Bind the RVI to a VLAN
* 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:
  1. Minimum VLAN config is define vlan-name.
      #set vlans servers
     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:
  • VLAN range defines a range of VLANs.
  • Syntax:  set vlans vlan-name vlan-range low-high
            #set vlans production vlan-range 90-100

Configure VLAN Membership
  1. Assign ports via VLAN-centric method.
      #set vlans servers interface ge-0/0/0.0

     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]

  • For access port, configure all the VLAN membership under the VLAN stanza.
  • For trunk ports, configure all the VLAN membership under the interface (port-centric method
Configure Port Roles:
  1. Access Ports:    
         #set interface ge-0/0/0.0 family Ethernet-switching port-mode access
  2. Trunk:         
         #set interface ge-0/0/0.0 family Ethernet-switching port-mode trunk
  3. Routed:       
         #set-interface ge-0/0/0.0 family inet address 192.168.1.0/24
Execute CLI Commands:
 #run show

Shutdown:
 #request system halt

0 Comments:

Post a Comment

My Instagram