R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

623
Related commands
apply extcommunity
ip extcommunity-list
if-match interface
Use if-match interface to match routes having the specified output interface.
Use undo if-match interface to remove the configuration.
Syntax
if-match interface { interface-type interface-number }&<1-16>
undo if-match interface [ interface-type interface-number ]&<1-16>
Default
No match criterion is configured.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.
Usage guidelines
BGP does not support criteria for matching against the output interface of routes.
Examples
# Configure node 10 in permit mode for routing policy policy1 to permit routes with the output interface
GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match interface gigabitethernet 2/1/1
if-match local-preference
Use if-match local-preference to match BGP routes having the specified local preference.
Use undo if-match local-preference to restore the default.
Syntax
if-match local-preference preference
undo if-match local-preference
Default
No local preference match criterion is configured.
Views
Routing policy node view