12-14
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: define an if-match clause to
permit routing information with a cost of 8.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match cost 8
if-match extcommunity
Syntax
if-match extcommunity
ext-comm-list-number
&<1-16>
undo if-match extcommunity
[
ext-comm-list-number
&<1-16> ]
View
Route policy view
Default Level
2: System level
Parameters
ext-comm-list-number
: Extended community list number, in the range of 1 to 199.
&<1-16>
: Indicates the argument before it can be entered up to 16 times.
Description
Use the
if-match
extcommunity
command to specify extended community list(s) for matching
against the extended community attribute of BGP routing information.
Use the
undo if-match extcommunity
command to remove the match criterion.
The match criterion is not configured by default.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
to match BGP routing information
to extended community lists 100 and 150.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match extcommunity 100 150
if-match interface
Syntax
if-match interface
{
interface-type interface-number
}&<1-16>
undo if-match interface
[
interface-type interface-number
]&<1-16>
View
Route policy view
Default Level
2: System level