How to Configure Tunneling

Configuring an IEEE 802.1Q Tunneling Port

SUMMARY STEPS
1. configureterminal
2. interfaceinterface-id
3. switchportaccess vlan vlan-id
4. switchportmode dot1q-tunnel
5. exit
6. vlandot1q tag native
7. end
8. Useone of thefollowing:
showdot1q-tunnel
showrunning-config interface
9. showvlan dot1q tagnative
10. copyrunning-config startup-config
DETAILED STEPS
PurposeCommand or Action
Entersthe global configurationmode.configureterminal
Example:
Switch# configure terminal
Step 1
Entersinterface configuration mode forthe interfaceto be
configuredas a tunnel port. This should be the edge port in the
interfaceinterface-id
Example:
Switch(config)# interface
Step 2
service-providernetwork that connectsto the customerswitch.
Validinterfaces include physical interfaces and port-channel logical
interfaces(port channels 1to 48).
gigabitethernet2/0/1
Specifiesthe default VLAN, which is used if the interface stops
trunking.This VLANID isspecific to the particularcustomer.
switchportaccess vlan vlan-id
Example:
Switch(config-if)# switchport access vlan
Step 3
2
Setsthe interfaceas an IEEE 802.1Qtunnel port.switchportmode dot1q-tunnel
Step 4
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 133
Configuring IEEE 802.1Q and Layer 2 Protocol Tunneling
How to Configure Tunneling