Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
external-header-nav
keyboard_arrow_up
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Connecting and Configuring an EX Series Switch (J-Web Procedure)

date_range 09-Dec-24

You can configure an EX Series switch using either the J-Web interface or the console using the CLI.

Starting in Junos OS Release 22.3R1, J-Web supports EX4400 switches.

Starting in Junos OS Release 22.4R1, J-Web supports EX4100 and EX4100-F switches.

Starting in Junos OS Release 23.1R1, J-Web supports EX4400-24X switches.

Starting in Junos OS Release 23.2R1, J-Web supports EX4400-EM-1C uplink module for EX4400 and EX4400-24X switches.

Starting in Junos OS Release 24.4R1, J-Web supports EX4100-H-12MP, EX4400-48XP, and EX4400-48MXP switches.

Have these values handy before you begin customizing settings for the switch:

  • Hostname

  • Root authentication password

  • Management port IP address

  • Default gateway IP address

  • (Optional) DNS server and SNMP read community

Here’s how to configure Junos OS for the first time starting from the factory default configuration:

  1. Before you connect and configure a switch, set the following parameter values on the console server or PC:
    • Baud rate—9600

    • Flow control—None

    • Data—8

    • Parity—None

    • Stop bits—1

    • DCD state—Disregard

  2. Power on the device.
  3. Connect the Ethernet cable from the Ethernet port on the PC to the switch.
    • EX2200, EX3200, or EX4200 switch—Connect the cable to port 0 (ge-0/0/0) on the front panel of the switch.

    • EX2300 switches except the EX2300-C, EX2300-24MP, and EX2300-48MP switches, EX3300, EX4100, and EX4100-F switches—Connect the cable to the port labeled MGMT on the rear panel of the switch.

    • EX2300-C, EX2300-24MP, EX2300-48MP, EX4100-H, EX4400-24X, EX4500, or EX4550 switch—Connect the cable to the port labeled MGMT on the front panel (LCD panel side) of the switch.

    • EX4650 or EX4400 switches—Connect the cable to the port labeled CON on the rear panel of the switch.

    • EX6200 switch—Connect the cable to one of the ports labeled MGMT on the Switch Fabric and Routing Engine (SRE) module in slot 4 or 5 in an EX6210 switch.

    • EX8200 switch—Connect the cable to the port labeled MGMT on the Switch Fabric and Routing Engine (SRE) module in slot SRE0 in an EX8208 switch or on the Routing Engine (RE) module in slot RE0 in an EX8216 switch.

  4. At the Junos OS login prompt, type root to log in.

    You don't need to enter a password. If the software boots before you connect your laptop or desktop PC to the console port, you might need to press the Enter key for the prompt to appear.

    Note:

    EX switches running current Junos software are enabled for Zero Touch Provisioning (ZTP). However, when you configure an EX switch for the very first time, you’ll need to disable ZTP. We show you how to do that here. If you see any ZTP-related messages on the console, just ignore them.

  5. Start the CLI.
    content_copy zoom_out_map
    root@:RE:0% cli
    {master:0} root>
  6. Enter configuration mode.
    content_copy zoom_out_map
    {master:0} root> configure
    {master:0}[edit]
    root#
  7. Delete the ZTP configuration. Factory default configurations can vary over different releases. You may see a message that the statement does not exist. Don’t worry, it’s safe to proceed.
    content_copy zoom_out_map
    {master:0}[edit]
    root# delete chassis auto-image-upgrade
  8. Add a password to the root administration user account. Enter a plain-text password, an encrypted password, or an SSH public key string. In this example, we show you how to enter a plain-text password.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set system root-authentication plain-text-password
    New password: password
    Retype new password: password
  9. Activate the current configuration to stop ZTP messages on the console.
    content_copy zoom_out_map
    {master:0}[edit]
    root# commit
    configuration check succeeds
    commit complete
  10. Configure the hostname.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set system host-name name
  11. Configure the IP address and prefix length for the management interface on the switch. As part of this step, you remove the factory default DHCP setting for the management interface.
    content_copy zoom_out_map
    {master:0}[edit]
    root# delete interfaces vme
    root# set interfaces vme unit 0 family inet address address/prefix-length
  12. Configure the default gateway for the management network.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set routing-options static route 0/0 next-hop address
  13. Configure the SSH service. By default, the root user cannot login remotely. In this step, you enable the SSH service and also enable root login through SSH.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set system services ssh root-login allow
  14. Configure the Web management access.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set system services web-management https system-generated-certificate
  15. Optional: Configure the IP address of a DNS server.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set system name-server address
  16. Optional: Configure an SNMP read community.
    content_copy zoom_out_map
    {master:0}[edit]
    root# set snmp community community_name
  17. Optional: Continue customizing the configuration using the CLI.
  18. Commit the configuration to activate it on the switch.
    content_copy zoom_out_map
    {master:0}[edit]
    root# commit
  19. When you've finished configuring the switch, exit configuration mode.
    content_copy zoom_out_map
    {master:0}[edit]
    root# exit
    {master:0}
    root@name
  20. From the laptop or PC, open a Web browser, type the IP address that you configured in the Step 11 in the address field, and then press Enter.
    The J-Web Login page appears.
  21. Enter the root username and password and click Login to view the Configure Options page.
    You can continue to configure the switch.
external-footer-nav