Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Step 2: Up and Running

Now that the EX4100 and EX4100-F switch is powered on, let’s do some initial configuration to get the switch up and running on your network. It’s simple to provision and manage the switch and other devices on your network. Choose the configuration tool that’s right for you:

Plug and Play

EX4100 and EX4100-F switches already have factory-default settings configured right out of the box to make them plug-and-play devices. The default settings are stored in a configuration file that:

  • Sets Ethernet switching and storm control on all interfaces

  • Sets Power over Ethernet (PoE+/PoE++) on all RJ-45 ports of models that provide PoE+/PoE++

  • Enables the following protocols:

    • Internet Group Management Protocol (IGMP) snooping

    • Rapid Spanning Tree Protocol (RSTP)

    • Link Layer Discovery Protocol (LLDP)

    • Link Layer Discovery Protocol-Media Endpoint Discovery (LLDP-MED)

These settings are loaded as soon as you power on the switch. If you want to see what’s in the factory-default configuration file for your switch, see EX4100 and EX4100-F Default Configuration.

Customize the Basic Configuration Using the CLI

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

  1. Verify that the serial port settings for your laptop or desktop PC are set to the default:

    • Baud rate—9600

    • Flow control—None

    • Data—8

    • Parity—None

    • Stop bits—1

    • DCD state—Disregard

  2. Connect the console port on the EX4100 and EX4100-F switch to a laptop or desktop PC using the Ethernet cable and the RJ-45 to DB-9 serial port adapter that came in the box with the switch. If your laptop or desktop PC doesn't have a serial port, use a serial-to-USB adapter (not provided).

  3. At the Junos OS log in 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 Series switches running current Junos software are enabled for Zero Touch Provisioning (ZTP). However, when you configure an EX Series 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.

  4. Start the CLI.

  5. Enter configuration mode.

  6. 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.

  7. 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.

  8. Activate the current configuration to stop ZTP messages on the console.

  9. Configure the hostname.

  10. 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.

  11. Configure the default gateway for the management network.

  12. Configure the SSH service. By default the root user cannot log in remotely. In this step you enable the SSH service and also enable root login via SSH.

  13. Optional: Configure the IP address of a DNS server.

  14. Optional: Configure an SNMP read community.

  15. Optional: Continue customizing the configuration using the CLI. See the Getting Started Guide for Junos OS for more details.

  16. Commit the configuration to activate it on the switch.

  17. When you’ve finished configuring the switch, exit configuration mode.