




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 实验五 链路捆绑与STP1 实验目的1. 组网需求:采用两台核心交换机组网来提高网络可靠性,为防止二层环路,需要全网运行STP将SW1部署为根网桥,SW2部署为备份根网桥,并将接入PC的接口配置为portfast端口;SW1-SW2之间使用链路捆绑进一步提高可靠性。2. 分析STP的选举过程(根网桥、跟端口、指定端口、阻塞端口)。3. 测试STP切换,并分析STP的端口状态切换过程。2 实验拓扑三实验步骤1. 基本信息配置 SW1的基本信息配置(SW2、SW3的基本配置与SW1相同)Switch>enable /进入特权模式Switch#config terminal /进入全局配置模
2、式Switch(config)#hostname SW3 /配置主机名SW3(config)#no ip domain-lookup /禁用域名查找SW3(config)#line console 0 /进入Console线路模式SW3(config-line)#logging synchronous /配置Console信息显示自动换行SW3(config-line)#no login /配置口Console登录不认证SW3(config-line)#privilege level 15 SW3(config-line)#line vty 0 4 / 进入Vty线路模式SW3(config-
3、line)#no login /配置Telnet登录不认证SW3(config-line)#privilege level 15 /配置为最高特权级别,enable不需要密码2. 二层网络全局配置(1)SW1的Vlan配置SW1# vlan database SW1(vlan)#vtp transparent /透明模式SW1(vlan)#vlan 8SW1(vlan)#vlan 10SW1(vlan)#vlan 11SW1#show vlan-sw briefVLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 创
4、建成功11 VLAN0011 active (2) SW2的Vlan配置SW2# vlan database SW2(vlan)#vtp transparent SW2(vlan)#vlan 8SW2(vlan)#vlan 10SW2(vlan)#vlan 11SW2#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active 11 VLAN0011 active (3) SW3的Vlan配置SW3# vlan database SW3(vlan)#vtp transparent
5、 SW3(vlan)#vlan 8SW3(vlan)#vlan 10SW3(vlan)#vlan 11SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 创建成功11 VLAN0011 active (4) STP根网桥配置SW1(config)#spanning-tree vlan 8 priority 0SW1(config)#spanning-tree vlan 10 priority 0SW1(config)#spanning-tree vla
6、n 11 priority 0(5) STP备份根网桥配置SW2(config)#spanning-tree vlan 8 priority 4096SW2(config)#spanning-tree vlan 10 priority 4096SW2(config)#spanning-tree vlan 11 priority 40963. 二层网络接口配置及链路测试(1) 核心交换机SW1-SW2链路捆绑配置及调测SW1(config)#interface range fa0/1 -2 /以太网接口1和2,注意1后面要空格SW1(config-if-range)#switchport tru
7、nk encapsulation dot1qSW1(config-if-range)#switchport mode trunk SW1(config-if-range)#switchport trunk allowed vlan allSW1(config-if-range)#channel-group 2 mode on/手动捆绑:组2SW2(config)#interface range fa0/1 -2 /以太网接口1和2,注意1后面要空格SW2(config-if-range)#switchport trunk encapsulation dot1qSW2(config-if-ran
8、ge)#switchport mode trunk SW2(config-if-range)#switchport trunk allowed vlan allSW2(config-if-range)#channel-group 2 mode on/手动捆绑:组2SW1#show etherchannel summary /查看以太网通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2
9、 Po2(SU) Fa0/1(P) Fa0/2(P)SW2#show etherchannel summary /查看以太网通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2 Po2(SU) Fa0/1(P) Fa0/2(P)(2) SW1-SW3的Trunk链路调测SW1(config)#interface fa0/3SW1(config-if)#switchport trunk
10、encapsulation dot1qSW1(config-if)#switchport mode trunk SW1(config-if)#switchport trunk allowed vlan allSW1#show interfaces trunk /查看Trunk信息(只粘贴本步有用信息)Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/1SW3(config-if)#switchport trunk encapsulation dot1qSW3
11、(config-if)#switchport mode trunk SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息(只粘贴本步有用信息)Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1(3) SW2-SW3的Trunk链路调测SW2(config)#interface fa0/3SW2(config-if)#switchport trunk encapsulation dot1qSW2(
12、config-if)#switchport mode trunk SW2(config-if)#switchport trunk allowed vlan allSW2#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/2SW3(config-if)#switchport trunk encapsulation dot1qSW3(config-if)#switchport mode trunk
13、SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/2 on 802.1q trunking 1(4) SW3的Access接口配置SW3(config)#interface fa0/10 /与PC1相连的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 10SW3(config-if
14、)#spanning-tree portfast /配置成Portfast端口SW3(config-if)#exitSW3(config)#interface fa0/11 /与PC1相连的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 11SW3(config-if)#spanning-tree portfast /配置成Portfast端口SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports10 VLAN0010 active
15、Fa0/1011 VLAN0010 active Fa0/11(5) 二层设备网管地址配置/为SW2配置网管接口SW2(config)#interface vlan 8 SW2(config-if)#ip address 192.168.8.130 255.255.255.128SW2(config-if)#no shutdownSW2(config-if)#exit SW2(config)#ip default-gateway 192.168.8.129/为SW3配置网管接口SW3(config)#interface vlan 8SW3(config-if)#ip address 192.1
16、68.8.131 255.255.255.128SW3(config-if)#no shutdownSW3(config-if)#exit SW3(config)#ip default-gateway 192.168.8.129 (6) 二层网络STP调测SW1#show spanning-tree brief /查看生成树简要信息VLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 This bridge is the root Hello Time 2 sec Max Age
17、20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都为指定端口,转发状态 VLAN10 Spanning tree e
18、nabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Rol
19、e FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都为指定端口,转发状态 Vlan11 。 SW2#show spanning-tree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 12 Port 321 (Port-channel2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bri
20、dge ID Priority 4096 Address cc01.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name Port ID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD DesgPort-channel2 129.65 128 12 FWD Root/Fa0/3为指定端口,Po2为跟端口,都为转发状态。Vlan 10 、Vlan 11 。SW3#show spanning-t
21、ree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interfac
22、e Designated Name PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD Root FastEthernet0/2 128.3 128 19 BLK Altn /Fa0/1为根端口,转发状态;Fa0/2为其他端口,阻塞状态。VLAN10 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 se
23、c Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface DesignatedName PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD RootFastEthernet0/2 128.3 128 19 BLK AltnFastEthernet0/10 128.11 128 19 FWD Desg
24、/Fa0/1为根端口,转发状态;Fa0/2为其他端口,阻塞状态;Fa0/10为指定端口,转发状态。Vlan11。4. 三层网络接口配置 SW1(config)#ip routing /启动三层交换机的路由SW1(config)#interface vlan 8 /Vlan 8 的路由点SW1(config-if)#ip address 192.168.8.129 255.255.255.128SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 10 /Vlan 10 的路由点SW1(config-if)#ip address 192.168.10.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 11 /Vlan 11的路由点SW1(config-if)#ip address 192.168.11.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit 5. STP切换测试SW3(config)#interface fa0/1SW3(confi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 教师反思为课堂教学提升创造力的策略研究试题及答案
- 税收基础历年试题及答案
- 家具市场产品组合与消费者偏好考题及答案
- 掌握趋势的商务英语考试试题及答案
- 江苏城市职业学院《现代建筑赏析》2023-2024学年第二学期期末试卷
- 工业机器人在柔性制造系统中环保与绿色制造的应用报告
- 上海建桥学院《酒店管理》2023-2024学年第二学期期末试卷
- 新能源汽车市场渗透率分析试题及答案
- 山西省(大同地区)重点达标名校2025届初三TOP20九月联考(全国II卷)物理试题含解析
- 平顶山工业职业技术学院《高级社会工作实务》2023-2024学年第二学期期末试卷
- 混凝土强度评定表(自动计算)
- 人音版四年级音乐下册全册教学设计教案表格式
- 《高速铁路客运服务礼仪》课件 项目7 高铁站车服务礼仪
- 子宫内膜癌(妇产科)
- 《MBA毕业论文指导》课件
- 医学课件:糖尿病(英文版)完整版
- 国开土地利用规划形考任务1-4答案
- 地下工程监测与检测技术
- 客供物料管理规范
- 七年级下学期家长会课件
- 休闲度假地产新模式的探讨与实践-阿那亚
评论
0/150
提交评论