Connect VM to vmbr0:n

SniperCZE

New Member
Oct 9, 2014
1
0
1
Hello all,
I'm trying to setup networking for my proxmox VMs. I have setup some interfaces and I'm trying to connect VM to them. My /etc/network/interfaces looks like this:

Code:
# network interface settings
auto lo
iface lo inet loopback

# private subnets
iface eth0 inet manual
iface eth2 inet manual

auto bond0
iface bond0 inet manual
    slaves eth0 eth2
    bond-mode 4
    bond-lacp-rate fast
    bond-miimon 100
    bond-downdelay 0
    bond-updelay 0
    bond-xmit_hash_policy 1

auto vmbr0
iface vmbr0 inet static
    address  10.105.89.2
    netmask  255.255.255.192
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

auto vmbr0:1
iface vmbr0:1 inet static
    address  10.105.97.194
    netmask  255.255.255.192
    up route add -net 10.0.0.0/8 gw 10.105.97.193


# public subnets
iface eth1 inet manual
iface eth3 inet manual

auto bond1
iface bond1 inet manual
    slaves eth1 eth3
    bond-mode 4
    bond-lacp-rate fast
    bond-miimon 100
    bond-downdelay 0
    bond-updelay 0
    bond-xmit_hash_policy 1

auto vmbr1
iface vmbr1 inet static
    address 37.58.111.2
    netmask 255.255.255.240
    bridge_ports bond1
    bridge_stp off
    bridge_fd 0

auto vmbr1:1
iface vmbr1:1 inet static
    address  159.8.17.146
    netmask  255.255.255.248
    gateway  159.8.17.145

auto vmbr1:2
iface vmbr1:2 inet static
    address 159.8.31.162
    netmask 255.255.255.240

vmbr0 is for private network between VMs, vmbr0:1 is private network between proxmox hosts, vmbr1 is public network for some VMs, vmbr1:1 is public network for proxmox hosts and vmbr1:2 should be public network for another VMs. But Proxmox UI allows me only assign VM to vmbr0 or vmbr1 and cannot use vmbr1:2. Is there any fix how to connect VM to right vmbr interface? Or need I replan my network schema? Thanks a lot.
 

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!