tunnel-protocol

Function

The tunnel-protocol command specifies the tunnel encapsulation protocol.

The undo tunnel-protocol command restores the default encapsulation protocol (None).

Format

tunnel-protocol gre

tunnel-protocol none

undo tunnel-protocol

Parameters

Parameter Description Value
gre

Set the tunnel encapsulation protocol to GRE.

-
none

Set the encapsulation type on the tunnel interface to NONE. NONE is the initial setting of a tunnel interface, which means that no other encapsulation is used.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Tunnel interface is a logical interface for packet encapsulation. A new tunnel interface provides only packet encapsulation function and does not use any extra protocol (NONE) to encapsulate the packets. You can specify a protocol as the encapsulation protocol, such as GRE.

NOTE:

You must specify the tunneling protocol before specifying other parameters, such as source and destination tunnel addresses. Changing the encapsulation protocol of a tunnel will delete all other settings of the tunnel.

Example

# Apply a tunnel policy in the Tunnel0 interface view to configure a GRE tunnel.

<sysname> system-view
[sysname] interface tunnel 0
[sysname-Tunnel0] tunnel-protocol gre

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.