H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-11
View
Route policy view
Parameters
as-path-number: AS path number, ranging from 1 to 199.
Description
Use the if-match as-path command to match the AS path field of BGP routing
information.
Use the undo if-match as-path command to remove the configuration.
By default, AS regular expression is not set for matching in the route-policy.
This clause is one of the if-match clauses of the route policy used to set AS path
attributes as matching conditions to filter BGP routing information.
Examples
# Create an AS path named 2, which permits the routing information of AS 200 and AS
300. Then create a route-policy named test, and define an if-match clause quoting the
definitions of AS path 2 for node 10 of the route-policy.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip as-path-acl 2 permit 200:300
[H3C] route-policy test permit node 10
[H3C-route-policy] if-match as-path 2
6.1.14 if-match community
Syntax
if-match community { basic-community-list-number [ whole-match ] |
adv-community-list-number }
undo if-match community
View
Route policy view
Parameters
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.
whole-match: Exact match, which means that all communities must be displayed.