Skip to content
Townsend Networks
How-to guidePublished

Console and First Boot for Juniper EX2300, EX3400, EX4300

Models covered: EX2300, EX3400, EX4300, EX2300-C-12P, EX3400-48P, EX4300-24P, EX4300-48P, JNP-CBL-RJ45-DB9

Tools and parts needed

  • An Ethernet cable with an RJ-45 connector at either end
  • RJ-45 to DB-9 adapter (JNP-CBL-RJ45-DB9), RJ-45 to USB-A adapter (JNP-CBL-RJ45-USBA) or RJ-45 to USB-C adapter (JNP-CBL-RJ45-USBC)
  • For the Mini-USB console port: a mini-USB cable with Standard-A and Mini-USB Type-B (5-pin) connectors
  • A laptop or PC with a terminal program

The maker's warnings

  • EZSetup only runs on a switch whose active configuration is the factory default.[S1]
  • Back up the software with request system snapshot before request system zeroize. Zeroize can destroy the Junos and OAM partitions, and the switch may not boot.[S1]
  • Disconnect a Virtual Chassis member's VCP cables before you reset it, so the other members keep their settings.[S1]

Steps

  1. Step 1: Set up the terminal

    Set the console server or PC to 9600 baud, flow control none, 8 data bits, parity none, 1 stop bit, DCD state disregard.[S1]

  2. Step 2: Connect the console

    Connect the console port to the laptop or PC with an RJ-45 cable and the RJ-45 to DB-9 adapter, or a serial to USB adapter if the laptop has no serial port.[S1]

  3. Step 3: Start EZSetup

    At the Junos OS shell prompt root%, type ezsetup.[S1]

  4. Step 4: Name the switch and set the root password

    Enter the hostname if you want one, then enter the root password and reenter it when prompted.[S1]

  5. Step 5: Choose the services

    Enable SSH (the default is yes) and change Telnet to yes only if you need it.[S1]

  6. Step 6: Set up management

    For in-band, use the default VLAN or a new management VLAN with its IP address and gateway. For out-of-band, give the MGMT port its IP address and gateway.[S1]

  7. Step 7: Optional: SNMP, date and time

    Enter the SNMP read community, location and contact, and the date, time and time zone, if you want them now.[S1]

  8. Step 8: Commit

    Review the settings shown and enter yes to commit. They become the switch's active configuration.[S1]

  9. Step 9: Carry on over the network

    Log in with the CLI over SSH or with the J-Web interface at the management address to continue configuring the switch.[S1]

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.

Sources

Checked against the maker's documents on .

  1. S1Configuring Junos OS on the EX4300Juniper Networks · Document: EX4300 Switch Hardware Guide · Revision: Topic page dated 2025-06-19 · Section: EX4300 Default Configuration; Connecting and Configuring an EX Series Switch (CLI Procedure); Reverting to the Default Factory Configuration for the EX Series Switch · June 19, 2025

  2. S2Connecting the EX4300 to External DevicesJuniper Networks · Document: EX4300 Switch Hardware Guide · Revision: Topic page dated 2024-08-14 · Section: Connect a Device to a Management Console Using an RJ-45 Connector; Connect an EX Series Switch to a Management Console Using the Mini-USB Type-B Console Port · August 14, 2024

  3. S3EX2300 System OverviewJuniper Networks · Document: EX2300 Switch Hardware Guide · Revision: Topic page dated 2025-07-28 · Section: EX2300 front panel · July 28, 2025

  4. S4EX3400 System OverviewJuniper Networks · Document: EX3400 Switch Hardware Guide · Revision: Topic page dated 2025-07-28 · Section: EX3400 switch models · July 28, 2025

  5. S5EX4300 System OverviewJuniper Networks · Document: EX4300 Switch Hardware Guide · Revision: Topic page dated 2025-07-28 · Section: EX4300 switch models · July 28, 2025

In stock now

EX2300-C-12P Juniper Switch, Refurbished, 12x 1GbE PoE RJ45 and 2x 1/10GbE SFP+

EX2300-C-12P

EX2300-C-12P Juniper Switch, Refurbished, 12x 1GbE PoE RJ45 and 2x 1/10GbE SFP+

In stock

$340Ships same day
EX3400-48P Juniper Switch, Front-to-Back, 48x 1GbE PoE+ RJ45, 4x 1/10GbE SFP+ and 2x 40GbE QSFP+

EX3400-48P

EX3400-48P Juniper Switch, Front-to-Back, 48x 1GbE PoE+ RJ45, 4x 1/10GbE SFP+ and 2x 40GbE QSFP+

In stock

$375Ships same day
EX4300-24P Juniper Switch, Front-to-Back, Refurbished, 24x 1GbE PoE+ RJ45 and 4x 40GbE QSFP+

EX4300-24P

EX4300-24P Juniper Switch, Front-to-Back, Refurbished, 24x 1GbE PoE+ RJ45 and 4x 40GbE QSFP+

In stock

$590Ships same day
EX2300-48MP Juniper Switch, Refurbished, 48x 1GbE PoE+ RJ45 (16 × 2.5GbE) and 6x 10GbE SFP+

EX2300-48MP

EX2300-48MP Juniper Switch, Refurbished, 48x 1GbE PoE+ RJ45 (16 × 2.5GbE) and 6x 10GbE SFP+

In stock

$1,875Ships same day

Need help planning your next move?

Tested, warrantied hardware with real availability, and cash offers for decommissioned gear. Quotes answered by a human.