Cisco Cisco IOS Software Release 12.4(15)T

Page de 54
 
Extended VLAN ID
  switchport trunk
46
Cisco IOS Release 12.4(15)T
switchport trunk
To set the trunk characteristics when the interface is in trunking mode, use the switchport trunk 
commands in interface configuration mode. To reset all of the trunking characteristics back to the 
original defaults, use the no form of this command. 
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
switchport trunk {encapsulation dot1q | native vlan | allowed vlan}
no switchport trunk {encapsulation dot1q | native vlan | allowed vlan}
Cisco 7600 Series Routers and Catalyst 6500 Series Switches
switchport trunk encapsulation {isl | dot1q [ethertype value] | negotiate
switchport trunk native vlan vlan-id 
switchport trunk allowed vlan vlan-list 
switchport trunk pruning vlan vlan-list 
no switchport trunk {encapsulation {isl | dot1q | negotiate} | native vlan | allowed vlan | 
pruning vlan
Syntax Description
Defaults
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
The default encapsulation type is dot1q.
The default access VLAN and trunk interface native VLAN is a default VLAN that corresponds to 
the platform or interface hardware.
The default for all VLAN lists is to include all VLANs.
encapsulation dot1q
Sets the trunk encapsulation format to 802.1Q. 
native vlan
Sets the native VLAN for the trunk in 802.1Q trunking mode. 
allowed vlan
Sets the list of allowed VLANs that transmit traffic from this interface in 
tagged format when in trunking mode.
encapsulation isl
Sets the trunk encapsulation format to Inter-Switch Link (ISL).
ethertype value
(Optional) Sets the EtherType value; valid values are from 0x0 to 
0x5EF-0xFFFF. 
encapsulation 
negotiate
Specifies that if the Dynamic Inter-Switch Link (DISL) protocol and 
Dynamic Packet Transport (DPT) negotiation do not resolve the 
encapsulation format, ISL is the selected format.
vlan-id
Identifies the particular native VLAN.
vlan-list
List of VLANs. See the “Usage Guidelines” section directions on formatting 
a vlan-list.
pruning vlan
Sets the list of VLANs that are enabled for VLAN Trunking Protocol (VTP) 
pruning when in trunking mode. See the “Usage Guidelines” section for the 
vlan-list argument formatting guidelines.