Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

NOTE:

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.

Traffic that can be routed will have a route entry in the RIB and the ARP of the next hop; the outgoing interface should be link-up. The traffic will then be soft-routed (i.e., routed by the switch's CPU).

When the switch learns the MAC address of the next-hop, the switch will forward the traffic with the ASIC chip.

Configure static route:

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 vif vlan-2 address 192.168.1.1 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3 vif 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#
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:

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# 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
7001::                                    ffff:ffff:ffff:ffff::                     C8:0A:A9:AE:0A:66   te-1/1/3 
6001::                                    ffff:ffff:ffff:ffff::                     C8:0A:A9:AE:0A:66   te-1/1/3 
Total route count:4
admin@XorPlus#

After configuring max-route-limit:

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:

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# 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.

 

 

 

 

 

 

  • No labels