Command Reference Guide
150 ● if-match as-path 3Com Router 5000 Family and Router 6000 Family
Command Reference
if-match as-path
Purpose Use the if-match as-path command to filter BGP routing information.
Use the undo if-match as-path command to disable the configuration.
Syntax if-match as-path aspath-acl-number
undo if-match as-path
Parameters aspath-acl-number
Number of the AS path list, in the range of 1 to 199.
aspath-acl-number is defined by the ip as-path-acl
command.
Default By default, Route-policy does not require for matching with the AS path list.
Example Define an as-path numbered as 2002 and allow the autonomous system number to
contain the routing information of 200 and 300. Then, define a route-policy named
test. The node No.10 of this route-policy defines an if-match clause, which quotes the
definition of as-path.
[3Com ] ip as-path acl 2 permit 200:300
[3Com ] route-policy test permit node 10
[3Com -route-policy] if-match as-path 2
View This command can be used in the following views:
■ Routing Policy view
Description This if-match clause of route-policy is used to filter BGP routing information. The
match condition is specified according to the AS path attributes of the routing
information.
Related Command ip as-path-acl