Proxmox Host Config
Proxmox setup and VLAN networking.
Overview
Example configuration:
| |
The intended network design is:
- One VLAN-aware Proxmox bridge:
vmbr0 - Proxmox management traffic on VLAN 25
- Management IP assigned to
vmbr0.25 - VMs attached directly to
vmbr0 - VLAN tags configured individually on VM network interfaces
- Physical switch port configured as a VLAN trunk
1. Proxmox Login
Console login:
| |
Web interface:
| |
Login realm:
| |
2. Check Storage Layout
Show disks and filesystems:
| |
A typical Proxmox installation may look similar to:
| |
3. Uploading ISO Images
In the Proxmox web interface:
| |
Locally stored ISO images are normally located in:
| |
An ISO can also be copied using SCP:
| |
To attach an ISO to a VM:
| |
4. VLAN Network Design
The physical network interface is attached to a VLAN-aware Linux bridge:
| |
VMs also connect to vmbr0:
| |
Separate Proxmox bridges or Linux VLAN interfaces are not required for each VM VLAN.
5. Configure vmbr0 as VLAN-Aware
In the Proxmox web interface:
| |
Enable:
| |
The bridge should have no management IPv4 address when management is being placed on a tagged VLAN.
Example configuration:
| |
Replace:
| |
with the actual physical NIC name.
Find interface names with:
| |
or:
| |
6. Configure Proxmox Management on VLAN 25
The Proxmox host itself needs a VLAN interface because its management IP is on tagged VLAN 25.
Create:
| |
Example:
| |
The .25 identifies VLAN ID 25.
The complete /etc/network/interfaces configuration is therefore approximately:
| |
Edit the configuration with:
| |
Save in nano:
| |
Apply the network configuration:
| |
When changing the management IP remotely, use console access where possible because connectivity may be interrupted while the configuration is applied.
7. Hostname Resolution
Check:
| |
The Proxmox hostname should resolve to its management IP.
Example:
| |
Edit if required:
| |
8. Switch Port Configuration
The switch port connected to the Proxmox host must be configured as a VLAN trunk.
It should allow VLAN 25 plus any VLANs used by VMs.
Example:
| |
VLAN 25 is tagged because the Proxmox host uses:
| |
The management VLAN therefore does not need to be the native/untagged VLAN.
9. Configuring VLANs on VMs
VM network interfaces attach directly to:
| |
Then specify the VLAN tag on the VM’s network device.
Example VM on VLAN 30:
| |
Example VM on VLAN 40:
| |
There is normally no need to create:
| |
for guest networking.
Proxmox handles the 802.1Q VLAN tagging on the VM’s virtual network interface.
10. When Linux VLAN Interfaces Are Required
A Linux VLAN interface such as:
| |
is required when the Proxmox host itself needs an IP address on that VLAN.
For example:
| |
Additional Linux VLAN interfaces are not required purely because VMs use those VLANs.
For example, these are unnecessary unless the Proxmox host itself needs connectivity on them:
| |
11. Verify Management Networking
Check the management interface:
| |
Expected:
| |
Check vmbr0:
| |
It should not have the management IPv4 address assigned directly to it.
Check the routing table:
| |
Expected default route:
| |
Test the gateway:
| |
Test external IP connectivity:
| |
Test DNS:
| |
12. Verify Bridge VLAN Configuration
Show VLANs configured on Linux bridges:
| |
Show detailed information for the management VLAN interface:
| |
Show current interface configuration:
| |
Show routes:
| |
13. VLAN 0 Troubleshooting
VLAN ID 0 should not normally be configured as a usable VLAN.
An incorrect configuration can produce an error similar to:
| |
Check for VLAN 0 configuration:
| |
Check bridge VLAN state:
| |
The bridge VLAN range should normally be:
| |
rather than:
| |
For management VLAN 25, use:
| |
14. Useful Proxmox Networking Commands
Show all interfaces:
| |
Show interface names:
| |
Show routing table:
| |
Show bridge VLAN configuration:
| |
Show management VLAN interface:
| |
Show Proxmox network configuration:
| |
Edit network configuration:
| |
Apply network configuration:
| |
Reboot if required:
| |
Final Network Layout
| |
Key Points
vmbr0is VLAN-aware.vmbr0itself has no management IPv4 address.vmbr0.25carries the Proxmox management IP.- VLAN 25 is tagged on the physical switch trunk.
- VMs connect directly to
vmbr0. - VM VLANs are configured using the VLAN tag on each VM NIC.
- Separate Linux VLAN interfaces are unnecessary unless the Proxmox host itself requires an IP on that VLAN.
- The physical switch port must allow all VLANs required by the host and VMs.