Add IP alias to vmbr0

PaulVM

Renowned Member
May 24, 2011
102
3
83
Until Proxmox 4.x I used to add lines like:
ifconfig vmbr0:74 99.99.99.99 broadcast 99.99.99.99 netmask 255.255.255.255
in /etc/rc.local
In Proxmox 5.x (Debian 9.x), no more /etc/rc.local.
I suppose I can create a service to have it again available, or I may play with some @reboot action in cron, but if someone explain me the correct way to configure IP alias for automatic configuration at boot I think it can be a better solution :)

Thanks, P.
 
Thanks.

The "Manual approach" works fine (other methods don't works).

some rows like:
up ip addr add 192.168.1.43/24 dev $IFACE label $IFACE:0
down ip addr del 192.168.1.43/24 dev $IFACE label $IFACE:0

solved my needs.

Regards, P.
 

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!