No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - IP Unicast Routing

S7700 and S9700 V200R011C10

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, OSPFv3, IS-IS(IPv4), IS-IS(IPv6), BGP, Routing Policy ,and PBR, and provides configuration examples.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Overview of Routing Policies

Overview of Routing Policies


Routing policy is a policy that controls routes using a series of tools or methods. This type of policy will affect route generation, advertisement, and selection and so affect the packet forwarding path. These tools include ACL, route-policy, ip-prefix, and filter-policy, and these methods include filtering routes and setting attributes for routes.


On an IP network, routing policy is mainly used to filter routing information and modify route attributes. Table 10-1 describes its functions.

Table 10-1  Functions of routing policy


Execution Process


Filter routing information.

If a route meets a specific condition, it is accepted.

If a route meets a specific condition, it is advertised.

If a route meets a specific condition, it is imported.

This route is processed as required.

Modify route attributes.

If a route meets a specific condition, a certain attribute value of this route is changed to a specified value.

A certain attribute value of this route is changed to a specified value.

Using routing policy to filter routing information

Figure 10-1  Using routing policy to filter routing information

In Figure 10-1, SwitchA is dual-homed to SwitchB and SwitchC and will receive routes from both SwitchB and SwitchC. If SwitchA wants to receive routes only from SwitchB but not from SwitchC, configure routing policy on SwitchA to permit the routes received from SwitchB and deny the routes received from SwitchC.

Using routing policy to modify route attributes

Figure 10-2  Using routing policy to modify route attributes

In Figure 10-2, SwitchA is also dual-homed to SwitchB and SwitchC. Because SwitchB has better link stability and higher bandwidth than SwitchC, links of SwitchB and SwitchC need to function as the primary and backup links respectively. When the primary link fails, traffic is automatically switched to the backup link. To meet this requirement, you can use routing policy to set a lower route cost on SwitchB and set a higher route cost on SwitchC. Subsequently, traffic is automatically transmitted over the primary link of SwitchB, and the link of SwitchC functions as the backup link for route backup.


Routing policies offer the following benefits:
  • Improves network security by controlling route receiving, advertising and importing.
  • Improves network performance by modifying route attributes for proper traffic planning.

Relevant Information

Technology Forum

Huawei S Series Switches Routing Policy

Updated: 2020-02-04

Document ID: EDOC1000178324

Views: 288168

Downloads: 232

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next