if-match ip next-hop acl (tunnel-selector view)

Function

The if-match ip next-hop acl command configures a rule for matching routes based on the next hop for a tunnel selector.

The undo if-match ip next-hop acl command deletes the setting.

By default, route filtering based on the next hop is not configured.

Format

if-match ip next-hop acl { aclNum | aclName }

undo if-match ip next-hop acl { aclNum | aclName }

Parameters

Parameter Description Value
acl aclNum

Specifies the ACL number.

The value is an integer ranging from 2000 to 2999.

acl aclName

Specifies the ACL name.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

Views

Tunnel-selector view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

The if-match ip next-hop acl command can be run in the tunnel-selector view in the following scenarios:

  • The ASBR in inter-AS VPN Option B networking needs to apply a tunnel policy to VPNv4 routes. For example, the ASBR needs to have the VPNv4 routes recurse to MPLS TE tunnels.
  • A PE in inter-AS VPN Option C networking needs to apply a tunnel policy to labeled BGP-IPv4 routes. For example, the PE needs to have the labeled BGP-IPv4 routes recurse to MPLS TE tunnels.

    The if-match ip next-hop command is used to apply a tunnel policy to the VPNv4 or BGP-IPv4 labeled routes with a specified next hop, not all VPNv4 or BGP-IPv4 labeled routes.

    To filter routes based on next hops, use either an ACL or IP prefix list using the if-match ip next-hop ip-prefix command.

Prerequisites

A tunnel selector has been created using the tunnel-selector command.

An ACL has been configured using the acl (basic ACL) command in the system view based on the next hops of routes.

Follow-up Procedure

Run the apply tunnel-policy command in the tunnel-selector view to apply a tunnel policy to the matched routes.

Example

# Configure a rule for matching routes based on the next hop.
<HUAWEI> system-view
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] tunnel-selector abc permit node 10
[*HUAWEI-tunnel-selector] if-match ip next-hop acl 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >