Back to switches
VLAN Configuration Guide via CLI
Learn how to configure isolated, voice, and management VLANs on ZT-SW2448 switches.
Published: 1/7/2026 Category: switches
### Overview
This guide provides step-by-step CLI commands to initialize and assign Virtual Local Area Networks (VLANs) on the **ZT-SW2448-G 48-Port Switch**.
---
### Standard VLAN Layout
* **VLAN 1**: Default Management Network (Not recommended for client traffic)
* **VLAN 10**: B2B Corporate Devices (Secure LAN)
* **VLAN 20**: VoIP IP Phones (Quality of Service enabled)
* **VLAN 30**: Guest Sandbox (Internet-only access, client isolation)
---
### CLI Configuration Commands
To start the configuration, log in to the switch console via SSH or serial connection, enter configuration mode, and run:
```bash
# Enter privileged execution mode
enable
# Enter global configuration mode
configure terminal
# Create VLAN 10 and assign name
vlan 10
name Corporate_Secure
exit
# Create VLAN 20 and assign name
vlan 20
name VoIP_Phones
exit
# Assign Port 1/0/5 to VLAN 10 (Access Mode)
interface gigabitethernet 1/0/5
switchport mode access
switchport access vlan 10
exit
# Enable Trunking on Port 1/0/48 (Uplink to Router)
interface gigabitethernet 1/0/48
switchport mode trunk
switchport trunk allowed vlan 10,20,30
exit
# Save settings permanently
write memory
```
---
### Verification
Verify that the VLANs have been created and ports successfully mapped by running:
```bash
show vlan brief
```
Was this article helpful?