Configuring a Routing Policy 419
Defining an Extended
Community List
You can define multiple items for an extended community list that is identified by
number. During matching, the relation between items is logic OR, that is, if
routing information matches one of these items, it passes the extended
community list.
Follow these steps to define an extended community list:
Configuring a Routing
Policy
A routing policy is used to filter routing information according to some attributes,
and modify some attributes of the routing information that matches the routing
policy. Match criteria can be configured using filters above mentioned.
A routing policy can comprise multiple nodes, each node contains:
■ if-match clauses: Define the match criteria that routing information must
satisfy. The matching objects are some attributes of routing information.
■ apply clauses: Specify the actions performed after specified match criteria are
satisfied, concerning attribute settings for passed routing information.
Prerequisites Before configuring this task, you have completed:
■ Filtering list configuration
■ Routing protocol configuration
You also need to decide on:
■ Name of the routing policy, node sequence numbers
■ Match criteria
■ Attributes to be modified
Creating a Routing
Policy
Follow these steps to create a routing policy:
n
■ If a node has the permit keyword specified, routing information meeting the
node’s conditions will be handled using the apply clauses of this node, without
needing to match against the next node. If routing information does not meet
the node’s conditions, it will go to the next node for a match.
■ If a node is specified as deny, the apply clauses of the node will not be
executed. When routing information matches all if-match clauses of the node,
it can neither pass the node, nor go to the next node. If route information
To do… Use the command… Remarks
Enter system view system-view -
Define an extended
community list
ip extcommunity-list
ext-comm-list-number { deny | permit } { rt
route-target }&<1-16>
Required
Not defined by
default
To do… Use the command… Remarks
Enter system view system-view -
Create a routing policy and
enter its view
route-policy route-policy-name
{ permit | deny } node node-number
Required