The tunnel-protocol command configures the tunnel mode on a tunnel interface.
The undo tunnel-protocol command restores the default setting.
By default, the tunnel interface is not configured with any tunnel mode.
Parameter | Description | Value |
---|---|---|
mpls |
Indicates the CR-LSP mode. |
- |
te |
Indicates the CR-LSP mode. |
- |
ipv6-ipv4 |
Indicates the IPv6 over IPv4 manual tunnel mode. An IPv6 over IPv4 manual tunnel offers the point-to-point service. |
- |
6to4 |
Indicates the 6to4 tunnel mode. A 6to4 tunnel offers the point-to-multipoint service. |
- |
6rd |
Indicates the 6RD tunnel mode. |
- |
gre |
Indicates the GRE mode. |
- |
ipv6 |
Indicates the IPv6 GRE mode. Only the NetEngine 8000 F1A supports this parameter. |
- |
p2mp |
Indicates the gre p2mp tunnel mode. |
- |
none |
Indicates that a tunnel interface is not configured with any tunnel mode. A tunnel in this mode is not operative. To use the tunnel interface, select another tunnel mode. |
- |
ipsec |
Configures IPsec as the encapsulation mode on the tunnel interface. |
- |
ipv4-ipv6 |
Indicates the IPv4 over IPv6 manual tunnel mode. |
- |
Usage Scenario
When configuring the GRE, IPv6 over IPv4, or CR-LSP tunnel, you need to create a tunnel interface, and then use the tunnel-protocol command to configure the tunnel mode on the tunnel interface.
Determine which tunnel mode to use based on the network topology and actual requirements:Configuration Impact
Only one tunnel mode can be configured for a tunnel interface. If multiple tunnel modes are configured for a tunnel interface, the latest configuration takes effect.
Follow-up Procedure
After a tunnel mode is configured, set parameters for the tunnel. You need to run the source and destination commands to specify a source address and a destination address respectively for an IPv6 over IPv4 tunnel.
Precautions
In IPv6 over IPv4 manual tunnel mode, 6RD tunnel mode, and 6to4 tunnel mode, the VPN scenario is not supported.
When a tunnel interface is set to IPsec tunnel mode, running the undo tunnel-protocol command causes the direct-route track ipsec-instance degrade-cost command configuration to be deleted. Therefore, exercise caution when you perform this operation.When a tunnel interface is set to IPsec tunnel mode, running the undo tunnel-protocol command causes the direct-route track ipsec-instance degrade-cost command configuration to be deleted. Therefore, exercise caution when you perform this operation.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te
<HUAWEI> system-view [~HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol gre
<HUAWEI> system-view [~HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol ipv6-ipv4
<HUAWEI> system-view [~HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol ipv6-ipv4 6rd