netlink
netlink copied to clipboard
add a route by RouteAdd().otherwise, the route is disappears when host reboots,how to solve?
I'm not sure that I understand what's your question mean, if you want to persistent your routes, you should write them to some files like route.conf on your system. If you only add routes by netlink.RouteAdd, of course it will disappear when your host reboots.