![3Com 7750 Series Command Reference Manual Download Page 502](http://html.mh-extra.com/html/3com/7750-series/7750-series_command-reference-manual_441219502.webp)
3Com Switch 7750 Series
Command Reference Guide – Routing Protocol
Chapter 6 IP Routing Policy Configuration Commands
6-11
System View: return to User View with Ctrl+Z.
[3Com] route-policy policy_10 permit node 12
%New sequence of this list
[3Com-route-policy] if-match ip-prefix p1
6.1.13 if-match as-path
Syntax
if-match as-path
as-path-number
undo if-match as-path
View
Route policy view
Parameter
as-path-number:
AS path number, ranging from 1 to 199.
Description
Use the
if-match as-path
command to match the AS path field of BGP routing
information.
Use the
undo if-match as-path
command to cancel the AS path field matching.
By default, AS regular expression is not set for matching in Route-policy.
An if-match statement of Route-policy sets AS path attributes as matching conditions
to filter BGP routing information.
Example
# Create as-path 2, which permits the routing information of AS 200 and AS 300. Then
create a Route-policy named test, and define an if-match statement quoting the
definitions of as-path 2 for node 10 of the Route-policy.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] ip as-path-acl 2 permit 200:300
[3Com] route-policy test permit node 10
[3Com-route-policy] if-match as-path 2
6.1.14 if-match community
Syntax
if-match community
{
basic-community-list-number
[
whole-match
] |
adv-community-list-number
}
undo if-match community