Configuring Management VLAN on ESXi Hosts
Current State
- ESXi hosts are using untagged management network
- IP addresses are already in 192.168.10.0/24 range
- Need to decide whether to tag management traffic with VLAN 10
Option 1: Keep Management Untagged (Recommended for Homelab)
Advantages
- Simpler configuration
- Less chance of lockout
- Easier recovery if issues occur
- Many homelabs use this approach
Physical Switch Configuration
Ubiquiti Switch Port Settings:
- Port Profile: All
- Native Network: Management (VLAN 10)
- Tagged Networks: 20,30,40,50,100,110
ESXi Configuration
No changes needed - management stays untagged.
Option 2: Configure VLAN 10 on Management
Advantages
- Better security through VLAN isolation
- Consistent with enterprise practices
- All traffic is explicitly tagged
WARNING
⚠️ This can lock you out of ESXi management! Only proceed if you have:
- Console access to hosts
- Physical switch properly configured
- Backup access method
Configuration Steps
Step 1: Configure Physical Switch First
Ubiquiti Switch Port Settings:
- Port Profile: All
- Native Network: Default (VLAN 1)
- Tagged Networks: 10,20,30,40,50,100,110
Step 2: Configure Each ESXi Host
Method A: Using DCUI (Safest)
- Access host console (physical or IPMI)
- Press F2 to login
- Navigate to: Configure Management Network
- Select: VLAN
- Enter: 10
- Press ESC and confirm changes
- Test connectivity before proceeding to next host
Method B: Using SSH (Risky)
# WARNING: This will briefly disconnect you!
ssh root@esxi-nuc-01.markalston.net
esxcfg-vswitch -v 10 -p "Management Network" vSwitch0
Method C: Using vCenter (If Already Connected)
- Select Host in vCenter
- Configure → Networking → Virtual switches
- Edit vSwitch0 → Management Network
- VLAN ID: 10
- Save changes
Verification Steps
After configuration:
# Check VLAN configuration
esxcfg-vswitch -l
# Verify management network
esxcli network vswitch standard portgroup list
# Should show:
# Management Network 10 vSwitch0
Recovery if Locked Out
From Console
- Press F2 at DCUI
- Configure Management Network
- VLAN → Set to 0 (untagged)
- Save and exit
Reset Network from Console
1. F2 → Troubleshooting Options
2. Restart Management Network
3. Or: Reset Network Settings
Recommendation for Your Setup
For a homelab, I recommend Option 1: Keep management untagged
Reasons:
- You already have working connectivity
- Simpler to troubleshoot
- Less risk of lockout
- VLANs for other traffic types provide sufficient isolation
If you choose Option 1, just ensure your Ubiquiti switch ports have:
- Native VLAN: Your management network
- Tagged VLANs: All others (20,30,40,50,100,110)
Testing Approach
If you decide to implement VLAN 10:
- Test on one NUC first (esxi-nuc-03)
- Ensure you can still access it
- Then proceed with others
- Keep Mac Pro for last (it’s hosting vCenter)