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
 

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!