在 Cisco 2911 中的一个 SRE 模块上安装 SRE-V 软件时,它在加载 Linux 内核后始终无法下载最终文件。
这些是来自路由器的接口配置:
interface SM1/0
ip address 192.168.201.1 255.255.255.0
service-module ip address 192.168.201.2 255.255.255.0
service-module ip default-gateway 192.168.201.1
interface SM1/1
description Internal switch interface connected to Service Module
switchport mode trunk
no ip address
它通过另一个 2911 连接到我运行 Python 的 SimpleHTTPServer 的笔记本电脑。在两个路由器上设置路由,以便我的本地子网可以访问 SM1/0 IP。
路由器加载安装程序并毫无问题地启动它:
Router#service-module sm1/0 install url http://172.21.49.155:8000/sre-v-k9-r.SPA.smv.2.0.1.pkg
Proceed with installation? [no]: yes
Loading http://172.21.49.155:8000/sre-v-k9-r.SPA.smv.2.0.1.pkg.install.sre !
Service module installation
ios_version 15.2(4)M2,
ios_image c2900-universalk9-mz
pkg_name sre-v-k9-r.SPA.smv.2.0.1.pkg
key_file sre-v-k9-r.SPA.smv.2.0.1.key
helper_file sre-v-installer.SPA.smv.2.0.1
pid SM-SRE-900-K9
Check target platform capabilities
cpu 1865
Please select disk configuration (-1 = nonraid, 0 = raid0, 1 = raid1 ) [-1]: 1
Resource check completed successfully. Proceeding to Install ...
Router#
在监视 SRE 会话时,它会下载并启动内核:
Initializing memory #1. Please wait...
Initializing memory #2. Please wait...
This may take a minute....
Serial ATA Port 0 : Hitachi HTE545050B9A300
Serial ATA Port 1 : Hitachi HTE545050B9A300
DDR Memory 8192 MB detected
Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
BIOS SM 3.52.8, BIOS Build date: 02/08/2011
Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
BIOS SM 3.52.8, BIOS Build date: 02/08/2011
System now booting...
Please wait...
Please press P to select Primary Boot Loader ...
or S to select Secondary Boot Loader ...
or wait to boot from default configuration ...
.......................................................................................................
Now booting from primary boot loader (Default)....
Authenticating boot loader....
Primary Boot Loader Authenticated - booting....
boot params not set.
Updating flash with bootloader configuration.
Please wait ................... done.
Please enter '***' to change boot configuration:
Detect and Initialize network device
Backup current platform configurations....
Updating flash with bootloader configuration.
Please wait ................... done.
SRE step 1 - SM registration...
Finding (hd1,3)/296e03bc-3236-4a68-a178-688e56400a1e, failed
Local install not supported
SRE step 2 - SM requests key file info...
SRE step 3 - SM stores registration info...
Updating flash with bootloader configuration.
Please wait ................... done.
SRE step 4 - SM downloads key-file...
Writing keyfile to flash Size 916
writing complete.
Updating flash with bootloader configuration.
Please wait ................... done.
Erasing Post config Flash
SRE step 5 - SM requests installer info...
SRE step 6 - SM stores installer info...
Updating flash with bootloader configuration.
Please wait ................... done.
SRE step 7 - SM now downloads installer
| done.
SRE step 8 - SM requests tcl header file info...
SRE step 9 - SM now downloads the tcl header file
TCL header file downloaded completely size: 698
SRE step 10 - SM requests tcl file info...
SRE step 11 - SM now downloads the tcl file
TCL file downloaded completely size: 6520
SRE step 12 - SM now boots Installer
Verifying ... done.
Starting Kernel.
Platform: sm
INIT: version 2.86 booting
mounting proc fs ...
mounting sys fs ...
mounting /dev/shm tmpfs ...
kernel.sem = 1900 4000 32 100
vm.overcommit_memory = 1
Welcome to Cisco Service Engine
Setting the system time from hardware clock
********** rc.aesop ****************
Populating resource values from /etc/sm_rsrc_file
Populating resource values from /etc/default_rsrc_file
Populating resource values from /usr/etc/products/galactica/default_rsrc_file
Populating resource values from /usr/etc/products/galactica/sm_rsrc_file
==> Management interface is eth0
==> Management interface is eth0
IOS IP Address Registration complete.
路由表是正确的,我可以在 eth0 上 ping SM 的 IP:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.201.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.201.1 0.0.0.0 UG 0 0 0 eth0
SM-SRE-900-K9 is in IDE mode
但最终下载失败:
INIT: Entering runlevel: 2
********** rc.post_install ****************
Changing owners and file permissions.
Change owners and permissions complete.
INIT: Switching to runlevel: 4
INIT: Sending processes the TERM signal
STARTED: dwnldr_startup.sh
sre_type= 1
Welcome to Cisco Systems Service Engine Helper Software
userinput= disk-cfg-mode=raid1
Downloading http sre-v-k9-r.SPA.smv.2.0.1.pkg
SM1/0 is reset due to
Can not download sre-v-k9-r.SPA.smv.2.0.1.pkg
error code 0 : error type 'couldn't connect to host'.
Error: Download error
Can not download sre-v-k9-r.SPA.smv.2.0.1.pkg
error code 0 : error type 'couldn't connect to host'
Unable to install. Please try again.
我尝试了许多不同的配置来完成这项工作,但在加载内核后,没有一个可以通过最终下载。我什至尝试使用完全相同的设置加载 WLC 软件包......并且它顺利加载:
Router#service-module sm1/0 install url http://172.21.49.155:8000/AS_SMWLC_7_4_110_0.aes
Proceed with installation? [no]: yes
Loading http://172.21.49.155:8000/AS_SMWLC_7_4_110_0.aes.install.sre Welcome to WLC installation checking resource requirements now
Resource check complete proceeding with installation
Router#
[Resuming connection 1 to 192.168.201.1 ... ]
Detect and Initialize network device
Initializing memory #1. Please wait...
Initializing memory #2. Please wait...
This may take a minute....
Serial ATA Port 0 : Hitachi HTE545050B9A300
Serial ATA Port 1 : Hitachi HTE545050B9A300
DDR Memory 8192 MB detected
Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
BIOS SM 3.52.8, BIOS Build date: 02/08/2011
Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
BIOS SM 3.52.8, BIOS Build date: 02/08/2011
System now booting...
Please wait...
Please press P to select Primary Boot Loader ...
or S to select Secondary Boot Loader ...
or wait to boot from default configuration ...
.......................................................................................................
Now booting from primary boot loader....
Authenticating boot loader....
Primary Boot Loader Authenticated - booting....
Please enter '***' to change boot configuration:
Detect and Initialize network device
Backup current platform configurations....
SRE step 1 - SM registration...
Finding (hd1,3)/296e03bc-3236-4a68-a178-688e56400a1e, failed
Local install not supported
SRE step 2 - SM requests key file info...
SRE step 3 - SM stores registration info...
SRE configuration keeps the same. No flash update needed!
SRE step 4 - SM downloads key-file...
Writing keyfile to flash Size 914
writing complete.
Updating flash with bootloader configuration.
Please wait .................... done.
Erasing Post config Flash
SRE step 5 - SM requests installer info...
SRE step 6 - SM stores installer info...
Updating flash with bootloader configuration.
Please wait .................... done.
SRE step 7 - SM now downloads installer
\ done.
SRE step 8 - SM requests tcl header file info...
SRE step 9 - SM now downloads the tcl header file
TCL header file downloaded completely size: 690
SRE step 10 - SM requests tcl file info...
SRE step 11 - SM now downloads the tcl file
TCL file downloaded completely size: 2819
SRE step 12 - SM now boots Installer
Verifying ... done.
Starting Kernel.
Platform: sm
INIT: version 2.86 booting
mounting proc fs ...
mounting sys fs ...
mounting /dev/shm tmpfs ...
kernel.sem = 1900 4000 32 100
vm.overcommit_memory = 1
Welcome to Cisco Service Engine
Setting the system time from hardware clock
********** rc.aesop ****************
Populating resource values from /etc/sm_rsrc_file
Populating resource values from /etc/default_rsrc_file
==> Management interface is eth0
==> Management interface is eth0
IOS IP Address Registration complete.
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.201.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.201.1 0.0.0.0 UG 0 0 0 eth0
Size of buff is: 65536
65536 bytes written
Valid License file not found: Using default values
INIT: Entering runlevel: 2
********** rc.post_install ****************
Changing owners and file permissions.
Change owners and permissions complete.
INIT: Switching to runlevel: 4
INIT: Sending processes the TERM signal
STARTED: dwnldr_startup.sh
You are about to repartition your compact flash, which will destroy all
existing data on it.
Do you want to Continue? [yn]:
Validating Flash Disk Geometry...
Disk has a Valid partition table!
TotalCylinders = 1960
BytesPerCylinder = 1048576
SafetyZoneBytes = 123312537
SafetyZoneCylinders = 118
TotalCylinders (after safety zone reduction) = 1842
WARNING: About to repartition disk /dev/sdc as shown:
/dev/sdc1 33 cylinders (33 Mb)
/dev/sdc2* 9 cylinders (9 Mb)
/dev/sdc3 1795 cylinders (1795 Mb)
/dev/sdc4 5 cylinders (5 Mb)
Partitioning the flash disk...
Disk /dev/sdc: 1960 cylinders, 64 heads, 32 sectors/track
Old situation:
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdc1 4 899 896 917504 5 Extended
/dev/sdc2 0 - 0 0 0 Empty
/dev/sdc3 0 - 0 0 0 Empty
/dev/sdc4 * 0+ 3 4- 4080 ef EFI (FAT-12/16/32)
/dev/sdc5 4+ 253 250- 255984 6 FAT16
/dev/sdc6 254+ 503 250- 255984 6 FAT16
/dev/sdc7 504+ 613 110- 112624 fc Unknown
/dev/sdc8 614+ 899 286- 292848 6 FAT16
New situation:
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdc1 0+ 32 33- 33791+ c W95 FAT32 (LBA)
/dev/sdc2 * 33 41 9 9216 83 Linux
/dev/sdc3 42 1836 1795 1838080 83 Linux
/dev/sdc4 1837 1841 5 5120 83 Linux
Successfully wrote the new partition table
Re-reading the partition table ...
Creating the filesystems...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 299k 100 299k 0 0 1524k 0 --:--:-- --:--:-- --:--:-- 5542k
Read 306504 bytes from sm_bl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
2 112M 2 3088k 0 0 3505k 0 0:00:32 --:--:-- 0:00:32 3869k
100 112M 100 112M 0 0 8510k 0 0:00:13 0:00:13 --:--:-- 9247k.
Executing Product Check TLV.
Executing Version Built TLV.
Warning: Unknown TLV ignored.
Warning: Unknown TLV code 8 - ignored.
Executing init script.
Executing backup script.
Executing install_bootloader script.
Writing new RTOS to flash disk.
Executing install_rtos script.
Writing new Code to flash disk.
Executing install_code script.
Writing new Emergency Bootloader to flash disk.
Writing new Emergency Bootloader RTOS to flash disk.
Writing new Emergency Version to flash disk.
Writing new AP Image Bundle to flash disk.
Executing fini script.
Install successful on SM1/0. Please wait for module to reset before next operation.
在我的笔记本电脑成功下载内核和其他文件后,它无法到达我的笔记本电脑下载最终文件,这对我来说没有意义。最重要的是,WLC 软件包可以完美运行。