Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-12
6.1.15 if-match as-path
Syntax
if-match as-path acl-number
undo if-match as-path
View
Route policy view
Parameter
acl-number: AS path based access control list number, ranging from 1 to 199.
Description
Using the if-match as-path command, you can match the AS path domain of the BGP
routing information; using the undo if-match as-path command, you can cancel the
match of AS path domain.
By default, AS path list number is not matched.
Example
# An as-path numbered as 2 is defined first, allowing the routing information of AS 100
and 200. Then the route-policy named test is defined. The node No.10 of this
route-policy defines a if-match sub-statement, which quotes the definition of as-path.
[Quidway] ip as-path-acl 2 permit 100:200
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match as-path 2
6.1.16 if-match community
Syntax
if-match community { basic-community-number [ whole-match ] |
adv-community-number }
undo if-match community
View
Route policy view
Parameter
basic-community-list-number: Basic community list number, ranging from 1 to 99.
adv-community-list-number: Advanced community list number, ranging from 100 to
199.