R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
976
apply cost 120
Table 234 Command output.
Field Descri
p
tion
Route-policy Routing policy name
Permit Match mode of routing policy node 10
if-match ip-prefix abc Match criterion
apply cost 120 If the match criterion is satisfied, set a cost of 120 for routing information.
if-match as-path
Syntax
if-match as-path as-path-number&<1-16>
undo if-match as-path [ as-path-number&<1-16> ]
View
Routing policy view
Default level
2: System level
Parameters
as-path-number: AS path list number, in the range of 1 to 256.
&<1-16>: Indicates the argument before it can be entered up to 16 times.
Description
Use if-match as-path to specify AS-PATH list(s) for matching against the AS path attribute of BGP routing
information.
Use undo if-match as-path to remove the match criterion.
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>