3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
1210 CHAPTER 79: IPV4 ROUTING POLICY CONFIGURATION COMMANDS
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 # Create routing policy policy2 with node 10, matching mode as permit. Define
an if-match clause to permit routes whose destination addresses match 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 ] { permit | deny } 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
Parameters ip-prefix-name: IPv4 prefix list name, a string of 1 to 19 characters.
index-number: Index number, in the range 1 to 65535, for uniquely specifying an
item of the IPv4 prefix list. The index with a smaller number is tested first.
permit: Specifies the matching mode for the IPv4 prefix list as permit, that is,
when a route to be filtered is in the range of the IPv4 prefix list, the route passes
the IPv4 prefix list without needing to enter the next item for testing. If the route
to be filtered is not in the prefix range, it will enter the next item test.
deny: Specifies the matching mode for the IPv4 prefix list as deny, that is, when a
route to be filtered is in the IPv4 prefix list range, the route neither passes the filter
nor enters the next node for testing. If not in the range, the route will enter the
next item test.
ip-address mask-length: Specifies an IPv4 address prefix and mask length. The
mask-length is in the range 0 to 32.
min-mask-length, max-mask-length: Specifies the range for prefix if the IPv4
address and prefix length are matched. greater-equal means “greater than or
equal to” and less-equal means “less than or equal to”. The range relation is
mask-length <= min-mask-length <= max-mask-length <= 32. If only
min-mask-length is specified, the prefix length range is [ min-mask-length, 32 ]. If
only max-mask-length is specified, the prefix length range is [mask-length,
max-mask-length ]. If both min-mask-length and max-mask-length are specified,
the prefix length range is [ min-mask-length, max-mask-length ].
Description Use the
ip ip-prefix command to configure an IPv4 prefix list item.