3Com Switch 8800 Configuration Guide
Chapter 22 IP Routing Policy Configuration
22-5
Operation
Command
Cancel the matched next-hop of the routing
information set by ACL
undo if-match ip next-hop
Cancel the matched next-hop of the routing
information set by address prefix list
undo if-match ip next-hop ip-prefix
Match the routing cost of the routing
information
if-match cost
value
Cancel the matched routing cost of the
routing information
undo if-match cost
Match the tag domain of the OSPF routing
information
if-match tag value
Cancel the tag domain of the matched
OSPF routing information
undo if-match tag
By default, no matching will be performed.
Note the following:
z
The
if-match
clauses for a node in the route-policy have the relationship of “AND”
for matching. That is, the route must satisfy all the clauses to match the node
before the actions specified by the
apply
clauses can be executed.
z
If no
if-match
clauses are specified, all the routes will pass the filtering on the
node.
III. 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 specified by the
if-match
clauses. Thereby,
some attributes of the route can be modified.
Perform the following configuration in route policy view.
Table 22-3
Define apply clauses
Operation
Command
Add the specified AS number before the
as-path series of the BGP routing
information
apply as-path as
-
number
-
1
[
as
-
number
-
2
[
as
-
number
-
3
... ] ]
Cancel the specified AS number added
before the as-path series of the BGP
routing information
undo apply as-path
Set the community attribute in the BGP
routing information
apply community
[ [
aa:nn
|
no-export-subconfed
|
no-export
|
no-advertise
]
*
[
additive
] |
additive
|
none
]
Cancel the set community attribute in the
BGP routing information
undo apply community