Versions Compared

Key

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

...

Code Block
admin@XorPlus# set vlans vlan-id 10
admin@XorPlus# set vlans vlan-id 20
admin@XorPlus# set vlans vlan-id 11
admin@XorPlus# set vlans vlan-id 21
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching port-mode trunk
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching vlan members 10
admin@XorPlus#set interface gigabit-ethernet te-1/1/3 family ethernet-switching vlan members 20
admin@XorPlus#set interface gigabit-ethernet te-1/1/4 family ethernet-switching port-mode trunk
admin@XorPlus#set interface gigabit-ethernet te-1/1/4 family ethernet-switching vlan members 11
admin@XorPlus#set interface gigabit-ethernet te-1/1/4 family ethernet-switching vlan members 21
admin@XorPlus# set vlanl3-interface vlan-interface vlan10 vif vlan10 address 172.168.1.1 prefix-length 24
admin@XorPlus# set vlanl3-interface vlan-interface vlan20 vif vlan20 address 172.168.1.1 prefix-length 24
admin@XorPlus# set vlanl3-interface vlan-interface vlan11 vif vlan11 address 192.168.2.1 prefix-length 24
admin@XorPlus# set vlanl3-interface vlan-interface vlan21 vif vlan21 address 192.168.2.1 prefix-length 24
admin@XorPlus# set vlans vlan-id 10 l3-interface vlan10
admin@XorPlus# set vlans vlan-id 20 l3-interface vlan20
admin@XorPlus# set vlans vlan-id 11 l3-interface vlan11
admin@XorPlus# set vlans vlan-id 21 l3-interface vlan21

...

Code Block
admin@XorPlus# set vlanl3-interface vlan-interface vlan10 vrf vrf1
admin@XorPlus# set vlanl3-interface vlan-interface vlan11 vrf vrf1
admin@XorPlus# set vlanl3-interface vlan-interface vlan20 vrf vrf2
admin@XorPlus# set vlanl3-interface vlan-interface vlan21 vrf vrf2

...

Code Block
admin@Xorplus# run show route vrf vrf1
IPv4 Routing table: 2 routes
172.168.1.1/32     [local(0)/0]
                   > via vlan10/vlan10
172.168.1.0/24     [connected(0)/0]
                   > via vlan10/vlan10

admin@Xorplus# run show route vrf vrf2
IPv4 Routing table: 2 routes

show ip route vrf vrf1 
=======================
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


VRF vrf1:
K>* 172.168.1.1/32    32 [local(0)/0]
                   > via vlan20/vlan20255/8192] unreachable (ICMP unreachable), 04:31:56
K>* 172.168.1.0/24    24 [connected(0)/0]
                   > via vlan20/vlan202400/8192] unreachable (ICMP unreachable), 04:31:56


show ipv6 route vrf vrf1 
=========================
  • You can use the run show route forward-host command to check the information about the host hardware forwarding table information of the specific VRF, run show route forward-route command to check the hardware route forwarding table information of the specific VRF.

...