3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
1200 CHAPTER 78: ROUTING POLICY COMMON CONFIGURATION COMMANDS
&<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
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.
Description Use the
if-match interface command to specify interface(s) for matching
against the outbound interfaces of routing information.
Use the
undo if-match interface command to remove the match criterion.
The match criterion is not configured by default.
Related commands: if-match acl, if-match ip-prefix, if-match ip next-hop, if-match cost,
if-match tag, route-policy, apply ip-address next-hop, apply cost, apply
local-preference, apply origin, apply tag.
Examples # Create a routing policy named policy1 with node 10, matching mode as permit.
Define an if-match clause to permit the routing information with the outbound
interface as Ethernet1/0.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface ethernet 1/0