A routing policy takes effect only when it is applied to a routing protocol.
Objectives |
Command |
Reference |
|---|---|---|
To configure a device to generate a default route or advertise a default route in the routing table to neighbors only when the matching conditions of a routing policy are met |
default-route originate [ cost cost | tag tag | route-policy route-policy-name [ avoid-learning ] ] * |
|
To configure RIP to import the BGP routes that match a routing policy |
import-route bgp [ permit-ibgp ] [ cost { cost | transparent } | route-policy route-policy-name ] * |
|
To configure RIP to import the routes from another routing protocol that match a routing policy |
import-route { static | direct | unr | { rip | ospf | isis } [ process-id ] } [ cost cost | route-policy route-policy-name ] * |
|
To set a priority for routes that match a routing policy |
preference { preference | route-policy route-policy-name } * |
Objectives |
Command |
Reference |
|---|---|---|
To configure RIPng to import the routes from another routing protocol that match a routing policy |
import-route { { ripng | isis | ospfv3 } [ process-id ] | bgp [ permit-ibgp ] | unr | direct | static } [ cost cost | route-policy route-policy-name ] * |
|
To set a priority for RIPng routes that match a routing policy |
preference { preference | route-policy route-policy-name } * |
Objectives |
Command |
Reference |
|---|---|---|
To configure IS-IS to generate and advertise default routes to the IS-IS domain only when external routes that match a routing policy exist in the routing table of a Level-1-2 router |
default-route-advertise route-policy route-policy-name [ cost cost | tag tag | [ level-1 | level-1-2 | level-2 ] ] * [ avoid-learning ] |
|
To configure IS-IS to advertise the routes that are imported from another routing protocol and match a routing policy |
filter-policy route-policy route-policy-name export [ protocol [ process-id ] ] |
|
To configure IS-IS to accept the routes that match a routing policy |
filter-policy route-policy route-policy-name import |
|
To configure IS-IS to import the routes from another routing protocol that match a routing policy |
import-route { direct | static | unr | { ospf | rip | isis } [ process-id ] | bgp [ permit-ibgp ] } [ cost-type { external | internal } | cost cost | tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] * import-route { { ospf | rip | isis } [ process-id ] | bgp [ permit-ibgp ] | direct | unr } inherit-cost [ { level-1 | level-2 | level-1-2 } | tag tag | route-policy route-policy-name ] * |
|
To configure Level-1 routes that match a routing policy to leak to a Level-2 area |
import-route isis level-1 into level-2 [ filter-policy route-policy route-policy-name | tag tag ] * |
|
To configure Level-2 routes that match a routing policy to leak to a Level-1 area |
import-route isis level-2 into level-1 [ filter-policy route-policy route-policy-name | tag tag ] * |
|
To configure a priority for the IS-IS routes that match a routing policy |
preference { route-policy route-policy-name | preference } * |
Objectives |
Command |
Reference |
|---|---|---|
To configure IS-IS to generate and advertise default IPv6 routes to the IS-IS domain only when external routes that match a routing policy exist in the routing table of a Level-1-2 router |
ipv6 default-route-advertise route-policy route-policy-name [ cost cost | tag tag | [ level-1 | level-2 | level-1-2 ] ] * [ avoid-learning ] |
|
To configure IS-IS to advertise the IPv6 routes that are imported from another routing protocol and match a routing policy |
ipv6 filter-policy route-policy route-policy-name export [ protocol [ process-id ] ] |
|
To configure IS-IS to accept the IPv6 routes that match a routing policy |
ipv6 filter-policy route-policy route-policy-name import |
|
To configure IS-IS to import the IPv6 routes from another routing protocol that match a routing policy |
ipv6 import-route { direct | static | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } [ cost cost | tag tag | route-policy route-policy-name | { level-1 | level-2 | level-1-2 } ] * ipv6 import-route { { ripng | isis | ospfv3 } [ process-id ] | direct | bgp [ permit-ibgp ] } inherit-cost [ tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] * |
|
To configure Level-1 IPv6 routes that match a routing policy to leak to a Level-2 area |
ipv6 import-route isis level-1 into level-2 [ filter-policy route-policy route-policy-name | tag tag ] * |
|
To configure Level-2 IPv6 routes that match a routing policy to leak to a Level-1 area |
ipv6 import-route isis level-2 into level-1 [ filter-policy route-policy route-policy-name | tag tag ] * |
|
To configure a priority for the IPv6 IS-IS routes that match a routing policy |
ipv6 preference { route-policy route-policy-name | preference } * |
To apply a routing policy in the OSPF view, perform the following operations:
Objectives |
Command |
Reference |
|---|---|---|
To configure OSPF to advertise the default routes in the routing table that are not generated by the local OSPF process to a common area based on the parameters of a routing policy |
default-route-advertise [ [ always | permit-calculate-other ] | cost cost | type type | route-policy route-policy-name [ match-any ] ] * |
|
To configure OSPF to advertise the routes that are imported from another routing protocol and match a routing policy |
filter-policy route-policy route-policy-name export [ protocol [ process-id ] ] |
|
To configure OSPF to accept the routes that match a routing policy |
filter-policy route-policy route-policy-name [ secondary ] import |
|
To configure OSPF to import the routes that match a routing policy |
import-route { limit limit-number | { bgp [ permit-ibgp ] | direct | unr | rip [ process-id-rip ] | static | isis [ process-id-isis ] | ospf [ process-id-ospf ] } [ cost cost | type type | tag tag | route-policy route-policy-name ] * } |
|
To configure a priority for OSPF routes that match a routing policy |
preference [ ase ] { preference | route-policy route-policy-name } * |
To apply a routing policy in the OSPF area view, perform the following operations:
Run the system-view command to enter the system view.
Run the ospf [ process-id ] command to enable an OSPF process and enter the OSPF view.
Run the area area-id command to enter the OSPF area view.
Perform either of the following operations to apply a routing policy in the OSPF area view:
To apply a routing policy in the OSPFv3 view, perform the following operations:
Run the system-view command to enter the system view.
Run the ospfv3 [ process-id ] command to enable an OSPFv3 process and enter the OSPFv3 view.
To apply a routing policy to OSPFv3 routes in the OSPFv3 view, see Table 6.
Objectives |
Command |
Reference |
|---|---|---|
To configure OSPFv3 to advertise the default routes in the routing table that are not generated by the local OSPFv3 process to an OSPFv3 routing area based on the parameters of a routing policy |
default-route-advertise [ always | cost cost | type type | tag tag | route-policy route-policy-name ] * |
|
To configure OSPFv3 to import the routes that match a routing policy |
import-route { bgp [ permit-ibgp ] | unr | direct | ripng help-process-id | static | isis help-process-id | ospfv3 help-process-id } [ { cost cost | inherit-cost } | type type | tag tag | route-policy route-policy-name ] * |
|
To configure a priority for OSPFv3 routes that match a routing policy |
preference [ ase ] { preference | route-policy route-policy-name } * |
- |
To apply a routing policy in the OSPFv3 area view, perform the following operations:
Run the system-view command to enter the system view.
Run the ospfv3 [ process-id ] command to enable an OSPFv3 process and enter the OSPFv3 view.
Run the area area-id command to enter the OSPFv3 area view.
Perform either of the following operations to apply a routing policy in the OSPFv3 area view: