Hi, welcome to Dell Technologies.
Today we are demonstrating basic SONiC switch management configuration. These steps assume your switch is being configured at factory default settings, as a standalone unit. Please see the linked knowledge base article for the written examples. We will start by setting up the management interface IP network connection. Open a console connection to your Dell switch.
In SONiC OS enter privilege exec mode with the default admin username and password. Start SONiC CLI with the command ‘sonic-cli’. We’ll show the running configuration of the management interface with the command ‘show running-configuration interface management 0’. Note, even though there is no configured IP address on the management interface it is still up in DHCP mode and can receive an IP address from the server.
Once you configure a static IP address DHCP will be disabled. DHCP will be re-enabled if you remove the static IP address. To modify the switch configuration run the ‘configure-terminal’ command. To configure the management interface, use the command ‘interface management 0’.
We will configure a static IP address and a default gateway on the management interface. We use IP address 1.1.1.2/24 and the gateway address of 1.1.1.1. We will use the command ‘end’ to exit configuration mode, and we will check our configuration with the command ‘show running-configuration interface management 0’. As you can see the management address and the gateway address are now configured.
Now we will show the interface status. As you can see, management interface is up, the protocol is up, we have the IP address and the gateway address. We can now save our changes with ‘write memory’. We will now configure an admin level user called ‘test’. We will get back into configuration mode with ‘configure terminal’, we will create a user ‘test’ with the password ‘P@ssword!’ and the role of ‘admin’. As you can see there are two different roles, operator and admin. Operator is read only while the admin role has full read and write privileges.
We will exit configuration with the command ‘end’, and we will verify configuration with the command ‘show running-configuration | grep test’. As you can see, we now have a username ‘test’ with the role of ‘admin’. We will ‘write memory’ to save the running configuration to the startup configuration. This concludes the demonstration of the SONiC basic switch management configuration.
Thank you.