Step 2: Up and Running
Now that the EX4400 is powered on, let’s do some initial configuration to get it up and running on the network. It’s simple to configure and manage the EX4400 using the CLI.
Plug and Play
The EX4400 switch ships with factory-default settings that enable plug-and-play operation. These settings load as soon as you power on the switch.
Customize the Basic Configuration
You can easily customize the factory-default configuration with just a few commands. When you commit changes to the configuration, a new configuration file is created. This becomes the active configuration. You can always revert to the factory-default configuration whenever you want.
Have the following information ready before you begin customizing the switch:
Root authentication password
Management port IP address
Default gateway IP address
DNS server IP address
- Verify that the serial port settings for your laptop or
desktop PC are set to the default::
- Connect the console port (labeled
CON) on the rear panel of the EX4400 switch to a serial port on your laptop or desktop PC using the Ethernet cable and RJ-45 to DB-9 adapter. If your laptop or desktop PC doesn't have a serial port, use a serial-to-USB adapter (not provided).
- 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.login: root
- Start the CLI.root@:RE:0% cliroot>
- Enter the configuration mode.root> configureroot#
- 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'll show you how to enter a plain-text
password.root# set system root-authentication plain-text-passwordNew password: passwordRetype new password: password
- Configure the default gateway.root# set routing-options static route 0/0 next-hop address
- Configure the IP address and prefix length for the management
interface on the switch.root# set interfaces me0 unit 0 family inet address address/prefix-length
The management port me0 (labeled
MGMT) is on the rear panel of the EX4400 switch.
The management interface provides a dedicated out-of-band management channel to manage devices on the network. If you need to configure in-band management, see Configure Junos OS on the EX4400 in the EX4400 Switch Hardware Guide.
- Configure the IP address of a DNS server.root# set system name-server address
- Configure the SSH service.root# set system services ssh root-login allow
- Commit the configuration to activate it on the switch.root# commit
- When you’ve finished configuring the switch, exit
configuration mode.root# exitroot>