[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:

bobmc

Well-Known Member
May 17, 2018
590
92
48
65
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?
 

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 your own in 60 seconds.

Buy now!