本文档包含升级Cisco NI-2 DSLAM的分步过程。必须在 TCP/IP 就绪工作站上安装 TFTP 服务器或远程复制协议 (RCP) 服务器应用。一旦安装了应用程序,则必须执行最低配置。首先,TFTP应用程序必须配置成TFTP服务器,而不是用作TFTP客户端。其次,必须指定出站文件目录。这是存储Cisco IOS®软件映像的目录。大多数 TFTP 应用会提供一个帮助执行这些配置任务的设置例程。
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
本文档没有任何特定的前提条件。
本文档不限于特定的软件和硬件版本。
使用以下步骤升级Cisco IOS软件映像。
在 TFTP 服务器的出站目录中安装新的 Cisco IOS 软件镜像。
TFTP服务器在此目录中查找DSLAM的Cisco IOS软件映像。确保您想复制到您的闪存的镜像位于此目录中。
每个映像的内存要求也位于TFTP服务器的出站目录中。使用 show version 命令,确认您有足够的内存。
DSLAM#show version Cisco Internetwork Operating System Software IOS (tm) NI2 Software (NI2-DSL-M), Version 12.1(5)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc2) Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Thu 07-Dec-00 19:27 by pnicosia Image text-base: 0x800082C0, data-base: 0x811EA000 ROM: System Bootstrap, Version 12.0(5)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) BOOTFLASH: NI2 Software (NI2-DBOOT-M), Version 12.1(3)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) 6130A uptime is 1 day, 18 hours, 19 minutes System returned to ROM by power-on System restarted at 16:11:23 PST Wed Feb 14 2001 System image file is "flash:ni2-dsl-mz.121-5.DA.bin" cisco 6130 (NI2) processor with 60416K/5120K bytes of memory. RC64475 CPU at 100Mhz, Implementation 48, Rev 0.0 Bridging software. 1 Ethernet/IEEE 802.3 interface(s) 4 ATM network interface(s) 522232 bytes of non-volatile configuration memory. 4096K bytes of Boot Flash (Sector size 256K). 16384K bytes of Flash internal SIMM (Sector size 256K). Configuration register is 0x2102
建立到DSLAM的控制台会话。
这可以通过直接控制台连接或虚拟Telnet连接执行。首选直接控制台连接,因为Telnet连接在软件安装的重新启动阶段将丢失(请参阅步骤9)。 控制台连接使用反转电缆(平黑或蓝色电缆),并将DSLAM的控制台端口连接到PC的COM端口。
在PC上启动HyperTerminal并使用以下设置:
9600 bps
8个数据库
0 个奇偶校验位
1 个停止位
无流控制
检验TFTP服务器是否具有与DSLAM的IP连接。
TFTP服务器必须具有到DSLAM的网络连接,并且必须能ping DSLAM的IP地址,以进行TFTP软件升级。为此,DSLAM接口和TFTP服务器必须具备:
IP地址在同一范围或;
配置了默认网关。
要验证,请检查TFTP服务器的IP地址。
注意:在验证与TFTP服务器的网络连接后,在DSLAM上发出write memory命令,将所有更改写入内存中。
DSLAM#write memory Building configuration... [OK] DSLAM#
验证bootflash映像是ni2-dboot-mz.121-5.da1或ni2-dboot-mz.121-4.da。如果是,请转到步骤14。如果不是,请转到步骤6以在bootflash中腾出空间。
DSLAM#dir bootflash: Directory of bootflash:/ 1 -rw- 3361208 Jan 01 2000 00:05:11 ni2-dboot-mz.121-2.DA 3801088 bytes total (439752 bytes free)
通过删除当前引导映像的名称在bootflash中腾出空间。
DSLAM#delete bootflash:ni2-dboot-mz.121-2.DA.bin Delete filename [ni2-dboot-mz.121-2.DA.bin]? Delete bootflash:ni2-dboot-mz.121-2.DA.bin? [confirm]
使用squeeze bootflash命令恢复bootflash中的可用空间。
DSLAM#squeeze bootflash All deleted files will be removed. Continue? [confirm] Squeeze operation may take a while. Continue? [confirm] Squeeze of bootflash complete
将启动映像复制到bootflash。
DSLAM#copy tftp://171.69.89.140/ni2-dboot-mz.121-5.DA1.bin bootflash: Destination filename [ni2-dboot-mz.121-5.DA1.bin]? Accessing tftp://171.69.89.140/ni2-dboot-mz.121-5.DA1.bin... Loading ni2-dboot-mz.121-5.DA1.bin from 171.69.89.140 (via Ethernet0/0): !!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 3405392/6810624 bytes] 3405392 bytes copied in 57.676 secs (59743 bytes/sec)
进入全局配置模式,将配置寄存器设置为0x0000,以便NI-2在ROM监控(ROMmon)模式下重新启动。
DSLAM#configure terminal Enter configuration commands, one per line. End with CNTL/Z. DSLAM(config)#config-register 0X0 DSLAM(config)#exit
保存运行配置并重置系统。
DSLAM#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] DSLAM#reload Proceed with reload? [confirm] *Jan 10 02:11:43.397: %SYS-5-RELOAD: Reload requested System Bootstrap, Version 12.0(5)DA1, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1999 by cisco Systems, Inc. NI2 platform with 65536 Kbytes of main memory
如果在输入set命令后看到BOOTLDR,则bootflash中的映像已用作引导程序;转到步骤13。否则,转到步骤12并输入命令,强制系统使用ni2-dboot-mz.121-5.bin作为引导程序。
rommon 1 > set
使用unset BOOTLDR删除变量并同步以保存ROMmon的状态,然后重新启动。
当NI-2启动时,它使用ni2-dboot-mz.121-5da.bin作为引导程序。
rommon 2 > unset BOOTLDR rommon 3 > sync
将配置寄存器设回0x2102并重置系统。
rommon 4 > confreg 0x2102 rommon 5 > reset
显示闪存文件的名称(以ni2 — 开头),并将其用作步骤15中的文件名。
DSLAM#dir flash: Directory of flash:/ 1 -rw- 9447084 Jan 01 2000 00:13:03 ni2-dsl-mz.121-5.DA1.bin 15990784 bytes total (6543572 bytes free)
删除步骤14中找到的闪存文件名。重复步骤14和步骤15,直到闪存中的所有文件都被删除。
DSLAM#delete flash:ni2-dsl-mz.121-5.DA1.bin Delete filename [ni2-dsl-mz.121-5.DA1.bin]? Delete flash:ni2-dsl-mz.121-5.DA1.bin? [confirm]
恢复闪存中的可用空间。
DSLAM#squeeze flash: All deleted files will be removed. Continue? [confirm] Squeeze operation may take a while. Continue? [confirm] Squeeze of flash complete
将Cisco IOS软件映像从TFTP服务器复制到闪存。
DSLAM#copy tftp: flash: Address or name of remote host [171.69.89.140]? Source filename [ni2-dsl-mz.122-1b.DA.bin]? Destination filename [ni2-dsl-mz.122-1b.DA.bin]? Accessing tftp://171.69.89.140/ni2-dsl-mz.122-1b.DA.bin... Loading ni2-dsl-mz.122-1b.DA.bin from 171.69.89.140 (via Ethernet0/0): !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!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!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 9447084/18893824 bytes] 9447084 bytes copied in 128.940 secs (73805 bytes/sec)
进入全局配置模式并禁用从系统引导。保存对启动配置的更改并重新加载系统以升级映像。
DSLAM(config)#no boot system DSLAM(config)#end DSLAM(config)#write memory DSLAM(config)#reload
确认运行映像为ni2-dsl-mz.122-1b.da。否则,请转至步骤17。
DSLAM#show version Cisco Internetwork Operating System Software IOS (tm) NI2 Software (NI2-DSL-M), Version 12.2(1b)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Mon 20-Aug-01 14:13 by torowe Image text-base: 0x80008308, data-base: 0x814CC000 ROM: System Bootstrap, Version 12.0(5)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) BOOTLDR: NI2 Software (NI2-DBOOT-M), Version 12.2(1b)DA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) DSLAM uptime is 28 minutes System returned to ROM by reload at 00:06:58 UTC Sat Jan 1 2000 System image file is "flash:ni2-dsl-mz.122-1b.DA.bin" cisco 6100 (NI2) processor with 60416K/5120K bytes of memory. RC64475 CPU at 100Mhz, Implementation 48, Rev 0.0 Bridging software. 1 Ethernet/IEEE 802.3 interface(s) 8 DMT DSL Port interface(s) 4 ATM network interface(s) 522232 bytes of non-volatile configuration memory. 4096K bytes of Boot Flash (Sector size 128K). 16384K bytes of Flash internal SIMM (Sector size 256K). Configuration register is 0x2102
清除bootflash内存中的所有信息。回答y以确认所有问题。当DSLAM返回EXEC提示符时,bootflash内存已成功格式化并准备使用。确保bootflash总为3.8 MB。否则,请转至步骤14。
DSLAM#format bootflash: Format operation may take a while. Continue? [confirm] Format operation will destroy all data in "bootflash:". Continue? [confirm] Formatting sector 1 Format of bootflash: complete
将启动映像从TFTP服务器复制到bootflash。
DSLAM#copy tftp://171.69.89.140/ni2-dboot-mz.122-1b.DA.bin bootflash: Destination filename [ni2-dboot-mz.122-1b.DA.bin]? Accessing tftp://171.69.89.140/ni2-dboot-mz.122-1b.DA.bin... Loading ni2-dboot-mz.122-1b.DA.bin from 171.69.89.140 (via Ethernet0/0): !!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 3712100/7424000 bytes] 3712100 bytes copied in 69.476 secs (53798 bytes/sec)
重新加载DSLAM,使其从新的Cisco IOS软件映像启动。
DSLAM#reload
通过发出show version命令,确认从新Cisco IOS软件映像启动的DSLAM。
DSLAM#show version
show version 命令的输出应显示升级后的 Cisco IOS 软件镜像的名称。