更新 cisco catalyst switch IOS

1. 將ios 檔案放在 tftp server 

2. 登入 cisco switch 
(1) 測試是否可以連上 tftp server
sw3750#ping 10.1.2.26
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.26, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

(2) dir 列出目前 flash 上的檔案
sw3750#dir
Directory of flash:/

    2  drwx         256   Mar 1 1993 00:08:18 +00:00  c3750-ipservicesk9-mz.150-2.SE11
  528  -rwx         110   Mar 1 1993 00:14:45 +00:00  info
  530  -rwx         796   Mar 2 1993 04:51:48 +00:00  vlan.dat
  531  -rwx        4120   Mar 1 1993 00:02:43 +00:00  multiple-fs
  532  -rwx        3012   Mar 1 1993 00:02:43 +00:00  config.text
  533  -rwx        3817   Mar 1 1993 00:02:43 +00:00  private-config.text

32514048 bytes total (10212864 bytes free)

(3) 移除原來存在 flash 的檔案
sw3750#delete /f /r flash1:c3750-ipservicesk9-mz.150-2.SE11

(4) 再次確認是否已經移除
sw3750#dir
Directory of flash:/

  528  -rwx         110   Mar 1 1993 00:14:45 +00:00  info
  530  -rwx         796   Mar 2 1993 04:51:48 +00:00  vlan.dat
  531  -rwx        4120   Mar 1 1993 00:02:43 +00:00  multiple-fs
  532  -rwx        3012   Mar 1 1993 00:02:43 +00:00  config.text
  533  -rwx        3817   Mar 1 1993 00:02:43 +00:00  private-config.text

32514048 bytes total (32499712 bytes free)

(5) 從 tftp server 上傳ios 檔案到 switch 的 flash 上
sw3750#copy tftp flash1
Address or name of remote host []? 10.1.2.26
Source filename []? c3750-ipbasek9-mz.122-55.SE12.bin
Destination filename [flash1]? c3750-ipbasek9-mz.122-55.SE12.bin
Accessing tftp://10.1.2.26/c3750-ipbasek9-mz.122-55.SE12.bin...
Loading c3750-ipbasek9-mz.122-55.SE12.bin from 10.1.2.26 (via Vlan254): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 12111413 bytes]

12111413 bytes copied in 140.065 secs (86470 bytes/sec)

(6) 檢查上傳結果
sw3750#dir
Directory of flash:/

    2  -rwx    12111413   Mar 1 1993 16:23:12 +00:00  c3750-ipbasek9-mz.122-55.SE12.bin
  528  -rwx         110   Mar 1 1993 00:14:45 +00:00  info
  530  -rwx         796   Mar 2 1993 04:51:48 +00:00  vlan.dat
  531  -rwx        4120   Mar 1 1993 00:02:43 +00:00  multiple-fs
  532  -rwx        3012   Mar 1 1993 00:02:43 +00:00  config.text
  533  -rwx        3817   Mar 1 1993 00:02:43 +00:00  private-config.text

32514048 bytes total (20387840 bytes free)

(7) sh boot 檢查 BOOT path-list 狀態,目前是空的
sw3750#sh boot
BOOT path-list      :
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   524288
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)

(8) 指定開機的 IOS
sw3750(config)#boot system switch all flash:c3750-ipbasek9-mz.122-55.SE12.bin
sw3750(config)#end
sw3750#show boot
BOOT path-list      : flash:c3750-ipbasek9-mz.122-55.SE12.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   524288
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)

(9) 存檔,重開機
sw3750#write
Building configuration...
[OK]

sw3750#reload
Proceed with reload? [confirm]y

undefined

 

arrow
arrow
    文章標籤
    cisco ios catalyst switch
    全站熱搜
    創作者介紹
    創作者 helloworld 的頭像
    helloworld

    Hello World

    helloworld 發表在 痞客邦 留言(0) 人氣()