12-24
Examples
# Configure node 10 of route policy
policy1
to permit routing information whose next hop
address matches IP prefix list
p1
.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match ip next-hop ip-prefix p1
if-match ip-prefix
Syntax
if-match
ip-prefix
ip-prefix-name
undo if-match
ip-prefix
View
Route policy view
Default Level
2: System level
Parameters
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-prefix
command to configure an IP prefix list based match criterion.
Use the
undo if-match ip-prefix
command to remove the match criterion.
No IP prefix list based 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
policy2
to permit routes whose destination address
matches IP prefix list
p1
.
<Sysname> system-view
[Sysname] route-policy policy2 permit node 10
[Sysname-route-policy] if-match ip-prefix p1
ip ip-prefix
Syntax
ip ip-prefix
ip-prefix-name
[
index
index-number
] {
deny
|
permit
}
ip-address mask-length
[
greater-equal
min-mask-length
] [
less-equal
max-mask-length
]
undo ip ip-prefix
ip-prefix-name
[
index
index-number
]
View
System view
Default Level
2: System level