1. Introduction
Before we install and configure our SONiC switch, let’s look at the different ways to access it.
2. Physical connections
Let’s start with the physical connections that every open networking switch offers.
These switches usually have a console port for serial connections and a management port for Ethernet. Most of the time, both are RJ45 sockets. Some switches use other connectors, for example a micro USB port for the console.
You’ll always need the console port, at least as a backdoor, so be careful not to misconfigure it. It is usually set to 115,200 baud, although this can be changed in the switch’s BIOS.
To connect to the console port, you typically use a serial-to-USB cable plugged into your laptop or a similar device. Then use a terminal program such as PuTTY to work with the switch.
The management port is a regular Ethernet port, so you can reach the switch through it over your local network. It uses auto-negotiation, so it can connect at any speed from 10 Mbit/s to 1 Gbit/s. Some switches even have 10 Gbit/s management ports.
A new switch tries to get an IP address on this port through DHCP. So check your DHCP server to find the address the switch received. Or look it up on the console port.
Next, we’ll see exactly how to access the switch through the management port once we know its IP address.
3. Logging in
When you connect and power up a new white box switch for the first time, it boots into ONIE, the Open Network Install Environment. We’ll learn more about ONIE in the next lesson. The switch also boots into ONIE after you uninstall a previously installed OS.
A switch running ONIE can be reached through Telnet or SSH, and of course through the serial console. No username or password is needed. If you use SSH, specify root as the username when you connect. You still won’t need a password.
ssh root@<switch-ip>
Once SONiC is installed, you can reach the switch through SSH or the serial console. Telnet doesn’t work with SONiC.
The default user is admin, and the password is YourPaSsWoRd, with the unusual capitalization shown on the slide. This applies to both console and SSH connections.
ssh admin@<switch-ip>
Password: YourPaSsWoRd
In some SONiC versions, this password is set to expire after installation, so you must change it the first time you log in.
