H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-13
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference, apply origin, apply tag.
Examples
# Define an if-match clause, allowing the routing information with the routing cost of 8 to
pass this if-match clause.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] route-policy policy permit node 1
%New sequence of this list
[H3C-route-policy] if-match cost 8
6.1.16 if-match interface
Syntax
if-match interface { interface-type interface-number }
undo if-match interface
View
Route policy view
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the if-match interface command to match the route whose next hop is the
designated interface.
Use the undo if-match interface command to remove the configuration.
By default, no if-match clause is defined.
This clause is one of the if-match clauses of the route-policy used to match the
interface corresponding to the next hop of the route.
Related commands: if-match acl, if-match ip-prefix, if-match ip next-hop, if-match
cost, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference, apply origin, apply tag.
Examples
# Define an if-match clause to match the route whose next hop interface is
VLAN-interface 1.