12-4
Related commands:
if-match interface
,
if-match acl
,
if-match ip-prefix
,
if-match ip
next-hop
,
if-match cost
,
if-match tag
,
route-policy
,
apply ip-address next-hop
,
apply
local-preference
,
apply origin
,
apply tag
.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: set a cost of 120 for routing
information whose outbound interface is VLAN-interface 20.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface Vlan-interface 20
[Sysname-route-policy] apply cost 120
apply cost-type
Syntax
apply cost-type
{
external
|
internal
|
type-1
|
type
-
2
}
undo
apply cost-type
View
Route policy view
Default Level
2: System level
Parameters
external
: IS-IS external route.
internal
: IS-IS internal route.
type-1
: Type-1 external route of OSPF.
type-2
: Type-2 external route of OSPF.
Description
Use the
apply cost-type
command to set a cost type for routing information.
Use the
undo apply cost-type
command to remove the clause configuration.
No cost type is set for routing information by default.
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