Revision history [back]

click to hide/show revision 1
initial version

After done a few testing on my environment which currently using flat network. to make sure you are able to add multiple ip address from the same network. you will need to define the ip address inside the same port-id. and this port-id must be attached to the instance that you want to create.

from there, by default meta data will only force cloud-init to configure one ip from the ip address that you have define inside the port-id. what you need to do next is to add command below to your rc.local

ip addr add <ipaddress>/mask lenght(eg:/24) dev eth< interface id>

this will allow the ip to be up on boot.

After done a few testing on my environment which currently using flat network. to make sure you are able to add multiple ip address from the same network. you will need to define the ip address inside the same port-id. port-id. and this port-id must be attached to the instance that you want to create.

from there, by default meta data will only force cloud-init cloud-init to configure one ip from the ip address that you have define inside the port-id. port-id. what you need to do next is to add command below to your rc.local

ip addr add <ipaddress>/mask lenght(eg:/24) dev eth< interface id> 

id>

this will allow the ip to be up on boot.