交换机的相关配置实验报告.doc_第1页
交换机的相关配置实验报告.doc_第2页
交换机的相关配置实验报告.doc_第3页
交换机的相关配置实验报告.doc_第4页
交换机的相关配置实验报告.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验实验 一一 交换机的相关配置交换机的相关配置 1 实验目的 1 熟悉Boson软件的使用 2 了解查询交换机命令的方法 3 领会交换机的命令模式和相应的提示符 4 掌握思科交换机常用的配置命令以及通过命令查看各设备的相关配 置信息 2 思科交换机的基本配置 2 1 实验环境 利用 Boson Network Designer 软件绘制两台交换机 Cisco Catalyst1912 型或 Cisco Catalyst2950 型 与四台 PC 互连 通过 Boson Netsim 软件加 载绘制好的网络拓扑图 从而进行交换机与 PC 的相关配置 网络拓扑图如图所示 2 2 实验内容 1 使用 Boson Network Designer 软件绘制交换机的相关网络拓扑图 2 运行 Boson Netsim 软件 加载拓扑图 对拓扑图中的交换机进行基本参 数配置 定义交换机的机器名 口令 端口描述信息 管理地址 网关 并配置好各 PC 的 IP 地址 子网掩码及网关 3 使用 show 命令查看交换机相关的信息 IOS 版本号 端口参数 配置文 件 MAC 地址表 4 备份已经配置完毕的配置文件 2 3 实验步骤 1 运行 Boson Network Designer 软件 按照图 1 1 所示绘制配置拓扑图 保存在 相应的目录下 2 运行 Boson Netsim 软件 加载绘制好的网络拓扑图 然后切换到 PC 机设置界面 使用 winipcfg 命令 C C winipcfg 配置 PC1 的 IP 地址为 192 168 1 4 子网掩码为 255 255 255 0 网关为 192 168 1 1 如下图所示 其他 PC 机的配置方法类似 配置如下 PC2 192 168 1 5 255 255 255 0 GATEWAY 192 168 1 1 PC3 192 168 1 6 255 255 255 0 GATEWAY 192 168 1 1 PC4 192 168 1 7 255 255 255 0 GATEWAY 192 168 1 1 3 进入思科交换机 1912 的的 CLI 界面 做如下配置 enable conf t Enter configuration commands one per line End with CNTL Z config hostname mine1912 mine1912 config enable secret level 15 mine mine1912 config ip addr 192 168 1 2 255 255 255 0 mine1912 config ip default geteway 192 168 1 1 Invalid input detected at marker mine1912 config ip default gateway 192 168 1 1 mine1912 config switching mode store and forward mine1912 config exi 进入思科交换机 1912 的全局配置界面 将其主机名配置为 mine1912 登录密码设置为 mine 其管理 IP 地址为 192 168 1 2 子网掩码配置为 255 255 255 0 默认网关与其他 PC 机 一样 为 192 168 1 1 并将思科交换机 1912 的转发模式设为可靠性较高的存储 转发 最 后退出全局配置界面 4 进入第二台 1912 交换机的 CLI 界面 做如下配置 enable conf t Enter configuration commands one per line End with CNTL Z config hostname mine1912 1 mine1912 1 config enable secret level 15 mine mine1912 1 config ip addr 192 168 1 3 255 255 255 0 mine1912 1 config ip default gateway 192 168 1 1 mine1912 1 config switching mode store and forward mine1912 1 config exi 进入思科交换机 1912 的全局配置界面 将其主机名配置为 mine1912 1 登录密码设置 为 mine 其管理 IP 地址为 192 168 1 3 子网掩码配置为 255 255 255 0 默认网关与其他 PC 机一样 为 192 168 1 1 并将思科交换机 1912 的转发模式设为可靠性较高的存储 转 发 最后退出全局配置界面 4 进入 2950 交换机的 CLI 界面 做如下配置 Switch enable Switch conf t Enter configuration commands one per line End with CNTL Z Switch config hostname mine2950 mine2950 config enable secret mine mine2950 config line console 0 mine2950 config line pass cisco mine2950 config line pass cisco mine2950 config line login mine2950 config line exi mine2950 config int vlan 1 mine2950 config if ip addr 192 168 1 4 255 255 255 0 mine2950 config if no shut LINK 3 UPDOWN Interface Vlan 1 changed state to up mine2950 config if exi mine2950 config ip default gateway 192 168 1 1 mine2950 config exi 进入思科交换机 2950 的全局配置界面 将其主机名配置为 mine2950 配置登录密码设 置为 mine 控制台登录密码设置为 cisco 进入默认的 Vlan1 配置思科交换机 2950 的管 理 IP 地址为 192 168 1 4 子网掩码配置为 255 255 255 0 激活默认的 Vlan1 的所有端口 然后返回全局配置界面 设置默认网关为 192 168 1 1 最后退出全局配置界面 5 在思科交换机 2950 的特许界面中 输入 可以对该界面下的可以使用的命令进 行查询 mine2950 access enable Create a temporary Access List entry archive manage archive files cd Change current directory clear Reset functions clock cns CNS subsystem configure Enter configuration mode connect Open a terminal connection connect Open a terminal connection copy Copy configuration or firmware debug Debugging functions see also undebug delete Reset configuration dir List files on a filesystem disable Turn off privileged commands dot1x IEEE 802 1X commands enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC format Format a filesystem fsck Fsck a filesystem help Description of the interactive help system help Description of the interactive help system lock Lock the terminal MORE 6 在思科交换机 2950 的特权模式中进行 show version 有以下输出 mine2950 show version Boson Operating Simulation Software BOSS tm C2950 emulator Version 12 1 RELEASE SOFTWARE Copyright c 1998 2003 by Boson Software Inc Simulated ROM Bootstrap program is BOSS boot loader Simulated Switch uptime is 23 minutes Simulated System returned to ROM by power on Simulated System image file is flash 2950 boss Boson WS C2900 24 BOSS emulated revision 5 0 with 20815K simulated memory Last reset from system reset 12 FastEthernet IEEE 802 3 interface s 32K bytes of simulated non volatile configuration memory Simulated Base ethernet MAC Address 00 0A B7 A0 7F 00 Simulated Model number WS C2950 12 Configuration register is 0 xF Show version 命令主要用来查看 Cisco 设备一些版本 处理器 内存 接口情况等硬件 信息 显示内容的第 2 行中 可以得知此交换机的型号 2950 其操作系统的版本号为 12 1 第 4 行显示了交换机加载了 ROM 中的 Bootstrap 启动程序 第 5 行的 uptime 显示了 交换机运行的时间为 23 分钟 第 7 行显示了交换机的 IOS 映像文件名及存储位置 这个 信息比较重要 因为对交换机 IOS 的备份 升级等灾难性恢复的操作都要用到这个信息 第 8 行显示了交换机的处理器及内存信息 第 10 行显示了交换机的接口数量为 12 个快速 以太网口 倒数第 4 行显示了 NVRAM 的大小 倒数第 3 行显示了该交换机的 MAC 地址 为 00 0A B7 A0 7F 00 最后一行显示了该交换机的配置寄存器的值 0 xF 为该交换机的默 认寄存器的值 7 在思科交换机 2950 的特权模式中进行 show run 有以下输出 mine2950 show run Version 12 1 service timestamps debug uptime service timestamps log uptime no service password encryption hostname mine2950 ip name server 0 0 0 0 enable secret 5 sdf 6978yhg jnb76sd ip subnet zero spanning tree extend system id interface FastEthernet0 1 interface FastEthernet0 2 interface FastEthernet0 3 MODE show run 命令显示了设备总体的配置状况 对于配置的检查排错非常有用 这部分信 息的前 7 行显示了 IOS 的版本号为 12 1 时间戳以及一般密码没有进行加密的信息 第 7 行开始显示了主机名为 mine2950 名字服务器 特权模式密码 cisco 接下来是交换机默 认启动了 ip subnet zero 命令 即允许使用 0 号子网 8 在思科交换机 2950 的特权模式中进行 show int fa0 3 有以下输出 mine2950 show int f0 3 FastEthernet0 3 is up line protocol is up Hardware is Fast Ethernet address is 000C 3071 5517 bia 000C 3071 5517 MTU 1500 bytes BW 10000 Kbit DLY 1000 usec reliability 255 255 txload 1 255 rxload 1 255 Auto duplex Auto speed Encapsulation ARPA loopback not set ARP type ARPA ARP Timeout 04 00 00 Last input 02 29 44 output never output hang never Last clearing of show interface counters never Input queue 0 75 0 0 size max drops flushes Total output drops 0 Queueing strategy fifo Output queue 0 40 size max 5 minute input rate 0 bits sec 0 packets sec 5 minute output rate 0 bits sec 0 packets sec 269 packets input 71059 bytes 0 no buffer Received 6 broadcasts 0 runts 0 giants 0 throttles 0 input errors 0 CRC 0 frame 0 overrun 0 ignored 7290 packets output 429075 bytes 0 underruns 0 output errors 3 interface resets 0 output buffer failures 0 output buffers swapped out 这是查看某接口状态的命令 由以上的显示信息可以看到 由于 fa0 3 与 PC3 连接正 常 故接口的物理状态和线路协议状态均为 up 显示信息还有 mine2950 的 fa0 3 口的 硬件地址 MTU 最大传输单元 默认 1500 字节 BW 带宽 默认 100M 封装类型 默 认为 ARPA 以及接下来的一些数据统计信息 此命令主要用于查看接口状态信息 还可 结合其他命令对设备进行排错处理 9 在未进行网络测试 ping 命令之前 思科交换机 1912 的特权模式中输入 show mac 有以下输出 mine1912 show mac Mac Address Table Vlan Mac Address Type Ports 1 000C 5942 3683 DYNAMIC Ethernet0 3 1 000C 1774 3748 DYNAMIC Ethernet0 4 1 000C 1407 5431 DYNAMIC Ethernet0 2 Total Mac Addresses for this criterion 3 在各 PC 机进行通信前 在思科交换机 1912 上进行查看 MAC 地址表的操作 可以看到 此时有 3 个 MAC 地址 E0 3 连接的是 PC1 E0 4 连接的是 PC2 E0 2 连接的是思科交换机 1921 即交换机启动时默认能学习到与其直连的设备的 MAC 地址 并将其记录进 MAC 地址 表 C ping 192 168 1 6 Pinging 192 168 1 6 with 32 bytes of data Reply from 192 168 1 6 bytes 32 time 60ms TTL 241 Reply from 192 168 1 6 bytes 32 time 60ms TTL 241 Reply from 192 168 1 6 bytes 32 time 60ms TTL 241 Reply from 192 168 1 6 bytes 32 time 60ms TTL 241 Reply from 192 168 1 6 bytes 32 time 60ms TTL 241 Ping statistics for 192 168 1 6 Packets Sent 5 Received 5 Lost 0 0 loss Approximate round trip times in milli seconds Minimum 50ms Maximum 60ms Average 55ms 当在 PC1 上使用 ping 命令与 PC3 通信时 思科交换机 1912 应能学习到 PC3 的 MAC 地 址及其相应端口 在 PC1 192 168 1 4 对 PC3 192 168 1 6 进行 ping 操作后 在思科交 换机 1912 上 再次用 show mac 有以下结果 mine1912 show mac Mac Address Table Vlan Mac Address Type Ports 1 000C 5942 3683 DYNAMIC Ethernet0 3 1 000C 1774 3748 DYNAMIC Ethernet0 4 1 000C 1407 5431 DYNAMIC Ethernet0 2 1 000C 8524 8788 DYNAMIC Ethernet0 2 Total Mac Addresses for this criterion 4 此时 发现当 PC1 与 PC3 通信后 思科交换机 1912 的 MAC 地址表增加了一条表项 此 MAC 地址即为 PC3 的 MAC 地址 ports E0 2 指此 MAC 地址是从思科交换机 1912 的 E0 2 端 口发送来的 因为 PC3 与思科交换机 2950 直连 而 E0 2 就是思科交换机 1912 的端口 即 当以后思科交换机 1912 的 PC 机要与 PC3 通信时 数据将从 E0 2 转发出去 实际上这是交 换机的 MAC 地址学习能力 再次将 PC1 192 168 1 4 对 PC4 192 168 1 7 进行 ping 操作后 在思科交换机 1912 上 然后用 show mac 有以下结果 C ping 192 168 1 7 Pinging 192 168 1 7 with 32 bytes of data Reply from 192 168 1 7 bytes 32 time 60ms TTL 241 Reply from 192 168 1 7 bytes 32 time 60ms TTL 241 R

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论