If-Match Community - HP FlexNetwork 3600 v2 Series Command Reference Manual

Hide thumbs Also See for FlexNetwork 3600 v2 Series:
Table of Contents

Advertisement

The match criterion is not configured by default.
Related commands: ip as-path-acl.
Examples
# Define AS path list 2, allowing BGP routing information containing AS number 200 or 300 to pass.
Configure node 10 in permit mode of routing policy test to match AS path list.
<Sysname> system-view
[Sysname] ip as-path 2 permit _*200.*300
[Sysname] route-policy test permit node 10
[Sysname-route-policy] if-match as-path 2

if-match community

Syntax
if-match community { { basic-community-list-number | comm-list-name } [ whole-match ] |
adv-community-list-number }&<1-16>
undo if-match community [ { basic-community-list-number | comm-list-name } [ whole-match ] |
adv-community-list-number ]&<1-16>
View
Routing policy view
Default level
2: System level
Parameters
basic-community-list-number: Basic community list number, in the range of 1 to 99.
adv-community-list-number: Advanced community list number, in the range of 100 to 199.
comm-list-name: Community list name, a string of 1 to 31 characters, which can contain letters,
numbers, and signs.
whole-match: Exactly matches the specified community lists.
&<1-16>: Indicates the argument before it can be entered up to 16 times.
Description
Use if-match community to specify community lists for matching against the COMMUNITY attribute
of BGP routing information.
Use undo if-match community to remove the match criterion.
The match criterion is not configured by default.
Related commands: ip community-list.
Examples
# Define community list 1, allowing BGP routing information with community number 100 or 200 to
pass. Then configure node 10 in permit mode of routing policy test: specify community-list 1 for
matching.
<Sysname> system-view
[Sysname] ip community-list 1 permit 100 200
[Sysname] route-policy test permit node 10
[Sysname-route-policy] if-match community 1
421

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents