Configuring Filters; Configuring An Ip Prefix List - HPE 5800 Series Configuration Manual

Layer 3 - ip routing
Hide thumbs Also See for 5800 Series:
Table of Contents

Advertisement

Routing policy
A routing policy can comprise multiple nodes, which are in a logical OR relationship. A node with a
smaller number is matched first. A route that matches one node matches the routing policy.
A node can comprise a set of if-match, apply, and continue clauses.
The if-match clauses configure the match criteria that match the attributes of routing
information. The if-match clauses are in a logical AND relationship. A route must match all the
if-match clauses to match the node.
The apply clauses specify the actions to be taken on permitted routes, such as modifying a
route attribute.
The continue clause specifies the next node. A route that matches the current node must
match the specified next node in the same routing policy. The continue clause combines the
if-match and apply clauses of the two nodes to improve flexibility of the routing policy.
Follow these guidelines to configure if-match, apply, and continue clauses:
If you only want to filter routes, do not configure apply clauses.
If you do not configure any if-match clauses for a permit-mode node, the node will permit all
routes.
Configure a permit-mode node containing no if-match or apply clauses behind multiple
deny-mode nodes to allow unmatched routes to pass.

Configuring filters

Before you configure this task, determine the IP-prefix list name, matching address range, and
community list number.

Configuring an IP prefix list

Configuring an IPv4 prefix list
Step
Enter system view.
1.
Configure an IPv4
2.
prefix list.
If all the items are set to deny mode, no routes can pass the IPv4 prefix list. Configure the permit
0.0.0.0 0 less-equal 32 item following multiple deny items to allow other IPv4 routing information to
pass.
The following configuration example filters routes 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16, but
allows other routes to pass:
<Sysname> system-view
[Sysname] ip ip-prefix abc index 10 deny 10.1.0.0 16
[Sysname] ip ip-prefix abc index 20 deny 10.2.0.0 16
[Sysname] ip ip-prefix abc index 30 deny 10.3.0.0 16
[Sysname] ip ip-prefix abc index 40 permit 0.0.0.0 0 less-equal 32
Configuring an IPv6 prefix list
Command
system-view
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 ]
351
Remarks
N/A
Not configured by
default.

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents