tunnel-protocol
Syntax
tunnel-protocol { gre [ ipv6 ] | ipv4-ipv4 | ipv4-ipv6 | ipv6-ipv4 [ 6to4 | isatap ] | ipv6-ipv6 }
undo tunnel-protocol
View
Tunnel interface view
Default level
2: System level
Parameters
gre: Specifies the GRE over IPv4 tunnel mode.
gre ipv6: Specifies the GRE over IPv6 tunnel mode.
ipv4-ipv4: Specifies the IPv4 over IPv4 tunnel mode.
ipv4-ipv6: Specifies the IPv4 over IPv6 tunnel mode.
ipv6-ipv4: Specifies the IPv6 over IPv4 manual tunnel mode.
ipv6-ipv4 6to4: Specifies the IPv6 over IPv4 6to4 tunnel mode.
ipv6-ipv4 isatap: Specifies the IPv6 over IPv4 ISATAP tunnel mode.
ipv6-ipv6: Specifies the IPv6 over IPv6 tunnel mode.
Description
Use tunnel-protocol to specify the tunnel mode for the tunnel interface.
Use undo tunnel-protocol to restore the default.
The default tunnel is a GRE over IPv4 tunnel.
You can select a tunnel mode according to the actual network topology and application. The two ends of a tunnel must have the same tunnel mode specified. Otherwise, traffic transmission may fail.
Only one automatic tunnel can be created at the start point of a tunnel.
Examples
# Specify the 6to4 tunnel mode for interface Tunnel 2.
<Sysname> system-view [Sysname] interface tunnel 2 [Sysname-Tunnel2] tunnel-protocol ipv6-ipv4 6to4