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