Sie sind auf Seite 1von 18

Interconnecting Cisco Networking

Devices Part 1
ICND1 100-105

Instructor
Paul A. Parker

1
Chapter 7

Analyzing Ethernet LAN Switching

2
Chapter 7
LAN Switching Concepts
v Overview of Switching Logic
▼ Deciding when to forward a frame or when to filter (not forward)
a frame, based on the destination MAC address
▼ Preparing to forward frames by learning MAC addresses by
examining the source MAC address of each frame received by the
switch
▼ Preparing to forward only one copy of the frame to the
destination by creating a (Layer 2) loop-free environment with
other switches by using Spanning Tree Protocol (STP)

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 3


Chapter 7
LAN Switching Concepts
v Forwarding Known Unicast Frames
▼ To decide whether to forward a frame, a switch uses a
dynamically built table that lists MAC addresses and outgoing
interfaces. Switches compare the frame’s destination MAC
address to this table to decide
whether the switch should
forward a frame or
simply ignore it.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 4


Chapter 7
LAN Switching Concepts
v Forwarding Known Unicast Frames
▼ In LANs with multiple switches, each switch makes an
independent forwarding decision based on its own MAC address
table. Together, they forward the frame so that it eventually
arrives at the destination.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 5


Chapter 7
LAN Switching Concepts
v Learning MAC Addresses
▼ Switches build the address table by listening to incoming frames
and examining the source MAC address in the frame. If a frame
enters the switch and the source MAC address is not in the MAC
address table, the switch creates an entry in the table. That table
entry lists the interface from which the frame arrived. Switch
learning logic is that simple.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 6


Chapter 7
LAN Switching Concepts
v Flooding Unknown Unicast and Broadcast Frames
▼ Switches flood unknown unicast frames. Flooding means that the
switch forwards copies of the frame out all ports, except the port
on which the frame was received. Switches also flood LAN
broadcast frames (frames destined to the Ethernet broadcast
address of FFFF.FFFF.FFFF), because this process helps deliver a
copy of the frame to all devices in the LAN.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 7


Chapter 7
LAN Switching Concepts
v Avoiding Loops Using Spanning Tree Protocol
▼ The third primary feature of LAN switches is loop prevention, as
implemented by Spanning Tree Protocol (STP). Without STP, any
flooded frames would loop for an indefinite period of time in
Ethernet networks with physically redundant links. To prevent
looping frames, STP blocks some ports from forwarding frames
so that only one active path exists between any pair of LAN
segments.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 8


Chapter 7
LAN Switching Concepts
v LAN Switching Summary
▼ Step 1. Switches forward frames based on the destination MAC
address:
➘  A. If the destination MAC address is a broadcast, multicast, or
unknown destination unicast (a unicast not listed in the MAC table),
the switch floods the frame.
➘  B. If the destination MAC address is a known unicast address (a
unicast address found in the MAC table):
➘  i. If the outgoing interface listed in the MAC address table is different
from the interface in which the frame was received, the switch forwards
the frame out the outgoing interface.
➘  ii. If the outgoing interface is the same as the interface in which the
frame was received, the switch filters the frame, meaning that the
switch simply ignores the frame and does not forward it.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 9


Chapter 7
LAN Switching Concepts
v LAN Switching Summary
▼ Step 2. Switches use the following logic to learn MAC address
table entries:
➘  A. For each received frame, examine the source MAC address and
note the interface from which the frame was received.
➘  B. If it is not already in the table, add the MAC address and interface
it was learned on.
▼ Step 3. Switches use STP to prevent loops by causing some
interfaces to block, meaning that they do not send or receive
frames.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 10


Chapter 7
Verifying and Analyzing Ethernet Switching
v Cisco Catalyst switches come ready to operate because
of settings like these:
▼ The interfaces are enabled by default, ready to start working
once a cable is connected.
▼ All interfaces are assigned to VLAN 1.
▼ 10/100 and 10/100/1000 interfaces use autonegotiation by
default.
▼ The MAC learning, forwarding, flooding logic all works by default.
▼ STP is enabled by default.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 11


Chapter 7
Verifying and Analyzing Ethernet Switching
v Demonstrating MAC Learning
▼ To see a switches MAC address table, use the show mac
address-table command.
▼ To see all the dynamically earned MAC addresses only, instead
use the show mac address-table dynamic command.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 12


Chapter 7
Verifying and Analyzing Ethernet Switching
v Switch Interfaces
▼ You can easily check the status of those interfaces with the
show interfaces status command

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 13


Chapter 7
Verifying and Analyzing Ethernet Switching
v Finding Entries in the MAC Address Table
▼ Cisco IOS supplies several more options on the show mac
address-table command to make it easier to find individual
entries. First, if you know the MAC address, you can search for
the MAC address by including the address keyword, followed by
the actual MAC address as show below.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 14


Chapter 7
Verifying and Analyzing Ethernet Switching
v Finding Entries in the MAC Address Table
▼ Second, if you know interface, you can search for the MAC
address by including the interface keyword, followed by the
interface.

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 15


Chapter 7
Exam Preparation Tasks

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 16


Chapter 7
Command References
v EXEC Command Reference

CCENT/CCNA ICND1 Interconnecting Cisco Networking Devices Part 1 17


Questions?

18

Das könnte Ihnen auch gefallen