tunnel-protocol

Function

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.

Format

tunnel-protocol { mpls te | ipv6-ipv4 [ 6to4 | 6rd ] | gre [ ipv6 | p2mp ] | none | ipsec | ipv4-ipv6 }

tunnel-protocol { mpls te | ipv6-ipv4 [ 6to4 | 6rd ] | gre [ ipv6 | p2mp ] | none | ipv4-ipv6 }

undo tunnel-protocol

Parameters

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.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel write

Usage Guidelines

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:

  • An IPv6 over IPv4 manual tunnel is manually configured between the two border devices. The source and destination IPv4 addresses of the tunnel need to be statically specified. IPv6 over IPv4 manual tunnels can be used for communications between isolated IPv6 sites, or configured between a border device and a host. An IPv6 over IPv4 manual tunnel offers the point-to-point service.
  • A 6to4 tunnel can connect multiple IPv6 isolated sites through an IPv4 network. Compared with an IPv6 over IPv4 manual tunnel, a 6to4 tunnel can be a point-to-multipoint connection, whereas an IPv6 over IPv4 manual tunnel is a P2P connection. Devices on both ends of a 6to4 tunnel are not configured in pairs.
  • An IPv4 over IPv6 manual tunnel is a tunnel manually configured between two border routers. The source and destination IPv6 addresses of the tunnel need to be statically specified. A manual tunnel is used for communication between IPv4 networks and can also be configured between a border router and host. An IPv4 over IPv6 manual tunnel works in P2P mode.

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.

Example

# Configure the tunnel mode on Tunnel 10 as MPLS TE.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
# Configure the tunnel mode on Tunnel 10 as GRE.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol gre
# Configure the tunnel mode on Tunnel 10 as IPv6 over IPv4.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol ipv6-ipv4
# Configure the tunnel mode on Tunnel 10 as ipv6 rapid deployment.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol ipv6-ipv4 6rd
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >