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

14

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.

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 .

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.

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 0.0.0.0, 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 0.0.0.0 0.0.0.0 172.16.0.1 //Configure the default route and specify the next hop as 172.16.0.1.<

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.

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