30-6
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 30 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
About VLAN Mapping
Use the
no vlan dot1q tag native
global command and the
no switchport mode dot1q-tunnel
interface
configuration command to return the port to the default state of dynamic auto. Use the
no vlan dot1q
tag native
global configuration command to disable tagging of native VLAN packets.
This example shows how to configure an interface as a tunnel port, enable tagging of native VLAN
packets, and verify the configuration. In this configuration, the VLAN ID for the customer connected to
Gigabit Ethernet interface 2/7 is VLAN 22.
Switch(config)#
interface gigabitethernet2/7
Switch(config-if)#
switchport access vlan 22
% Access VLAN does not exist. Creating vlan 22
Switch(config-if)#
switchport mode dot1q-tunnel
Switch(config-if)#
exit
Switch(config)#
vlan dot1q tag native
Switch(config)#
end
Switch#
show dot1q-tunnel interface gigabitethernet2/7
Port
-----
LAN Port(s)
-----
Gi2/7
Switch#
show vlan dot1q tag native
dot1q native vlan tagging is enabled globally
About VLAN Mapping
Note
WS-C4948-10GE does not support VLAN mapping. VLAN mapping is only supported on Supervisor
Engine 6-E and later engines.
In a typical deployment of VLAN mapping, you want the service provider to provide a transparent
switching infrastructure that treats customers’ switches at the remote location as a part of the local site.
This allows customers to use the same VLAN ID space and run Layer 2 control protocols seamlessly
across the provider network. In such scenarios, we recommend that service providers do not impose their
VLAN IDs on their customers.
Step 4
Switch(config-if)#
switchport mode
dot1q-tunnel
Sets the interface as an 802.1Q tunnel port.
Step 5
Switch(config-if)#
exit
Returns to global configuration mode.
Step 6
Switch(config)#
vlan dot1q tag
native
(Optional) Sets the switch to enable tagging of native VLAN packets on
all 802.1Q trunk ports. When not set, and a customer VLAN ID is the
same as the native VLAN, the trunk port does not apply a metro tag, and
packets could be sent to the wrong destination.
Step 7
Switch(config)#
end
Returns to privileged EXEC mode.
Step 8
Switch#
show dot1q-tunnel
Displays the tunnel ports on the switch.
Step 9
Switch#
show vlan dot1q tag native
Displays 802.1Q native-VLAN tagging status.
Step 10
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...