2 isp router 1 proxmox

iruindegi

Renowned Member
Aug 26, 2016
54
0
71
Zarautz
Hi,
I used to have my proxmox with one nic and a gateway to my ISP router (172.28.64.2)

Nowadays, we have 2 internet providers, each with their own routers and different IP range. I added a second NIc to proxmox and what I want is to create some VM that will use this second nic and the second isp router. So, what I need is:

ISP1 => Router (172,28.64.2) => Proxmox nic eth0
ISP2 => Router(192.168.1.1) => Proxmox nic eth1

For that I created 2 Linux Bridget in Proxmox (networks tab)

Name Type Active Autostart Ports/Slaves IP Address Subnet Gateway
vmbr0 Linux Bridge Yes Yes eth0 172.28.64.16 255.255.255.0 172.28.64.2
vmbr1 Linux Bridge Yes Yes eth1 192.168.1.100 255.255.255.0

This is my /etc/network/interfaces file

auto lo
iface lo inet loopback

#iface eth0 inet manual
#iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 172.28.64.16
netmask 255.255.255.0
gateway 172.28.64.2
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.1.100
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0


The fact is that when I set some VM/CT with vmbr1 and check for my public IP, is not correct, it´s always using the ISP1 instead of ISP2...

any help?
 
> The fact is that when I set some VM/CT with vmbr1 and check for my public IP, is not correct, it´s always using the ISP1 instead of ISP2...

probably because your default route is going through vmbr0
you check get that with ip route
 

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!