HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Routing Comma - Page 357
if-match community
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 357 highlights
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. 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 }& undo if-match community [ { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number ]& 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. &: 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. system-view [Sysname] ip community-list 1 permit 100 200 [Sysname] route-policy test permit node 10 [Sysname-route-policy] if-match community 1 346