Sample Pica8 command syntax
ENABLE/DISABLE Interface
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 disable true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
PORTS AND TRUNKS
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family
ethernet-switching port-mode access
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family
ethernet-switching port-mode trunk
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
A "SHOW" COMMAND
admin@XorPlus# run show interface gigabit-ethernet ge-1/1/1 detail
Physical interface: ge-1/1/1, Enabled, Physical link is Up
Interface index: 1
Link-level type: Ethernet, MTU: 1514, Speed: 1Gb/s, Duplex: Full
LAYER-THREE INTERFACES
admin@XorPlus# set vlans vlan-id 2
admin@XorPlus# set vlans vlan-id 3
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family
ethernet-switching native-vlan-id 2
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family
ethernet-switching native-vlan-id 3
admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2
admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set vlan-interface interface vlan-2vif vlan-2 address
192.168.1.1 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3vif vlan-3 address
192.168.2.1 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
ADD A STATIC ROUTE TO THAT
admin@XorPlus# set protocols static route 10.10.1.0/24 next-hop 192.168.2.5
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
OR CONFIG OSPF. . .
admin@XorPlus# set protocols ospf4 router-id 1.1.1.1
admin@XorPlus# set protocols ospf4 area 0.0.0.0 interface vlan-2vif vlan-2
address 10.10.1.1
admin@XorPlus# set protocols ospf4 area 0.0.0.1 interface vlan-3vif vlan-3
address 10.10.2.1
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.