The first hour with a Juniper EX switch happens at the console. This guide covers the console connection, what the switch does out of the box, Juniper's EZSetup script for the first configuration, and how to take a used switch back to the factory default before you start, for the EX2300, EX3400 and EX4300 families.
What you need on the bench
Set your terminal program to the values Juniper gives: baud rate 9600, flow control none, data 8, parity none, stop bits 1, and DCD state disregard. The console port accepts a cable that has an RJ-45 connector and is labeled CON, CONSOLE, or CON1 on the device.
Juniper no longer includes the RJ-45 console cable with the DB-9 adapter in the box, so order the adapter you need: the JNP-CBL-RJ45-DB9, the JNP-CBL-RJ45-USBA or the JNP-CBL-RJ45-USBC. The USB versions need the X64 (64-Bit) Virtual COM port (VCP) driver on your PC.
These three families also have a second console port, a Mini-USB Type-B port, except the EX2300-24MP and EX2300-48MP, which only have an RJ-45 console port. The RJ-45 port is the active one by default, and you must first configure the Mini-USB Type-B console port as the active port before you can use it. Once it is set, both the RJ-45 console port and the Mini-USB Type-B console port can be active at the same time on the EX2300, EX3400 and EX4300.
What the switch does out of the box
The factory default configuration configures Ethernet switching on all interfaces, enables IGMP snooping, and enables the LLDP and RSTP protocols, so a new EX switch starts switching traffic between its ports the moment it powers up. On an EX4300-48P running Junos OS Release 18.3R3 or later, the default also asks DHCP for an address on the vme and irb interfaces for phone-home connectivity. Because every port is switching from the first power-up, set the root password and management address before the switch joins a production network.
Starting from a used switch
EZSetup only runs when the factory-default configuration is the active one, so a switch that arrives with someone else's configuration has to be reset first. Juniper gives three ways.
- request system zeroize removes all configuration information and resets all key values, then the switch reboots and reverts to the factory-default configuration; request system zeroize media also makes the erased data unrecoverable.
- load factory-default replaces the active configuration but keeps the root password, so EZSetup will not run afterward.
- The Factory Reset/Mode button on the far right of the front panel, on the EX2300 (except the EX2300-24MP and EX2300-48MP), the EX2300-C, the EX3400 and the EX4300-48MP: press it for 10 seconds for the factory default, and 10 more seconds to enter initial setup mode.
Before a zeroize, Juniper says to back up the running software with request system snapshot, because the zeroize command will destroy Junos and OAM partitions and the switch may not boot. If the switch is a Virtual Chassis member, disconnect its VCP cables first so the reset does not change the other members. One thing a reset leaves behind is the old host name, which only changes when you configure a new one or reboot.
The button is enabled by default, and on a switch in a public space you can turn it off with set chassis config-button no-clear.
No console cable: the J-Web route
Juniper also documents a first setup through the J-Web browser interface, which needs only an Ethernet cable and a PC set to get its address by DHCP. On EX4300 switches other than the EX4300-48MP models, the cable goes to the port labeled MGMT on the rear panel. That port acts as a DHCP server with the default IP address, 192.168.1.1, and hands the PC an address from 192.168.1.2 through 192.168.1.253. Browse to that address, log in as root with the password field blank, and the setup pages ask for the same hostname, root password and management choices as EZSetup. After you click Finish the PC can lose its connection, and releasing and renewing its address, or reseating the cable, brings it back.
Root access after setup
EZSetup asks for the root password and lets you turn on SSH and Telnet, with SSH on by default and Telnet off. Root can only log in through SSH: you will not be able to log in to the switch as the root user through Telnet. For management, choose in-band through a data port or out-of-band through the MGMT port, keeping in mind that on EX2300 and EX3400 switches you cannot create a new VLAN for management. A lost root password does not need a factory reset; Juniper has a separate root password recovery procedure.
In stock at Townsend
We have the EX2300-C-12P, the EX3400-48P and the EX4300-24P in stock, each ready for the steps above. More models are on the EX2300 shelf, the EX3400 shelf and the EX4300 shelf.




