How to configure floating static routes on S series switches

25

If multiple static routes destined for the same IP address exist, you can specify different preferences for these routes. Routes with lower preferences are hidden in a routing table, which can be displayed using the display ip routing-table x.x.x.x verbose command (not the display ip routing-table command). The hidden routes are called floating static routes and are activated only when the preferred route becomes invalid.
On an S series switch, configure the preferences of static routes. The default value is 60, and a smaller value indicates a higher preference.
[HUAWEI]ip route-static 192.168.10.0 24 10.1.1.1 preference 50
[HUAWEI]ip route-static 192.168.10.0 24 10.2.2.1 preference 70
If the preferences of several static routes are different, the static route with the highest preference is in active state and is used to forward packets, while the other routes are in inactive state. When the route with the highest preference fails, the route with a secondary highest preference becomes active and takes over packet forwarding.

Other related questions:
How to configure floating static routes with S-series switches
When there are multiple routes to a destination, you can configure different routes with different priorities

Method used to configure a static route on the AR router
The procedure for configuring static route on the AR router is as follows: - Use command lines. [RouterA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2 //Configure a default route that is often used at the egress of a small-sized company. The address 1.1.4.2 is the gateway address of the carrier. When the specific route cannot be matched, data flows are forwarded to 1.1.4.2. If the device has only one default route, all the data packets are forwarded to 1.1.4.2 by default. [RouterB] ip route-static 1.1.3.0 255.255.255.0 1.1.4.6 //Configure the route to network segment 1.1.3.0/24. The next hop of the route is 1.1.4.6, which is the specific route but not the default route. Use the web platform. For details, see Example for Configuring IPv4 Static Routes .

Do S series switches support static multicast routes
For S series switches, static multicast routes are supported only by S series modular switches, S3700EI, S3700HI, S5720S-SI, S5720SI, S5700EI, S5710EI, S5720EI, S5700HI, S5710HI, S5720HI, S6700EI, S6720EI and S6720S-EI. You can run the igmp static-group command to configure a static multicast group, and the ip rpf-route-static command to configure a static multicast route.

Static ARP configuration on S series switch
On an S series switch, except S1700, run the arp static command in the system view to configure a static ARP entry. When the outbound interface is an Ethernet interface, run the arp static ip-address mac-address interface interface-type interface-number command to configure a static ARP entry. When a VPN instance needs to be specified for the ARP entry, run the arp static ip-address mac-address vpn-instance vpn-instance-name command. To configure a short ARP entry (only contains IP address and MAC address mapping, without VLAN or outbound interface), run the arp static ip-address mac-address command. To configure a static ARP entry in which the IP address is 10.1.1.1, MAC address is 0efc-0505-86e3, VLAN ID is 10, and outbound interface is GE1/0/1, run: [HUAWEI] arp static 10.1.1.1 0efc-0505-86e3 vid 10 interface gigabitethernet 1/0/1 - To configure a static ARP entry in which the IP address is 10.1.1.1, MAC address is 0efc-0505-86e3, and VPN instance is vpn1, run: [HUAWEI] ip vpn-instance vpn1 [HUAWEI-vpn-instance-vpn1] ipv4-family [HUAWEI-vpn-instance-vpn1-af-ipv4] quit [HUAWEI-vpn-instance-vpn1] quit [HUAWEI] arp static 10.1.1.1 0efc-0505-86e3 vpn-instance vpn1

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top