vishvananda / netlink

Simple netlink library for go.
Apache License 2.0
2.8k stars 726 forks source link

add a route by RouteAdd().otherwise, the route is disappears when host reboots,how to solve? #864

Open Boruson opened 1 year ago

chengzhycn commented 1 year ago

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.