Difference between revisions of "VLAN Trunk Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
m (Configuring a Trunk port)
m
Line 8: Line 8:
 
== Basic Cisco 2950 and 2960 switch configuration ==
 
== Basic Cisco 2950 and 2960 switch configuration ==
 
Cisco 2950 and 2960 switch series only supports the 802.1Q - DOT1Q - trunk protocol.
 
Cisco 2950 and 2960 switch series only supports the 802.1Q - DOT1Q - trunk protocol.
<pre>
+
<source lang="cli">
SW2(config)#interface gigabitEthernet 0/1
+
SW2(config)#<input>interface gigabitEthernet 0/1</input>
SW2(config-if)#switchport mode trunk
+
SW2(config-if)#<input>switchport mode trunk</input>
</pre>
+
</source>
 
== Basic Cisco 3550 and 3560 switch configuration ==
 
== Basic Cisco 3550 and 3560 switch configuration ==
 
Cisco 3550 and 3560 switch series supports the 802.1Q - DOT1Q - and Cisco ISL trunk protocols.
 
Cisco 3550 and 3560 switch series supports the 802.1Q - DOT1Q - and Cisco ISL trunk protocols.
<pre>
+
<source lang="cli">
H4S1(config)#int fastEthernet 0/24
+
H4S1(config)#<input>int fastEthernet 0/24</input>
H4S1(config-if)#switchport trunk encapsulation dot1q
+
H4S1(config-if)#<input>switchport trunk encapsulation dot1q</input>
H4S1(config-if)#switchport mode trunk
+
H4S1(config-if)#<input>switchport mode trunk</input>
</pre>
+
</source>
 
= IEEE 802.1Q trunk protocol =
 
= IEEE 802.1Q trunk protocol =
 
The [[IEEE 802.1Q]] is a trunk protocol defined by [[IEEE]]. See the related articles.
 
The [[IEEE 802.1Q]] is a trunk protocol defined by [[IEEE]]. See the related articles.
 +
{{#css:
 +
   
 +
    pre {  font-family: Lucida Console; font-weight: bold; font-size: 14px; color: #00FF00; background: black; margin: 10px 50px; width: 800px; line-height: 200%; overflow: auto;}
 +
}}
 
[[Category:Cisco]][[Category:CCNA]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:CCNP3]]
 
[[Category:Cisco]][[Category:CCNA]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:CCNP3]]

Revision as of 09:23, 23 July 2009

Configuring a trunk port

Cisco materials

VLAN trunks

A VLAN trunk is a connection between two switches where traffic from one or more VLAN's are transmitted between switches.

Trunk between two switches carrying traffic from VLAN 100 and VLAN 200 between the Switches

Configuring Trunk ports

Basic Cisco 2950 and 2960 switch configuration

Cisco 2950 and 2960 switch series only supports the 802.1Q - DOT1Q - trunk protocol.

SW2(config)#<input>interface gigabitEthernet 0/1</input>
SW2(config-if)#<input>switchport mode trunk</input>

Basic Cisco 3550 and 3560 switch configuration

Cisco 3550 and 3560 switch series supports the 802.1Q - DOT1Q - and Cisco ISL trunk protocols.

H4S1(config)#<input>int fastEthernet 0/24</input>
H4S1(config-if)#<input>switchport trunk encapsulation dot1q</input>
H4S1(config-if)#<input>switchport mode trunk</input>

IEEE 802.1Q trunk protocol

The IEEE 802.1Q is a trunk protocol defined by IEEE. See the related articles.