2-862
Catalyst 3750 Switch Command Reference
OL-8552-07
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
switchport trunk
•
VLAN 1, VLANs 1002 to 1005, and extended-range VLANs (VLANs 1006 to 4094) cannot be
pruned.
Examples
This example shows how to cause a port configured as a switched interface to encapsulate in
IEEE 802.1Q trunking format regardless of its default trunking format in trunking mode:
Switch(config)#
interface gigabitethernet1/0/2
Switch(config-if)#
switchport trunk encapsulation dot1q
This example shows how to configure VLAN 3 as the default for the port to send all untagged traffic:
Switch(config)#
interface gigabitethernet1/0/2
Switch(config-if)#
switchport trunk native vlan 3
This example shows how to add VLANs 1, 2, 5, and 6 to the allowed list:
Switch(config)#
interface gigabitethernet1/0/2
Switch(config-if)#
switchport trunk allowed vlan add 1,2,5,6
This example shows how to remove VLANs 3 and 10 to 15 from the pruning-eligible list:
Switch(config)#
interface gigabitethernet1/0/2
Switch(config-if)#
switchport trunk pruning vlan remove 3,10-15
You can verify your settings by entering the
show interfaces
interface-id
switchport
privileged EXEC
command.
Related Commands
Command
Description
switchport
Displays the administrative and operational status of a switching
(nonrouting) port, including port blocking and port protection settings.
Configures the VLAN membership mode of a port.
Содержание 3750 - Catalyst EMI Switch
Страница 494: ...2 464 Catalyst 3750 Switch Command Reference OL 8552 07 Chapter 2 Catalyst 3750 Switch Cisco IOS Commands reserved only ...
Страница 772: ...2 742 Catalyst 3750 Switch Command Reference OL 8552 07 Chapter 2 Catalyst 3750 Switch Cisco IOS Commands show vtp ...
Страница 1132: ...D 2 Catalyst 3750 Switch Command Reference OL 8552 07 Appendix D Acknowledgments for Open Source Software ...