Juniper EX Switch Virtual Chassis Configuration and JUNOS Upgrade Tutorial
This tutorial will guide you through the processes of configuring a Juniper EX switch virtual chassis and upgrading JUNOS using a USB drive. This is one of the most common tasks in the Juniper networking world.
Environment
- 2x Juniper EX-2300/3400/4300 switches with 10/40/40Gbps Juniper DAC cables
- 1 x USB drive with the recommended JUNOS version (Service Request Version) in it. The filesystem format should be FAT32. The JUNOS version should be downloaded from Juniper KB21476. Note: Do not use the newest version.
- Console cable
- Virtual Chassis with a non-provisioned configuration file
Virtual Chassis Configuration
Non-Provisioned Configuration File Mode
Check Current VC-Port Configuration
bashshow virtual-chassis vc-port
NoteIf ports are configured with virtual chassis by default, you can use them directly without any additional configuration. This is called the “Non-provisioned config file” mode.Customize VC Port Configuration
Use the following command to configure the VC port:
bashrequest virtual-chassis vc-port set pic-slot x port x
Replace
x
with the port number from the output ofshow chassis hardware
.Example:
bashrequest virtual-chassis vc-port set pic-slot 1 port 1
Connect the Cables and Reboot
Connect the DAC cables between the switches and reboot both switches:
bashrequest system reboot
Once both switches come up, they will elect a member as “Master” or “Backup”.
Provisioned Configuration File Mode
On top of the steps listed above for the “non-provisioned configuration file” mode, you can define which member will be the first switch (member 0) and which will be the second (member 1).
Set Up the Configuration
bashset system commit synchronize set chassis redundancy graceful-switchover set routing-options nonstop-routing set protocols layer2-control nonstop-bridging set virtual-chassis preprovisioned set virtual-chassis no-split-detection set virtual-chassis member 0 role routing-engine set virtual-chassis member 0 serial-number TA1111111111 set virtual-chassis member 1 role routing-engine set virtual-chassis member 1 serial-number TA2222222222
Check Virtual Chassis Status
bashshow virtual-chassis
JUNOS Upgrade via USB Drive
List USB Devices
bashls /dev/da*
Mount the USB Drive
Mount the USB drive to the path
/mnt
. For example, ifda1s1
is the USB device name:bashmount_msdosfs /dev/da1s1 /mnt
Copy the JUNOS Tarball
Copy the JUNOS tarball file to the local temp folder
/var/tmp
:bashcp /mnt/ju…..tgz /var/tmp
Install the Software
Install the software using the following command:
bashrequest system software add /var/tmp/ju……tgz no-validation
Reboot the Switches
Reboot the switches to complete the installation:
bashrequest system reboot
Clean Up Storage
Clean up the storage by removing the unused JUNOS tarball file in
/var/tmp
:bashrequest system storage cleanup
Reset Juniper Switch to Factory Default
Load Factory Default Configuration
bashload factory-default
Delete System Commit Factory Settings
bashdelete system commit factory-settings
Set Root Authentication
bashset system root-authentication plain-text-password
Remove Virtual Chassis Configuration from Shell
This step is helpful when you want to start from scratch after messing up the virtual chassis configuration. Note that the factory default may not delete the virtual chassis configuration.
Start Shell
bashstart shell
Navigate to Virtual Chassis Configuration Directory
bashcd /config/vchassis/
List and Remove Files
bashls rm *
Useful Links
This guide should help you configure a Juniper EX switch virtual chassis and upgrade JUNOS using a USB drive. If you have any questions or run into issues, refer to the provided links for additional support.