[SOLVED] Multiple IP (static + dhcp) on one interface via ifupdown2

7sprmag

New Member
Jul 3, 2022
2
0
1
Hello. Can somebody help me please

I have this config '/etc/network/interfaces' on ProxmoxVE:
Code:
auto lo
iface lo inet loopback
iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
      address 10.1.1.3/24
      address 192.168.1.5/24
      bridge-ports enp1s0
      bridge-stp off
      bridge-fd 0
How can I make on vmbr0 one static IP address and other one dhcp together?

In ifupdown legacy mode it looks like this:
Code:
auto vmbr0:1
iface vmbr0:1 inet dhcp

But in ifupdown2 this method doesn't work
 
Last edited:
The only way of doing this sensibly is to use VLAN's

Might be helpful if you could tell us what you are trying to do and why?
 
The only way of doing this sensibly is to use VLAN's

Might be helpful if you could tell us what you are trying to do and why?
vlans is separate broadcast domains, in my case I have both a secondary gateway (LTE) that issues DHCP only, as well as a dumb/unmanaged switch on on the same physical interface. So I use it as a secondary/tertiary corosync interface and management, and thus need it stable/fixed, but need the LTE's DHCP to have a call home for this stack/cluster
 

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!