Hi,
I would like to assign secondary IP addresses to a single network device using the cloud-init configuration.
I can read from the specification that this is possible to do. However, the Proxmox API and frontend does not allow to enter more than a single IP address. It would be great to allow multiple IP's using a comma separated list type. Shouldn't be too hard to loop through it and put this to the 50-cloud-init.yaml file in the correct format.
Sadly no public source code seems to be available so I can't provide a patch to you guys :-(
May I ask if you could put this into your backlog?
-----
Meanwhile, I was looking for a workaround by manually putting a file somewhere within the image. Ideally that would be a single command like
but it seems I am unable to find the right point to put this. Tried to use a file in /etc/cloud/cloud.cfg.d/10_network_aliases.cfg like this:
without success. Any ideas besides waiting for the feature improvement in the Proxmox code?
Many thanks,
Julian
I would like to assign secondary IP addresses to a single network device using the cloud-init configuration.
I can read from the specification that this is possible to do. However, the Proxmox API and frontend does not allow to enter more than a single IP address. It would be great to allow multiple IP's using a comma separated list type. Shouldn't be too hard to loop through it and put this to the 50-cloud-init.yaml file in the correct format.
Sadly no public source code seems to be available so I can't provide a patch to you guys :-(
May I ask if you could put this into your backlog?
-----
Meanwhile, I was looking for a workaround by manually putting a file somewhere within the image. Ideally that would be a single command like
Code:
ip address add 192.168.6.2/32 dev eth0
but it seems I am unable to find the right point to put this. Tried to use a file in /etc/cloud/cloud.cfg.d/10_network_aliases.cfg like this:
Code:
runcmd:
- [ ip address add 192.168.1.2/32 dev eth0 ]
without success. Any ideas besides waiting for the feature improvement in the Proxmox code?
Many thanks,
Julian
Last edited: