What are priorities of static routes and default routes of the AR router


Default routes can be statically configured or dynamically generated through dynamic routing protocols.
If the default route is dynamically generated through dynamic routing protocols, its priority is the same as corresponding protocol.
If the default route is statically configured, the default priority is 60, which is similar to that of the static route.
Routes comply with the longest mask bit match principle. Specific routes are matched first, and then default routes are matched if the specific routes are not matched.

Other related questions:
Priorities of policy-based routing and default routing for an AR router
Policy-based routing has a higher priority than default routing. If policy-based routing and default routing coexist, only policy-based routing takes effect. After policy-based routing loses effect, default routing takes effect.

Differences between policy-based routing and default routing
The operation object of policy-based routing is packets. Even if a routing table is available, packets are not forwarded according to the routing table, and they are forwarded based on a policy according to requirements. According to the conventional routing and forwarding principle, packets are forwarded according to the destination addresses of the packets. Nowadays, more and more users expect that packets are forwarded and routed according to their defined policies on the basis of the conventional routing and forwarding. Policy-based routing enables the network administrator to formulate routing policies according to the source and destination addresses of packets, packet size, and link quality in order to change the forwarding paths of packets and meet user requirements.

How to adjust routing priority on an AR router
Commands about routing priority of an AR router are as follows: 1. ip route-staticip-address nexthop-address preferencepreference 2. preference (OSPF) For details about how to configure routing priorities and save data on a web page, see the URL: http://support.huawei.com/ecommunity/bbs/10276523.html.

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 //Configure a default route that is often used at the egress of a small-sized company. The address is the gateway address of the carrier. When the specific route cannot be matched, data flows are forwarded to If the device has only one default route, all the data packets are forwarded to by default. [RouterB] ip route-static //Configure the route to network segment The next hop of the route is, which is the specific route but not the default route. Use the web platform. For details, see Example for Configuring IPv4 Static Routes .

AR router is configured with default routes
The AR router is configured with default routes. If the preference of a static route is not set, the default preference of the static route is 60. When both the destination IP address and mask are, the configured route is the default route. If the routing table does not have matching routes, the default route is used to forward packets.
<Huawei> system-view
[Huawei] ip route-static //Configure the default route and specify the next hop as<

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