...
Info | ||
---|---|---|
| ||
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-23 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 Commit OK. Save done. admin@XorPlus# run show route ipv4static unicastRIB finalentry 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 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 K>S>* 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 [1101/200] via 40192.94168.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, 2.1, vlan-3, weight 1, 01:21:50 C>* 40.94.0.0/24 is directly connected, vlan4094, 01:22:3200:40:35 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 --------------- --------------- ----------------- --------- 19210.16810.1.0/24 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 3C:2C:30:84:E0:81 connected Total route count:5 admin@XorPlus# admin@XorPlus# run show route 1 |
With the show route forward-route
...
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:
...
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 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# |
...
3C:2C:30:84:E0:81 connected
Total route count:1 |