Ip Prefix-List - HP 6125XLG Command Reference Manual

Blade switch layer 3 - ip routing
Table of Contents

Advertisement

Examples
# Configure node 10 of routing policy policy1 to match IPv4 routing information whose next hop matches
IP prefix list p1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match ip next-hop prefix-list p1

ip prefix-list

Use ip prefix-list to configure an IPv4 prefix list or an item for the list.
Use undo ip prefix-list to remove an IPv4 prefix list or an item of it.
Syntax
ip prefix-list prefix-list-name [ index index-number ] { deny | permit } ip-address mask-length
[ greater-equal min-mask-length ] [ less-equal max-mask-length ]
undo ip prefix-list prefix-list-name [ index index-number ]
Default
No IPv4 prefix list is configured.
Views
System view
Predefined user roles
network-admin
Parameters
prefix-list-name: Specifies a name for the IPv4 prefix list, a case-sensitive string of 1 to 63 characters.
index-number: Specifies an index number for an IPv4 prefix list item, in the range of 1 to 65535. An item
with a smaller number is matched first.
deny: Specifies the deny mode. If a route matches the item, the route is denied without matching against
the next item; if not, the route matches against the next item (suppose the IPv4 prefix list has multiple
items).
permit: Specifies the permit mode. If a route matches the item, it passes the IPv4 prefix list. If not, it
matches against the next item (suppose the IPv4 prefix list has multiple items).
ip-address mask-length: Specifies an IPv4 prefix and mask length. The value range for the mask-length
argument is 0 to 32.
min-mask-length, max-mask-length: Specifies a prefix length range. The greater-equal keyword means
"greater than or equal to" and the less-equal keyword 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 ].
Usage guidelines
An IPv4 prefix list is used to filter IPv4 addresses. It can contain 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.
441

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents