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

    IPv6 gateway address is outside of provided /64 subnet.

    Scheduled Pinned Locked Moved IPv6
    9 Posts 3 Posters 2.8k 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.
    • Q
      qtlnx
      last edited by

      Little Happy Cloud KVM provides IPv6 with the following configuration:

      Subnet prefix_48🔡:/64
      Gateway prefix_48::1

      When I set IPv6 WAN in DHCP6 there are no IPv6 addresses assigned but a route to gateway shows in routing table and I can assign any prefix_48🔡:/64 address manually from console using ifconfig and everything works as expected. Of course it does not survive a reboot.

      If I select Static IPv6, enter /64 address and gateway prefix_48::1 then gateway is not reachable.

      I tried to enter route to gateway manually using route command but it did not help, although routing table seemed the same as after DHCP6.

      My current workaround is to use StaticIPv6, specify prefix_48🔡:blah/48 address in IPv6 address field.

      The manually defined gateway prefix_48::1 becomes reachable and all works.

      Question: what is the correct way to configure IPv6 in this environment?

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        That type of config is only supported in 2.3 (without manual hacks).
        https://redmine.pfsense.org/issues/972

        You're probably best off using latest 2.3 snapshot in that circumstance.

        1 Reply Last reply Reply Quote 0
        • Q
          qtlnx
          last edited by

          That was quick, thank you!
          Where can I find upgrade from 2.2.6 release to 2.3 snapshot instructions?

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            Download the full update from snapshots.pfsense.org and install it under System>Firmware, or option 13 at console.

            1 Reply Last reply Reply Quote 0
            • Q
              qtlnx
              last edited by

              Upgraded. I now see new checkbox "Use non-local gateway" under System/Routing/Gateways/Edit.
              Enabling it adds an explicit route to the gateway but as I explained in my initial message adding explicit route to the gateway manually from command line does not help.

              IPv6 only works  if

              DHCP6 allowed to do gateway route with following manual IPv6 address assignment
              or
              WAN interface is statically configured with wide enough subnet to reach gateway directly.

              1 Reply Last reply Reply Quote 0
              • Q
                qtlnx
                last edited by

                a working gateway route is created when DHCP6 is enabled

                [2.3-BETA][admin@lhc]/root: netstat -rn6
                Routing tables

                Internet6:
                Destination                      Gateway                      Flags      Netif Expire
                default                          prefix_48::1                  UGS      vtnet0
                ::1                              link#5                        UH          lo0
                prefix_48::/48                    link#1                        U        vtnet0
                prefix_48::1                      xx:xx:xx:xx:xx:xx            UHS      vtnet0
                …

                IPv6 address is not assigned automatically but after assigning it manually
                ifconfig vtnet0 inet prefix_48🔡:abcd/64
                IPv6 works.

                1 Reply Last reply Reply Quote 0
                • Q
                  qtlnx
                  last edited by

                  Static IPv6 setup is missing one route and IPv6 is not working.

                  [2.3-BETA][admin@lhc]/root: netstat -rn6
                  Routing tables

                  Internet6:
                  Destination                      Gateway                      Flags      Netif Expire
                  default                          prefix_48::1                  UGS      vtnet0
                  ::1                              link#5                        UH          lo0
                  prefix_48::1                      xx:xx:xx:xx:xx:xx            UHS      vtnet0

                  Looks like new functionality "Use non-local gateway" under System/Routing/Gateways/Edit is incomplete.

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

                    What am I missing here - why would an ISP do such a stupid setup?  Makes no sense, its not like they don't have plenty of addresses to work with..

                    What is the possible advantage to such a odd ball configuration.. Using a gateway outside of the network your in is not how networking is suppose to freaking work…

                    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

                    1 Reply Last reply Reply Quote 0
                    • Q
                      qtlnx
                      last edited by

                      I am told this the way IPv6 can legitimately operate.
                      there is no problem setting up route manually in Linux on the same network:
                      https://clients.inceptionhosting.com/knowledgebase.php?action=displayarticle&id=8

                      The FreeBSD variant of Linux ip commnds

                      route add -inet6 -net prefix_48::/48 -interface vtnet0
                      route add -inet6 -prefixlen 0 default prefix_48::1

                      produces virtually the same routing table as DHCP6 (probably via routing advertisement) created one but there is no IPv6 connectivity.

                      Update: on Little Happy Cloud CentOS 6 static IPv6 configuration looks like:

                      cat /etc/sysconfig/network-scripts/ifcfg-eth0

                      DEVICE=eth0
                      BOOTPROTO=static
                      ONBOOT=yes
                      IPADDR=nnn.nnn.nnn.XXX
                      GATEWAY=nnn.nnn.nnn.1
                      NETMASK=255.255.255.0
                      IPV6INIT=yes
                      IPV6_AUTOCONF=no
                      IPV6_DEFAULTGW=prefix_48::1
                      IPV6ADDR=prefix_48:XXXX::X/64

                      Could anyone explain how to configure pfSense to achieve the same configuration?

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