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

加入VIP,免费下载
 

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

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

下载须知

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

版权提示 | 免责声明

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

交换机的基本配置.docx

1、交换机的基本配置第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-address-table命令:查看交换机当前的MAC地址表信息。交换机命令行支持获取帮助信息、命令的简写、命令的自动补齐、快捷键功能。13.

4、2 实验内容1.实验目的掌握交换机命令行各种操作模式的区别,以及模式之间的切换。能够使用各种帮助信息,以及用命令进行基本的配置操作,包括交换机全局配置模式下设备的命名和每日提示信息的设置,交换机端口常用参数的配置,查看交换机系统和配置信息,掌握当前交换机的工作状态。 2.实验内容(1)在Boson Network Designer中做出网络拓扑结构图。(2)通过交换机命令实现四种模式(用户模式、特权模式、全局配置模式、端口模式)之间的切换。(3)用命令hostname给交换机改名。(4)用命令banner motd给交换配置每日提示信息。(5)用命令duplex配置端口的工作模式(full为全

5、双工,half为半双工,auto为自适应)。(6)用命令speed配置端口的速率(100为100Mbps,10为10Mbps,auto为自适应)。(7)用命令show running-config查看交换机当前生效的配置信息。(8)用命令show interface fastethernet 0/1查看交换机端口的配置信息。 3.实验环境Windows xp操作系统,Boson Netsim模拟器。 4.实验设备 S2950交换机一台,PC机一台。 5.实验步骤步骤1:在Boson Network Designer中画出网络拓扑,将一台S2950交换机与PC相连,如图13-1所示,以7.top

6、为名存盘。打开Boson Netsim模拟器,选择“File”菜单下的“Load NetMap”命令,找到7.top文件,加载到模拟器中。图13-1 交换机的基本配置实验拓扑图步骤2:通过交换机命令实现四种模式(用户模式、特权模式、全局配置模式、端口模式)之间的切换。首先单击工具栏上“eSwitches”下的“Switch1”,启动加载交换机,进入用户模式,输入“enable”命令,进入特权模式。在特权模式下输入“configure terminal”命令,进入全局配置模式。在全局配置模式下输入“interface fastethernet 0/1”进入到交换机的0/1快速以太网接口。然后输入

7、“exit”命令,从端口模式退回到全局配置模式。再输入“exit”命令,从全局配置模式退回到特权模式。然后按照同样方法进入到交换机的0/2快速以太网接口。然后输入“end”命令,直接从端口模式退回到特权模式。操作如下:SwitchSwitchenableSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#interface fastethernet 0/1Switch(config-if)#exitSwitch(config)#exitSwitch

8、#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#interface fastethernet 0/2Switch(config-if)#endSwitch#exitPress RETURN to get started.Switch步骤3:交换机命令行界面的基本功能。操作如下:用“?”显示当前模式下所有可执行的命令。Switch? enable Turn on privileged commandsexit Exit from the EXEClogout

9、 Exit from the EXECping Send echo messagestelnet Open a telnet connectionshow show running system informationtraceroute Trace route to destinationhelp Description of the interactive help systemaccess-enable Create a temporary Access-List entryconnect Open a terminal connectionlock Lock the terminalr

10、command Run command on remote switchsystat Display information about terminal linestunnel Open a tunnel connection以上显示结果左边一列是交换机用户模式下所有可操作的命令,右边一列是对左边命令的解释说明。在交换机的用户模式下还可以操作以下命令:Switchen Switchenable !使用tab键自动补齐命令Switchcon?configure connect ! 使用?显示当前模式下所有以“con”开头的命令Switchconf t !使用命令的简写Enter configu

11、ration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#interface ? ! 显示interface命令后可执行的参数fastethernet FastEthernetrange interface range commandSwitch(config)#interface fastethernet 0/1Switch(config-if)# Z !使用快捷键“Ctrl+Z”可以直接退回到特权模式Switch # 步骤4:配置交换机的名称和每日提示信息。操作如下:Switch(config)

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

13、lablePress 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全双工的网卡,此时为了能够实现主机之间的正常访问,应当在交换机上进行相应的配置,把连接这些主机的交换机端口速率设为100Mbps,传输模式设为全

14、双工。首先,查看一下交换机的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, txload 1/255, rxload 1/255 A

15、uto-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 q

16、ueue: 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,

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

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

19、00C.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 never, output hang never Last clearing of “show

20、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 bro

21、adcasts, 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以上显示结果表明,交换机的Fastethernet 0/1端口传输模式已设置为全双工,速率为100Mbps。步骤6:查看交换机的系统和配置信

22、息。首先,查看交换机的系统版本信息,操作如下:SwitchenSwitch#show version显示结果如下:Boson Operating Simulation SoftwareBOSS (tm) C2900 Software (C2900-Enterprice), Version 12.1, RELEASE SOFTWARECopyright (c) 1998-2003 by Boson Software, Inc.BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARESwitch Uptime Is 0 days, 0 h

23、ours, 39 minutesSystem restarted by power-onSystem image file is “flash: c2900-enterprise.12.1.boss”, booted via flashBoson 2900 (BOSS) processor (revision 5.0)12 FastEthernet/IEEE 802.3 interface(s)32K bytes of simulated non-volatile configuration memory.8192K bytes of simulated System flash (Read/

24、Write)然后可以查看交换机的MAC地址表信息,操作如下:Switch# show mac-address-table显示结果如下: Mac Address Table -Vlan Mac Address Type Ports- - - - 1 000C.4861.1072 DYNAMIC Fa0/1Total Mac Addresses for this criterion: 1最后可以查看交换机当前生效的配置信息,操作如下:Switch#show running-config显示结果如下:!Version 12.1service timestamps debug uptimeservic

25、e timestamps log uptimeno service password-encryption!hostname Switchip name-server 0.0.0.0!ip subnet-zerospanning-tree extend system-id!interface FastEthernet0/1 speed 100 duplex full !interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface

26、FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12! vtp domain bigdomaininterface Vlan 1 no ip address no ip route-cache shutdown!ip classlessno ip http server!line con 0 transport input noneline aux 0line vty 0 15步骤7:保存配置结果。以下3条命令都可以保存配置结果。Switch#copy running-config startup-configSwitch#write memorySwitch#write13.3 本章小结 本章详细介绍了交换机命令行的操作模式,交换机的设备名称和每日提示信息的配置,交换机端口参数的基本配置以及查看交换机的系统和配置信息,保存配置结果。

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1