CLI Reference Guide-R02

Table Of Contents
Chapter 18
| VLAN Commands
Configuring IEEE 802.1Q Tunneling
– 544 –
Console(config)#interface ethernet 1/1
Console(config-if)#switchport dot1q-tunnel service 100 match cvid 10
Console(config-if)#switchport dot1q-tunnel service 200 match cvid 20
Console(config-if)#switchport dot1q-tunnel service 300 match cvid 30
6. Configures port 1 as member of VLANs 10, 20 and 30 to avoid filtering out
incoming frames tagged with VID 10, 20 or 30 on port 1
Console(config)#interface ethernet 1/1
Console(config-if)#switchport allowed vlan add 10,20,30
7. Verify configuration settings.
Console#show dot1q-tunnel service
802.1Q Tunnel Service Subscriptions
Port Match C-VID S-VID
-------- ----------- -----
Eth 1/ 3 10 100
Eth 1/ 3 20 200
Eth 1/ 3 30 300
Step 2. Configure Switch C.
1. Create VLAN 100, 200 and 300.
Console(config)#vlan database
Console(config-vlan)#vlan 100,200,300 media ethernet state active
2. Configure port 1 and port 2 as tagged members of VLAN 100, 200 and 300.
Console(config)#interface ethernet 1/1,2
Console(config-if)#switchport allowed vlan add 100,200,300 tagged
show dot1q-tunnel
service
This command shows tunnel service subscriptions, default discard service, and
discarded untagged traffic configuration.
Syntax
show dot1q-tunnel service [svid]
svid - VLAN ID for the outer VLAN tag (SPVID). (Range: 1-4094)
Command Mode
Privileged Exec
Example
Console#show dot1q service
802.1Q Tunnel Service Subscriptions
Port Match C-VID S-VID
-------- ----------- -----
Eth 1/ 3 10 100
Eth 1/ 3 20 200
Eth 1/ 3 30 300