
Operation Manual – Routing Protocol
H3C S5600 Series Ethernet Switches
Chapter 6 IP Routing Policy Configuration
6-7
Note:
z
A routing policy comprises multiple nodes. There is an OR relationship between
the nodes in a routing policy. As a result, the system examines the nodes in
sequence, and once the route matches a node in the routing policy, it will pass the
matching test of the routing policy without entering the test of the next node.
z
During the matching, there is an AND relationship between the
if-match
clauses
for a routing policy node. That is, a matching test against a node is successful only
when all the matching conditions specified by the
if-match
clauses in the node are
satisfied.
z
If no
if-match
clauses are specified, all the routes will filter through the node.
z
A node can comprise no
if-match
clause or multiple
if-match
clauses.
z
Each node comprises a set of
if-match
and
apply
clauses.
if-match
clauses
define matching rules.
apply
clauses specify the actions performed after a
matching test against the node is successful, and the actions can be the attribute
settings of routing information.
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
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 entries. Each entry 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 entries in ascending order of
index-number. Once the route matches an entry, the route passes the filtering of the
IP-prefix list and no other entry will be matched.
Follow these steps to configure an IPv4 IP-prefix list: