Configuring Layer 2 Tunneling Per-VLAN
Command
Step 1
Router# configuration terminal
Step 2
Router(config)# bridge
bridge-group-number protocol type
Step 3
Router(config)# l2protocol-tunnel cos
cos-value
Step 4
Router(config)# interface type number
Step 5
Router(config-if)# bridge-group
bridge-group-number
Step 6
Router(config-if)# mode dot1q tunnel
Step 7
Router(config-if)# l2protocol-tunnel
{all | cdp | stp | vtp]}
Step 8
Router(config-if)# end
Step 9
Router# show dot1q-tunnel
Step 10
Router# copy running-config
startup-config
Configuring Layer 2 Tunneling Per-VLAN
Beginning in privileged EXEC mode, follow these steps to configure a VLAN as a Layer 2 tunnel
VLAN:
Command
Step 1
Router# configuration terminal
Step 2
Router(config)# bridge
bridge-group-number protocol type
Step 3
Router(config)# l2protocol-tunnel cos
cos-value
Step 4
Router(config)# interface type
number.subinterface-number
Step 5
Router(config-subif)# encapsulation
dot1q bridge-group-number
Step 6
Router(config-subif)# bridge-group
bridge-group-number
Step 7
Router(config-subif)# end
Step 8
Router# copy running-config
startup-config
Monitoring and Verifying Tunneling Status
Table 9-3
Layer 2 protocol tunneling.
Cisco ONS 15454 and Cisco ONS 15454 SDH Ethernet Card Software Feature and Configuration Guide, R8.0
9-12
Purpose
Enters global configuration mode.
Creates a bridge group number and specifies a protocol.
Associates a CoS value with the Layer 2 tunneling port. Valid numbers
for a cos-value range from 0 to 7.
Enters interface configuration mode for the interface to be configured
as a tunnel port.
Assigns a bridge group to the interface.
Sets the interface as an IEEE 802.1Q tunnel VLAN.
Sets the interface as a Layer 2 protocol tunnel port and enables all
three protocols or specifically enables CDP, STP, or VTP. These
protocols are off by default.
Returns to privileged EXEC mode.
Displays the tunnel ports on the switch.
(Optional) Saves your entries in the configuration file.
Purpose
Enters global configuration mode.
Creates a bridge group number and specifies a protocol.
Associates a CoS value with the Layer 2 tunneling VLAN. Valid
numbers for a cos-value range from 0 to 7.
Enters subinterface configuration mode and the subinterface to be
configured as a tunnel VLAN.
Sets the subinterface as an IEEE 802.1Q tunnel VLAN.
Assigns a bridge group to the interface.
Returns to privileged EXEC mode.
(Optional) Saves your entries in the configuration file.
shows the privileged EXEC commands for monitoring and maintaining IEEE 802.1Q and
Chapter 9 Configuring IEEE 802.1Q Tunneling and Layer 2 Protocol Tunneling