Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Delegating IPv6 networks to a downstream router

    Scheduled Pinned Locked Moved IPv6
    15 Posts 4 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JKnottJ
      JKnott @jihartik
      last edited by

      @jihartik

      One other possibility, some here use 6in4 from he.net to get a /48. That won't change with your IPv4 address.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • J
        jihartik @JKnott
        last edited by

        @JKnott Not too often (maybe once every 3-4 months), but often enough still that some kind automation would probably be needed.

        It seems that it might indeed be easier to separate the IPv6 gateway to a separate Linux VM or use some other IPv6 provider having static IPv6 addresses.. Too bad, the 6rd with pfSense was so easy to set up. :)

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @jihartik
          last edited by

          @jihartik

          As I said, many here use he.net. It shouldn't be too hard to set up. Unlike with 6rd and 6to4, 6in4 prefixes are not tied to your IPv4 address. Just ask someone who uses it. I believe @johnpoz can help.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 1
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz

            Yeah just use HE here, you can do anything you want with your /48.. Its just routed down your tunnel.. If you want to route part of that to a downstream, its as simple as creating the routes..

            You can also then take that /48 with you if you change ISPs..

            You could route a /56 to 1 downstream router, and a another /56 to a different one, etc. etc.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            F 1 Reply Last reply Reply Quote 1
            • F
              felipescosta @johnpoz
              last edited by

              @johnpoz

              Can you provide some more info about "as simple a creating the routes" to delegate ipv6 networks to downstream routers? I'm trying to but only /64 (RA) worked.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                With HE the /48 is routed to you statically via your tunnel.

                So lets say your /48 is 2001:0420:aaaa::/48

                So via a tunnel network you create just route whatever you want to some downstream router..

                You could take the first /64 out of the first /56 and use that as your tunnel
                2001:0420:aaaa:0000::/64

                Then route the 2nd /56 to downstream 2001:0420:aaaa:0100::/56

                Then you can break that up in to /64's off that downstream router..

                Does this help? This is really no different than routing in IPv4, just the networks are bigger and addresses are longer.. While yes lots and lots of stuff is different in IPv6 over IPv4.. When it comes to routing basics, its the same as IPv4..

                IPV6ROUTing.png

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                F 1 Reply Last reply Reply Quote 0
                • F
                  felipescosta @johnpoz
                  last edited by

                  @johnpoz It is what I'm trying to do with pfsense.

                  For example:
                  The first 2001:0420:aaaa::1/56 was set on LAN.

                  f37c5c35-ec69-4173-8b93-d2bf34fc7a49-image.png

                  The others/56 was configured at RA.

                  b1f2f1e0-a5f0-4041-b1a9-f11689e4a9e1-image.png

                  But the router still got a /64.

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    You wouldn't use RA to delegate prefixes, you would use dhcpv6

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    JKnottJ 1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @johnpoz
                      last edited by

                      @johnpoz

                      Or manual config. I don't know that I'd want a router to rely on DHCP. I used manual config to connect to a Cisco router.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by johnpoz

                        ^Exactly - how I showed manually routing the /56 to a downstream router above ;) That his how I would do it as well.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          felipescosta @johnpoz
                          last edited by

                          @johnpoz

                          Config is done and working as expected.

                          Got a /48 from HE and /50 subnets to LAN.

                          9fc6b336-5d05-4538-b512-87464720b176-image.png

                          DHCPv6 Server & RA (/56 to downstream CPEs)

                          8466e9df-c67d-489c-a7cf-09743b7f7b14-image.png

                          RA

                          3bffbe77-935e-49ce-b134-6c532079aa6b-image.png

                          Tested with Android 8/9, Android TV 7.1.2, iOS 9.3.6, Windows 10, Arch Linux, OpenWRT, and some others Home Gateways.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.