Loevoe

New Member
Aug 4, 2022
1
0
1
Hello.

Is it possible to change Native vlan to something else than 1?
If so, just globally, or is it possible to make it per VM?
 
Do you mean, change the mgmt IP to another VLAN?
That should be possible. For example, if you have the mgmt IP on vmbr0 like so for example:
Code:
auto vmbr0
iface vmbr0 inet static
    address 192.168.0.100/24
    gateway 192.168.0.1
    bridge-ports enp13s0
    bridge-stp off
    bridge-fd 0

You can remove the IP and gateway config and configure a new VLAN interface with the IP and GW:
Code:
auto vmbr0
iface vmbr0 inet manual
    bridge-ports enp13s0
    bridge-stp off
    bridge-fd 0
    
auto mgmtnet
iface mgmtnet inet static
    address 192.168.0.100/24
    gateway 192.168.0.1
    vlan-id 30
    vlan-raw-device vmbr0
#MGMT Vlan interface

If you want to place VMs into VLANs you have multiple options. Either you set it per VM in the network settings of each NIC.
Or you create new vmbr interfaces that use a VLAN interface a bridge-port, or you define the bridge port interface directly on to the physical interface with the VLAN tag, for example: bridge-ports enp13s0.<vlan> or if you want to do that in a cluster, checkout the SDN where you can define your VLANs globally in the cluster.

There are quite a few options to get to your goal when it comes to VLANs :)
 
  • Like
Reactions: Moayad

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!