H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 7 IP Routing Policy Configuration
7-6
To do... Use the command... Remarks
Enter system view
system-view
Enter route-policy view
route-policy route-policy-name
{ permit | deny } node
node-number
Define an apply clause to
add the specified AS number
before AS path of BGP
routing information
apply as-path as-number-list
Optional
Define an apply clause to
set the community attribute
of BGP routing information
apply community { none | [ aa:nn ]
[ no-export-subconfed | no-export
| no-advertise ]* [ additive ] }
Optional
Define an apply clause to
set the next-hop address of
routing information
apply ip next-hop ip-address
Optional
Define an apply clause to
import routes into the IS-IS
area(s) at specified level(s)
apply isis [ level-1 | level-2 |
level-1-2 ]
Optional
Define an apply clause to
set the local preference of
BGP routing information
apply local-preference
local-preference
Optional
Define an apply clause to
set the cost of routing
information
apply cost value
Optional
Define an apply clause to
set the cost type of routing
information
apply cost-type [ internal |
external ]
Optional
Define an apply clause to
set the source of BGP
routing information
apply origin { igp | egp as-number |
incomplete }
Optional
Define an apply clause to
set the tag field of RIP or
OSPF routing information
apply tag value
Optional
By default, no apply clause is defined.
Note that, when IGP routes satisfy the matching conditions specified by a route policy
and are advertised to EBGP peers, the cost defined by the apply cost-type internal
clause will be used as the cost of IGP routes. The apply cost-type internal
command is higher than the default med command but lower than the apply cost
command in terms of priority.