Purpose: This guide explains how to create a VLAN on a SONiC switch using SONiC-CLI.
Applicable Products: EdgecoreSONiC Enterprise v 4.4.3
Access SONiC CLI:
Enter configuration mode:
Create a VLAN:
Example:
Assign an IP address and MTU (optional, for Layer 3):
Verify VLAN creation:
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.