Vlan's and Trunk
Vlan's and Trunk
VLANs
&
Trunks
Overview
• A full layer 2 only switched network is referred to as a single broadcast
domain, so network must be subdivided into VLANs
• By definition a VLAN is a single broadcast domain, VLAN is
characterised by:
-They can allow load balancing with multiple parallel paths, so enhancing
bandwidth utilization
-They enhance network security
-They confine broadcasts, so introducing better broadcast control
-They can span multiple switches (no physical boundaries), VLAN can group
users based on their business requirements (business departments)
independent of any physical locations
• Segmentation
• Flexibility
• Security
Deploying VLANs
1)Local VLAN
To activate a VLAN
(config)#interface
(config-if)#switchort mode access
(config-if)#switchport access vlan <vlan id>
Troubleshooting VLANs:
Switch#show vlan [id | name] [vlan_num | vlan_name]
#show vlan
VLAN Name Status Ports
-
1 default active Fa0/1, Fa0/2, Fa0/5, Fa0/7
Fa0/8, Fa0/9, Fa0/11, Fa0/12
Gi0/1, Gi0/2
2 VLAN0002 active
52 Sales active Fa0/3
…
1 enet 100001 1500 - - - - - 1002 1003
2 enet 100002 1500 - - - - - 0 0
VLAN
52 Type
enet SAID
100052 MTU
1500 Parent
- RingNo
- BridgeNo
- Stp
- BrdgMode
- Trans1
0 Trans2
0
…
2 VLAN0002 active
Without trunking
With trunking
• ISL is now supported only on core switches, but Cisco Catalyst 2950 &
2960 access switches support only dot1q.
DTP
(Dynamic Trunk Protocol)
• Cisco proprietary protocol, that is used to automatically negotiate a
common trunking mode (negotiate whether link will be access or trunk)
between two switches, also negotiation of trunk encapsulation type can be
done, DTP negotiation is made periodically every 30 sec.
• A router can not participate in DTP, so if a switch port is connected to a
router, DTP must be disabled & switch port must be manually configured.
Software / Network Engineer Whatsapp : +923059299396
Sayed Hamza Jillani
• Note: DTP is negotiated between switches working in the same VTP
domain or if one of these domains is null domain, so if switches are in
different domains, you must set trunk configuration to "on" or
"nonegotiate", this setting will force the trunk to be established.
Function
Configuring trunking
(config)#interface <_>
(config-if)#switchport mode {access/trunk/dynamic desirable/dynamic
auto/nonegotiate}
-access: only in one VLAN, no negotiation (no DTP messages).
-trunk: permanently trunk & generate DTP messages.
-dynamic desirable: (default), actively (sending messages) attempts to be
trunk.
-dynamic auto: only if far end desire a trunk, it will turn to trunk which
means it is passively (does not initiate messages) attempts to be trunk.
-nonegotiate: disables DTP & force permanent trunk.
Switch(config-if)#no shutdown
Sayed Hamza Jillani
Troubleshooting
#sh dtp
#sh interface <_> trunk
. . .
Troubleshooting Trunking
When troubleshooting trunking, make sure that physical layer connectivity is
present before moving on to search for configuration problems such as
- Are both sides of the link in the correct trunking mode?
- Is the same trunk encapsulation on both sides?
- If 802.1Q, is the same native VLAN on both sides? Look for CDP messages
warning of this error.
- Are the same VLANs permitted on both sides?
- Is a link trunking that should not be?