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.