《交换网络基础课件.ppt》由会员分享,可在线阅读,更多相关《交换网络基础课件.ppt(14页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、HUAWEI TECHNOLOGIES CO.,LTD.交换网络基础Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.Page 2前言常见的以太网设备包括Hub、交换机等。交换机工作在数据链路层,它有效地隔离了以太网中的冲突域,极大地提升了以太网的性能。Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.Page 3学习目标 学完本课程后,您应该能:l掌握交换机的基本工作原理l掌握交换机的基本配置Copyright 2014 Huawei Tec
2、hnologies Co.,Ltd.All rights reserved.小型交换网络Page 4SWA主机A主机C主机BIP:10.1.1.1/24MAC:00-01-02-03-04-AAIP:10.1.1.2/24MAC:00-01-02-03-04-BBIP:10.1.1.3/24MAC:00-01-02-03-04-CCl交换机工作在数据链路层,转发数据帧。G0/0/1G0/0/2G0/0/3Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.交换机的转发行为Page 5泛洪(Flooding)转发(Forw
3、arding)丢弃(Discarding)Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.Page 6Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.交换机初始状态Page 7SWAIP:10.1.1.1/24MAC:00-01-02-03-04-AAIP:10.1.1.2/24MAC:00-01-02-03-04-BBIP:10.1.1.3/24MAC:00-01-02-03-04-CCl初始状态下,交换机MAC地址表为空。主机A主机C主
4、机BG0/0/1G0/0/2G0/0/3MAC地址表MAC接口Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.学习MAC地址Page 800-01-02-03-04-AAFF-FF-FF-FF-FF-FFARPDec.MacSrc.MacSWAIP:10.1.1.1/24MAC:00-01-02-03-04-AAIP:10.1.1.2/24MAC:00-01-02-03-04-BBIP:10.1.1.3/24MAC:00-01-02-03-04-CCG0/0/1G0/0/2G0/0/3MAC接口00-01-02-03
5、-04-AAG0/0/1l交换机将收到的数据帧的源MAC地址和对应接口记录到MAC地址表中。主机A主机C主机BMAC地址表Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.MAC接口00-01-02-03-04-AAG0/0/1转发数据帧Page 900-01-02-03-04-AAFF-FF-FF-FF-FF-FFARPSWAIP:10.1.1.1/24MAC:00-01-02-03-04-AAIP:10.1.1.2/24MAC:00-01-02-03-04-BBIP:10.1.1.3/24MAC:00-01-02-
6、03-04-CCl当数据帧的目的MAC地址不在MAC表中,或者目的MAC地址为广播地址时,交换机会泛洪该帧。主机A主机C主机BG0/0/1G0/0/2G0/0/3Dec.Mac Src.MacMAC地址表Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.目标主机回复Page 10MAC接口00-01-02-03-04-AAG0/0/100-01-02-03-04-CCG0/0/300-01-02-03-04-AA00-01-02-03-04-CCARPSWAIP:10.1.1.1/24MAC:00-01-02-03-0
7、4-AAIP:10.1.1.2/24MAC:00-01-02-03-04-BBIP:10.1.1.3/24MAC:00-01-02-03-04-CCl交换机根据MAC地址表将目标主机的回复信息单播转发给源主机。主机A主机C主机BG0/0/1G0/0/2G0/0/3Dec.Mac Src.MacMAC地址表Copyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.基本配置Page 11system-view Enter system view,return user view with Ctrl+Z.SWAinterface G
8、igabitEthernet 0/0/1SWA-GigabitEthernet0/0/1undo negotiation autoSWA-GigabitEthernet0/0/1speed 100SWA-GigabitEthernet0/0/1duplex fullSWAG0/0/1主机ACopyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.配置验证Page 12SWAG0/0/1SWAdisplay interface GigabitEthernet 0/0/1GigabitEthernet0/0/1 current state:UPLine protocol current state:UPSpeed:100,Loopback:NONEDuplex:FULL,Negotiation:DISABLE主机ACopyright 2014 Huawei Technologies Co.,Ltd.All rights reserved.Page 13总结l当一台主机从交换机的一个端口移动到另外一个端口时,交换机的MAC地址表会发生什么变化?谢谢