H3C Technologies H3C S10500 Series Switches User Manual
Page 373

358
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter routing policy view
route-policy route-policy-name
{ deny | permit } node node-number
Required
Not created by default.
Set the AS-PATH attribute for BGP
routing information
apply as-path as-number&<1-10>
[ replace ]
Optional
Not set by default.
Delete the community attribute of
BGP routing information using the
community list
apply comm-list { comm-list-number
| comm-list-name } delete
Optional
Not configured by default.
Set the community attribute for BGP
routing information
apply community { none | additive
| { community-number&<1-16> |
aa:nn&<1-16> | internet |
no-advertise | no-export |
no-export-subconfed } *
[ additive ] }
Optional
Not set by default.
Set a cost for routing information
apply cost [ + | - ] value
Optional
Not set by default.
Set a cost type for routing
information
apply cost-type [ external | internal
| type-1 | type-2 ]
Optional
Not set by default.
Set the extended community
attribute for BGP routing
apply extcommunity { rt
route-target }&<1-16> [ additive ]
Optional
Not set by default.
for IPv4 routes
apply ip-address next-hop
ip-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the next hop
for IPv6 routes
apply ipv6 next-hop ipv6-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the IP precedence
apply ip-precedence
ip-precedence-value
Optional
Not set by default.
Inject routing information to a
specified ISIS level
apply isis { level-1 | level-1-2 |
level-2 }
Optional
Not configured by default.
Set the local preference for BGP
routing information
apply local-preference preference
Optional
Not set by default.
Set MPLS label
apply mpls-label
Optional
Not set by default.
Set the origin attribute for BGP
routing information
apply origin { egp as-number | igp
| incomplete }
Optional
Not set by default.
Set the preference for the routing
protocol
apply preference preference
Optional
Not set by default.