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

Default route over link-local network unsupported in native zones #244

Closed
hww3 opened this issue Dec 18, 2019 · 0 comments
Closed

Default route over link-local network unsupported in native zones #244

hww3 opened this issue Dec 18, 2019 · 0 comments

Comments

@hww3
Copy link

hww3 commented Dec 18, 2019

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: net-routing-setup sets up the default route before any static routes. When the default route is on a network accessible via a link-local route, adding the default route fails.

Creating link-local routes 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 a patch for this (as well as for lx_init and dockerinit) and can create PRs for them, assuming this theory isn't fatally flawed.

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

2 participants