R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference

427
Parameters
as-path-number&<1-32>: Specifies an AS path list by its number in the range of 1 to 256. &<1-32>
indicates that the argument before it can be entered up to 32 times.
Examples
# Define AS path list 2 to permit BGP routes containing AS number 200 or 300 to pass. Configure node
10 in permit mode for routing policy test to match AS path list 2.
<Sysname> system-view
[Sysname] ip as-path 2 permit _*200.*300
[Sysname] route-policy test permit node 10
[Sysname-route-policy-policy1-10] if-match as-path 2
Related commands
apply as-path
ip as-path-acl
if-match community
Use if-match community to match BGP routes whose COMMUNITY attribute matches a specified
community list.
Use undo if-match community to remove the configuration.
Syntax
if-match community { { basic-community-list-number | name comm-list-name } [ whole-match ] |
adv-community-list-number }&<1-32>
undo if-match community [ { basic-community-list-number | name comm-list-name } [ whole-match ] |
adv-community-list-number ]&<1-32>
Default
No community list match criterion is configured.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to
199.
comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters that
cannot comprise only numbers.
whole-match: Exactly matches the specified community list.
&<1-32>: Indicates that the argument before it can be entered up to 32 times.
Examples
# Configure community list 1 to permit BGP routes with community number 100 or 200. Then configure
node 10 in permit mode for routing policy test to use community list 1 to match BGP routes.