IP Aliasing in RancherOS


We have a requirement to use ip aliasing on our rancherOS host. When the system is up and running I can just do sudo ifconfig eth1:1 192.168.yyy.zzz and it works fine, but how do i add this to the rancher.yml as : is used as a delimiter?


You can try using "eth1:1" as a key, but I’m not sure it’ll actually work. I guess, you could use a startup script.

Did you find a good solution for this? I am also interested in having multiple IP addresses on a single RancherOS interface.

post_up could be the solution (example works with ip route…)