2 networks cards

jsenzier

New Member
Sep 26, 2014
21
0
1
Hello,

I installed 2 network cards on my computer where Proxmox is installed.

- Proxmox will access to 2 networks and to Internet :
10.0.0.0/24 (gateway : 10.0.0.1)
192.168.0.0/24 (gateway : 192.168.0.254)

I have 4 VMs :

- 3 will access to the network 10.0.0.0/24
- The last will access to the network 192.168.0.0/24 (ip 192.168.0.199/24)

This is my proxmox interface :

proxmo10.png

What is the procedure to do this ?

If I try to add vmbr1 :
Ip : 192.168.0.198
Netmask : 255.255.255.0
Gateway : 192.168.0.254

But I have an error message :
gateway: Default gateway already exists on interface 'vmbr0'.

How can i do this ?
 
And how can I configure my proxmox to access to the two networks ?

I don't understand what you are trying to do. You just configure one with a gateway and the other without.

Can you explain what it is you are trying to accomplish? Basic networking states you can only have one gateway.
 
I have 2 network cards in my computer with Proxmox (eth0 and eth1)

My computer is connected to 2 networks : 10.0.0.0/24 and 192.168.0.0/24

I have 4 VM :
- 3 on the first network (10.0.0./24)
- 1 on the second network (192.168.0.0/24)

The gateway to access to Internet in the first network is 10.0.0.1
The gateway to access to Internet in the second network is 192.168.0.1

All the VM need to access to Internet

How can I do this ?
 
Last edited:
You configure your VM with the gateway you want it to go out. Your host doesn't have to be able to browse the internet from both networks.
 
IP Address of my VMs :

Host : 10.0.0.188
Host : 192.168.0.198

VM1 ---> 10.0.0.73
VM2 ---> 10.0.0.189
VM3 ---> 10.0.0.190

VM4 ---> 192.168.0.199

So, on my host, what's the procedure ? And on the VMs ?
 
Your host only needs a connection to the second network. The VM is where you configure the gateway.

I have 6 different networks on my proxmox cluster. Only one system gateway because the VM network is 'separate' from the host.

Technically if you don't want to update the host, you don't need a gateway at all on your host.

Just load your VM and configure its network settings to work on that second network.
 
It's my configuration :

proxmo11.png

I add the gateway 192.168.0.1 on the last VM 192.168.0.199.

But, I can't access to Internet with the VM.

Can you explain, step by step, what's the procedure ?
 
You should take the time to read the wiki that talks about network configuration. I see problems with your config.
 
I changed my configuration :

proxmo12.png

I have now 2 vmbr, and on the vmbr1, a gateway for the second network 192.168.0.0/24.

What's the next step ?
 
Without venet, I don't have any IP Address. It's only static IP, so I need to add a venet ?
 

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!