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

加入VIP,省得不是一点点
 

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

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

下载须知

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

版权提示 | 免责声明

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

2900系列交换机配置命令.DOC

1、2900 系列交换机配置命令 查看交换机的信息 Switch# show run 全部配置信息 Switch# show version 版本信息 Switch# show interface vlan 1 IP 地址信息 Switch# show int 端口信息 Switch# show flash 闪存目录信息 删除配置信息到出厂配置 Switch#delete flash:vlan.dat 先删除 VLAN 配置文件 Switch#erase start 再删除全部配 置 Erasing the nvram filesystem will remove all files! Conti

2、nue? confirm OK Erase of nvram: complete Switch#reload 重新启动 Proceed with reload? confirm 保存配置 方法 1: Switch#write 方法 2: Switch#copy run start 设置主机名 Switch#conf t Switch(config)#hostname XXX 密码设置 1、设置进入控制台(用户模式)的密码 Switch(config)#line console 0 Switch(config-line)#pass cisco Switch(config-line)#login

3、2、设置远程登录 VTY 线路 密码 Switch(config-line)#line vty 0 4(或 15) Switch(config-line)#pass cisco Switch(config-line)#login 3、设置进入 ENABLE 特权模式的密码 Switch(config)#enable pass feng 明文密码 Switch(config)#enable secret cisco 加密密码 设置 IP地址和缺省网关 Switch(config)#int vlan1 Switch(config-if)#ip address 192.168.1.10 255.25

4、5.255.0 Switch(config-if)#no shutdown Switch(config-if)#exit Switch(config)#ip default-gateway 192.168.1.100 设置端口双工模式和速率 Switch(config)int f0/1 Switch(config-if)#duplex full|half|auto Switch(config-if)#speed 100|10|auto 启动 HTTP 服务 Switch(config) ip http server Switch(config) ip http port 80 查看 MAC 地

5、址表信息 Switch# show mac 配置端口安全性 Switch(config) int f0/10 1. 启动端 口安全 Switch(config-if)#switchport port-security 2. 设置端口最大可容纳的 MAC 地址个数 Switch(config-if)#switchport port-security max-mac-count 1 3. 设置地址违反时的处理方式 Switch(config-if)#switchport port-security violation shutdown|protect|restrict 4. 设置 端口上绑定的 M

6、AC 地址 Switch(config-if)#switchport port-security mac-address 1111.1111.1111 查看端口安全性配置 Switch# sh port-security address 查看绑定的安全地址 Switch# sh port-security int f0/1 查看安全端口 配置信息的保存 Switch#copy run start Destination filename startup-config? Building configuration. Switch#copy run tftp 配置信息的恢复 Switch#cop

7、y tftp run IOS 文件的保存 Switch#copy flash tftp IOS 文件的恢复 Switch#copy tftp flash 设置 VLAN Switch#conf t Switch(config)#vlan 3 Switch(config-vlan)#name vlan3 VLAN 3 added: Name: vlan3 Switch(config-vlan)#exit APPLY completed. Exiting. 将端口加入到 VLAN 中 Switch(config)#int f0/4 Switch(config-if)#switchport mode

8、 access Switch(config-if)#switchport access vlan 3 显示 VLAN信息 Switch#show vlan Switch#show vlan brief Switch#sh flash Directory of flash:/ 2 -rwx 1645810 Jul 18 2000 01:26:29 c2900XL-c3h2s-mz-120.5.2-XU.bin 3 -rwx 105970 Jul 18 2000 01:26:29 c2900XL-diag-mz-120.5.2-XU 4 drwx 6784 Jul 18 2000 01:26:30

9、 html 111 -rwx 720 Mar 01 1993 00:17:12 vlan.dat 112 -rwx 286 Jan 01 1970 00:00:24 env_vars 113 -rwx 1130 Mar 05 1993 16:56:45 config.sl 114 -rwx 0 Mar 01 1993 00:00:49 config.text 3612672 bytes total (833024 bytes free) 删除 VLAN Switch#conf t Switch(config)#no vlan 2 Deleting VLAN 2. Switch(config)#

10、no vlan 3 Deleting VLAN 3. Switch#delete flash:vlan.dat Delete filename vlan.dat? Delete flash:vlan.dat? confirm 配置 TRUNK Switch(config)# int f0/5 Switch(config-if)#switchport mode trunk 验证 TRUNK 配置 Switch#show int f0/1 switchport 启动 VTP Switch#conf t Switch(config)#vtp domain cisco Switch(config)#v

11、tp password cisco Switch(config)#vtp server Switch(config #vtp pruning 验证 VTP 配置 Switch#show vtp status Switch#show vtp counters STP 生成树协议配置 sl#sh span VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 24577 Address 0002.179A.87B9 Cost 19 Port 10(FastEthernet0/10) Hello Time 2 sec Max Ag

12、e 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 0002.1705.C1C7 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type - - - - - - Fa0/1 Desg FWD 19 128.1 P2p Fa0/5 Altn BLK 19 128.5 P2p Fa0/10 Root FWD 19

13、112.10 P2p 改变生成树协议类型 sl(config)#spanning-tree mode pvst 设置交换机为根桥 sl(config)#spanning-tree vlan 1 root primary 改变交换机的优先级 sl(config)#spanning-tree vlan 1 priority 4096 改变端口的 优先级 值 sl(config)#int f0/2 sl(config-if)#spanning-tree vlan 1 port-priority 112 sl#sh span datail VLAN0001 is executing the ieee

14、compatible Spanning Tree Protocol Bridge Identifier has priority of 32768, sysid 1, 0002.1705.C1C7 Configured hello time 2, max age 20, forward delay 15 Current root has priority 24577 Root port is 10 (FastEthernet0/10), cost of root path is 19 Topology change flag not set, detected flag not set Num

15、ber of topology changes 0 last change occurred 00:00:00 ago from FastEthernet0/1 Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Timers: hello 0, topology change 0, notification 0, aging 300 Port 5 (FastEthernet0/5) of VLAN0001 is designated blocking Port path

16、 cost 19, Port priority 128, Port Identifier 128.5 Designated root has priority 112, address 000B.BEDC.400A Designated bridge has priority 24577, address 0002.179A.87B9 Designated port id is 128.5, designated path cost 19 Timers: message age 16, forward delay 0, hold 0 Number of transitions to forwa

17、rding state: 1 Link type is point-to-point by default Port 10 (FastEthernet0/10) of VLAN0001 is designated forwarding Port path cost 19, Port priority 112, Port Identifier 112.10 Designated root has priority 112, address 000B.BEDC.400A Designated bridge has priority 24577, address 0002.179A.87B9 Des

18、ignated port id is 112.10, designated path cost 19 Timers: message age 16, forward delay 0, hold 0 Number of transitions to forwarding state: 1 Link type is point-to-point 交换机密码恢复 关闭交换机电源后,按着交换机 Mode 按钮再次打开电源 The system has been interrupted prior to initializing the flash filesystem. The following c

19、ommands will initialize the flash filesystem, and finish loading the operating system software: flash_init load_helper boot switch: flash_init Initializing Flash. flashfs0: 167 files, 2 directories flashfs0: 0 orphaned files, 0 orphaned directories flashfs0: Total bytes: 3612672 flashfs0: Bytes used

20、: 3591680 flashfs0: Bytes available: 20992 flashfs0: flashfs fsck took 8 seconds. .done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4switch: flash_init switch: load_helper switch: dir flash: Directory of flash:/ 2 drwx 704 htm

21、l 5 -rwx 1751867 c3500XL-c3h2s-mz.120-5.WC3b.bin 17 -rwx 94375 c3500XL-hdiag-mz-120.5.3.WC.1 19 -rwx 804 vlan.dat 21 -rwx 1253 config.text switch: rename flash:config.text flash:config.old switch: boot 交换机重启后,出现提示: Continue with configuration dialog? yes/no:N switchenable Switch#rename flash:config.

22、old flash:config.text Destination filename config.text?Y Switch#copy flash:config.text system:running-config Destination filename running-config? Y Switch#configure terminal Switch(config)#no enable secret Switch(config)#enable secret 新口令 Switch(config)#Z Switch#Switch#copy running-config startup-co

23、nfig 交换机 ios 恢复全过程 关闭交换机电源后,按着交换机 Mode 按钮再次打开电源 The system has been interrupted prior to initializing the flash filesystem. The following commands will initialize the flash filesystem, and finish loading the operating system software: flash_init load_helper boot switch: flash_init Initializing Flash

24、. flashfs0: 167 files, 2 directories flashfs0: 0 orphaned files, 0 orphaned directories flashfs0: Total bytes: 3612672 flashfs0: Bytes used: 3591680 flashfs0: Bytes available: 20992 flashfs0: flashfs fsck took 8 seconds. .done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Param

25、eter Block Filesystem (pb:) installed, fsid: 4switch: flash_init switch: load_helper 输入后无提示 输入拷贝指令: switch: copy xmodem: flash:c3500xl-c3h2s-mz.120-5.wc5.bin 出现如下提示: Begin the Xmodem or Xmodem-1K transfer now. 系统提示 不断出现 C 这个字母就可以开始传文件了 点击超级终端菜单:传送 -发送文件,在协议选项中选择 Xmodem 或者 Xmodem-1K协议,然后选择 ios 的影像文件( *.bin),开始传送。 因为不能改速率,所以传送得很慢,传送完毕后提示: File “xmodem:“ sUCcessfully copied to “flash:c3500xl-c3h2s-mz.120-5.wc5.bin“ switch: 在提示符下输入 switch:boot 启用新的 ios 系统 重新加电完成恢复工作。

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。