Closed 10fish closed 4 years ago
Hello,
Method add_static_route command is used only for temporarily adding the metadata route, so that cloudbase-init can reach it. If you are using the method for your own purpose, you can rewrite it at your own will.
By adding the "/p" flag, the route is persistent, see https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/route_ws2008
Thank you, Adrian Vladu
Hi Adrian,
It should solve my problem. Thanks for your solution.
I added some routes(e.g. 169.254.169.254) with method:
_cloudbaseinit.os_utils.windows.WindowsUtils.add_staticroute
and found that routes added disappeared after system rebooted or link/bond disabled.
It seems that the method does not support persistent static route rules?
Is there a way with a '-p' option to achieve persistent static route rules?