Vlan tagging for management interface

E

eg1l

Guest
Hi.

I have tried searching and applying various network configurations, but none of my configurations are working for my needs.
My network consists of multiple VLANs trunked to all my hosts, including the management VLAN.

The hosts have 2x1GB nic, that I want bonded.
This is my setup: VLAN(85, 202, 300, 301, 302) -> HOST (eth0, eth1->bond0)

What I want is to be able to:
  • One IP for the host on the management vlan 85
  • One IP for the host on the private vlan 300
  • Tag one VLAN 300, 301 etc to a VM

This is my current config:

Code:
auto lo
iface lo inet loopback


# Bond0 slave 0
iface eth0 inet manual


# Bond0 slave 1
iface eth1 inet manual


auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond_miimon 100 
    bond_mode 802.3ad
    bond-lacp-rate 0
    pre-up ip link set eth0 mtu 9000
    pre-up ip link set eth1 mtu 9000
    up ip link set bond0 mtu 9000


# Management IP in VLAN 885
auto vmbr0
iface vmbr0 inet static
    address 192.168.1.79
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8
    bridge_ports bond0
    bridge_stp off 
    bridge_fd 0
    bridge_maxage 0
    bridge_ageing 0
    bridge_maxwait 0


# iSCSI/NFS vlan 202
auto bond0.202
iface bond0.202 inet manual
    vlan-raw-device bond0


auto vlbr202
iface vlbr202 inet static
    address 10.0.2.13
    netmask 255.255.255.240
    bridge_ports bond0.202
    bridge_stp off 
    bridge_fd 0
    bridge_maxage 0
    bridge_ageing 0
    bridge_maxwait 0


# Public vlan 300 (internal server)
auto bond0.300
iface bond0.300 inet manual
    vlan-raw-device bond0

My question is, how can I assign a IP to the host on vlan 300, and also be able to tag it to a VM?
 
What I can do is putting the host on native VLAN 300, assign an IP to it on interface vmbr0.
The problem is, then the default VLAN for all VMs will be VLAN 300.
I would like to set this in the gui pr VM independent of what the native VLAN on the host is.
 

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!