3.4.9. switchport tunnel vlan

Syntax

switchport tunnel vlan <1-4094>

no switchport tunnel vlan

Parameter


<1-4094> Specifies the tunnel VLAN ID.


Default

Default is vlan 1

Mode

Port Configuration

Usage

Use the switchport tunnel vlan port configuration command to set dot1q tunnel vlan on interface. The vlan will be pvid on interface as well. Use the no form of this command to remove vlan on interface. The tunnel vlan id will set to reserved vlan 4095. You can verify your setting by entering the show interfaces switchport command.

Example

This example sets Tunnel port gi10 native VLAN to 100.

Switch(config)# interface gi10
Switch(config-if)# switchport mode tunnel
Switch(config-if)# switchport tunnel vlan 100
Switch# show interfaces switchport gi10
Port : gi10
Port Mode : Tunnel 
Ingress Filtering : enabled
Acceptable Frame Type : all
Ingress UnTagged VLAN ( NATIVE ) : 100
Trunking VLANs Enabled:
Port is member in:
Vlan Name Egress rule
------- ----------------------- -----------------
100 VLAN-one-hundred Untagged
Forbidden VLANs:
Vlan Name
------- -----------------------