Dell S-Series SONiC 4.0: Basic Switch Management Setup - 夜莺博客

Dell S-Series SONiC 4.0: Basic Switch Management Setup

Dell S-Series open networking switches can run Enterprise SONiC, and the basic management setup is straightforward once you know the right command flow. This guide from the Dell knowledge base walks through the factory-default configuration steps: logging in with the default credentials, starting the SONiC CLI with sonic-cli, assigning a static IP and default gateway to the management interface, verifying the change, and saving it with write memory. The same pattern applies across S-Series platforms running SONiC 4.0.

Logging In and Starting the SONiC CLI

Debian GNU/Linux 9 sonic ttyS0

sonic login: admin
Password:
...
-- Software for Open Networking in the Cloud --

admin@sonic:~$ sonic-cli
sonic#

Configuring the Management Interface

Enter configuration mode and check the current management interface state:

sonic# configure terminal
sonic(config)# interface Management 0
sonic(conf-if-eth0)# ip address 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)# end

Verifying and Saving

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#
sonic# write memory

The gwaddr parameter sets the default gateway in one line, and write memory persists the running configuration to startup configuration so the management IP survives a reboot.

Related open-networking topics: the SONiC troubleshooting guide, getting started with Mellanox switches, and setting the management IP on Dell EMC ME4084.

原文链接:https://www.dell.com/support/kbdoc/en-us/000201926/dell-emc-networking-s-series-basic-switch-management-configuration-sonic-4-0