-
Notifications
You must be signed in to change notification settings - Fork 69
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
Primary IPv6 not set for dualstack VMware VM using SLAAC #394
Comments
Hi, this is intentional as you would have otherwise your NetBox instance filled with link local addresses: netbox-sync/module/sources/common/permitted_subnets.py Lines 96 to 102 in 3b36133
|
I agree that most people wouldn't want their instance filled up with link local addresses, but there is a pretty significant difference between a link local address, and a (global unicast) SLAAC address right? ( Link local addresses are in the |
Would you be able to run netbox-sync with the |
Of course! I have redacted the addresses and names quite a bit, but the logs should still paint the correct picture.
One thing that didn't really realize before: This is accurate, sort of. In the IPv6 routing table on the host, the router's link-local address is the default gateway. I tried to find information about this online, but couldn't quickly find anything more authoritative than this stack-exchange comment:
Reading this, I'm afraid it might be a matter of taste whether my |
Great, thank you for the output. This narrows down the issue. If you have more then one IPv6 GUA then there is no real way which one to pick as the primary one. What do you think? |
Hmm, I've just read through rfc6724 looking for a generic answer, but there isn't really one when you don't have a destination address. I think the problem here is that there isn't always one primary address when talking about IPv6, because of it's design taking multiple addresses into account. I think there are two easy options:
|
I thought about your second suggestion already and think this would be an option. Just needs some special "IPv6" case changes. Will probably do that. |
Awesome, thank you for your time already 👍🏻 |
Hi @yaiqsa, this took a while but I added the function to set primary IPv6 if only one candidate was found. would you be able to test this? Thank you |
@bb-Ricardo Yes, it works! Thank you ^^ |
Perfect, thanks for the confirmation |
Hi there,
This is my current environment:
Netbox: v3.7.6
Netbox-sync: Current master (3b36133)
VMware: vCenter 8.0.2
These Netbox-sync settings seemed relevant:
I'm running across a problem with my dual-stack VMs. They have one vNIC, which has one IPv4 address, and one SLAAC IPv6 address. These addresses are both picked up by Netbox-sync. However, while the IPv4 address is automatically set as Primary address for the VM, the Primary IPv6 field remains empty.
The funny thing I noticed is that 'staticly' configured IPv6 addresses seem to work normally (and are set as Primary IPv6), but SLAAC addresses don't.
Is this by design, or can it be fixed?
Thank you in advance
The text was updated successfully, but these errors were encountered: