Two nic's, one for local VMs, one for internet and updates

Jun 21, 2017
5
0
1
Hi!

I have an issue where I want (if possible) to configure the network like so:

Nic1; static ip for use with the bridge and VMs / LXCs, part of a small subnet inside a huge subnet, so i need the gateway)

Nic2: Dhcp (internet) for updating purposes

Is this possible? And how. I can't find a configuration that works.
 
Last edited:
is the proxmox host meant to be the gateway, so outgoing traffic VM is traffic is supposed to reach the outside via Nic 2 ?

In that case you need something similar to
https://pve.proxmox.com/pve-docs/ch..._nat_with_span_class_monospaced_iptables_span

replace the static configuration of eth0 with DHCP

or is the gateway of the VMs meant to be outside the LAN ? then you could use the default bridge mode

Not exactly.

Nic1: vmbr0 (Static)
---------------------------------} No bridge
Nic2: Wan (Dhcp)

Wan is strictly for updating proxmox / debian.