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.
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: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.