Create internal bridge for faster VM to VM communication

finish06

Renowned Member
Sep 2, 2014
41
4
73
Hello!
I am attempting to setup a virtual network for a subset of VMs to communicate on, i.e. completely virtual LAN.
I have tried the following:
1. edited /etc/network/interfaces to ...
auto vmbr200
iface vmbr200 inet static
address 10.10.10.0
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
2. then i ran ifup vmbr200 on the host
3. added another NIC to the VM attached to vmbr200
4. open VM, run ifconfig ... no 10.* network shows up...

What am I missing?

Thanks!
 
Hello!
I am attempting to setup a virtual network for a subset of VMs to communicate on, i.e. completely virtual LAN.
I have tried the following:
1. edited /etc/network/interfaces to ...
auto vmbr200
iface vmbr200 inet static
address 10.10.10.0
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
2. then i ran ifup vmbr200 on the host
3. added another NIC to the VM attached to vmbr200
4. open VM, run ifconfig ... no 10.* network shows up...

What am I missing?

Thanks!

You would need a DHCP service to tell your VM that it needs to have an address within 10.x. Personally I would use a light router distro to handle all the virtual networking so that you can greater control. Personally I prefer VyOS for my virtual routers.
 
You would need a DHCP service to tell your VM that it needs to have an address within 10.x. Personally I would use a light router distro to handle all the virtual networking so that you can greater control. Personally I prefer VyOS for my virtual routers.

Thank you for the insight. I didn't even consider the significance of adding a router until you mentioned it. DUH! :)
Now to the next problem, when I added the above bridge as shown, the rest of my proxmox network fails badly - as in the vmbr0 stops working and all network activity comes to a hault on VMs but not the node. The node is still accessible via ssh or the webGUI.

Here is a copy of my network config file.
PHP:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto eth2
iface eth2 inet manual

auto eth3
iface eth3 inet manual

auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond_miimon 100
    bond_mode 802.3ad

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.190
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

auto vmbr200
iface vmbr200 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0
 

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!