Chapter 18
| VLAN Commands
Configuring IEEE 802.1Q Tunneling
– 455 –
Console(config)#interface ethernet 1/2
Console(config-if)#switchport allowed vlan add 100,200,300 tagged
Console(config-if)#switchport dot1q-tunnel mode uplink
4.
Configures port 1 as an untagged member of VLANs 100, 200 and 300 using
access mode.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport allowed vlan add 100,200,300 untagged
Console(config-if)#switchport dot1q-tunnel mode access
5.
Configure the following selective QinQ mapping entries.
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/ 1 10 100
Eth 1/ 1 20 200
Eth 1/ 1 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
switchport
dot1q-tunnel tpid
This command sets the Tag Protocol Identifier (TPID) value of a tunnel port.
Use the
no
form to restore the default setting.
Syntax
switchport dot1q-tunnel tpid
tpid
no switchport dot1q-tunnel tpid
tpid
– Sets the ethertype value for 802.1Q encapsulation. This
identifier is used to select a nonstandard 2-byte ethertype to
identify 802.1Q tagged frames. The standard ethertype value is
0x8100. (Range: 0800-FFFF hexadecimal)