Homelab setup - 2 network interfaces

Miyamoto_Musashi

New Member
Jun 6, 2020
1
0
1
61
Hello colleagues,

I am building homelab on Proxmox.

My setup :

- Isolated environment - network 10.10.10.x (vmbr0)
- for updating of VMs I sometimes need to access to internet (vmbr1 interface defined)
- Idea is that for updating purpose I will temporary reconfigure the VM to use vmbr1

The problem is when I temporary reconfigure the VM to use vmbr1, the connection to internet from VM is not available.

Can you please help me (network config below) ?

Thanks,
M.

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1


auto vmbr0
iface vmbr0 inet static
address 10.10.10.10
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0


auto vmbr1
iface vmbr1 inet static
address 10.10.10.10
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vids 2-4094

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

the problem here is the routing table.
you can't have two identical subnets.
The Kernel will always process the first rule that fits.
so the second will ignored forever.
 

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!