Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1009784
  • 博文数量: 179
  • 博客积分: 10080
  • 博客等级: 上将
  • 技术积分: 2580
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-10 09:26
文章分类

全部博文(179)

文章存档

2015年(1)

2014年(1)

2012年(1)

2011年(3)

2010年(14)

2009年(11)

2008年(10)

2007年(42)

2006年(96)

我的朋友

分类: 网络与安全

2015-05-11 14:19:22

今天手到一个48**换机, 没有不能进入web图形界面进行管理, 很不爽. 经与其他交换机对比, 原来缺少HTML文件夹内的文件. 经过努力, 终于从其他交换机的HTML导入新交换机内.

过程
新交换机操作步骤
用console进入交换机, 设置IP
CustomerSwitch>enable
CustomerSwitch#conf t
CustomerSwitch(config)#interface vlan 1
CustomerSwitch(config-if)#ip address 172.25.*.29 255.255.255.0
CustomerSwitch(config-if)#no shutdown
CustomerSwitch(config-if)#exit
CustomerSwitch(config)#ip default-gateway 172.25.*.1
CustomerSwitch(config)#end
建立權限等級為 15 的使用者帳戶(啟用特權)。
Router(config)# username privilege 15 password 0
取代為要設定的使用者名稱和密碼。

从windows电脑复制tar文件到交换机
013#copy tftp://windows.ip/ht.tar flahs:/xxxxx

解压缩一个tar文件:
archive tar/xtract xxx.tar flash: (解压缩整个tar,只能解到当前flash)
archive tar/xtract xxx.tar flash:/xxxxx (指定解压缩整个tar,或其中某个文件,目录)
解压后,重新进入web管理界面,故障交换机步骤完成。

正常交换机操作步骤

013#show flash

Directory of flash:/

    2  -rwx        1048  Aug 28 2014 15:44:56 +02:00  multiple-fs
    3  drwx         192  Apr 22 2015 08:50:47 +02:00  c2960-lanbase-mz.122-50.SE
  555  -rwx           5  Aug 28 2014 15:44:56 +02:00  private-config.text
  556  -rwx        3367  Aug 28 2014 15:44:56 +02:00  config.text

32514048 bytes total (21628416 bytes free)

013#dir c2960-lanbase-mz.122-50.SE
Directory of flash:/c2960-lanbase-mz.122-50.SE/

    4  drwx        4800   Mar 1 1993 01:04:46 +01:00  html
  553  -rwx     7434320   Mar 1 1993 01:06:44 +01:00  c2960-lanbase-mz.122-50.SE.bin
  554  -rwx         518   Mar 1 1993 01:06:44 +01:00  info

32514048 bytes total (21628416 bytes free)

013#archive tar /create ht.tar html

Directory of flash:/c2960-lanbase-mz.122-50.SE/

    4  drwx        4800   Mar 1 1993 01:04:46 +01:00  html
  553  -rwx     7434320   Mar 1 1993 01:06:44 +01:00  c2960-lanbase-mz.122-50.SE
.bin
  554  -rwx         518   Mar 1 1993 01:06:44 +01:00  info
  557  -rwx     3688448   May 9 2015 10:25:40 +02:00  ht.tar

在windows电脑运行tftpd32.exe. 获取到windows tftp IP
013#copy ht.tar tftp://windows.ip/ht.tar

正常交换机步骤完成。
下面内容参考。
013#show boot
BOOT path-list      : flash:c2960-lanbase-mz.122-50.SE/c2960-lanbase-mz.122-50.S
E.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)

最后附上TFTP.
tftpd32.zip
阅读(1303) | 评论(0) | 转发(0) |
0

上一篇:parser returned erroe 0x80070005

下一篇:没有了

给主人留下些什么吧!~~