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

Reminder

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

upgrade

CLI-based Configuration Guide - IP Unicast Routing

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

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).
Routing Protocol Preference

Routing Protocol Preference

Routing protocols (including static routing) may discover different routes to the same destination, but not all routes are optimal. Only one routing protocol at a time determines the optimal route to a destination. To select the optimal route, each routing protocol (including static routing) is assigned a preference (a smaller value indicates a higher preference). When multiple routing information sources coexist, the route discovered by the routing protocol with the highest preference is selected as the optimal route and added to the local routing table.

Routers define external preference and internal preference. External preference is manually configured for each routing protocol. Table 1-1 lists the default external preferences of routing protocols.

Table 1-1 Routing protocols and their default external preferences

Routing Protocol or Route Type

Default External Preference

Direct

0

OSPF

10

IS-IS

15

Static

60

UNR (User Network Route)

  • DHCP (Dynamic Host Configuration Protocol): 60
  • AAA-Download: 60
  • IP Pool: 61
  • Frame: 62
  • Host: 63
  • NAT (Network Address Translation): 64
  • IPSec (IP Security): 65
  • NHRP (Next Hop Resolution Protocol): 65
  • PPPoE (Point-to-Point Protocol over Ethernet): 65

RIP

100

OSPF ASE

150

OSPF NSSA

150

IBGP

255

EBGP

255

NOTE:

In Table 1-1, the value 0 indicates direct routes and the value 255 indicates routes learned from unreliable sources. A smaller value indicates a higher preference.

You can manually configure the external preference of all routing protocols except direct routes. The preference for each static route varies.

Internal preferences of routing protocols cannot be manually configured. Table 1-2 lists the internal preferences of routing protocols.

Table 1-2 Internal preferences of routing protocols

Routing Protocol or Route Type

Internal Preference

Direct

0

OSPF

10

IS-IS Level-1

15

IS-IS Level-2

18

Static

60

UNR

65

RIP

100

OSPF ASE

150

OSPF NSSA

150

IBGP

200

EBGP

20

During route selection, a router first compares the external preferences of routes. When the same external preference is set for different routing protocols, the router selects the optimal route based on the internal preference. For example, assume that there are two routes to 10.1.1.0/24: a static route and an OSPF route. Both routes have the same external preference: 5. In this case, the router determines the optimal route based on the internal preference listed in Table 1-2. An OSPF route has an internal preference of 10, and a static route has an internal preference of 60. This indicates that the OSPF route has a higher preference than the static route, so the router selects the OSPF route as the optimal route.

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 144326

Downloads: 280

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