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.


CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the 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).
Application Scenarios for Routing Policies

Application Scenarios for Routing Policies

Filtering Specific Routes

Figure 10-2 shows an OSPF-enabled network where RouterA receives routes from the Internet and advertises some of the routes to RouterB. Networking configurations to consider are as follows:

  • RouterA advertises only routes,, and to RouterB.

  • RouterC accepts only the route

  • RouterD accepts all the routes advertised by RouterB.

Figure 10-2 Networking diagram for filtering received and advertised routes

The following two approaches can be used to meet the preceding network requirements:
  • Use IP prefix lists.

    • Configure an IP prefix list on RouterA and configure the IP prefix list as an export policy of RouterA to be used by OSPF.
    • Configure another IP prefix list on RouterC and configure the IP prefix list as an import policy of RouterC to be used by OSPF.
  • Use routing policies.

    • Configure a routing policy (matching rules can be the IP prefix list, cost, or route tag) on RouterA and configure this routing policy as an export policy of RouterA to be used by OSPF.
    • Configure another routing policy on RouterC. Configure this routing policy as an import policy of RouterC to be used by OSPF.

    Compared with an IP prefix list, a routing policy allows route attributes to be modified and can be used to control routes more flexibly, but it is more complex to configure.

Transparent Transmission of Routes of Other Protocols Through an OSPF AS

On the network shown in Figure 10-3, an autonomous system (AS) runs OSPF and functions as a transit AS for other areas. Routes from the IS-IS area connected to RouterA need to be transparently transmitted through the OSPF AS to the IS-IS area connected to RouterD.

Figure 10-3 Networking diagram for transparently transmitting routes of other protocols through an OSPF AS

To meet the preceding requirements, configure a routing policy on RouterA to set a tag for the imported IS-IS routes. RouterD then identifies the IS-IS routes from OSPF routes based on the tag.

Updated: 2019-05-20

Document ID: EDOC1100034072

Views: 111211

Downloads: 163

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next