IP Routing Policy Configuration Commands
677
Example
Define an if-match clause, which allows the routing information with routing cost
8 to pass this if-match clause.
[3Com-route-policy] if-match cost 8
if-match interface
Syntax
if-match interface {
interface-name
|
interface-type interface-number
}
undo if-match interface
View
Routing policy view
Parameter
■
interface-type: Specifies interface type.
■
interface-number: Specifies interface number.
■
interface-name: Specifies interface name.
Description
Using the if-match interface command, you can match the route whose next hop
is designated interface. Using the undo if-match interface command, you can
cancel the setting of match condition.
By default, no if-match clause is defined.
This if-match clause of the route-policy is used to match the corresponding
interface of the route next hop when it filters the route.
For the related command, see if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply cost,
apply local-preference, apply origin, and apply tag.
Example
Display how to define one if-match clause to match the route whose next hop
interface is ethernet 1/0/2.
[3Com-route-policy]
if-match interface Ethernet1/0/2
if-match ip next-hop
Syntax
if-match ip next-hop { acl
acl-number
| ip-prefix
ip-prefix-name
}
undo if-match ip next-hop [ ip-prefix ]
View
Routing policy view
Parameter
■
acl-number: Specifies the number of the access control list used for filtering.
The range is 1 to 99.
■
ip-prefix-name: Specifies the name of the prefix address list used for filtering.
The range is 1 to 19.
Summary of Contents for Router 3031
Page 6: ......
Page 686: ...686 CHAPTER 6 ROUTING PROTOCOL...
Page 758: ...758 CHAPTER 7 MULTICAST COMMON CONFIGURATION COMMANDS...