Part 5: Perform Initial Configuration
To run the EZSetup script, the switch must have the factory-default configuration as the active configuration. If you have configured any configuration on the switch and want to run EZSetup, see the documentation at https://www.juniper.net/documentation/en_US/release-independent/junos/topics/task/configuration/ex-series-switch-default-factory-configuration-reverting.html to revert to the factory-default configuration.
To connect and configure the switch from the console:
Set the following values on the console server or PC:
- Connect the console port on the rear panel of the switch
to a laptop or PC by using the RJ-45 to DB-9 serial port adapter.
You can also use the mini-USB port on the front panel to connect the switch to a laptop or PC (see the documentation at https://www.juniper.net/documentation/en_US/release-independent/junos/topics/task/installation/port-ex-series-mini-usb-management-console-connecting.html).
- At the Junos OS shell prompt root%, type ezsetup.
- (Optional) Enter the hostname.
- Enter the root password that you want to use for this device.
- When prompted, reenter the password.
Enable the SSH and Telnet services.
You will not be able to log in to the switch as the root user through Telnet. Root login is allowed only through SSH.
The default option for SSH is yes. Press Enter to accept the default option and enable SSH.
The default option for Telnet is no. At the prompt, enter yes and press Enter to enable Telnet.
- Configure in-band management or out-of-band management:
In in-band management, you configure a network interface or an uplink module (expansion module) interface as the management interface and connect it to the management device.
In this scenario, can do either of the following:
Use the automatically created VLAN named default for management of all data interfaces as members of the default VLAN. Specify the management IP address and the default gateway.
Create a new management VLAN. Specify the VLAN name, VLAN ID, management IP address, and default gateway. Select the ports that must be part of this VLAN.
In out-of-band management, you use a dedicated management channel (
MGMTport) to connect to the management device. Specify the IP address and gateway of the management interface. Use this IP address to connect to the switch.
- (Optional) Specify the SNMP read community, location, and contact to configure SNMP parameters.
- (Optional) Specify the system date and time. Select the
time zone from the list.
The configured parameters are displayed.
- Enter yes to commit the configuration.
The configuration is committed as the active configuration for the switch.
You can now log in by using the CLI and continue configuring the switch.