binding tunnel gre

Function

The binding tunnel gre command binds GRE to an interface.

The undo binding tunnel command restores the default configuration.

By default, GRE is not bound to an interface.

Format

binding tunnel gre

undo binding tunnel gre

Parameters

None

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, Loopback interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gre write

Usage Guidelines

Usage Scenario

To configure a GRE tunnel interface, run the source command in the interface view to configure the source IP address or source interface for the tunnel interface and run the binding tunnel gre command to bind GRE to the source interface or the interface with the source IP address. GRE tunnels use only the interfaces to which GRE is bound to transmit GRE packets.

A GRE-bound interface cannot be used as the following interfaces:

  • Data link (direct link) interface connecting LMP neighbors
  • Source interface of an IPv4 over IPv6 tunnel

Precautions

If you use a three-dimensional interface number to create a tunnel interface, after you run the source command in the tunnel interface view to configure the source interface, you need to run the target-board command in the source interface view to configure the mapping between the interface and the tunnel service board, and run the binding tunnel gre command to bind GRE to the interface. In this way, when the source interface of the tunnel receives a packet, it can send the packet to the corresponding tunnel service board for processing.

The binding tunnel gre command and the data-link command are mutually exclusive.

Example

# Bind GRE to a loopback interface.
<HUAWEI> system-view
[~HUAWEI] interface loopback 1
[*HUAWEI-LoopBack1] binding tunnel gre
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >