Apply Cost-Type; Apply Extcommunity - HP FlexNetwork 3600 v2 Series Command Reference Manual

Hide thumbs Also See for FlexNetwork 3600 v2 Series:
Table of Contents

Advertisement

[Sysname-route-policy] apply cost 120

apply cost-type

Syntax
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
View
Routing policy view
Default 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
as the IGP metric to 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.
Description
Use apply cost-type to set a cost type for routing information.
Use undo apply cost-type to remove the clause configuration.
No cost type is set for routing information by default.
Used for IS-IS, the apply cost-type internal command sets the cost type of a matching IS-IS
route as IS-IS internal route.
Use for BGP, the apply cost-type internal command sets the MED of a matching BGP route
learned from an IBGP peer as the IGP metric to the route's next hop before BGP advertises the
route to an eBGP peer.
Examples
# Create node 10 in permit mode of routing policy policy1: If a route has a tag of 8, set the cost type
for the route to IS-IS internal route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8
[Sysname-route-policy] apply cost-type internal

apply extcommunity

Syntax
apply extcommunity { { rt route-target }&<1-16> [ additive ] }
undo apply extcommunity
View
Routing policy view
Default level
2: System level
412

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents