Professional Documents
Culture Documents
At first we need to know by which procedure we can recover rommon. We can recover rommon
using different procedure for different devices. Here we need TFTP server(.exe file 32bit/64bit),
desire IOS image file(.bin/.extbin file), 2 types of Console(RS232 & USBv2.0-to-USBv2.0), UTP(RJ45-
to-RJ45)Cable & pen drive(USB v2.0). Rommon recovery procedure is just for booting. Rommon
recovery procedure will be complete when IOS will be uploaded to flash of Router.
Let’s need to know for which type of device which tools need to recover rommon, locally IOS up
gradation & IOS up gradation while at network.
1) Cisco A901-12C-(F-D/FT-D) can recover rommon only using UTP(RJ45-to-RJ45)Cable & RS232
Console.
3) Cisco ASR-902/Cisco ASR-903/Cisco ASR-920-(24SZ-IM/12CZ-D) can recover rommon only using Pen
drive(USB v2.0) & RS232/USBv2.0-to-USBv2.0 Console but for locally IOS up gradation need
UTP(RJ45-to-RJ45)Cable.
IP_ADDRESS: 1.1.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 1.1.1.1
TFTP_SERVER: 1.1.1.2
TFTP_FILE: asr901-universalk9-mz.154-3.S9.bin
Performing tftpdnld over Ethernet.
Interface link state up.
Receiving asr901-universalk9-mz.154-3.S9.bin from 1.1.1.2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
program load complete, entry point: 0x2000000, size: 0x276fd90
Self decompressing the image :
##################################################################################
# [OK]
May 12 08:40:21.799: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up
Step-1
Need a pen drive & format that at FAT/FAT-32 system.
Step-2
Need to copy desire IOS to pen drive which we want to use for BOOT.
Step-3
Need to connect pen drive to Router at USB Memory
Step-4
rommon 1 > dev usb0:
Devices in device table:
id name
bootflash: Internal disk
usb0: USB disk //For ASR900 & ASR920 series//
usbflash0: USB disk //For ASR901-6CZ//
rommon 2 > dir usb0: //For ASR900 & ASR920 series// or dir usbflash0: //For ASR901-6CZ series//
Checking USB devices..
USB EHCI 1.00
scanning USB bus for devices..
2 USB Device(s) found
scanning bus for storage devices...
Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router #delete flash:asr901-universalk9-mz.154-3.S9.bin
Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin[deleted]
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface gigabitEthernet 0 //For ASR902, ASR903 & ASR920 series//
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console
Router#delete bootflash:asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin
Delete filename [asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin]?
Delete bootflash:/asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin? [confirm]
Router#
Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router #delete flash:asr901-universalk9-mz.154-3.S9.bin
Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin[deleted]
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface Loopback1
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console
Router#delete bootflash:asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin
Delete filename [asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin]?
Delete bootflash:/asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin? [confirm]
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Or
Router(config)#int FastEthernet0/0 //For ASR901 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface Loopback1
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console
<Huawei> tftp -i LoopBack 1 10.1.0.85 get tt.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Downloading the file from the remote TFTP server. Please wait...|
TFTP: Downloading the file successfully.
826 bytes received in 1 second.
<Huawei>dir
Directory of cfcard:/
<Huawei>delete cfcard:/nmc_banner.txt
Delete cfcard:/nmc_banner.txt?[Y/N]:y
Info: Deleting file cfcard:/nmc_banner.txt...succeeded.
<Huawei>system-view
[Huawei] header login file cfcard:/tt.txt //For Welcome Warning Message//
[Huawei]quit
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>
<Huawei>dir
Directory of cfcard:/
<Huawei>tftp -i Vlanif 3 10.1.0.85 get nmc_banner.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Downloading the file from the remote TFTP server. Please wait...
100%
TFTP: Downloading the file successfully.
826 byte(s) received in 1 second(s).
<Huawei>dir
Directory of flash:/
<Huawei>dir
Directory of flash:/
<Huawei>tftp -i Vlanif 3 10.1.0.85 put private-data.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Uploading the file to the remote TFTP server. Please wait...
100%
TFTP: Uploading the file successfully.
5024 byte(s) sent in 1 second(s).
<Huawei>
RP/0/RSP0/CPU0:Router#
RP/0/RSP0/CPU0:Router(config)# tftp client vrf OM_FH source-interface Loopback0
RP/0/RSP0/CPU0:Router(config)#tftp client source-interface loopback 0
RP/0/RSP0/CPU0:Router(config)#tftp ipv4 server homedir harddisk:
RP/0/RSP0/CPU0:Router(config)#commit
Mon May 21 04:00:31.913 Dhaka
RP/0/RSP0/CPU0:Router(config)#end
RP/0/RSP0/CPU0:Router#copy harddisk: tftp:
Mon May 21 04:00:55.077 Dhaka
Source filename [/harddisk:]? ASR9K-iosxr-px-k9-6.2.3.tar //Required file to Upload at TFTP//
Address or name of remote host []?10.1.0.85 //Laptop or TFTP IP Address//
Destination filename [ASR9K-iosxr-px-k9-6.2.3.tar]?
Writing tftp://10.1.0.85/ASR9K-iosxr-px-k9-6.2.3.tar
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
1635184640 bytes copied in 5925 sec ( 275940)bytes/sec
RP/0/RSP0/CPU0:Router#