




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验一 交换机的基本操作1.实验目的(1) 熟悉交换机CLI 的各种模式(2) 熟悉交换机CLI 各种编辑命令(3) 掌握交换机的IOS 基本命令:使能密码、以太接口配置(4) 查看交换机的有关信息(5) 熟悉TFTP 服务器的使用(6) 熟悉备份交换机的配置文件(7) 掌握备份交换机的IOS(8) 熟悉交换机的远程登录2.实验设备 交换机一台,电脑一台,网线若干。3.实验拓扑结构图1.14.实验过程4.1超级终端与交换机互联设置4.1.1点击系统的开始程序附件通讯超级终端,进行超级终端连接,如图1.2所示。图 图 弹出连接说明对话框时,为新建的连接输入名称并为
2、该连接选择图标。如图1.4所示。图根据配置线所连接的串行口,选择连接串行口为COM1(依实际情况选择PC机所使用的串口)。如图1.5所示。图设置所选串行口的端口属性端口属性的设置主要包括以下内容:波特率“9600”,数据位“8”,奇偶校验“无”,停止位“1”,数据流控制“无”,如图1.6所示。图检查前面设定的各项参数正确无误后,交换机就可以加电启动,进行系统的初始化,进入配置模式进行操作。可以看到如下界面:Welcome !.4.2交换机的基本操作4.2.1 模式切换Switch>Switch>enSwitch#config tEnt
3、er configuration commands, one per line. End with CNTL/Z.Switch(config)#Switch(config)#interface fa0/1Switch(config-if)#exitSwitch(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleSwitch#disableSwitch>4.2.2ip地址设置Switch>enSwitch#config tEnter configuration commands, one per line.
4、End with CNTL/Z.Switch(config)#ip default-gateway 53Switch(config)#interface vlan 1Switch(config-if)#ip address 54 Switch(config-if)#no shut%LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to
5、upSwitch(config-if)#end4.2.3接入端口设置Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#interface fa0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 1Switch(config)#interface fa0/2Switch(config-if)#switchport mode accessSwitch(conf
6、ig-if)#switchport access vlan 1Switch(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleSwitch#copy running-config startup-config Destination filename startup-config? Building configuration.OKSwitch#4.2.4 验证交换机配置Switch#show running-config Building configuration.Current configuration :
7、 1083 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Switch!interface FastEthernet0/1 switchport mode access!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet
8、0/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 FastEthernet0/16!int
9、erface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1 ip address 19
10、54 !ip default-gateway 53!line con 0!line vty 0 4 loginline vty 5 15 login!EndSwitch#show startup-config Using 1048 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Switch!interf
11、ace FastEthernet0/1 switchport mode accessSwitch#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/1 unassigned YES manual up up FastEthernet0/2 unassigned YES manual up up FastEthernet0/3 unassigned YES manual down down FastEthernet0/4 unassigned YES manual down
12、down FastEthernet0/5 unassigned YES manual down down FastEthernet0/6 unassigned YES manual down downSwitch#show mac-address-table Mac Address Table-Vlan Mac Address Type Ports- - - -Switch#show interfaces fa0/1FastEthernet0/1 is up, line protocol is up (connected) Hardware is Lance, address is 0002.
13、4ad4.0601 (bia 0002.4ad4.0601) BW 100000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s input flow-control is off, output flow-control is off ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:0
14、8, output 00:00:05, 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: fifoSwitch#show flash: Directory of flash:/ 1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin64016384
15、bytes total (59601463 bytes free)Switch#show version Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2005 by Cisco Systems, Inc.Compiled Wed 12-Oct-05 22:05 by pt_teamROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEAS
16、E SOFTWARE (fc4)System returned to ROM by power-onCisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.24 FastEthernet/IEEE 802.3 interface(s)2 Gigabit Ethernet/IEEE 802.3 interface(s)63488K bytes of flash-simulated non-volatile configuration memory.Base ethernet MAC Add
17、ress : 000C.8506.4602Motherboard assembly number : 73-9832-06Power supply part number : 341-0097-02Motherboard serial number : FOC103248MJPower supply serial number : DCA102133JAModel revision number : B0Motherboard revision number : C0Model number : WS-C2960-24TTSystem serial number : FOC1033Z1EYTo
18、p Assembly Part Number : 800-26671-02Top Assembly Revision Number : B0Version ID : V02CLEI Code Number : COM3K00BRAHardware Board Revision Number : 0x01Switch Ports Model SW Version SW Image- - - - -* 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-MConfiguration register is 0xFSwitch# show history copy runni
19、ng-config startup-config conf t show running-config show ip interface brief show mac-address-table show interfaces fa0/1 show startup-config show flash: show version show history4.2.5帮助系统Switch#cl?clear clock Switch#clock ? set Set the time and dateSwitch#clock set ? hh:mm:ss Current TimeSwitch#cloc
20、k set 11?hh:mm:ss Switch#clock set 11:12:12% Incomplete command.Switch#clock set 11:12:12 ? <1-31> Day of the month MONTH Month of the yearSwitch#clock set 11:12:12 1 july ? <1993-2035> YearSwitch#clock set 11:12:12 1 july 2012Switch#show clock *11:12:16.735 UTC ? ? 1 20124.2.6双工与速度Switc
21、h#Switch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#intSwitch(config)#interface fa0/2Switch(config-if)#dupSwitch(config-if)#duplex ? auto Enable AUTO duplex configuration full Force full duplex operation half Force half-duplex operationSwitch(config-if)#duplex
22、 autoSwitch(config-if)#speed ? 10 Force 10 Mbps operation 100 Force 100 Mbps operation auto Enable AUTO speed configurationSwitch(config-if)#speed 1004.2.7配置备份与还原Switch#copy startup-config tftp Address or name of remote host ? Destination filename Switch-confg? Writing startup-config.!OK
23、- 1048 bytes1048 bytes copied in 3.078 secs (0 bytes/sec)Switch#copy tftp: running-config Address or name of remote host ? Source filename ? Switch-confgDestination filename running-config? Accessing t/Switch-confg.Loading Switch-confg from : !OK - 1048 bytes104
24、8 bytes copied in 0.031 secs (33806 bytes/sec)4.2.8操作系统备份与还原Switch#show flash: Directory of flash:/ 1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin64016384 bytes total (59601463 bytes free)Switch#copy flash: tftpSource filename ? c2960-lanbase-mz.122-25.FX.binAddress or name of remote
25、host ? Destination filename c2960-lanbase-mz.122-25.FX.bin? Writing c2960-lanbase-mz.122-25.FX.bin.!OK - 4414921 bytes4414921 bytes copied in 2.703 secs (1633000 bytes/sec)Switch#copy tftp flashAddress or name of remote host ? Source filename ? c2960-lanbase-mz.122-25.FX.binDestination filename c2960-lanbase-mz.122-25.FX.bin? %Warning:There is a file already existing with this nameDo you want to over write? confirmErase flash: before copying? confirmErasing the flash filesystem will remove all files! Continue? confirmErasing device. eeeeeeeeeeeeeeeeeeeeeeeeeee
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 预算员个人品牌建设试题及答案
- 高效复习电子商务教师资格试题及答案
- 马工学管理学人际关系管理技巧试题及答案
- 全新备考中职电商教师资格考试试题及答案
- 2024年监理工程师考试重点解析试题及答案
- 动物临床病例的综合评估试题及答案
- 马工学管理学的服务质量提升试题及答案
- 2025-2030中国食品气雾剂行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国骨块固定套件行业市场现状供需分析及投资评估规划分析研究报告
- 2025-2030中国香料烟行业发展分析及发展趋势预测与投资风险研究报告
- 初级会计实务全书电子教案
- 2025年安徽安徽省合肥汽车客运有限公司招聘笔试参考题库含答案解析
- 武汉市部分学校2024-2025学年下学期3月考七年级数学试题(含答案)
- 医疗机构相关法律法规培训PPT课件(医疗卫生与健康促进法、医师法、处方管理办法、传染病防治法、职业病防治法、医疗纠纷)
- 中国文学理论批评史全套教学课件
- 餐饮业成本核算 全套课件
- 三相异步电动机的速度控制
- 供电所线损的基本概念和管理
- 【实用版】GF-2013-0201建设工程施工合同(示范文本)
- 【资料】某企业设有供电和供水两个辅助生产车间,为全厂提
- 某集团PDMPLM项目评分标准及评分表
评论
0/150
提交评论