Versions Compared

Key

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

...

Info
titleNOTE:

Enable IP routing function before using this feature, for details please refer to Configuring IP Routing.


In L2/L3, all routing entries will be configured to the ASIC switching chip if the outgoing VLAN-interface is link-up, and the outgoing physical port is learning.

...

Code Block
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 l3-interface vlan-interface vlan-2 address 192.168.1.1 prefix-length 24
admin@XorPlus# set l3-interface vlan-interface vlan-2 address 192.168.2.1 prefix-length 24
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.
admin@XorPlus# run show route table ipv4 unicast final 
10.10.1.0/24 [static(1)/1]
> to 192.168.2.5 viavlan-3/vlan-3
192.168.1.0/24 [connected(0)/0]
> via vlan-2/vlan-2
192.168.2.0/24 [connected(0)/0]
> via vlan-3/vlan-3



admin@XorPlus# run show route ipv4 
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

K>* 0.0.0.0/0 [0/0] via 10.10.51.1, eth0, 05:06:21
C>* 2.2.2.2/32 is directly connected, lo, 05:06:21
C>* 10.10.51.0/24 is directly connected, eth0, 05:06:21
O   40.93.0.0/24 [110/20] via 40.94.0.2, vlan4094, weight 1, 01:21:40
C>* 40.93.0.0/24 is directly connected, vlan4093, 01:22:32
O   40.94.0.0/24 [110/10] is directly connected, vlan4094, weight 1, 01:21:50
C>* 40.94.0.0/24 is directly connected, vlan4094, 01:22:32


admin@XorPlus# run show route forward-route ipv4 all 
Destination NetMask NextHopMac Port 
--------------- --------------- ----------------- ---------
10.10.1.0 255.255.255.0 00:1E:68:37:EF:7D ge-1/1/2
192.168.1.0 255.255.255.0 C8:0A:A9:04:49:28 connected
192.168.2.0 255.255.255.0 C8:0A:A9:04:49:28 connected 

...