Ip Ip-Prefix - HP 6125G Command Reference Manual

Layer 3 - ip routing
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

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).
ip-address mask-length: Specifies an IPv4 prefix and mask length. The mask-length is in the range of 0 to
32.
min-mask-length, max-mask-length: Specifies the prefix range. 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 the min-mask-length is specified, the prefix length
range is [ min-mask-length, 32 ]. If only the 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 ip ip-prefix to configure an IPv4 prefix list or an item of it.
Use undo ip ip-prefix to remove an IPv4 prefix list or an item of it.
No IPv4 prefix list is configured by default.
An IPv4 prefix list is used to filter IPv4 addresses. It may have multiple items, each of which specifies a
range of IPv4 prefixes. The relation between the items is logic OR. If an item is passed, the IPv4 prefix list
is passed. If no item is passed, the IP prefix list cannot be passed.
The IP prefix range is determined by mask-length and [ min-mask-length, max-mask-length ]. If both
mask-length and [ min-mask-length, max-mask-length ] are specified, the IP address must satisfy both of
them.
If both ip-address and mask-length are specified as 0.0.0.0 0, only the default route will be matched.
To match all routes, use 0.0.0.0 0 less-equal 32.
357

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents