Cisco升级步骤
如果要让设备和电脑连接,路由器使用交叉网线,交换机用直连网线。
在和路由器连接时要确认路由器上有RJ-45口。在设本备配置中找到相应的ether口后,配置相应的ip地址。
配置命令如下:
Route(config-if)#ip address 192.168.0.1 255.255.255.0
Route(config-if)#no shutdown
然后用ping 命令测试可ping通即可。
注意:如果没有ether口就和网管员联系,由他们通过内网telnet到相关路由器上进行一下的配置步骤即可;
如果是交换机:确认你接入的那个ether口在那个vlan下面。然后确认vlan 接口下的ip 地址,然后把计算机的ip地址设置和vlan接口下的ip地址在同一个网段下即可。
相关配置命令如下:
Show run int ether0/0 (f0/0)
查看在那个vlan 下下面:
然后用 show int vlan xx
就可以知道那个vlan下的ip地址。
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Switch(config-if)#no shutdown
然后用ping 命令测试可ping通即可进行下面操作。
一:备份当前设备配置和ios:
1:show run 记录当前运行配置:
(1)设置使用的超级终端:(以CRT为例)
(2)选择记录会话:
(3)设置保存路径及文件名称:
完成设置后就可以记录运行配置。
在设备中运行show run 及可以记录当前设备运行配置。
Route/Switch# show run
完成后关闭记录会话及可。
2、保存当前运行ios:
(1)设置tftp服务器:
最好和你现在要升级的ios放在一个文件夹下。
(2) 用copy flash tftp保存ios:
GSQY45SW01#copy bootflash tftp
Address or name of remote host []? 100.112.1.3
Source filename []? cat4500-ipbase-mz.122-31.SGA2.bin
Destination filename [cat4500-ipbase-mz.122-31.SGA2.bin]?
Accessing tftp://100.112.1.3/cat4500-ipbase-mz.122-31.SGA2.bin...
Loading cat4500-ipbase-mz.122-31.SGA2.bin from 100.112.1.3 (via Vlan361): !!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 12184552 bytes]
二:升级新的ios:
1、 检查要存放ios的flash卡的空闲空间:
Switch/route# dir /all
Directory of bootflash:/
1 -rw- 12498728 Apr 12 2007 01:06:28 cat4000-i5s-mz.122-25.EWA5.bin
2 -rw- 12184552 Oct 20 2007 23:06:09 cat4500-ipbase-mz.122-31.SGA2.bi
n
27262976 bytes total (2579440 bytes free)
(1) 如果空间大于当前ios的大小。就可以升级,如果小于当前ios的大小,就要删除flash卡中的ios。
(2) 删除flash 中的旧的ios版本
Route/switch#delete bootflash cat4000-i5s-mz.122-25.EWA5.bin
Route/switch #squeeze bootflash //用squeeze 命令释放空间
All deleted files will be removed. Continue? [confirm]
Squeeze operation may take a while. Continue? [confirm]
Squeeze of bootflash complete
(3) 检查flash卡的空间:
Route/switch#Dir /all
2、 升级ios
(1) 拷贝ios
Route/switch#copy tftp bootflash (/slot 0: )
Address or name of remote host []? 100.112.1.3
Source filename []? cat4500-ipbase-mz.122-31.SGA2.bin
Destination filename [cat4500-ipbase-mz.122-31.SGA2.bin]?
Accessing tftp://100.112.1.3/cat4500-ipbase-mz.122-31.SGA2.bin...
Loading cat4500-ipbase-mz.122-31.SGA2.bin from 100.112.1.3 (via Vlan361): !!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 12184552 bytes]
12184552 bytes copied in 115.368 secs (105615 bytes/sec)
(2) 修改引导路径:
Route/switch(config)#no boot system bootflash:cat4000-i5s-mz.122-25.EWA5.bin //删除当前运行的ios引导路径
Route/switch (config)#boot system bootflash:cat4500-ipbase-mz.122-31.SGA2.bin //
添加ios引导路径
Route/switch (config)#exit
Route/switch #wr //保存当前配置
Route/switch#show run
Building configuration...
Current configuration : 18078 bytes
!
version 12.2
no service pad
service timestamps debug datetime
service timestamps log datetime
no service password-encryption
service compress-config
!
hostname xxxx
!
boot-start-marker
boot system bootflash:cat4500-ipbase-mz.122-31.SGA2.bin //确认引导路径
boot-end-marker
!
Route/switch #reload // 重新启动设备。
启动正常及可。
注意:
如果是双引擎,可以把ios考到两个备份引擎就可以,在主引擎保存配置时配置会同步,正常从新启动即可。
要把主引擎下的ios靠到备份引擎如下命令:
Copy bootflash slavebootflash 即可。
可以用 dir slaveflash 查看ios版本。
如果要每个分开即可用上面步骤从新操作即可。