Difference between revisions of "Loading JunOS on an MX series router"

From NesevoWiki
Jump to navigationJump to search
Line 8: Line 8:
 
* Start a shell session: <code>start shell</code> (the prompt changes to <code>root@% </code>)
 
* Start a shell session: <code>start shell</code> (the prompt changes to <code>root@% </code>)
 
* Create a temporary folder and mount the USB drive:
 
* Create a temporary folder and mount the USB drive:
** <code>mkdir /mnt/usb</code> (if you get the message "read-only file system", then try <code>mkdir /tmp/usb</code>)
+
** <code>mkdir /tmp/usb</code>
 
** Put the <code>jinstall-*.tgz</code> file on a FAT32 formatted USB drive and place it in the router's USB port
 
** Put the <code>jinstall-*.tgz</code> 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. <code>da1s1</code>)
 
** Watch the message on the screen to find out what device references the USB drive (e.g. <code>da1s1</code>)
 
*** If mounting <code>da0s1</code> does not work, try re-seating the USB drive until it appears as <code>da1s1</code>.
 
*** If mounting <code>da0s1</code> does not work, try re-seating the USB drive until it appears as <code>da1s1</code>.
** <code>mount -t msdosfs /dev/da1s1 /mnt/usb</code> (if you get the message "Operation not permitted", try a different USB drive (i.e. a different manufacturer))
+
** <code>mount -t msdosfs /dev/da1s1 /tmp/usb</code> (if you get the message "Operation not permitted", try a different USB drive (i.e. a different manufacturer))
 
* Copy the <code>jinstall</code> file to the local file system:  
 
* Copy the <code>jinstall</code> file to the local file system:  
** Example: <code>cp /mnt/usb/jinstall-ppc-14.2R7.5-domestic-signed.tgz /var/tmp/</code>
+
** Example: <code>cp /tmp/usb/jinstall-ppc-14.2R7.5-domestic-signed.tgz /var/tmp/</code>
** Example: <code>cp /mnt/usb/jinstall-ppc-15.1R5.5-domestic-signed.tgz /var/tmp/</code>
+
** Example: <code>cp /tmp/usb/jinstall-ppc-15.1R5.5-domestic-signed.tgz /var/tmp/</code>
* Unmount the USB drive and unplug it: <code>umount /mnt/usb</code>
+
* Unmount the USB drive and unplug it: <code>umount /tmp/usb</code>
 
* Exit the shell session to go back to command mode: <code>exit</code> (the prompt changes back to <code>root> </code>)
 
* Exit the shell session to go back to command mode: <code>exit</code> (the prompt changes back to <code>root> </code>)
* Install the software with the command <code>request system software add</code>:
+
* Install the software with the command <code>request system software add no-validate</code>:
** Example: <code>request system software add /var/tmp/jinstall-ppc-14.2R7.5-domestic-signed.tgz</code>
+
** The ''no-validate'' option skips validation of the current configuration to work with the new JunOS version, which is OK for new, unconfigured machines
** Example: <code>request system software add /var/tmp/jinstall-ppc-15.1R5.5-domestic-signed.tgz</code>
+
** Example: <code>request system software add no-validate/var/tmp/jinstall-ppc-14.2R7.5-domestic-signed.tgz</code>
** Example: <code>request system software add /var/tmp/jinstall-ppc-15.1R6.7-domestic-signed.tgz</code>
+
** Example: <code>request system software add no-validate /var/tmp/jinstall-ppc-15.1R5.5-domestic-signed.tgz</code>
 +
** Example: <code>request system software add no-validate /var/tmp/jinstall-ppc-15.1R6.7-domestic-signed.tgz</code>
 
* Reboot the router: <code>request system reboot</code>
 
* Reboot the router: <code>request system reboot</code>
 
* Check the new software version has been installed: <code>show version</code>
 
* Check the new software version has been installed: <code>show version</code>

Revision as of 12:30, 7 August 2020

This procedure works for SRX series devices as well.

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 the exit command will only log you out instead of bringing you into command mode (root> ), you can issue the cli command to get there.)
  • Check the current software version: show version
  • Start a shell session: start shell (the prompt changes to root@% )
  • Create a temporary folder and mount the USB drive:
    • mkdir /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 as da1s1.
    • mount -t msdosfs /dev/da1s1 /tmp/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 /tmp/usb/jinstall-ppc-14.2R7.5-domestic-signed.tgz /var/tmp/
    • Example: cp /tmp/usb/jinstall-ppc-15.1R5.5-domestic-signed.tgz /var/tmp/
  • Unmount the USB drive and unplug it: umount /tmp/usb
  • Exit the shell session to go back to command mode: exit (the prompt changes back to root> )
  • Install the software with the command request system software add no-validate:
    • The no-validate option skips validation of the current configuration to work with the new JunOS version, which is OK for new, unconfigured machines
    • Example: request system software add no-validate/var/tmp/jinstall-ppc-14.2R7.5-domestic-signed.tgz
    • Example: request system software add no-validate /var/tmp/jinstall-ppc-15.1R5.5-domestic-signed.tgz
    • Example: request system software add no-validate /var/tmp/jinstall-ppc-15.1R6.7-domestic-signed.tgz
  • Reboot the router: request system reboot
  • Check the new software version has been installed: show version