Difference between revisions of "Loading JunOS on an MX series router"
From NesevoWiki
Jump to navigationJump to search(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | This procedure works for SRX series devices as well. | ||
+ | |||
* For reference: see Juniper knowledge base: https://kb.juniper.net/InfoCenter/index?page=content&id=KB11409 | * For reference: see Juniper knowledge base: https://kb.juniper.net/InfoCenter/index?page=content&id=KB11409 | ||
Step-by-step: | Step-by-step: | ||
Line 5: | Line 7: | ||
* Check the current software version: <code>show version</code> | * Check the current software version: <code>show version</code> | ||
* 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: | + | *Copy the file via one of the following processes: |
− | ** | + | ** The prepared USB stick: |
− | ** Put the <code>jinstall-*.tgz</code> file on a FAT32 formatted USB drive and place it in the router's USB port | + | *** Create a temporary folder and mount the USB drive: |
− | ** Watch the message on the screen to find out what device references the USB drive (e.g. <code>da1s1</code>) | + | **** <code>mkdir /tmp/usb</code> |
− | ** <code>mount -t msdosfs /dev/da1s1 / | + | **** 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>) | ||
+ | ***** 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 /tmp/usb</code> (if you get the message "Operation not permitted", try a different USB drive (i.e. a different manufacturer)) | ||
+ | ** Network protocol (secure copy) | ||
+ | *** Search for the interface with show configuration | ||
+ | *** Enter set up mode for interface <code>edit interface {fxp0}</code> | ||
+ | **** If there is already set a interface, delete with <code>delete unit 0 family inet address {ip/subnet} </code> | ||
+ | *** Set up the interface with <code>set unit 0 family inet address {ip/subnet}</code> | ||
+ | **** Be sure to choose a IP wich is not already set in your network! | ||
+ | *** Save the changes with commit and go back to normal prompt with <code>exit</code> | ||
+ | *** Now connect the cable with your computer. | ||
+ | *** Ping in both directions to make sure the connection ready. | ||
+ | *** Go into shell mode (router@%) by entering the following command if you are in operational mode (root>): <code>start shell</code> | ||
+ | *** navigate with <code>cd /var/tmp</code> | ||
+ | *** Start transfer with the command <code>scp username@IP:/var/path/filename.tgz</code> | ||
+ | **** NOTE that the file has to be located in the directory you are referring to! | ||
* 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 / | + | ** Example: <code>cp /tmp/usb/jinstall-ppc-14.2R7.5-domestic-signed.tgz /var/tmp/</code> |
− | ** Example: <code>cp / | + | ** 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 / | + | * 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 /var/tmp/[filename]</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> |
Latest revision as of 15:42, 11 May 2023
This 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@%
) - Copy the file via one of the following processes:
- The prepared USB stick:
- 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 asda1s1
.
- If mounting
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))
- Create a temporary folder and mount the USB drive:
- Network protocol (secure copy)
- Search for the interface with show configuration
- Enter set up mode for interface
edit interface {fxp0}
- If there is already set a interface, delete with
delete unit 0 family inet address {ip/subnet}
- If there is already set a interface, delete with
- Set up the interface with
set unit 0 family inet address {ip/subnet}
- Be sure to choose a IP wich is not already set in your network!
- Save the changes with commit and go back to normal prompt with
exit
- Now connect the cable with your computer.
- Ping in both directions to make sure the connection ready.
- Go into shell mode (router@%) by entering the following command if you are in operational mode (root>):
start shell
- navigate with
cd /var/tmp
- Start transfer with the command
scp username@IP:/var/path/filename.tgz
- NOTE that the file has to be located in the directory you are referring to!
- The prepared USB stick:
- 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/
- Example:
- 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 toroot>
) - Install the software with the command
request system software add no-validate /var/tmp/[filename]
:- 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