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.
  • The static route that specifies the next hop address and the one that specifies the outgoing interface are not considered for ECMP load sharing, even if they have equal cost.

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 vlan-interface interface vlan-2 vifset l3-interface vlan-interface vlan-2 address 192.168.1.1 prefix-length 24
admin@XorPlus# set vlan-interface set l3-interface vlan-interface vlan-3 vif vlan-2 address 192.168.2.1 prefix-length 24
admin@Xorplus# set ip routing enable true
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 tablestatic
ipv4RIB unicastentry 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#
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 

With the show route forward-routeipv4 all command, all the route entries in the ASIC chip will be displayed. Following the show route table ipv4 unicastfinal command, all routes in the RIB of the kernel will be displayed.

 

Configure max-route-limit.

Before configuring max-route-limit, check the forward-route table:

Code Block
admin@XorPlus# run show route forward-route ipv4 all
Destination       NetMask           NextHopMac          Port    
---------------   ---------------   -----------------   ---------
192.168.1.0       255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.2.0       255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.3.0       255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.20.0      255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.100.0     255.255.255.0     04:7D:7B:62:93:FF   connected
Total route count:5
admin@XorPlus#
admin@XorPlus#for static
====================
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
 
S>* 10.10.1.0/24 [1/0] via 192.168.2.1, vlan-3, weight 1, 00:40:35


admin@Xorplus# run show route forward-route ipv6ipv4 all 
Destination                               NetMask                                   NextHopMac          Port    
---------------------------------------   ---------------------------------------   -----------------   ---------
5001::                                    ffff:ffff:ffff:ffff::                     04:7D:7B:62:93:FF   connected
2001::                                    ffff:ffff:ffff:ffff::                     04:7D:7B:62:93:FF   connected
7001::                                    ffff:ffff:ffff:ffff::                     C8:0A:A9:AE:0A:66   te-1/1/3 
6001::10.10.1.0/24                                     ffff:ffff:ffff:ffff::                     C8:0A:A9:AE:0A:66   te-1/1/3 
3C:2C:30:84:E0:81   connected
Total route count:4
admin@XorPlus#

After configuring max-route-limit:

Code Block
admin@XorPlus# set interface max-route-limit 1 
admin@XorPlus# comm
Merging the configuration.
Commit OK.
Save done.
Maximum of route limit changes, please reboot system to make it effect!
admin@XorPlus#

Check the forward-route table:

Code Block
admin@XorPlus#1

With the show route forward-route ipv4 all command, all the IPv4 route entries in the ASIC chip will be displayed.

Code Block
admin@Xorplus# run show route forward-route ipv4 all 
Destination       NetMask           NextHopMac          Port    
---------------   ---------------   -----------------   ---------
19210.16810.1.0    /24   255.255.255.0     043C:7D2C:7B30:6284:93:FF   connected
192.168.2.0       255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.3.0       255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.20.0      255.255.255.0     04:7D:7B:62:93:FF   connected
192.168.100.0     255.255.255.0     04:7D:7B:62:93:FFE0:81   connected
Total route count:5
admin@XorPlus#
admin@XorPlus# run show route forward-route ipv6 all
Destination                               NetMask                                   NextHopMac          Port    
---------------------------------------   ---------------------------------------   -----------------   ---------
5001::                                    ffff:ffff:ffff:ffff::                     04:7D:7B:62:93:FF   connected
2001::                                    ffff:ffff:ffff:ffff::                     04:7D:7B:62:93:FF   connected
Total route count:2
admin@XorPlus#

Note: The switch supports 12k ipv4 routes at most and 6k ipv6 routes at most. One ipv6 route is equal to two ipv4 routes. The directly-connected routes are not excepted to route limit.

 

 

 

 

 

...

1