Operation Manual – IPv4 Routing
H3C S3610&S5510 Series Ethernet Switches
Chapter 6 Routing Policy Configuration
6-9
6.4.4 Defining apply Clauses for the Routing Policy
Follow these steps to define apply clauses for a route-policy:
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
Not created by default
Set AS_Path attribute for
BGP routes
apply as-path
as-number
&<1-10>
[
replace
]
Optional
Not set by default
Specify a community list
according to which to
delete community
attributes of BGP routing
information
apply comm-list
comm-list-number
delete
Optional
Not configured by
default
Set community attribute for
BGP routes
apply community
{
none
|
additive
|
{
community-number
&<1-
16> |
aa:nn
&<1-16>
|
internet
|
no-export-subconfed
|
no-export |
no-advertise
}
*
[
additive
] }
Optional
Not set by default
Set a cost for routes
apply cost
[
+
|
-
]
value
Optional
Not set by default
Set a cost type for routes
apply cost-type
[
external
|
internal
|
type-1
|
type
-
2
]
Optional
Not set by default
Set the extended
community attribute for
BGP routes
apply extcommunity
{
rt
{
as-number:nn
|
ip-address:nn
} }&<1-16>
[
additive
]
Optional
Not set by default
Set a next hop for IPv4
routes
apply ip-address
next-hop
ip-address
Optional
Not configured by
default
Redistribute routes to a
specified ISIS level
apply isis
{
level-1
|
level-1-2
|
level-2
}
Optional
Not configured by
default
Set a local preference for
BGP routes
apply local-preference
preference
Optional
Not set by default
Set an origin attribute for
BGP routes
apply origin
{
igp
|
egp
as-number
|
incomplete
}
Optional
Not set by default