if-match ip-prefix
Syntax
if-match ip-prefix ip-prefix-name
undo if-match ip-prefix
View
Routing 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 if-match ip-prefix to configure an IP prefix list based match criterion.
Use undo if-match ip-prefix to remove the match criterion.
No IP prefix list based match criterion is configured by default.
Examples
# Configure node 10 of routing 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
Parameters
ip-prefix-name: IPv4 prefix list name, a string of 1 to 19 characters.
index-number: Index number, in the range of 1 to 65535, for uniquely specifying an item of the IPv4
prefix list. An index with a smaller number is matched first.
deny: Specifies the match mode for the IPv4 prefix list as deny. If a route matches the IPv4 prefix list,
the route neither passes the filter nor matches against the next item; if not, the route matches against
the next item (suppose the IPv4 prefix list has multiple items configured).
permit: Specifies the match mode for the IPv4 prefix list as permit. If a route matches the IPv4 prefix
list, it passes the IPv4 prefix list. If not, it matches against the next item (suppose the IPv4 prefix list
has multiple items configured).
432