Ip Ip-Prefix - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Examples
# Create routing policy policy1 with node 10, matching mode as permit. Define an
if-match clause to permit a route whose destination address matches IP prefix list p1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match ip-prefix p1

6.2.6 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 ].
Chapter 6 Routing Policy Configuration Commands
6-27

Advertisement

Table of Contents
loading

Table of Contents