KB 708672 - Configuring Management Interface 0 (eth0) on SONiC 4.5.0 Switch via SONiC CLI

Purpose:
This article provides step-by-step instructions to configure the management interface (Management 0 / eth0) on a SONiC 4.5.0 switch with a static IP and default gateway using the SONiC CLI.
Scope:
Applicable to Edgecore S-series switches running SONiC 4.5.0 starting from factory-default settings.
1. Access the Switch Console
sonic login: admin
Password: YourPaSsWoRd
admin@sonic:~$
2. Launch the SONiC CLI
sonic-cli
You will enter the SONiC CLI prompt:
sonic#
3. Enter Configuration Mode
configure terminal
Prompt changes to:
sonic(config)#
4. Select the Management Interface
interface Management 0
Prompt changes to:
sonic(conf-if-eth0)#
Note: Management 0 corresponds to eth0 internally.
ip address 192.168.7.171/24 gwaddr 192.168.7.2
6. Exit Configuration Mode
end
Prompt returns to:
sonic#
7. Verify Configuration
show running-configuration interface Management 0
Example expected output:
!
interface Management 0
description Management0
mtu 1500
autoneg on
speed 1000
ip address 192.168.7.171/24 gwaddr 192.168.7.2
!
8. Save Configuration
write memory
This ensures the configuration persists after a reboot.
9. Optional Verification
ping -I eth0 192.168.7.2
show ip interface
Related Articles
KB 613194 - Creating a VLAN on SONiC Switch (SONiC-CLI)
Title: How to Create a VLAN on a SONiC Switch Purpose: This guide explains how to create a VLAN on a SONiC switch using SONiC-CLI. Applicable Products: EdgecoreSONiC Enterprise v 4.4.3 Steps Access SONiC CLI: sonic-cli Enter configuration mode: ...
KB 613242 - Adding a Description to an Interface on SONiC Switch
Title: How to Set Interface Description on SONiC Switch Purpose: This guide explains how to add or update descriptions for switch interfaces using SONiC-CLI. Applicable Products: Edgecore SOnic 4.4.3 Steps Access SONiC CLI: sonic-cli Enter ...
KB 915003 - Enabling and Validating RoCE (RDMA over Converged Ethernet) on SONiC
Purpose This guide explains how to enable RoCE on a SONiC switch, verify RDMA interfaces on connected compute nodes, and validate performance using RDMA bandwidth tests. 1. Enable RoCE on SONiC Switch Step 1.1 — Enable Priority Flow Control (PFC) PFC ...
How to configure EdgeCore Switch and Access point (Basic Configurations)
Edge Core 10-port PoE Access Switch (ECS4125-10P) The Edge core ECS4125-10P switch is a 2.5 Gigabit Ethernet access switch with two 10G uplink ports. The switch is an ideal 2.5 Gigabit PoE access switch for SMB, enterprise, and campus networks. The ...
KB 666015 - Network Switches
What is a Network Switch? A Switch is a network device that is used to segment the networks into different subnetworks called subnets or LAN segments. It is responsible for filtering and forwarding the packets between LAN segments based on the MAC ...
Recent Articles
KB-630208 | How to use Find and Locate to search for files in Linux
Purpose To provide Linux administrators and Field Engineers with guidance on using the find and locate utilities to efficiently search for files and directories within a Linux filesystem based on criteria such as name, type, size, timestamps, ...
KB-630164 | How to use rsync to Synchronize Files
Purpose To provide a clear and practical procedure for using the rsync utility to synchronize files and directories between local systems and remote hosts, including push and pull operations, while preserving file attributes and optimizing data ...
KB-630107 | How to create a Linux swap file
Purpose To provide Field Engineers and Linux administrators with a standardized procedure for creating, configuring, and validating a Linux swap file. This procedure helps ensure sufficient virtual memory is available when physical RAM is exhausted ...
MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims
MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims MSI's standard warranty does not cover physical or accidental damage to an All-in-One (AIO) PC. If the damage is determined to be caused by external factors rather than a ...
KB 134833 - Troubleshooting NVSM Alert NV-CPU-XX – Unrecoverable CPU Internal Error
Purpose This document provides a general troubleshooting procedure for the NVIDIA System Management (NVSM) alert NV-CPU-XX, which indicates that a CPU has reported an internal error. The article outlines how to verify whether the alert represents an ...
Popular Articles
CP Plus Camera and NVR Configuration
NVR Configuration The CP Plus Pro Series of NVRs have been meticulously designed for providing you with upgraded performance and higher recording quality in your IP video surveillance solution. The robust processor that has been inculcated in this ...
KB 775235 - Kerberos Authentication – Overview
What is Kerberos? Kerberos is a secure authentication method used in our Active Directory (AD) environment (mbuzztech.com). It allows users to: Access multiple systems without re-entering passwords (Single Sign-On – SSO) Log in once Where We Use It ...
How to Remove and Reinstall NVIDIA Drivers on Ubuntu
This article provides step by step guide to completely remove existing NVIDIA drivers and reinstall specific version of the NVIDIA driver on the Ubuntu system Prerequisites Administrative (sudo) access to the Ubuntu system. Internet access to ...
KB 692001 - Personal Computers and Servers - Classification and Point of Contact
We can classify the computers that MBUZZ handles based on their form-factor as below: Tower Workstations, Desktops, Gaming PCs and SFF (Small form factor) PCs fall under this category. These are computers people would use on a desk and rarely move. ...
KB 298031 - M.2 SSD Tier List
The sequential read and write speeds, which are usually the most advertised number, are not a proper benchmark of real-world performance or the quality of an SSD. This article categorizes and tiers SSDs based on factors like the type of NAND flash, ...