interface tunnel
Use interface tunnel to create a tunnel interface, specify the tunnel mode, and enter tunnel interface view, or enter the view of an existing tunnel interface.
Use undo interface tunnel to delete a tunnel interface.
Syntax
interface tunnel number [ mode { evi | gre [ ipv6 ] | ipv4-ipv4 | ipv6 | ipv6-ipv4 [ 6to4 | isatap ] | mpls-te | vxlan | vxlan-dci } ]
undo interface tunnel number
Default
No tunnel interfaces exist.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
number: Specifies the number of the tunnel interface. The value range is 1 to 4095.The number of tunnel interfaces that can be created is restricted by the total number of interfaces and the memory.
mode evi: Specifies the IPv4 EVI tunnel mode.
mode gre: Specifies the GRE/IPv4 tunnel mode.
mode gre ipv6: Specifies the GRE/IPv6 tunnel mode.
mode ipv4-ipv4: Specifies the IPv4 over IPv4 tunnel mode.
mode ipv6: Specifies the IPv6 tunnel mode. Set this mode for IPv4 over IPv6 manual and IPv6 over IPv6 tunnels.
mode ipv6-ipv4: Specifies the IPv6 over IPv4 manual tunnel mode.
mode ipv6-ipv4 6to4: Specifies the 6to4 tunnel mode.
mode ipv6-ipv4 isatap: Specifies the ISATAP tunnel mode.
mode mpls-te: Specifies the MPLS TE tunnel mode.
mode vxlan: Specifies the VXLAN tunnel mode.
mode vxlan-dci: Specifies the VXLAN-DCI tunnel mode.
Usage guidelines
To create a new tunnel interface, you must specify the tunnel mode in this command. To enter the view of an existing tunnel interface, you do not need to specify the tunnel mode.
A tunnel interface number is locally significant. The tunnel interfaces on the two ends of a tunnel can use the same or different interface numbers.
Examples
# Create GRE/IPv4 tunnel interface Tunnel 1 and enter tunnel interface view.
<Sysname> system-view [Sysname] interface tunnel 1 mode gre [Sysname-Tunnel1]
Related commands
destination
display interface tunnel
source