ImageVerifierCode 换一换
格式:DOCX , 页数:8 ,大小:17.90KB ,
资源ID:10550841      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-10550841.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(交换机的基本配置5.docx)为本站会员(b****3)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

交换机的基本配置5.docx

1、交换机的基本配置5 交换机的基本配置 第 13 章 交换机的基本配置 13.1 理论基础 交换机的管理方式基本分为两种: 带内管理和带外管理。 通过交换机的 Console 端口管理交换机属于带外管理,不占用交换机的网络接口,其特点是需要使用配置线缆,近距离配置。 第一次配置交换机必须利用 Console 端口进行配置。 交换机的命令行操作模式主要有: 用户模式、特权模式、全局配置模式、端口模式等。 1.用户模式: 提示符 进入交换机后得到的第一个操作模式,该模式下可以简单查看交换机的软、硬件版本信息,并进行简单的测试。 2.特权模式: 提示符 # 由用户模式进入的下一级模式,该模式下可以对交

2、换机的配置文件进行管理,查看交换机的配置信息,进行网络的测试和调试等。 3.全局配置模式: 提示符 (config)# 属于特权模式的下一级模式,该模式下可以配置交换机的全局性参数,如主机名、登录信息等。 4.端口配置模式: 提示符 (config-if)# 属于全局配置模式的下一级模式,该模式下可以对交换机的端口进行参数配置。 交换机的基本操作命令包括: 1.Exit 命令: 退回到上一级操作模式。 2.End 命令: 用户可从特权模式以下级别直接返回到特权模式。 3.Hostname 命令: 配置交换机的设备名称。 此命令必须在全局配置模式下进行。 4.Banner motd 命令: 可以

3、配置交换机每日提示信息。 当用户登录交换机时,需要向用户提示一些必要的信息,网管可以通过设置每日提示信息达到这个目的。 此命令必须在全局配置模式下进行。 5.在特权模式下用 show 命令可以查看相关的配置结果。 常用的 show 命令有: show running-config 命令: 查看运行配置文件,显示当前运行在 RAM 中的配置信息。 show startup-config 命令: 查看启动配置文件,显示在 NVRAM 中的配置信息。 show version 命令: 查看交换机的版本信息,包括硬件版本信息和软件版本信息,用于进行交换机操作系统升级时的依据。 show mac-add

4、ress-table 命令: 查看交换机当前的 MAC 地址表信息。 交换机命令行支持获取帮助信息、命令的简写、命令的自动补齐、快捷键功能。 13.2 实验内容 1.实验目的 掌 握 交 换 机 命令行各种操作模式的区别,以及模式之间的切换。 能够使用各种帮助信息,以及用命令进行基本的配 置操作,包括交换机全局配置模式下设备的命名和 每日提示信息的设置,交换机端口常用参数的配置, 查看交换机系统和配置信息,掌握当前交换机的工 作状态。 2.实验内容 (1)在 Boson Network Designer 中做出网络拓扑结构图。 (2)通过交换机命令实现四种模式(用户模式、特权模式、全局配置模式

5、、端口模式)之间的切换。 (3)用命令 hostname 给交换机改名。 (4)用命令 banner motd 给交换配置每日提示信息。 (5)用命令 duplex 配置端口的工作模式(full 为全双工,half 为半双工,auto 为自适应)。 (6)用命令 speed 配置端口的速率(100 为 100Mbps,10 为 10Mbps,auto 为自适应)。 (7)用命令 show running-config 查看交换机当前生效的配置信息。 (8)用命令 show interface fastethernet 0/1 查看交换机端口的配置信息。 3.实验环境 Windows xp 操作

6、系统,Boson Netsim 模拟器。 4.实验设备 4.实验设备 S2950 交换机一台,PC 机一台。 5.实验步骤 步骤 1: 在 Boson Network Designer 中画出网络拓扑,将一台 S2950 交换机与 PC 相连,如图 13-1 所示,以 7.top 为名存盘。 打开 Boson Netsim 模拟器,选择File菜单下的Load NetMap命令,找到 7.top 文件,加载到模拟器中。 图 13-1 交换机的基本配置实验拓扑图 步骤 2: 通过交换机命令实现四种模式(用户模式、特权模式、全局配置模式、端口模式)之间的切换。 首先单击工具栏上eSwitches下

7、的Switch1,启动加载交换机,进入用户模式,输入enable命令,进入特权模式。 在特权模式下输入configure terminal命令,进入全局配置模式。 在全局配置模式下输入interface fastethernet 0/1进入到交换机的 0/1 快速以太网接口。 然后输入exit命令,从端口模式退回到全局配置模式。 再输入exit命令,从全局配置模式退回到特权模式。 然后按照同样方法进入到交换机的 0/2 快速以太网接口。 然后输入end命令,直接从端口模式退回到特权模式。 操作如下: Switch Switchenable Switch#configure terminal E

8、nter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastethernet 0/1 Switch(config-if)#exit Switch(config)#exit Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastethernet 0/2 Switch(config-if)#end Swit

9、ch#exit Press RETURN to get started. Switch 步骤 3: 交换机命令行界面的基本功能。 操作如下: 用?显示当前模式下所有可执行的命令。 Switch? enable Turn on privileged commands exit Exit from the EXEC logout Exit from the EXEC ping Send echo messages telnet Open a telnet connection show show running system information traceroute Trace route t

10、o destination help Description of the interactive help system access-enable Create a temporary Access-List entry connect Open a terminal connection lock Lock the terminal rcommand Run command on remote switch systat Display information about terminal lines tunnel Open a tunnel connection 以上显示结果左边一列是

11、交换机用户模式下所有可操作的命令,右边一列是对左边命令的解释说明。 在交换机的用户模式下还可以操作以下命令: Switchen tab Switchenable !使用 tab 键自动补齐命令 Switchcon? configure connect ! 使用?显示当前模式下所有以con开头的命令 Switchconf t !使用命令的简写 Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# Switch(config)#interface ? ! 显示 interface 命令后可执行的参数

12、 fastetherne hostname 命令更改交换机的名称 Sw1(config)#banner motd $ !使用 banner motd 命令设置交换机的每日提示信息,参数 motd 指定以哪个字符为信息的结束符 Enter the text followed by the to finish Welcome to Sw1.If you are admin, you can config it. If you are not admin, please exit. Sw1(config)# 验证测试如下: Sw1(config)#exit Sw1#exit Sw1 con0 is

13、now available Press RETURN to get started. Welcome to Sw1.If you are admin, you can config it. If you are not admin, please exit. Sw1 步骤 5: 配置交换机接口状态。 交换机 Fastethernet 端口默认情况下是 10Mbps/100Mbps 自适应端口,传输模式也是半双工/全双工自适应。 默认情况下,所有端口均开启。 如果网络中的主机使用的是 100Mbps全双工的网卡,此时为了能够实现主机之间的正常访问,应当在交换机上进行相应的配置,把连接这些主机的交

14、换机端口速率设为 100Mbps,传输模式设为全双工。 首先,查看一下交换机的 Fastethernet 0/1 端口的状态信息,操作如下: Switch#show interfaces fastethernet0/1 显示结果如下: FastEthernet0/1 is up, line protocol is up Hardware is Fast Ethernet, address is 000C.5000.3333 (bia 000C.5000.3333) MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255

15、, 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 Queu

16、eing 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 p

17、ackets output, 429075 bytes, 0 underruns 0 output errors, 3 interface resets 0 output buffer failures, 0 output buffers swapped out 以上显示结果表明,默认情况下,交换机端口的传输模式和速率都是自适应的。 接下来对 Fastethernet 0/1 端口进行设置,操作如下: Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interf

18、ace fastethernet 0/1 Switch(config-if)#speed 100 !配置端口速率为 100 Mbps Switch(config-if)#duplex full !配置端口传输模式为全双工 Switch(config-if)#no shutdown Switch(config-if)#end Switch# 设置完成后再查看一下交换机的 Fastethernet 0/1 端口的状态信息,操作如下: Switch#show interfaces fastethernet0/1 显示结果如下: FastEthernet0/1 is up, line protocol

19、 is up Hardware is Fast Ethernet, address is 000C.5000.3333 (bia 000C.5000.3333) MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Full-duplex, 100Mb/s Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 02:29:44, output ne

20、ver, 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 in

21、put, 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 以上显示结果表明,交换机的 Fastetherne

22、t 0/1 端口传输模式已设置为全双工,速率为 100Mbps。 步骤 6: 查看交换机的系统和配置信息。 首先,查看交换机的系统版本信息,操作如下: Switchen Switch#show version 显示结果如下: Boson Operating Simulation Software BOSS (tm) C2900 Software (C2900-Enterprice), Version 12.1, RELEASE SOFTWARE Copyright (c) 1998-2003 by Boson Software, Inc. BOSS ROM: System Bootstrap,

23、 Version 12.2, RELEASE SOFTWARE Switch Uptime Is 0 days, 0 hours, 39 minutes System restarted by power-on System image file is flash: c2900-enterprise.12.1.boss, booted via flash Boson 2900 (BOSS) processor (revision 5.0) 12 FastEthernet/IEEE 802.3 interface(s) 32K bytes of simulated non-volatile co

24、nfiguration memory. 8192K bytes of simulated System flash (Read/Write) 然后可以查看交换机的 MAC 地址表信息,操作如下: Switch# show mac-address-table 显示结果如下: Mac Address Table - Vlan Mac Address Type Ports - - - - 1 000C.4861.1072 DYNAMIC Fa0/1 Total Mac Addresses for this criterion: 1 最后可以查看交换机当前生效的配置信息,操作如下: Switch#sh

25、ow running-config 显示结果如下: ! Version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Switch ip name-server 0.0.0.0 ! ! ! ip subnet-zero spanning-tree extend system-id ! interface FastEthernet0/1 speed 100 duplex full ! interface FastEtherne

26、t0/2 ! interface FastEthernet0/3 ! 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 ! vtp domain

27、 bigdomain interface Vlan 1 no ip address no ip route-cache shutdown ! ip classless no ip http server ! ! line con 0 transport input none line aux 0 line vty 0 15 步骤 7: 保存配置结果。 以下 3 条命令都可以保存配置结果。 Switch#copy running-config startup-config Switch#write memory Switch#write 13.3 本章小结 本章详细介绍了交换机命令行的操作模式,交换机的设备名称和每日提示信息的配置,交换机端口参数的基本配置以及查看交换机的系统和配置信息,保存配置结果。

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2