Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
admin@Xorplus# set vlans vlan-id 3
admin@Xorplus# set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 3
admin@Xorplus# set l3-interface vlaninterface vlan-interface vlan-3 address prefix-length 24
admin@Xorplus# set vlans vlan-id 3 l3-interface vlan-3
admin@Xorplus# commit
Commit OK.
Save done.


Code Block
admin@Xorplus# run show route table ipv4
unicast final
IPv4 Routing table: 3 routes      [static(1)/1]
                   > to via vlan-3/vlan-3     [local(0)/0]
                   > via vlan-3/vlan-3     [connected(0)/0]
                   > via vlan-3/vlan-3
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

C>* is directly connected, eth0, 01:33:30
S>* [1/0] via, vlan3, weight 1, 01:05:18
C>* is directly connected, vlan3, 01:05:18
admin@Xorplus# quit
admin@Xorplus> quit

admin@Xorplus$ip route list table 252 via dev vlan.3  proto xorp  metric 1 via dev vlan.3  proto xorp

root@Xorplus$ip route list table main
default via dev eth0 dev eth0  proto kernel  scope link  src dev vlan.3  proto kernel  scope link  src