Maipu – IOS upgradation from Monitor Mode
Maipu has two ways to upgrade the IOS, one is from monitor mode, similar to Cisco ROMMON mode. Then another is from shell mode that means privilege mode. Same like Cisco. But, Maipu has some command differences. Many of you know that Maipu upgradation is very complicated. But now Maipu already launched simplest way to do it with 2 simple steps in shell mode “sysupdate”.
I know many of engineer are looking for document reference for Maipu IOS upgradation. Here I will cover both upgradation process. Monitor mode and Shell mode.
In this section, we will see how to upgrade IOS Maipu IOS from monitor mode…
To enter in monitor mode – Plz press “Ctrl+C” at the time of booting, if you are not able to go, Plz reboot router manually and try again.
Monitor upgradation process is used in recovery mode. If you face any issue in upgrading router by normal mode and it is not coming up, then you have to use this mode… normally this mode is very easy and fast to recover router to normal with required IOS.
Make the environment like this, Use straight cable to connect your laptop to router f0 port or g0 port depending on router models. Then connect console to your laptop.
That means now you can access router via hyper terminal from your laptop and your laptop is connected to router by straight cable also.
As best practice, we can take backup of our configuration for our records.
Backup your startup file to your FTP server --
(This is according to your requirement)
Command:
ftpcopy [src /path/filename] ftp [host addr] [user] [pass] [dest filename]
- copy file from flash to host with FTP
Under the monitor mode:
Monitor:>ftpcopy /flash/startup ftp 1.1.1.2 maipu maipu startup.txt
Copying!!!
Total 2629 bytes copying completed.
Check the monitor version and format
Monitor:>ver
This will show you current monitor details
Monitor:>
Sometime this command will not work, depending upon the models…
Use “format /flash” then confirm with “Y”
Monitor:>format /flash
All files in TFFS dev /flash system will lose, realy want to format(Y/N)?Y
Erasing TFFS dev '/flash' ..................…….............................success!
Formatting TFFS dev '/flash' ..................…….............................success!
mount flash file system on dev '/flash' success.
This format/system command is for double file system IOS and supported models like
MP1800, MP 2824 and MP 3840.
Monitor:>format /system
All files in TFFS dev /system system will lose, realy want to format(Y/N)?Y
Erasing TFFS dev '/system' ..................…….............................success!
Formatting TFFS dev '/system' ..................…….............................success!
mount flash file system on dev '/system' success
Change the hyper terminal speed to 115200 , use XMODEM upgrade the monitor.
Monitor:>s 115200
### change the speed from 9600 to 115200, after that please also change your hyper terminal speed to 115200 and re-open it.
Monitor:>
Monitor:>lxr
download monitor image <.bin> with xmodem protocol:
XMODEM Receive: Waiting for Sender ...
CCC
download success, image size = xxxxxx ( xxxxxx ).
Update monitor flash........
Monitor:>
Now from here itself you can upgrade IOS also by XModem, But it will take lot of time.
To do it fast we have use our PC and FTP to upload IOS to Router.
Setup FTP server on PC, set the IOS path and username, password in that software.
I am using - wftpd32 software to do this.
Check out – that software steps.
Click –Security à User/rights-- > new user
Then create new user à and in home directory locate the path of IOS à click Done.
In this way, your FTP configuration is complete. Make sure that correct IOS is located in home Directory.
Now back to hyperterminal
For help in monitor mode- type “help” , you will see command and decription.
Use ‘C” command to set booting parameter on monitor mode. C- means Change
Monitor:>c
Please change the system boot parameters with the following operation:
'.' = clear field; '-' = go to previous field; ^D = quit
available boot devices:
fe0 fe1 flash
boot device : flash0 fe0
file name : /flash/rpl-i-6.1.7.bin rpl-i-6.1.25(REL).bin
local IP addr : x.x.x.x 1.1.1.1 Assign IP address to router F0 port
host IP addr : 1.1.1.2 Define your FTP server IP shown in diagram
gateway IP addr :
user name : maipu ### FTP username ##
ftp password : maipu ### FTP password ##
save image : 0 1 ### Type 1, since 1 means save IOS ###
Screenshot -
### Don’t bother about IOS name in screenshot. IOS will be as per your model and requirement. I tried to explain you process, Diagram is just for reference…
Monitor:>
Then , check once again for confirmation. Using C command, then proceed for last step…
Now already you defined all parameters in router monitor mode, about FTP server and IOS name , username , password.
Now you need to type ‘r’ command in monitor mode. “r” means Run – This command will upload FTP server home directory IOS to your router Flash and boot it.
Monitor:>r
In this way monitor IOS upgradation is completed..
Now one more thing, As we taken backup of your configuration. Copy again to your router and load it…
router(config)#inter f0
router(config-if-fastthernet0)#ip add 1.1.1.1 255.255.255.0
## configure the IP address for interface F0, which is connect to FTP server.
router(config-if-fastethernet0)#exit
router(config)#exit
router#
### check the connectivity is ok from router to FTP server , ping 1.1.1.2 (FTP server)…
router#ping 1.1.1.2
Press key (ctrl + shift + 6) interrupt it.
Sending 5, 76-byte ICMP Echos to 1.1.1.2 , timeout is 2 seconds:
!!!!!
Success rate is 100% (5/5). Round-trip min/avg/max = 0/0/0 ms.
### go to the filesystem, from the FTP copy startup to device flash.
router#filesystem
router(config-fs)#copy ftp 1.1.1.2 maipu maipu startup.txt file-system /flash/startup
Downloading###OK!
router(config-fs)#
## Now at last you need use command “config-file /flash/startup” to active copied configuration to running-config, otherwise when you need reboot the device then you can get startup when you perform show run.
router(config-fs)#config-file /flash/startup
router(config-fs)#
This section is totally for Maipu monitor upgradation process. In next post we will see about Shell upgradation.
Hope this information is informative for you..
For feedback and queries, Plz put comment with Name and mail id..