Creating a VLAN on SONiC Switch (SONiC-CLI)

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

  1. Access SONiC CLI:

sonic-cli
  1. Enter configuration mode:

configure terminal
  1. Create a VLAN:

interface Vlan <VLAN_ID> exit

Example:

interface Vlan100 exit
  1. Assign an IP address and MTU (optional, for Layer 3):

interface Vlan100 ip address 10.1.1.1/24 mtu 9100 no shutdown exit
  1. Verify VLAN creation:

show vlan show ip interface

6. Assign Port
# VLAN100 access ports interface Ethernet0 switchport access Vlan100 description "Node1 HSN-A" exit

Notes:

  • VLAN IDs range from 1 to 4094.

  • MTU should match the connected interfaces if using high-speed links (e.g., 9100 for RDMA/ROCE).

  • Use no interface Vlan <VLAN_ID> to remove a VLAN.

    • Related Articles

    • 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 ...
    • 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 ...
    • 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 ...
    • How to Upgrade Mellanox switch OS

      Steps to Upgrade Mellanox -OS Login to the WEB GUI The switch will pop up with the current version of the OS Open the https://nvcrm.my.site.com/npnportal/s/ Nvidia Partner Network portal and Navigate to the following Additional Resources>Enterprise ...
    • 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 ...
    • 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 ...
    • 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. ...
    • 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, ...