![Huawei Quidway S5600 Operation Manual Download Page 397](http://html.mh-extra.com/html/huawei/quidway-s5600/quidway-s5600_operation-manual_169841397.webp)
Operation Manual – Routing Protocol
Quidway S5600 Series Ethernet Switches-Release 1510
Chapter 6 IP Routing Policy Configuration
Huawei Technologies Proprietary
6-7
6.4 ip-prefix Configuration
ip-prefix plays a role similar to ACL and but is more flexible and easier to understand.
When ip-prefix is applied to filtering routing information, its matching object is the
destination address information field of routing information.
6.4.1 Configuration Prerequisites
Before configuring a filter list, prepare the following data:
z
ip-prefix name
z
Range
of
addresses to be matched
z
Extended community attribute list number
6.4.2 Configuring an ip-prefix list
An ip-prefix list is identified by its ip-prefix list name. Each ip-prefix list can comprise
multiple items. Each item can independently specify a match range in the form of
network prefix and is identified by an index-number. For example, the following is an
ip-prefix list named abcd:
z
ip ip-prefix abcd index 10 permit 1.0.0.0 8
z
ip ip-prefix abcd index 20 permit 2.0.0.0 8
During the matching of a route, the router checks the items in the ascending order of
index-number. Once the route match an item, the route passes the filtering of the
ip-prefix list and no other item will be matched.
Table 6-4
Configure an IPv4 ip-prefix list
Operation
Command
Description
Enter system view
system-view
—
Configure an IPv4
ip-prefix list
ip ip-prefix
ip-prefix-name
[
index
index-number
]
{
permit
|
deny
}
network
len
[
greater-equal
greater-equal
|
less-equal
less-equal
]
Required
By default, no ip-prefix list
is specified. If all the list
items are in
deny
mode, all
routing information will be
denied by the filter list. You
are recommended to
define the item
permit
0.0.0.0 0 greater-equal 0
less-equal 32
after
multiple items in the
deny
mode so as to permit all
other IPv4 routes.