User's Manual

341
Chapter 45
Configuring
Layer 2 Protocol
Tunnel
45.1 Introduction
Layer 2 protocol tunnel allows users between two sides of the switch to transmit the specified layer 2 protocol
on their own network without being influenced by the relevant layer 2 software module of the switch. The switch
is a transparent media for users.
45.2 Configuring Layer 2 Protocol Tunnel
Use the command line on the interface of the switch to configure tunnel function of the layer 2 protocol. The
configuration steps are as follows:
Command Description
configure
Enters global configuration mode.
interface
<intf_name> Enters interface configuration mode of the
switch. Only the switch port supports layer 2
protocol tunnel (including physical port and
aggregation port).
[
no
]
l2protocol-tunnel
[stp]
Enables layer 2 protocol of the tunnel
function. Currently we only support tunnel
function of stp protocol.
[CTRL] + Z
Returns to EXEC mode.
write
Saves configuration.
45.3 Configuration Example of Layer 2 Protocol Tunnel
Network environment is as follows
A1/A2/Gather belong to core network, C1/C2 are switches distributed in two places. Customer wants to
combine two of its network to one , that is, the core network is a transparent transmission channel for the
customer. If user wants to realize the transparent transmission of STP, then the following configurations should
be configured on each switch:
(5) The f0/2 of Switch A1, f0/1 and f0/2 of Gather, f0/1 of A2 should be configured to trunk mode.