![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg4b9.png)
1209
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 Routing policy view
Parameters next-hop: Matches next hop.
route-source: Matches source address.
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.
Examples # Create routing policy policy1 with node 10, matching mode as permit. Define
an if-match clause 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 Routing policy view
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.