Defining an extended community list, Configuring a routing policy, Prerequisites – H3C Technologies H3C S10500 Series Switches User Manual

Page 370: Creating a routing policy

Advertising
background image

355

Follow these steps to define a community list:

To do…

Use the command…

Remarks

Enter system view

system-view

Define a basic

community list

ip community-list { basic-comm-list-num | basic

comm-list-name } { deny | permit }
[ community-number-list ] [ internet | no-advertise

| no-export | no-export-subconfed ] *

Define a

community list

Define an
advanced

community list

ip community-list { adv-comm-list-num | advanced
comm-list-name
} { deny | permit }

regular-expression

Required to define

either
Not defined by
default.

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. If routing information matches one of these items, it

passes the extended community list.
Follow these steps to define an extended community list:

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

Configuring a routing policy

A routing policy is used to filter routing information and modify attributes of matching routing information.

The match criteria of a routing policy can be configured by referencing the appropriate filters.
A routing policy can comprise multiple nodes, and each routing policy node contains the following:

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 to be taken on routing information that has satisfied the match
criteria, such as route attribute modification.

continue clauses—Specify the next routing policy node to be matched. With this clause configured,
when a route matches the current routing policy node, it continues to match against the specified

next node in the same routing policy.

Prerequisites

Before configuring this task, you need to configure the filters and routing protocols. You also need to

decide on the name of the routing policy and node numbers, match criteria, and attributes to be

modified.

Creating a routing policy

Follow these steps to create a routing policy:

Advertising