Loading JunOS on an MX series router
From NesevoWiki
Jump to navigationJump to searchThis procedure works for SRX series devices as well.
- For reference: see Juniper knowledge base: https://kb.juniper.net/InfoCenter/index?page=content&id=KB11409
Step-by-step:
- Connect to the router's console as root user (the prompt looks like this:
root>
)- (If, right after login, you already are in shell mode (
root@%
) and theexit
command will only log you out instead of bringing you into command mode (root>
), you can issue thecli
command to get there.)
- (If, right after login, you already are in shell mode (
- Check the current software version:
show version
- Start a shell session:
start shell
(the prompt changes toroot@%
) - Create a temporary folder and mount the USB drive:
mkdir /mnt/usb
(if you get the message "read-only file system", then trymkdir /tmp/usb
)- Put the
jinstall-*.tgz
file on a FAT32 formatted USB drive and place it in the router's USB port - Watch the message on the screen to find out what device references the USB drive (e.g.
da1s1
)- If mounting
da0s1
does not work, try re-seating the USB drive until it appears asda1s1
.
- If mounting
mount -t msdosfs /dev/da1s1 /mnt/usb
(if you get the message "Operation not permitted", try a different USB drive (i.e. a different manufacturer))
- Copy the
jinstall
file to the local file system:- Example:
cp /mnt/usb/jinstall-ppc-14.2R7.5-domestic-signed.tgz /var/tmp/
- Example:
cp /mnt/usb/jinstall-ppc-15.1R5.5-domestic-signed.tgz /var/tmp/
- Example:
- Unmount the USB drive and unplug it:
umount /mnt/usb
- Exit the shell session to go back to command mode:
exit
(the prompt changes back toroot>
) - Install the software with the command
request system software add
:- Example:
request system software add /var/tmp/jinstall-ppc-14.2R7.5-domestic-signed.tgz
- Example:
request system software add /var/tmp/jinstall-ppc-15.1R5.5-domestic-signed.tgz
- Example:
request system software add /var/tmp/jinstall-ppc-15.1R6.7-domestic-signed.tgz
- Example:
- Reboot the router:
request system reboot
- Check the new software version has been installed:
show version