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-listcommand in “Configuring a BGP Community”.

Configure IP Routing

Configuring an IP routing policy includes tasks that are described in the following

Policy

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

A routing policy consists of several parts and each part has its own if-match

Policy

clauses and applies clauses, with sequence-numberspecifying the matching order

 

of these parts.

 

 

Perform the following configurations in system view.

 

Table 560 Define a Routing Policy

 

 

 

 

 

Operation

Command

 

 

 

 

Define a routing policy and enter into the

route-policy policy-name{ permit

 

routing policy view.

deny } { seq-number }

 

 

 

 

Delete a routing policy

undo route-policy policy-name[

 

 

 

permit deny ] [seq-number]

 

 

 

 

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-numberuse Boolean “OR” operations. Namely, route information matches every part in turn. Through a certain part of routing policy defines filtering through this routing policy.

Page 485
Image 485
3Com 10014299 Configure IP Routing, Define a Routing Policy, Operation Command Define a routing policy and enter into