Switching Concepts
Switching Concepts
and the destination MAC address. THE SWITCH LEARN AND FORWARD METHOD
A switch uses its MAC address table to make The switch uses a two step process:
Note: A switch will never allow traffic to be ● Adds the source MAC if not in table
forwarded out the interface it received the traffic ● Resets the time out setting back to 5 minutes if
source is in the table
AA 2
SWITCH FORWARDING METHODS
COLLISION DOMAINS
Protocol Function
Management VLAN
Voice VLAN
○ Assured bandwidth
A trunk is a point-to-point link between two network
○ High QoS priority devices.
○ Ability to avoid congestion Cisco trunk functions:
○ Delay less that 150 ms from source to ● Allow more than one VLAN
destination
● Extend the VLAN across the entire network
● The entire network must be designed to
support voice. ● By default, supports all VLANs
broadcast traffic.
802.3 = Ethernet/Wired
802.11 = Wireless
802.1q = Trunk
Canonical • 1-bit value that can support token VOICE VLAN TAGGING
Format ring frames on Ethernet
The VoIP phone is a three port switch:
Identifier (CFI)
● The switch will use CDP to inform the phone of
the Voice VLAN.
● The phone will tag its own traffic (Voice) and The show interfaces fa0/18 switchport command can
can set Cost of Service (CoS). CoS is QoS for show us both data and voice VLANs assigned to the
layer 2. interface.
VLAN CONFIGURATION
Access is not tagged (no Layer 2 CoS priority
VLAN value) VLAN RANGES ON CATALYST SWITCHES
● Instructs phone to tag voice frames with VLAN 1, 1002 – 1005 are auto Supports fewer VLAN
150 created and cannot be features
deleted
● Prioritizes voice frames
● Forwards data frame for VLAN 20 Stored in the vlan.dat file Requires VTP
in flash configurations
Configured to tag voice traffic frames with VLAN 150.
S1(config)# Interface fa0/18 Note: QoS is beyond the scope of this course.
S1(config-if)# end
DELETE VLANs
INTRODUCTION TO DTP
● May be turned back on by setting the interface Dynami Dynamic Trunk Access
to dynamic-auto c Auto Desirabl
e
● Setting a switch to a static trunk or static access
will avoid negotiation issues with the
switchport mode trunk or the switchport mode Dynamic Access Trunk Trunk Access
access commands. Auto
The switchport mode command has additional options. Access Access Access Limited Access
connec
Use the switchport nonegotiate interface configuration
tivity
command to stop DTP negotiation.
dynamic Will becomes a trunk interface if the ▪ Best practice recommends that the interfaces be set to
auto neighboring interface is set to trunk or access or trunk and to turnoff DTP
desirable mode
The switch builds a MAC address table to forward A trunk is a Layer 2 link between two switches that
frames on the LAN. carries traffic for all VLANs.
The switch can use either the store-and-forward or cut- Trunks will need tagging for the various VLANs, typically
through method of switch forwarding. 802.1q .
Ethernet ports in half-duplex will be a part of a collision An interface can be set to trunking or nontrunking.
domain. Trunk negotiation is managed by the Dynamic Trunking
Full-duplex will eliminate collision domains. Protocol (DTP).
A switch will flood out all interfaces except the ingress DTP is a Cisco proprietary protocol that manages trunk
port if the frame is a broadcast or if the unicast negotiations.
destination MAC is unknown.
VLANs
VLAN tag fields include the type, user priority, CFI and
VID.