• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.5k 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.
  • J
    jihartik
    last edited by May 3, 2020, 5:38 PM

    Hi all!

    I have a home/homelab setup with a pfSense box connected to Internet and Ubiquiti EdgeRouterX behind it as the homelab router. My ISP doesn't provide native IPv6, but instead uses 6rd. I have successfully configured pfSense to acquire global IPv6 addresses (/56 prefix) using 6rd and am able to get /64 networks to pfSense's LAN interfaces using "Track interface" as IPv6 Configuration Type. However, when configured as "track interface" the LAN interfaces only get /64 network and thus I can't delegate networks further down behind the EdgeRouter that is connected to one of them.

    Is there any way to configure pfSense so that I'd be able to get e.g. /60 prefix to one of the tracking interfaces and then run DHCPv6 server on that delegating those networks further down?

    J 1 Reply Last reply May 3, 2020, 5:56 PM Reply Quote 2
    • J
      JKnott @jihartik
      last edited by JKnott May 3, 2020, 5:59 PM May 3, 2020, 5:56 PM

      @jihartik

      You should be able to configure routing so that whatever block you want goes to a specific address. I have done that here, to pass a /64 to a Cisco router. You'll have to specify a gateway and route on the routing page and also RA for that network. PfSense doesn't support providing DHCPv6-PD, so you have to do it with manual configuration.

      IIRC, I also did this back when I was using a 6in4 tunnel and Linux for my firewall/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...

      J 1 Reply Last reply May 3, 2020, 6:02 PM Reply Quote 0
      • J
        jihartik @JKnott
        last edited by May 3, 2020, 6:02 PM

        @JKnott I see, thanks for the tip! That probably works, indeed.

        The downside is that my static routes will become obsolete when my public IPv4 address (and thus IPv6 networks calculated based on that) change, right?

        J 2 Replies Last reply May 3, 2020, 6:06 PM Reply Quote 0
        • J
          JKnott @jihartik
          last edited by JKnott May 3, 2020, 6:06 PM May 3, 2020, 6:06 PM

          @jihartik

          Probably. Do your IPv4 addresses change often? My ISP originally provided 6to4 and 6rd, but I didn't use either as I had 6in4 from elsewhere. However, my IPv4 address was virtually static. DHCP addresses normally don't change, unless you aren't connected for longer than the lease time, unless you have a nasty ISP.

          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...

          J 1 Reply Last reply May 3, 2020, 6:15 PM Reply Quote 0
          • J
            JKnott @jihartik
            last edited by May 3, 2020, 6:10 PM

            @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 May 3, 2020, 6:15 PM

              @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. :)

              J 1 Reply Last reply May 3, 2020, 6:25 PM Reply Quote 0
              • J
                JKnott @jihartik
                last edited by May 3, 2020, 6:25 PM

                @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
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz May 3, 2020, 8:01 PM May 3, 2020, 7:59 PM

                  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 Aug 8, 2020, 5:57 PM Reply Quote 1
                  • F
                    felipescosta @johnpoz
                    last edited by Aug 8, 2020, 5:57 PM

                    @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
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz Aug 8, 2020, 6:31 PM Aug 8, 2020, 6:25 PM

                      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 Aug 8, 2020, 7:10 PM Reply Quote 0
                      • F
                        felipescosta @johnpoz
                        last edited by Aug 8, 2020, 7:10 PM

                        @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
                        • J
                          johnpoz LAYER 8 Global Moderator
                          last edited by Aug 8, 2020, 8:00 PM

                          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

                          J 1 Reply Last reply Aug 9, 2020, 11:06 AM Reply Quote 0
                          • J
                            JKnott @johnpoz
                            last edited by Aug 9, 2020, 11:06 AM

                            @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
                            • J
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz Aug 9, 2020, 12:20 PM Aug 9, 2020, 12:19 PM

                              ^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 Aug 10, 2020, 5:17 PM Reply Quote 0
                              • F
                                felipescosta @johnpoz
                                last edited by Aug 10, 2020, 5:17 PM

                                @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.
                                  This community forum collects and processes your personal information.
                                  consent.not_received