IPアドレス設定
-コマンド例
switch: set IP_ADDR 192.168.1.1/255.255.255.0
デフォルトルートのIPアドレス設定
-コマンド例
switch: set DEFAULT_ROUTER 192.168.1.254
ping確認
pingコマンドを実行して、TFTP サーバに ping を実行できることを確認します。
-コマンド例
switch: ping 192.168.1.100
ping 192.168.1.100 with 32 bytes of data…
Host 192.168.1.100 is alive.
TFTP経由でOSを起動する
emergency-installコマンドでスイッチでソフトウェア イメージを回復できます。
-コマンド例
Switch#
emergency-install tftp://192.168.1.100/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin
The bootflash will be erased during install operation, continue (y/n)?y
Starting emergency recovery (tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SPA.03.02.00.SE.150-1.EX.bin)…
Reading full image into memory………………….done
Nova Bundle Image
————————————–
Kernel Address : 0x6042e5cc
Kernel Size : 0x318261/3244641
Initramfs Address : 0x60746830
Initramfs Size : 0xdb0fb9/14356409
Compression Format: .mzip
Bootable image at @ ram:0x6042e5cc
Bootable image segment 0 address range [0x81100000, 0x81b80000] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
File “sda9:c3850-recovery.bin” uncompressed and installed, entry point: 0x811060f0
Loading Linux kernel with entry point 0x811060f0 …
Bootloader: Done loading app on core_mask: 0xf
### Launching Linux Kernel (flags = 0x5)
Initiating Emergency Installation of bundle tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin
Downloading bundle tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin…
Validating bundle tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin…
Installing bundle tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin…
Verifying bundle tftp://192.168.1.100/cat3k/cat3k_caa-universalk9.SSA.03.12.02.EZP.150-12.02.EZP.150-12.02.EZP.bin…
Package cat3k_caa-base..pkg is Digitally Signed
Package cat3k_caa-drivers.SPA.03.02.00.SE.pkg is Digitally Signed
Package cat3k_caa-infra.SPA.03.02.00.SE.pkg is Digitally Signed
Package cat3k_caa-iosd-universalk9.SPA.03.02.00.SE.pkg is Digitally Signed
Package cat3k_caa-platform.SPA.03.02.00.SE.pkg is Digitally Signed
Package cat3k_caa-wcm.SPA.03.02.00.SE.pkg is Digitally Signed
Preparing flash…
Syncing device…
Emergency Install successful… Rebooting
Restarting system.
Booting…(use DDR clock 667 MHz)Initializing and Testing RAM +++@@@@####…++@@++@@++@@++@
コメント