12-6
Description
Use the
apply isis
command to redistribute routes into a specified ISIS level.
Use the
undo apply isis
command to remove the clause configuration.
No IS-IS level is set by default.
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 cost
,
apply origin
,
apply tag
.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: If a route has a tag of 8,
redistribute the route to IS-IS level-2.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8
[Sysname-route-policy] apply isis level-2
apply local-preference
Syntax
apply local-preference
preference
undo apply local-preference
View
Route policy view
Default Level
2: System level
Parameters
preference
: BGP local preference, in the range 0 to 4294967295.
Description
Use the
apply local-preference
command to set the specified local preference for BGP routes.
Use the
undo apply local-preference
command to remove the clause configuration.
No local preference is set for BGP routing information by default.
Related commands:
route-policy
.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: If a route matches AS-PATH list
1, configure a local preference of 130 for the route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply local-preference 130
apply origin
Syntax
apply origin
{
egp
as-number
|
igp
|
incomplete
}