Creating and Modifying VLANs on Broadcom SONiC

Creating and Modifying VLANs on Broadcom SONiC

Creating a New VLAN

To create a new VLAN, use the following command:

sudo config vlan add vlan-id
  • vlan-id: Specify the ID for the new VLAN (e.g., 10, 20, etc.).

Deleting an Existing VLAN

To delete an existing VLAN, execute the command below:

sudo config vlan del vlan-id
  • vlan-id: Enter the ID of the VLAN you wish to delete.

Adding an Interface to a VLAN

To add an interface to a VLAN, use this command:

sudo config vlan member add vlan-id interface
  • vlan-id: Specify the ID of the VLAN to which you want to add the interface.
  • interface: Indicate the interface you want to add (e.g., Ethernet0, Ethernet1, etc.).

Deleting an Interface from a VLAN

To remove an interface from a VLAN, use the following command:

sudo config vlan member del vlan-id interface
  • vlan-id: Specify the ID of the VLAN from which you want to remove the interface.
  • interface: Indicate the interface you want to delete (e.g., Ethernet0, Ethernet1, etc.).

    • Related Articles

    • What are the basic system health and diagnostics check commands for Broadcom SONiC?

      Health Checks: To monitor the health of the SONiC environment, several commands can be utilized: 1. System Health Summary: show system-health summary provides an overview of any critical issues. 2. Power Supply Status: show platform psusummary ...
    • How to Retrieve System Status Information on Broadcom sonic?

      The following commands can be used to display the status of various parameters related to the physical state of the network node. Show Boot This command displays the current OS image, the image to be loaded on the next reboot, and lists all available ...
    • What is the procedure for Installation of SONiC ?

      Install SONiC ONIE Image Connect to switch via serial console. (Optional) Some switches may come with a NOS which will require you to uninstall the existing NOS first before you install SONiC. To do so, simply boot into ONIE and select Uninstall OS: ...
    • Where can I get the installation guide for SONiC

      Attached document give the steps for the installation of
    • Managing SONiC Images

      SONiC Installer The SONiC Installer is a command-line utility included with the SONiC software. It allows users to install an alternate image on a designated partition if the device is already running SONiC. This tool facilitates the installation of ...