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/qfx-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-qfx-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 services such as SSH and Telnet.
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. Select this to enable SSH.
The default option for Telnet is no. Change this to yes to enable Telnet.
- Use the Management Options page to select the management
scenario. You can select in-band management or out-of-band management:
Configure in-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, you have the following two options:
Use the automatically created VLAN default for management—Select this option to configure all data interfaces as members of the default VLAN. Specify the management IP address and the default gateway.
Create a new VLAN for management—Select this option to create a management VLAN. Specify the VLAN name, VLAN ID, management IP address, and default gateway. Select the ports that must be part of this VLAN.
Configure out-of-band management—Configure the management port. 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.