R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

487
Parameters
+: Increases a cost value.
-: Decreases a cost value.
value: Specifies a cost in the range of 0 to 4294967295.
Examples
# Configure node 10 in permit mode of routing policy policy1. Set a cost of 120 for routing information
whose outbound interface is Serial 2/2/0.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface Serial 2/2/0
[Sysname-route-policy] apply cost 120
apply cost-type
Use apply cost-type to set a cost type for routing information.
Use undo apply cost-type to remove the clause configuration.
Syntax
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
Default
No cost type is set for routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
external: Sets the cost type to IS-IS external route.
internal: Sets the cost type to IS-IS internal route, or sets the MED value for a matching BGP route to the
IGP metric of the route's next hop.
type-1: Sets the cost type to Type-1 external route of OSPF.
type-2: Sets the cost type to Type-2 external route of OSPF.
Usage guidelines
When used for IS-IS, the apply cost-type internal command sets the cost type of a matching IS-IS route to
IS-IS internal route.
When used for BGP, the apply cost-type internal command sets the MED of a matching BGP route
learned from an IBGP peer to the IGP metric of the route's next hop before BGP advertises the route to an
EBGP peer.