Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 6 Routing Policy Configuration Commands
6-16
6.1.20 if-match extcommunity
Syntax
if-match extcommunity
ext-comm-list-number
&<1-16>
undo if-match extcommunity
[
ext-comm-list-number
&<1-16> ]
View
Routing policy view
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 routing information.
Use the
undo if-match extcommunity
command to remove the match criterion.
The match criterion is not configured by default.
Examples
# Create a routing policy named policy1 with node 10, matching mode as permit. Match
the extended community attribute of routes against extended community lists 100 and
150.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match extcommunity 100 150
6.1.21 if-match interface
Syntax
if-match interface
{
interface-type interface-number
}&<1-16>
undo if-match interface
[
interface-type interface-number
]&<1-16>
View
Routing policy view
Parameters
interface-type
: Interface type
interface-number
: Interface number
&<1-16>
: Indicates the argument before it can be entered up to 16 times.