Switch#configure terminal
|
Switch(config)# interface vlan 99
|
Switch(config-if)# ip address 192.168.0.2 255.255.255.0
|
Switch(config-if)# interface fasethernet 0/1
Switch(config-if)# witch access vlan 99 |
Switch#exit
|
Switch#copy flash tftp
Source filename []?c2950-c3h2s-mz.120-5.3.WC.1.bin //输入IOS文件名 Address or name of remote host []? 192.168.0.1 //输入TFTP地址 Destination filename [c2950-c3h2s-mz.120-5.3.WC.1.bin]? //可以更改名称或使用默认 |
Switch#delete flash: c2950-c3h2s-mz.120-5.3.WC.1.bin //复制文件从Flash到tftp
Delete filename [c2950-c3h2s-mz.120-5.3.WC.1.bin] //确认,回车 Delete flash:c2950-c3h2s-mz.120-5.3.WC.1.bin? [confirm] //确认,回车 |
Switch#copy tftp flash: //复制文件从tftp到flash
Address or name of remote host []? 192.168.0.1 //输入TFTP地址 Source filename []? c2950-i6k2l2q4-mz.121-22. EA8a.bin //输入升级的新版IOS名称 Destination filename [c2950-i6k2l2q4-mz.121-22.EA8a.bin]? //确认,回车 |
rommon 2 > IP_ADDRESS=172.16.0.1
rommon 3 > IP_SUBNET_MASK=255.255.255.0 rommon 4 > DEFAULT_GATEWAY=172.16.0.2 rommon 5 > TFTP_SERVER=172.16.0.2 rommon 6> TFTP_FILE=c2600-is-mz.113-2.0.3.Q rommon 7 > tftpdnld IP_ADDRESS: 172.16.0.1 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 172.16.0.2 TFTP_SERVER: 172.16.0.2 TFTP_FILE: c2600-is-mz.113-2.0.3.Q Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on flash will be lost! Do you wish to continue? y/n: [n]: y Receiving c2600-is-mz.113-2.0.3.Q from 172.16.0.2 !!!!!.!!!!!!!!!!!!!!!!!!!.!! File reception completed. Copying file c2600-is-mz.113-2.0.3.Q to flash. Erasing flash at 0x607c0000 program flash location 0x60440000 rommon 8 > |
rommon 2 > confreg
do you wish to change the configuration? y/n [n]: y enable "diagnostic mode"? y/n [n]: n enable "use net in IP bcast address"? y/n [n]: n disable "load rom after netboot fails"? y/n [n]: n enable "use all zero broadcast"? y/n [n]: n enable "break/abort has effect"? y/n [n]: n enable "ignore system config info"? y/n [n]: n change console baud rate? y/n [n]: y enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [7]: 7 change the boot characteristics? y/n [n]: y enter to boot: 0 = ROM Monitor 1 = the boot helper image 2-15 = boot system [0]: 0 Configuration Summary enabled are: load rom after netboot fails console baud: 115200 boot: the ROM Monitor do you wish to change the configuration? y/n [n]: n You must reset or power cycle for new config to take effect rommom 2 > reset |
rommon 1>
rommon 1> XMODEM -r Do not start the sending program yet... Invoke this application only for disaster recovery. Do you wish to continue? y/n [n]: y Ready to receive file ... |