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

    • DHCP Snooping configuration on Broadcom Sonic

      Enabling DHCP Snooping Command: ip dhcp snooping This command enables DHCP Snooping globally on the device, helping monitor and block unauthorized DHCP servers. Disable DHCP snooping sonic-cli# configure terminal sonic-cli(config)# no ip dhcp ...
    • Configuring AAA in Broadcom sonic

      AAA Authentication Fail through Description: Configures AAA authentication fail through. Syntax: aaa authentication failthrough <enable> Parameters: enable: Enable or disable the feature. Example: sonic(config)# aaa authentication failthrough enable ...
    • IP Helper Configuration on Broadcom SoNiC

      1. To Display IP helper global information Command: show ip forward-protocol 2. To Displays IP helper server addresses configured on interface Command: show ip helper-address [ <iface> ] 3.To Display IP helper packet counters and statistics on ...
    • Syslog server configuration in Broadcom SoNiC

      1. To Configure remote syslog server to forward syslog messages Command: logging server <host> [ message-type { audit | auditd-system | event | log } ] [ remote-port <vrport> ] [ protocol { tcp | tls | udp } ] [ source-interface { Ethernet | Loopback ...
    • Border Gateway Protocol- FAQ (Broadcom SoNiC)

      1. How do I configure BGP hold and keepalive timers? Use timers <keepalive> <hold>. 2. How do I enable BGP in SONiC? Use router bgp <AS_number> to enter BGP configuration mode. 3. What does neighbor mean in BGP configuration? neighbor defines the IP ...