![H3C S5500-EI series Скачать руководство пользователя страница 384](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960384.webp)
367
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
|
soo
site-of-origin
}&<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: