12-23
View
Route policy view
Default Level
2: System level
Parameters
acl-number
: ACL number from 2000 to 3999.
Description
Use the
if-match
acl
command to configure an ACL match criterion.
Use the
undo if-match acl
command to remove the match criterion.
No ACL match criterion is configured by default.
Related commands:
if-match interface
,
if-match ip next-hop
,
if-match cost
,
if-match tag
,
route-policy
,
apply ip-address next-hop
,
apply cost
,
apply local-preference
,
apply origin
,
apply tag
.
Examples
# Configure node 10 of route policy
policy1
to permit routes matching ACL 2000.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match acl 2000
if-match ip
Syntax
if-match ip
{
next-hop
|
route-source
} {
acl
acl-number
|
ip-prefix
ip-prefix-name
}
undo if-match ip
{
next-hop | route-source
} [
acl
|
ip-prefix
]
View
Route policy view
Default Level
2: System level
Parameters
next-hop
: Matches the next hop of routing information to the filter.
route-source
: Matches the source address of routing information to the filter.
acl acl-number
: Matches an ACL with a number from 2000 to 2999.
ip-prefix
ip-prefix-name
: Matches an IP prefix list with a name being a string of 1 to 19
characters.
Description
Use the
if-match ip
command to configure a next hop or source address match criterion for
IPv4 routes.
Use the
undo if-match ip
command to remove the match criterion.
The match criterion is not configured by default.
Related commands:
route-policy
.