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

net/ndproxy: Add ndproxy manual #641

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

net/ndproxy: Add ndproxy manual #641

wants to merge 3 commits into from

Conversation

Monviech
Copy link
Member

@Monviech Monviech commented Nov 21, 2024

@Monviech Monviech self-assigned this Nov 21, 2024
@Monviech Monviech marked this pull request as ready for review November 21, 2024 15:14
--------------------------------------------------

- **Promiscuous Mode**:
The listening interface (WAN) must be set to promiscuous mode.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the WAN is a VLAN you need to assign a parent and set promisc mode there. May be worth a note?

Otherwise the router can not join multicast groups to respond to solicitations for hosts in the LAN.

- **Link-Local Address**:
The listening interface (WAN) requires at least a link-local IPv6 address.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requirement is true but in 99% of cases that is a given (unless somebody wedges WAN on a bridge where link-local option was not set -- but the text here will not help those either)


- **Link-Local Address**:
The listening interface (WAN) requires at least a link-local IPv6 address.
If you want to add a GUA (Global Unicast Address) to WAN, it must be with /128 Prefix.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only if it is in the same /64 being proxied.


.. Attention::

If WAN and LAN both have a GUA configured with the same /64 Prefix, this setup will not work. The network stack will not be able
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, circling back to the other sentence before this, maybe this can be condensed.


- **Switch configuration**:

If there is a switch between the PE and CPE router, ensure there is no MLD snooping or Multicast (IGMP) snooping configured
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Prefix Delegation: /56 |
| |
fe80::1/64 fe80::1/64
2001:db8::/56 2001:db8::3/64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if 2001:db8::3/64 is strictly necessary, especially with a shifting prefix this is impractical. But in the dynamic case a track interface setting works anyway?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setup here is just to "grasp" how a working setup can look like. It has to make sense from a routing perspective after all.

If I just put "Track Interface" there, it is not clear.

In the actual tutorial section, track interface is used to make everything dynamic.

============================================== ====================================================================
**Enable** ``X``
**Range** from: ``2001:db8::2`` to: ``2001:db8::2``
**Prefix Delegation Range** from: ``2001:db8::`` to: ``2001:db8::``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok you need the GUA for the DHCPv6. For SLAAC/RA I think you can do without the GUA

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GUA is not strictly needed for DHCPv6 to work here. The range can also be left empty.

But getting a /128 on the WAN can be important, e.g. for IPv6 VPN tunnels.


.. Note::

`Request Prefix Only` is optional, but needed if your WAN interface would autoconfigure a /64 GUA.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't understand this. SLAAC is a separate range and /64. IA-NA is /128 -- IA-PD is /64 but not directly assigned to WAN so LAN could already use it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not sure here either. It works with this enabled, and also disabled.

But if Router Advertisements would be set to Assisted on the Upstream Router, there could be a DHCPv6 /128 and a SLAAC /64 configured at the same time. I saw that happen, maybe it was a weird one time thing on my side but it wrecked my routing until I found that out.

Copy link
Member

@fichtner fichtner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should discuss the use cases before continuing the review. Looks like I'm missing something so better to clear that up first :)

@Monviech
Copy link
Member Author

Maybe we should discuss the use cases before continuing the review. Looks like I'm missing something so better to clear that up first :)

Sounds like a good plan, I appreciate the help. :)

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

Successfully merging this pull request may close these issues.

2 participants