[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