3Com 3.01.01 Switch User Manual


 
IP Routing Policy 155
By default, no matching is performed.
The if-match clauses for a node in the route policy require that the route satisfy
all the clauses to match the node before the actions specified by the apply clauses
can be executed.
If no if-match clauses are specified, all the routes pass the filtering on the node.
Defining Apply Clauses for a Route Policy
The apply clauses specify actions, which are the configuration commands
executed after a route satisfies the filtering conditions that are specified in the
if-match clauses. In this way, some attributes of the route can be modified.
Perform the following configurations in Route policy view.
By default, no apply clauses are defined.
Table 134 Defining Apply Clauses
Operation Command
Modify an AS path for BGP routes. apply as-path as-number-1 [ as-number-2 [
as-number-3 ... ] ]
Cancel modification of an AS path for BGP
routes.
undo apply as-path
Set the community attribute in the BGP
routing information
apply community { [ { aa:nn |
no-export-subconfed | no-advertise |
no-export ]... } | [ additive | none ]
Cancel the set community attribute in the BGP
routing information
undo apply community
Set the next-hop address of the routing
information
apply ip next-hop { ip-address [ ip-address ] |
acl acl-number }
Cancel the next-hop address of the routing
information
undo apply ip next-hop
Import the route to IS-IS Level 1, Level 2, or
Level 1-2
apply isis [ level-1 | level-2 | level-1-2 ]
Remove the function of importing the route to
IS-IS
undo apply isis
Set the local preference of the BGP routing
information
apply local-preference localpref
Cancel the local preference of the BGP routing
information
undo apply local-preference
Set the routing cost of the routing information apply cost value
Cancel the routing cost of the routing
information
undo apply cost
Set the cost type of the routing information apply cost-type [ internal | external ]
Remove the setting of the cost type undo apply cost-type
Set the route origin of the BGP routing
information
apply origin { igp | egp as-number |
incomplete }
Cancel the route origin of the BGP routing
information
undo apply origin
Set the tag domain of the OSPF routing
information
apply tag value
Cancel the tag domain of the OSPF routing
information
undo apply tag