How can I add additional IPs to Proxmox network interface?

hisaltesse

Well-Known Member
Mar 4, 2009
227
2
58
I am confused. Back in proxmox 3 in order to add additional IPs from a different block to my containers, all I had to do was to add the following to the Proxmox network interface:

auto vmbr0:1
iface vmbr0:1 inet static
address 123.456.789.012
netmask 255.255.255.0

This doesn't seem to work on proxmox 5.
Any suggestions on how to do the same on proxmox 5?
Thanks.
 
The :1 is not necessary.

Use a double entry with an alternative setting.
 
The :1 is not necessary.

Use a double entry with an alternative setting.

I do not understand what you mean. Could you please paste what it would look like instead?

And is there a tutorial on how to do this as well from the GUI?

Thank you.
 
auto vmbr10
iface vmbr10 inet static
address 192.168.16.2
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

iface vmbr10 inet static
address 10.0.0.2
netmask 255.255.255.0
 
Can you confirm me that if we use the same "vmbr10", we can't put down only one ip the network interface ?

i use also have the ":1" in my config so i can do :

ifconfig down vmbr0:1

to just shut down this specific ip address
 
No this do not work this way.
You have to use "ip a del" to unset the ip.
 
auto vmbr10
iface vmbr10 inet static
address 192.168.16.2
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

iface vmbr10 inet static
address 10.0.0.2
netmask 255.255.255.0
Why double entry? Wouldn't this suffice if I wanted to add the IP range which contains the IP 192.168.16.2 ?

auto vmbr10
iface vmbr10 inet static
address 192.168.16.2
netmask 255.255.255.0