Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerinit should support link-local routes #984

Open
hww3 opened this issue Apr 9, 2021 · 0 comments
Open

dockerinit should support link-local routes #984

hww3 opened this issue Apr 9, 2021 · 0 comments

Comments

@hww3
Copy link

hww3 commented Apr 9, 2021

I have a set of hosts on networks (at OVH, in particular) where zones are created with networking over the admin interface but with IP subnets different than the global zone. The default route for these zones is through the default router on the admin network. In the zone, this means that there is a link-local route to the router on the admin IP subnet, and the default route is this address.

Example:

GZ admin IP: 1.2.3.4/24 default router: 1.2.3.254

Zone:
"nics": [
{
"mac": "00:01:02:03:04:05",
"nic_tag": "admin",
"netmask": "255.255.255.255",
"gateways": ["1.2.3.254"],
"ips": [
2.3.4.5/32"
],
"primary": true
}
],
"routes": {
"1.2.3.254": "nics[0]"
}

Unfortunately, this doesn't work out of the box as dockerinit does not support adding routes with the link-local flag set to true.

Adding support for link-local routes and then creating them before the default or other static routes should prevent this problem. It would seem that always creating link-local routes first should not cause problems, as they should always be directly accessible without a next-hop.

I have code to address this and will submit a PR once I've re-run some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant