Configure IP Routing Policy 481
community. Actually, it is a method of grouping according to the destination
address where the packets are sent. After grouping, the whole group of routing
information should be distributed, received or imported. The community-list is an
access list based on community information, used for the BGP protocol. Its
matching object is the community field of BGP routing information.
Community-list definition is already implemented in BGP configuration. See the
description of the
ip community-list command in “Configuring a BGP
Community”.
Configure IP Routing
Policy
Configuring an IP routing policy includes tasks that are described in the following
sections:
■ Defining a Routing Policy
■ Define a Matching Rules
■ Defining an Apply Clause
■ Configuring Route Import
■ Defining an IP Prefix List
■ Configuring Route Filter
Defining a Routing
Polic
y
A routing policy consists of several parts and each part has its own if-match
clauses and applies clauses, with sequence-number specifying the matching order
of these parts.
Perform the following configurations in system view.
Table 560 Define a Routing Policy
By default, no routing policy is defined.
permit specifies the matching mode of the defined routing policy node as permit
mode. When the route item satisfies all if-match clauses of the node, it is
permitted to pass the filtering of this node and execute apply clauses of this node.
If the route item does not satisfy the if-match clauses of this node, the next node
of this routing policy is tested.
deny specifies the matching mode of the defined routing policy node as deny
mode. When the route item satisfies all if-match clauses of this node, it is rejected
and the next node is nottested.
Please note that the parts of different seq-number use Boolean “OR” operations.
Namely, route information matches every part in turn. Through a certain part of
routing policy defines filtering through this routing policy.
Operation Command
Define a routing policy and enter into the
routing policy view.
route-policy policy-name { permit |
deny } { seq-number }
Delete a routing policy undo route-policy policy-name [
permit | deny ] [seq-number ]