[SOLVED] How to config proxmox network with two NIC and different Gateway

toorgnu

New Member
Oct 31, 2021
11
12
1
29
Hi, I added two network cards to a computer, each of these networks has a different gateway

Fisrt IP and Gateway: 172.16.100.167/24 ------- 172.16.100.1

Second IP and Gateway: 172.16.16.100/24 ------- 172.16.16.1


How do I configure the proxmox network so that fisrt Gateway (172.16.100.1) uses the first network card and second Gateway (172.16.16.1) uses the second network card?
 
Last edited:
Usually there can only be one default gateway which is used if there is no other, more fitting route to be found.

What do you want to achieve with two gateways? Redundancy regarding connecting to the internet via two different uplinks?
 
Usually there can only be one default gateway which is used if there is no other, more fitting route to be found.

What do you want to achieve with two gateways? Redundancy regarding connecting to the internet via two different uplinks?

I connect one of them to the modem (NGN), and other one will be conect to local network
 
If I understand your situation correctly, you don't need a gateway configured in the local network as the PVE server and IIUC the VOIP VM will have a network configured in the 172.16.100.1 network, and therefore also a route to that network. You can check it, for example with ip route on the CLI. For any network that they are not connected to directly and don't have a manual route setup, the default gateway will be used.
 
  • Like
Reactions: toorgnu
If I understand your situation correctly, you don't need a gateway configured in the local network as the PVE server and IIUC the VOIP VM will have a network configured in the 172.16.100.1 network, and therefore also a route to that network. You can check it, for example with ip route on the CLI. For any network that they are not connected to directly and don't have a manual route setup, the default gateway will be used.
Thanks aaron
 

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!