C h a p t e r 12-1 Catalyst 2960 Switch Software Configuration Guide ol-8603-04 12


Download 403.17 Kb.
Pdf ko'rish
bet23/41
Sana22.12.2022
Hajmi403.17 Kb.
#1043139
1   ...   19   20   21   22   23   24   25   26   ...   41
Bog'liq
swvlan

Step 3
switchport mode {dynamic {auto | 
desirable} | trunk}
Configure the interface as a Layer 2 trunk (required only if the interface 
is a Layer 2 access port or to specify the trunking mode).

dynamic auto—Set the interface to a trunk link if the neighboring 
interface is set to trunk or desirable mode. This is the default.

dynamic desirable—Set the interface to a trunk link if the 
neighboring interface is set to trunk, desirable, or auto mode.

trunk—Set the interface in permanent trunking mode and negotiate 
to convert the link to a trunk link even if the neighboring interface is 
not a trunk interface.
Step 4
switchport access vlan vlan-id
(Optional) Specify the default VLAN, which is used if the interface stops 
trunking.
Step 5
switchport trunk native vlan vlan-id
Specify the native VLAN for IEEE 802.1Q trunks. 
Step 6
end
Return to privileged EXEC mode.
Step 7
show interfaces interface-id switchport Display the switchport configuration of the interface in the Administrative 
Mode and the Administrative Trunking Encapsulation fields of the 
display.
Step 8
show interfaces interface-id trunk
Display the trunk configuration of the interface.
Step 9
copy running-config startup-config
(Optional) Save your entries in the configuration file.


 
12-18
Catalyst 2960 Switch Software Configuration Guide
OL-8603-04
Chapter 12 Configuring VLANs
Configuring VLAN Trunks
Defining the Allowed VLANs on a Trunk
By default, a trunk port sends traffic to and receives traffic from all VLANs. All VLAN IDs, 1 to 4094, 
are allowed on each trunk. However, you can remove VLANs from the allowed list, preventing traffic 
from those VLANs from passing over the trunk. To restrict the traffic a trunk carries, use the switchport 

Download 403.17 Kb.

Do'stlaringiz bilan baham:
1   ...   19   20   21   22   23   24   25   26   ...   41




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling