So basically "every service is part of the [ISP delegated] IPv6 prefix /48 INTERNET-wise, but then the individual subnets are identified locally by restricting/shrinking the subnet even more, say /56 LOCALLY" ?
But my goodness the UNIFI Controller ... getting IPv4 to work is as simple as just saying "Just query the [main] DHCP Server".For IPv6 on the other hand
Quote from: luckylinux on May 12, 2024, 10:41:39 pmSo basically "every service is part of the [ISP delegated] IPv6 prefix /48 INTERNET-wise, but then the individual subnets are identified locally by restricting/shrinking the subnet even more, say /56 LOCALLY" ?I don't parse that question 100%, but for one general statement: in IPv6 every broadcast domain (i.e. "Ethernet like network) is a /64. Always.Here in Germany customers of German Telekom get a /56, which means you can have 256 separate VLANs with one /64 each.If you are in the lucky position to get a /48 from your ISP that means you can simply (not walk into Mordor) e.g. have 256 locations in your corporate networks with then 256 VLANs each.You never assign a longer prefix than /64 to a single interface.HTH,Patrick
If you really get a /48 from your ISP isn't that a static one? So configure all interfaces statically. CARP works in this case. I don't know if prefix delegation and a HA cluster play together well, but as a guess I doubt it.
So on both OPNSense Routers, you propose for the WAN that I should select a "Static IPv6" and use the /49 Subnet on both, with IP maybe ::11 for Router1 and ::12 for Router2 ?Then for LAN (and all other interfaces: DMZ, WiFi, VLAN_XXX), I setup as "Track Interface" as usual with id 0,1,2,3,.... ?
Quote from: luckylinux on May 13, 2024, 09:53:12 amSo on both OPNSense Routers, you propose for the WAN that I should select a "Static IPv6" and use the /49 Subnet on both, with IP maybe ::11 for Router1 and ::12 for Router2 ?Then for LAN (and all other interfaces: DMZ, WiFi, VLAN_XXX), I setup as "Track Interface" as usual with id 0,1,2,3,.... ?No, no no ... for WAN there is obviously some transfer network in place so you ask your ISP what exactly to configure.And you never configure anything but /64 (or for WAN in some cases /128) on a single interface.Then you pick one /64 from your /48 for LAN and configure one address from that prefix on the master and another address from the same prefix on your slave. This is just like IPv4 - both nodes share a single network on each interface.
Frequently ISPs use a single IPv6 address for the external connection of their customers in addition to a delegated prefix.For example I currently got 2003:a:d7f:d938:f690:eaff:fe00:ca67/64 on WAN while my delegated prefix is 2003:a:d59:3800::/56.Like in IPv4 this is commonly called a transfer network, because it is not used for any services but simply so that the routers have dedicated addresses. Different from IPv4 it is not strictly necessary. Routing works fine over just link-local addresses.Whatever is the case your ISP should be able to tell you but it seems they are not. From that /48 of yours you then pick an arbitrary /64 for LAN and assign e.g. ::1 to your first node and ::2 to the second. For CARP you should pick a link-local address that will then be announced to all your clients as the default gateway via router advertisments. E.g. fe80::1Essentially IPv6 is way simpler than IPv4. Only forget you must what you have learned Try prefix delegation ("track interface) on both nodes and set the prefix hint to "0" on both. They should have a single common /64 on LAN - only then can you proceed with CARP etc.
Thank you for the conversationhere with what we have on Ipv6, hope it can help a littleIPv6 Certain DHCPv6 settings must be set up on your router. SLAAC (point to point link between your router and our GW router). DHCPv6 with prefix delegation (DHCPv6-PD) (used to retrieve a delegated /48 prefix that can be distributed on the lan side of your router). Stateful Address Assignment | IA-NA = 1 (on) Identity Association for Prefix Delegation | IA-PD = 1 (on) Non-temporary address | IAID for NA = 1 (on) instead of 0 (off) which, according to our experience, will be the default setting in most DHCP client setups. We recommend using the DUID-LL [DUID type 3] algorithm (Algorithm used on routers issued by us). We recommend setting a static DUID-LL value (if possible) to avoid the value changing between restarts of your CPE (router) device. We assign you a /48 via DHCPv6-PD (Prefix Delegation). The /48 route is inserted into our routing table by our DHCPv6 relay. Without DHCPv6-PD you will not be able to use your /48 prefix. Our GW routers are set up to send router advertisements every 360 seconds (6m). DUID (DHCP Unique Identifier) DUID-LLT: The Link-Layer address of one of the device's network interfaces, concatenated with a timestamp [RFC 2131]. DUID-EN: An Enterprise Number plus additional information specific to the enterprise [RFC 2131]. DUID-LL: The Link-Layer address of one of the device's network interfaces [RFC 2131]. DUID-UUID: Used in situations where there is a Universally Unique IDentifier (UUID) stored in a device's firmware settings [RFC 6355]. DUID-V6ADDR: "This document defines a new DHCPv6 Unique Identifier (DUID) type that contains a single 128 bit IPv6 address. Makes it possible for devices to use suitably-derived unique IPv6 addresses to identify themselves to DHCPv6 servers"