Create a separate network for VMs

KRoZ7

New Member
Jul 21, 2023
2
0
1
Hello, me and my colleagues have a server which has two NICs that are connected to 2 different IPs in our company network (different vlans)
The idea is that we create a separate virtual LAN for us to connect our VMs, but also use communicate with the rest of our company IRL network using either of the NICs (ideally both)
Currently we have the following interfaces:
enp2s0f0 (NIC 1)
enp2s0f1 (NIC 2)
vmbr0 (Has an IP of 10.16.2.90, It is bridged to enp2s0f1)
vmbr1 (Has an IP of 10.2.28.90, It is bridged to enp2s0f0)
vmbr2 (Has an IP of 192.168.10.100)

So far we created vmbr2 to connect our VMs in a separate network, and they CAN ping themselves (say VM 100 has a subnet of 110 and VM 101 has 120, they can respond) but cannot ping vmbr0 and vmbr1 and thus cannot access the company's network.

What can it be used to achieve the connection between bridges?

I have attached an image of the idea we have on how it should all be structured.

Thanks.
 

Attachments

  • idea (1).jpg
    idea (1).jpg
    43.8 KB · Views: 13
Here's the /etc/network/interfaces

Code:
auto lo

iface lo inet loopback



auto enp2s0f0

iface enp2s0f0 inet manual



auto enp2s0f1

iface enp2s0f1 inet manual



iface enp8s0f0 inet manual



iface enp8s0f1 inet manual



auto vmbr0

iface vmbr0 inet static

        address 10.2.28.90/24

        gateway 10.2.28.254

        bridge-ports enp2s0f1

        bridge-stp off

        bridge-fd 0

        bridge-vlan-aware yes

        bridge-vids 2-4094



auto vmbr1

iface vmbr1 inet static

        address 10.16.2.90/24

        gateway 10.16.2.254

        bridge-ports enp2s0f0

        bridge-stp off

        bridge-fd 0

        bridge-vlan-aware yes

        bridge-vids 2-4094



auto vmbr2

iface vmbr2 inet static

        address 192.168.10.100/24

        bridge-ports none

        bridge-stp off

        bridge-fd 0

        bridge-vlan-aware yes

        bridge-vids 2-4094
 

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!