Procedure
Configure an IPv4 static route with the destination address 192.168.1.0, next-hop IP address 192.168.4.1, and preference 60.
<Huawei> system-view[Huawei] ip route-static 192.168.1.0 255.255.255.0 192.168.4.1 preference 60
Configure an IPv6 static route with the destination address 1::, next-hop IPv6 address 10::1, and preference 80.
<Huawei> system-view[Huawei] ipv6 route-static 1:: 64 gigabitethernet0/0/1 10::1 preference 80
More Information
If no preference is set for a static route, the static route uses the default preference 60.
If the destination IP address and mask of a static route are set to all 0s, a default route is configured. If a packet does not match any route in an IP routing table, this packet is forwarded using a default route.
If you specify the same preference for multiple static routes with the same destination address, you can implement load balancing among these routes. If you specify different preferences for these routes, you can implement route backup among the routes.
When configuring an IPv4 static route, you need to specify an outbound interface or a next-hop address as required. On a point-to-point interface, you only need to specify an outbound interface. On an NBMA interface, you only need to specify a next-hop address. On a broadcast interface, you only need to specify a next-hop address.
When configuring an IPv6 static route, you need to specify an outbound interface or a next-hop address as required. On a point-to-point interface, you only need to specify an outbound interface. On an NBMA interface, you only need to specify a next-hop address. On a broadcast interface, you can specify only an outbound interface or specify both an outbound interface and a next-hop address. This next-hop address can be a non-link-local address.
This is what I want to talk about/share with you today, thank you!