H3C S6550X-HI Series Command Reference Manual page 2056

Table of Contents

Advertisement

-
cost
value
Examples
# Configure node 10 in permit mode for routing policy policy1 to set a cost of 120 for OSPF external
routes.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match route-type external-type1or2
[Sysname-route-policy-policy1-10] apply cost 120
apply cost-type
Use
apply cost-type
Use
undo apply cost-type
Syntax
apply cost-type { external | internal | internal-inc-ibgp | med-plus-igp
| type-1 | type
undo apply cost-type
Default
No cost type is set for routes.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
external
internal
route. For BGP, this keyword sets the MED value for a matching BGP route learned from an IBGP
peer to the IGP metric of the route's next hop.
internal-inc-ibgp
internal route. For BGP, this keyword sets the MED value for a matching BGP route to the IGP metric
of the route's next hop.
med-plus-igp
the MED value for a matching BGP route.
: Sets the cost type to OSPF Type-1 external route.
type-1
: Sets the cost type to OSPF Type-2 external route.
type-2
Usage guidelines
The
apply cost-type internal
advertised to EBGP peers.
The following commands take effect on BGP routes that are to be advertised to EBGP or IBGP
peers:
apply cost-type internal-inc-ibgp
apply cost-type med-plus-igp
: Specifies a cost in the range of 0 to 4294967295.
to set a cost type for IS-IS routes or modify the MED value for BGP routes.
-
2 }
: Sets the cost type to IS-IS external route.
: For IS-IS, this keyword sets the cost type for a matching IS-IS route to IS-IS internal
: For IS-IS, this keyword sets the cost type a matching IS-IS route to IS-IS
: Sets the sum of the original MED value and the IGP metric value of next hop as
to restore the default.
command takes effect only on IBGP routes that are to be
4

Advertisement

Table of Contents
loading

Table of Contents