If-Match Ip Next-Hop; If-Match Tag - H3C s3600 series Command Manual

Hide thumbs Also See for s3600 series:
Table of Contents

Advertisement

[Sysname] route-policy policy permit node 1
%New sequence of this list
[Sysname-route-policy] if-match interface Vlan-interface 1

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
Route policy view
Parameters
acl acl-number: Number of a basic ACL used for filtering, in the range of 2000 to 2999.
ip-prefix ip-prefix-name: Name of the IP address prefix list used for filtering, a string of 1 to 19
characters.
Description
Use the if-match ip next-hop command to match routes with next hops specified in an ACL or IP prefix
list.
Use the undo if-match ip next-hop command to remove the matching rule with an ACL.
Use the undo if-match ip next-hop ip-prefix command to remove the matching rule with an IP prefix
list.
By default, no next hop matching rule is defined.
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match cost, if-match tag,
route-policy, apply cost, apply tag.
Examples
# Define an if-match clause to match routes with next hops specified in the IP address prefix list p1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] route-policy policy permit node 1
%New sequence of this list
[Sysname-route-policy] if-match ip next-hop ip-prefix p1

if-match tag

Syntax
if-match tag value
undo if-match tag
View
Route policy view
5-6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents