Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches Chapter 6 Routing Policy Configuration Commands
6-25
6.2.3 if-match acl
Syntax
if-match acl acl-number
undo if-match acl
View
Routing policy view
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
# Create routing policy policy1 with node 10, matching mode as permit. Define an
if-match clause to permit routes matching ACL 2000.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match acl 2000
6.2.4 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.