3Com Switch 7750 Configuration Guide Guide
IP Routing Policy Configuration 367
Defining apply Clauses for a Route-Policy Node
apply clauses in a node specify the actions performed after all the filtering
conditions of the if-match clauses in the node are satisfied. The actions include
modifying the attributes of routing information.
Perform the following configuration in route-policy view.
By default, no apply clause is defined.
Note that, if the apply cost-type internal clause is defined for a route-policy
node, when all the matching conditions of the node are met, IGP cost will be used
as the BGP MED value when the system advertises IGP routes to EBGP peers. The
apply cost clause takes precedence over the apply cost-type internal clause,
while the latter takes precedence over the default med command.
Defining an IP Prefix List An ip-prefix (IP prefix list) is identified by its ip-prefix name. Each ip-prefix can
include multiple items, and each item, identified by an index-number, can
Table 293 Define apply clauses
Operation Command Description
Enter system view system-view -
Enter route-policy view
route-policy
route-policy-name { permit |
deny } node node-number
-
Define an action to add AS
numbers before AS path of
BGP routing information
apply as-path as-number-1 [
as-number-2 [ as-number-3 ...
] ]
Optional
Define an action to set the
community attribute of BGP
routing information
apply community { none | [
aa:nn ] &<1-13> [
no-export-subconfed |
no-export | no-advertise ]* [
additive ] }
Optional
Define a action to set the
next-hop address of routing
information
apply ip next-hop ip-address Optional
Define an action to import
routing information into the
IS-IS area(s) at specified
level(s)
apply isis [ level-1 | level-2 |
level-1-2 ]
Optional
Define an action to set the
local preference of routing
information
apply local-preference
local-preference
Optional
Define an action to set the
cost of routing information
apply cost value Optional
Define an action to set the
cost type of routing
information
apply cost-type [ internal |
external ]
Optional
Define an action to set the
routing source of routing
information
apply origin { igp | egp
as-number | incomplete }
Optional
Define an action to set the tag
field of RIP or OSPF routing
information
apply tag value Optional