




已阅读5页,还剩10页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验六 以太通道实验六 以太通道 一 实验目标一 实验目标 1 掌握以太通道的用法 2 掌握配置命令 二 拓扑图二 拓扑图 三 预期结果三 预期结果 Down 掉两条链路中的任意一条 数据可以继续保持流通 四 调试四 调试 基本配置 Router enable Router configure terminal Enter configuration commands one per line End with CNTL Z Router config no ip domain lookup Router config line console 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line line aux 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line privilege level 15 Router config line line vty 0 4 Router config line no login Router config line privilege level 15 Router config line exit Router config host sw1 sw1 config Router configure terminal Enter configuration commands one per line End with CNTL Z Router config no ip domain lookup Router config line console 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line line aux 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line privilege level 15 Router config line line vty 0 4 Router config line no login Router config line privilege level 15 Router config line exit Router config Router config host sw2 sw2 config Router enable Router configure terminal Enter configuration commands one per line End with CNTL Z Router config no ip domain lookup Router config line console 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line line aux 0 Router config line logging synchronous Router config line exec timeout 0 0 Router config line no login Router config line privilege level 15 Router config line line vty 0 4 Router config line no login Router config line privilege level 15 Router config line exit Router config host sw3 sw3 config 二层链路配置 sw3 vlan data sw3 vlan vlan 10 VLAN 10 added Name VLAN0010 sw3 vlan vlan 11 VLAN 11 added Name VLAN0011 sw3 vlan exit APPLY completed sw1 vlan data sw1 vlan vlan 10 VLAN 10 added Name VLAN0010 sw1 vlan vlan 11 VLAN 11 added Name VLAN0011 Exiting sw2 vlan data sw2 vlan vlan 10 VLAN 10 added Name VLAN0010 sw2 vlan vlan 11 VLAN 11 added Name VLAN0011 sw2 vlan exit APPLY completed Exiting sw2 config interface vlan 10 sw2 config if ip address 192 168 10 2 255 255 255 0 sw2 config no shut sw2 config interface vlan 11 sw2 config if ip address 192 168 11 2 255 255 255 0 sw2 config if no shut sw2 config if exit sw2 config spanning tree vlan 10 priority 0 sw2 config spanning tree vlan 11 priority 4096 sw1 config interface vlan 10 sw1 config if ip address 192 168 10 1 255 255 255 0 sw1 config if no shut sw1 config if interface vlan 11 sw1 config if ip address 12 168 11 1 255 255 255 0 sw1 config if no shut sw1 config if exit sw1 config spanning tree vlan 10 priority 4096 sw1 config spanning tree vlan 11 priority 0 sw3 config interface f0 10 sw3 config if sw mo access sw3 config if sw access vlan 10 sw3 config if no shut sw3 config if inter f0 11 sw3 config if sw mo access sw3 config if sw access vlan 11 sw3 config if no shut sw3 config if sw3 config interface range f0 1 2 sw3 config if range sw tr en d sw3 config if range sw mo tr sw3 config if range sw tr Mar 1 00 09 14 235 DTP 5 TRUNKPORTON Port Fa0 1 2 has become dot1q trunk sw3 config if range sw tr al vlan all sw3 config if range no shut sw3 config if range exit sw3 config end sw2 config interface range f0 1 3 sw2 config if range sw tr en d sw2 config if range sw mo tr sw2 config if range Mar 1 00 07 05 383 DTP 5 TRUNKPORTON Port Fa0 1 3 has become dot1q trunk sw2 config if range sw tr en d sw2 config if range sw tr al vlan all sw2 config if range no shut sw2 config if range exit sw2 config interface range f0 1 2 sw2 config if range channel group 2 mode on Creating a port channel interface Port channel2 sw1 config interface range f0 1 3 sw1 config if range sw mo tr sw1 config if range sw tr en d sw1 config if range sw tr al vl all sw1 config if range no shut sw1 config if range exit sw1 config interface range f0 1 2 sw1 config if range channel group 2 mode on Creating a port channel interface Port channel2 调制 sw1 config do show ip in b Interface IP Address OK Method Status Protocol FastEthernet0 0 unassigned YES unset up down FastEthernet0 1 unassigned YES unset up up FastEthernet0 2 unassigned YES unset up up FastEthernet0 3 unassigned YES unset up up FastEthernet0 4 unassigned YES unset up down FastEthernet0 5 unassigned YES unset up down FastEthernet0 6 unassigned YES unset up down FastEthernet0 7 unassigned YES unset up down FastEthernet0 8 unassigned YES unset up down FastEthernet0 9 unassigned YES unset up down FastEthernet0 10 unassigned YES unset up down FastEthernet0 11 unassigned YES unset up down FastEthernet0 12 unassigned YES unset up down FastEthernet0 13 unassigned YES unset up down FastEthernet0 14 unassigned YES unset up down FastEthernet0 15 unassigned YES unset up down Port channel2 unassigned YES unset up up Vlan1 unassigned YES unset up up Vlan10 192 168 10 1 YES manual up up Vlan11 12 168 11 1 YES manual up up sw1 config do show vlan sw VLAN Name Status Ports 1 default active Fa0 0 Fa0 4 Fa0 5 Fa0 6 Fa0 7 Fa0 8 Fa0 9 Fa0 10 Fa0 11 Fa0 12 Fa0 13 Fa0 14 Fa0 15 10 VLAN0010 active 11 VLAN0011 active 1002 fddi default active 1003 token ring default active 1004 fddinet default active 1005 trnet default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 1 enet 100001 1500 1002 1003 10 enet 100010 1500 0 0 11 enet 100011 1500 0 0 1002 fddi 101002 1500 1 1003 1003 tr 101003 1500 1005 0 srb 1 1002 1004 fdnet 101004 1500 1 ibm 0 0 1005 trnet 101005 1500 1 ibm 0 0 sw1 config VLAN11 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00 1218 0002 Cost 12 Port 321 Port channel2 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4096 Address cc01 1218 0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID FastEthernet0 3 128 4 128 19 FWD 12 4096 cc01 1218 0002 128 4 Port channel2 129 65 128 12 FWD 0 0 cc00 1218 0002 129 65 五 总结与原理分析五 总结与原理分析 以太通道有两种配置方式 第一种是手动配置 mode on 第二种是协议 配置模式 而协议配置模式有两种 LACP 链路汇聚控制协议 公有协议 其链路状态有四种 on 强制不适用协议 开启 off 防止端口开启 active 使得端口使用 LACP 协议开启 passive 使得端口进入被动协商状态 被叫才开启 默认使用 PAGP 端口汇聚协议 思科私有 on 同上 off 同上 desirable 同 active auto 同 passive 六 配置六 配置 show run SW3 version 12 3 service timestamps debug datetime msec service timestamps log datetime msec no service password encryption hostname sw3 boot start marker boot end marker no aaa new model resource policy memory size iomem 5 ip subnet zero ip cef no ip dhcp use vrf connected no ip domain lookup no ftp server write enable interface FastEthernet0 0 interface FastEthernet0 1 switchport mode trunk interface FastEthernet0 2 switchport mode trunk interface FastEthernet0 3 interface FastEthernet0 4 interface FastEthernet0 5 interface FastEthernet0 6 interface FastEthernet0 7 interface FastEthernet0 8 interface FastEthernet0 9 interface FastEthernet0 10 switchport access vlan 10 interface FastEthernet0 11 switchport access vlan 11 interface FastEthernet0 12 interface FastEthernet0 13 interface FastEthernet0 14 interface FastEthernet0 15 interface Vlan1 no ip address ip http server ip classless control plane line con 0 exec timeout 0 0 logging synchronous line aux 0 exec timeout 0 0 privilege level 15 logging synchronous line vty 0 4 privilege level 15 no login End SW2 version 12 3 service timestamps debug datetime msec service timestamps log datetime msec no service password encryption hostname sw2 boot start marker boot end marker no aaa new model resource policy memory size iomem 5 ip subnet zero ip cef no ip dhcp use vrf connected no ip domain lookup no ftp server write enable spanning tree vlan 10 priority 0 spanning tree vlan 11 priority 4096 interface Port channel2 switchport mode trunk interface FastEthernet0 0 interface FastEthernet0 1 switchport mode trunk channel group 2 mode on interface FastEthernet0 2 switchport mode trunk channel group 2 mode on interface FastEthernet0 3 switchport mode trunk interface FastEthernet0 4 interface FastEthernet0 5 interface FastEthernet0 6 interface FastEthernet0 7 interface FastEthernet0 8 interface FastEthernet0 9 interface FastEthernet0 10 interface FastEthernet0 11 interface FastEthernet0 12 interface FastEthernet0 13 interface FastEthernet0 14 interface FastEthernet0 15 interface Vlan1 no ip address interface Vlan10 ip address 192 168 10 2 255 255 255 0 interface Vlan11 ip address 192 168 11 2 255 255 255 0 ip http server ip classless control plane line con 0 exec timeout 0 0 logging synchronous line aux 0 exec timeout 0 0 privilege level 15 logging synchronous line vty 0 4 privilege level 15 no login end SW1 Building configuration Current configuration 1415 bytes version 12 3 service timestamps debug datetime msec service timestamps log datetime msec no service password encryption hostname sw1 boot start marker boot end marker no aaa new model resource policy memory size iomem 5 ip subnet zero ip cef no ip dhcp use vrf connected no ip domain look
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论