12-12
Field
Description
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
Route 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 the
if-match
as-path
command to specify AS-PATH list(s) for matching against the AS
path attribute of BGP routing information.
Use the
undo if-match as-path
command to remove the match criterion.
The match criterion is not configured by default.
Related commands:
route-policy
,
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
[
whole-match
] |
adv-community-list-number
}&<1-16>
undo if-match community
[
basic-community-list-number
[
whole-match
] |
adv-community-list-number
]&<1-16>
View
Route policy view