Dell EMC Networking S-Series: Basic Switch Management Configuration - SONIC 4.0

Summary: How to configure SONIC 4.0 basic switch management.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Instructions
NOTE: These steps assume that your switch is being configured starting with factory-default settings.

Instructions for setting up the management interface network connection:  
  1. Open the console or management IP for your S-series switch. 
  2. Log in to the privileged exec mode with default credentials: admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0

sonic login: admin
Password:
Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --
  1. Start the SONIC CLI with: sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. To modify the switch configuration, run the configure terminal command to edit the switch configuration then press enter.
sonic# configure terminal
sonic(config)#
  1. Show the running configuration of the management interface:  show running-configuration interface management 0
sonic# show running-configuration interface Management 0
!
interface Management 0
 description Management0
 mtu 1500
 autoneg on
 speed 1000
sonic#
  1. To modify the switch configuration, run the configure terminal command to edit the switch configuration then press enter.
sonic# configure terminal
sonic(config)#
  1. To configure the management interface: Interface Management 0 command
sonic(config)# interface Management 0
sonic(conf-if-eth0)#
  1. Configure a static IP address and default gateway on the management interface with: IP address 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)# ip address 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)#
  1. Exit config mode to exec mode with: end
sonic(conf-if-eth0)# end
sonic#
  1. In exec mode, verify the management interface configuration is correct: show running-configuration interface Management 0
sonic# show running-configuration interface Management 0
!
interface Management 0
 description Management0
 mtu 1500
 autoneg on
 speed 1000
 ip address 1.1.1.2/24 gwaddr 1.1.1.1
sonic#
  1. Save the running configuration to startup configuration with: write memory
sonic# write memory
sonic#
NOTE: Once a static IP address is added to the Management 0 interface, DHCP will automatically be disabled. If the static IP address is removed, DHCP will automatically be re-enabled.

Instructions for setting up an admin level user:  
  1. Open the console or management IP for your S-series switch. 
  2. Log in to the privileged exec mode with default credentials: admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0

sonic login: admin
Password:
Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --
  1. Start the SONIC CLI with: sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. To modify the switch configuration, run the configure terminal command to edit the switch configuration then press enter.
sonic# configure terminal
sonic(config)#
  1. Configure a username 'test' and password with sysadmin privileges: username test password P@ssw0rd!123 role admin
sonic(config)# username test password P@ssw0rd!123 role admin
sonic(config)#
  1. Exit config mode to exec mode with: end
sonic(config)# end
sonic#
  1. Verify the user configuration using: show running-configuration | grep test
sonic# show running-configuration | grep user
username test role admin
  1. Save the running configuration to startup configuration with: write memory
sonic# write memory
sonic#

For further assistance, see the Dell Technologies Enterprise SONiC User Guide Release Documentation or reach out to Dell Technologies Technical Support.

Affected Products

Enterprise SONiC Distribution
Article Properties
Article Number: 000201926
Article Type: How To
Last Modified: 24 May 2023
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.