Switch 7700 Command reference Guide, v2.0

Table Of Contents
236 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
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 list number, ranging from 1 to 199.
Description
Use the if-match as-path command to configure the matched AS path list
number of Route-policy.
Use the undo if-match as-path command to delete the matched path list
number.
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 match sub-statement, which quotes the definition of
as-path.
[SW7700]ip as-path acl 2 permit 100:200
[SW7700]route-policy test permit node 10
[SW7700-route-policy]if-match as-path 2
if-match community Syntax
if-match community { { standard_community_number [ whole-match ] } |
extended_community_number }
undo if-match community
View
Route policy view
Parameter
standard_community_list_number: Standard community list number, ranging
from 1 to 99.
extended_community_list_number: Extended community list number, ranging
from 100 to 199.
whole-match: Fully matching.
Description
Use the if-match community command to configure the community list
number to be marched in Route-policy.