I need to put a bond somewhere but don t know where

MeltingTwix

New Member
May 8, 2019
4
0
1
31
Hello

so I installed proxmox with several win 10 VM . So I only have 1 public IP for several VMs. That s why I went for masquerading set up.

My network code is :


auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 195.xxx.171.60
netmask 255.255.255.0
gateway 195.xxx.171.1
bridge_ports eno1
bridge_stp off
bridge_fd 0

auto vmbr1
#private sub network
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE

With that, Only 1 VM can reach internet at the time. First I start, first to connect.
My aim is to run several VMs at the same time that can connect to internet^^
Thus I need a bridge somewhere but I don t know where to put it. Also which kind of bridge would be better ?
 
so I installed proxmox with several win 10 VM . So I only have 1 public IP for several VMs. That s why I went for masquerading set up.

My network code is :


auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 195.xxx.171.60
netmask 255.255.255.0
gateway 195.xxx.171.1
bridge_ports eno1
bridge_stp off
bridge_fd 0

auto vmbr1
#private sub network
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE

With that, Only 1 VM can reach internet at the time. First I start, first to connect.
My aim is to run several VMs at the same time that can connect to internet^^
Thus I need a bridge somewhere but I don t know where to put it. Also which kind of bridge would be better ?


Not at all - using these settings internet connection from all VMs should work simultaneously.
 
hmm

you are right. It works now thanks :)

but I added autostart on the eno1 device. Don t know if it s related ^^
 
Last edited:

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!