Using a second NIC on the node from VMs

MikeC

Renowned Member
Jan 11, 2016
71
0
71
Bay Area, California
Hey all,

My containers require 2 networks for application requirements. Within the node, adding a second interface to the VMs allows them to communicate between them. However, accessing other servers outside of the proxmox environment does not work. To that end, I've added a second physical connection to the node, and updated it's interfaces files thusly;

auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.88.22
netmask 255.255.255.0
gateway 192.168.88.1
bridge_ports eno1
bridge_stp off
bridge_fd 0

iface eno2 inet manual

auto vmbr1
iface vmbr1 inet static
address 192.168.27.22
netmask 255.255.255.0
gateway 192.168.27.1
bridge_ports eno2
bridge_stp off
bridge_fd 0

iface eno3 inet manual

iface eno4 inet manual



What do I need to do on the VMs to allow them to route traffic out of the node on the 27-net?
I've added a second virtual interfave to the containers via the web gui, but they still can't ping hosts outside the node that are on that subnet.
The second interface on the node is connected to a switch which has an untagged VLAN assiged to it, along with 2 bare metal servers.
The bare metal servers communicate fine with one another through the 27 subnet. Even the node itself can ping them. The containers, however, seem to be dropping any traffic destined to that subnet.

Thanks.
 

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!