![Cisco Catalyst 2350 Скачать руководство пользователя страница 479](http://html.mh-extra.com/html/cisco/catalyst-2350/catalyst-2350_command-reference-manual_67583479.webp)
2-455
Catalyst 2350 Switch Command Reference
OL-19055-01
Chapter 2 Catalyst 2350 Cisco IOS Commands
switchport trunk
Defaults
The default encapsulation is negotiate.
VLAN 1 is the default native VLAN ID on the port.
The default for all VLAN lists is to include all VLANs.
Command Modes
Interface configuration
Command History
Usage Guidelines
Native VLANs:
•
All untagged traffic received on an IEEE 802.1Q trunk port is forwarded with the native VLAN
configured for the port.
•
If a packet has a VLAN ID that is the same as the sending-port native VLAN ID, the packet is sent
without a tag; otherwise, the switch sends the packet with a tag.
•
The
no
form of the
native vlan
command resets the native mode VLAN to the appropriate default
VLAN for the device.
Allowed VLAN:
•
To reduce the risk of spanning-tree loops or storms, you can disable VLAN 1 on any individual
VLAN trunk port by removing VLAN 1 from the allowed list. When you remove VLAN 1 from a
trunk port, the interface continues to send and receive management traffic, for example, Cisco
Discovery Protocol (CDP), Port Aggregation Protocol (PAgP), Link Aggregation Control Protocol
(LACP), Dynamic Trunking Protocol (DTP), and VLAN Trunking Protocol (VTP) in VLAN 1.
•
The
no
form of the
allowed vlan
command resets the list to the default list, which allows all VLANs.
Trunk pruning:
•
The pruning-eligible list applies only to trunk ports.
•
Each trunk port has its own eligibility list.
•
If you do not want a VLAN to be pruned, remove it from the pruning-eligible list. VLANs that are
pruning-ineligible receive flooded traffic.
•
VLAN 1, VLANs 1002 to 1005, and extended-range VLANs (VLANs 1006 to 4094) cannot be
pruned.
Examples
This example shows how to configure VLAN 3 as the default for the port to send all untagged traffic:
Switch(config)#
interface gigabitethernet0/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 gigabitethernet0/2
Switch(config-if)#
switchport trunk allowed vlan add 1,2,5,6
Release
Modification
12.2(46(EY)
This command was introduced.
Содержание Catalyst 2350
Страница 14: ...Contents xiv Catalyst 2350 Switch Command Reference OL 19055 01 ...
Страница 18: ...xviii Catalyst 2350 Switch Command Reference OL 19055 01 Preface ...
Страница 606: ...B 66 Catalyst 2350 Switch Command Reference OL 19055 01 Appendix B Catalyst 2350 Debug Commands debug vqpc ...
Страница 636: ...D 2 Catalyst 2350 Switch Command Reference OL 19055 01 Appendix D Acknowledgments for Open Source Software ...
Страница 652: ...Index IN 16 Catalyst 2350 Switch Command Reference OL 19055 01 ...