You are on page 1of 12

Establishing a Single Switched Network

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.


Foreword
 The introduction of a switching device as part of the enterprise network
demonstrates how networks are able to expand beyond point-to-point
connections, and shared networks in which collisions may occur. The
behavior of the enterprise switch when introduced to the local area
network is detailed along with an understanding of the handling of unicast
and broadcast type frames, to demonstrate how switches enable networks
to overcome the performance obstacles of shared networks.

Page 1 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
 Upon completion of this section, you will be able to:
 Explain the decision making process of a link layer switch.

 Configure parameters for negotiation on a link layer switch.

Page 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Building a Single Switched Network
Switch A

G0/0/1 G0/0/3
G0/0/2

Host A Host B Host C


IP: 10.1.1.1/24 IP: 10.1.1.2/24 IP: 10.1.1.3/24
MAC:00-01-02-03-04-AA MAC:00-01-02-03-04-BB MAC:00-01-02-03-04-CC

 Switches operate within the scope of the data link layer.


Page 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The Initial State of The Switch
Switch A MAC Address Table

MAC Interface

G0/0/1

G0/0/2 G0/0/3

Host A Host B Host C


IP: 10.1.1.1/24 IP: 10.1.1.2/24 IP: 10.1.1.3/24
MAC:00-01-02-03-04-AA MAC:00-01-02-03-04-BB MAC:00-01-02-03-04-CC

 Each switch uses a MAC table for making forwarding decisions.


Page 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MAC Address Learning
Switch A MAC Address Table
MAC Interface
00-01-02-03-04-AA G0/0/1

G0/0/3
G0/0/1 G0/0/2

Host A Host B Host C


IP: 10.1.1.1/24 IP: 10.1.1.2/24 IP: 10.1.1.3/24
MAC:00-01-02-03-04-AA MAC:00-01-02-03-04-BB MAC:00-01-02-03-04-CC

 The source MAC addresses of received frames are recorded.


Page 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Forwarding The First Data
Switch A

G0/0/1

G0/0/2 G0/0/3

Host A Host B Host C


IP: 10.1.1.1/24 IP: 10.1.1.2/24 IP: 10.1.1.3/24
MAC:00-01-02-03-04-AA MAC:00-01-02-03-04-BB MAC:00-01-02-03-04-CC

 Frames destined for unknown link layer destinations are flooded.


Page 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The Destination Reply
Switch A

MAC Interface
G0/0/1
00-01-02-03-04-AA G0/0/1
G0/0/ G0/0/3
00-01-02-03-04-CC G0/0/3
2

Host A Host B Host C


IP: 10.1.1.1/24 IP: 10.1.1.2/24 IP: 10.1.1.3/24
MAC:00-01-02-03-04-AA MAC:00-01-02-03-04-BB MAC:00-01-02-03-04-CC

 Frames are forwarded to destinations based on the MAC table.


Page 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Basic Configuration
Switch A Host A

G0/0/1

<SWA>system-view
Enter system view, return user view with Ctrl+Z.
[SWA]interface GigabitEthernet 0/0/1
[SWA-GigabitEthernet0/0/1]undo negotiation auto
[SWA-GigabitEthernet0/0/1]duplex full
[SWA-GigabitEthernet0/0/1]speed 100

Page 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Basic Configuration Verification
Switch A Host A

G0/0/1

[SWA]display interface GigabitEthernet 0/0/1


GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
……
Speed : 100, Loopback: NONE
Duplex: FULL, Negotiation: DISABLE

Page 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
 If a switch records the source MAC address of a host device on a port interface,
and the physical connection of the host is then changed to another port
interface on the switch, what action would the switch take?

Page 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com

You might also like