< Home

Routing Protocol Preference

This section describes the preferences of all the routing protocols.

Routing protocols (including the static route) can learn different routes to the same destination, but not all routes are optimal. Only one routing protocol at one time determines the optimal route to a destination. To select the optimal route, each routing protocol (including the static route) is configured with a preference (the smaller the value, the higher the preference). When multiple routing information sources coexist, the route with the highest preference is selected as the optimal route (the smaller the value is, the higher the preference is). Table 1 lists the routing protocols and the default preferences of routes found by each protocol.

In Table 1, 0 indicates the direct route, and 255 indicates any route learned from unreliable sources.

Table 1 Routing protocols and their default preferences

Routing Protocol or Route Type

Route 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
  • NAT (Network Address Translation): 61
  • Frame: 62
  • Host: 63
  • DSLite (Dual-Stack Lite): 64
  • IPSec (IP Security): 65
  • NHRP (Next Hop Resolution Protocol): 65
  • PPPoE (Point-to-Point Protocol over Ethernet): 65
  • ISP: 70
  • Gateway: 70

RIP

100

OSPF AS-External (ASE)

150

OSPF Not-So-Stubby Area (NSSA)

150

IBGP

255

EBGP

255

Except for direct routes, you can manually configure a routing protocol's preference. In addition, the preference for each static route can be distinct from the other routes.

The FW also defines the external preference and internal preference. External preference is the preference set by a user for each routing protocol. Table 1 shows the default external preference.

If different routing protocols are configured with the same preference, the system determines which routes discovered by these routing protocols become the preferred routes through an internal preference. Table 2 shows the internal preferences of routing protocols.

Table 2 Internal preferences of routing protocols

Routing Protocol or Route Type

Route 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

For example, two routes, an OSPF route and a static route, can reach the destination 10.1.1.0/24, and the preferences of both routes are set to 5. In this case, the FW determines the optimal route according to the internal preferences listed in Table 2. The internal preference value 10 of OSPF is higher than the internal preference value 60 of the static route. Therefore, the system selects the route discovered by OSPF as the optimal route.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >