Обновление IOS через tftp

Привезли маршрутизатор Cisco 2811 и дали указание залить более новый IOS. Ок, сделаем. Поднял на ноутбуке (стоит xubuntu 11.04) tftp-сервер:

sudo apt-get install tftpd-hpa

Потом привел /etc/default/tftpd-hpa в такой вид:

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="10.0.1.195:69"
TFTP_OPTIONS="-p -v -v -v -c -s"

Дальше перезапустил tftpd:

sudo /etc/init.d/tftpd-hpa restart

На самом маршрутизаторе поставил IP-адрес из своей внутренней сетки:

2811#conf t
2811(config)#int Fa0/0
2811(config-if)#no shut
2811(config-if)#ip address 10.0.1.102 255.255.255.252
2811(config-if)#end

Посмотрел, под каким именем лежит IOS на флешке:

2811#sh flash


CompactFlash directory:
File Length Name/status
1 59374168 c2800nm-adventerprisek9-mz.124-24.T.bin
[59374232 bytes used, 4851044 available, 64225276 total]
62720K bytes of ATA CompactFlash (Read/Write)

После этого, на всякий случай, сохранил предыдущий IOS на ноутбук:

2811#copy flash tftp
Source filename [c2800nm-adventerprisek9-mz.124-24.T.bin]?
Address or name of remote host []? 10.0.1.195
Destination filename [c2800nm-adventerprisek9-mz.124-24.T.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
59374168 bytes copied in 228.896 secs (259394 bytes/sec)

Удалил его:

2811#delete flash:c2800nm-adventerprisek9-mz.124-24.T.bin
Delete filename [c2800nm-adventerprisek9-mz.124-24.T.bin]?
Delete flash:c2800nm-adventerprisek9-mz.124-24.T.bin? [confirm]
2811#show flash


CompactFlash directory:
File Length Name/status
1 59374168 c2800nm-adventerprisek9-mz.124-24.T.bin [deleted]
[59374232 bytes used, 4851044 available, 64225276 total]
62720K bytes of ATA CompactFlash (Read/Write)

И залил новый:

2811#copy tftp://10.0.1.195/c2800nm-adventerprisek9-mz.124-25f.bin flash:
Destination filename [c2800nm-adventerprisek9-mz.124-25f.bin]?
Accessing tftp://10.0.1.195/c2800nm-adventerprisek9-mz.124-25f.bin...

Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Erase of flash: complete
Loading c2800nm-adventerprisek9-mz.124-25f.bin from 10.0.1.195 (via FastEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 39866256 bytes]


Verifying checksum... CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC OK (0xB9E)
39866256 bytes copied in 502.632 secs (79315 bytes/sec)
2811#sh flash


CompactFlash directory:
File Length Name/status
1 39866256 c2800nm-adventerprisek9-mz.124-25f.bin
[39866320 bytes used, 24358956 available, 64225276 total]
62720K bytes of ATA CompactFlash (Read/Write)

И, под конец, указал системе, что надо грузить именно этот IOS, сохранил конфигурацию и перезагрузил маршрутизатор:

2811#conf t
2811(config)#boot system flash:c2800nm-adventerprisek9-mz.124-25f.bin
2811(config)#end
2811#wr me
Building configuration...


[OK]
2811#reload
Proceed with reload? [confirm]

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *