The interface tunnel command creates a tunnel interface.
The undo interface tunnel command deletes the configured tunnel interface.
By default, no tunnel interface is configured.
Parameter |
Description |
Value |
---|---|---|
interface-number |
Specifies the number of the tunnel interface. |
The value is an integer that ranges from 0 to 2047 . |
Usage Scenario
You must use the interface tunnel command to create a tunnel interface when creating a tunnel except for LSP tunnels.
Precautions
Tunnel interface numbers are valid on the local device only. You can configure different numbers for the tunnel interfaces on the two ends.
Follow-up Procedure
After a tunnel interface is created, you need to configure an IP address and encapsulation type for the tunnel interface.
To save IP addresses, run the ip address unnumbered command to configure the tunnel interface to borrow an IP address of another interface.