Configure IPv6 on Debian 9












0















Help set up IPv6 on Deban 9
My IPv6 confuration don't work:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet static
address 217.182.53.46/24
gateway 217.182.53.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 77.88.8.8
dns-search 8.8.8.8

iface ens3 inet6 static
address 2001:41d0:2:fa3e::2/64
netmask 64
gateway 2001:41d0:2:faff:ff:ff:ff:ff


How fix it?



IPv6: 2001:41d0:2:fa3e::2/64



GW: 2001:41d0:2:faff:ff:ff:ff:ff










share|improve this question





























    0















    Help set up IPv6 on Deban 9
    My IPv6 confuration don't work:



    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    allow-hotplug ens3
    iface ens3 inet static
    address 217.182.53.46/24
    gateway 217.182.53.254
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 8.8.8.8 77.88.8.8
    dns-search 8.8.8.8

    iface ens3 inet6 static
    address 2001:41d0:2:fa3e::2/64
    netmask 64
    gateway 2001:41d0:2:faff:ff:ff:ff:ff


    How fix it?



    IPv6: 2001:41d0:2:fa3e::2/64



    GW: 2001:41d0:2:faff:ff:ff:ff:ff










    share|improve this question



























      0












      0








      0








      Help set up IPv6 on Deban 9
      My IPv6 confuration don't work:



      # This file describes the network interfaces available on your system
      # and how to activate them. For more information, see interfaces(5).

      source /etc/network/interfaces.d/*

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The primary network interface
      allow-hotplug ens3
      iface ens3 inet static
      address 217.182.53.46/24
      gateway 217.182.53.254
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 8.8.8.8 77.88.8.8
      dns-search 8.8.8.8

      iface ens3 inet6 static
      address 2001:41d0:2:fa3e::2/64
      netmask 64
      gateway 2001:41d0:2:faff:ff:ff:ff:ff


      How fix it?



      IPv6: 2001:41d0:2:fa3e::2/64



      GW: 2001:41d0:2:faff:ff:ff:ff:ff










      share|improve this question
















      Help set up IPv6 on Deban 9
      My IPv6 confuration don't work:



      # This file describes the network interfaces available on your system
      # and how to activate them. For more information, see interfaces(5).

      source /etc/network/interfaces.d/*

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The primary network interface
      allow-hotplug ens3
      iface ens3 inet static
      address 217.182.53.46/24
      gateway 217.182.53.254
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 8.8.8.8 77.88.8.8
      dns-search 8.8.8.8

      iface ens3 inet6 static
      address 2001:41d0:2:fa3e::2/64
      netmask 64
      gateway 2001:41d0:2:faff:ff:ff:ff:ff


      How fix it?



      IPv6: 2001:41d0:2:fa3e::2/64



      GW: 2001:41d0:2:faff:ff:ff:ff:ff







      linux debian ipv6






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 25 at 14:02







      J.Doe

















      asked Jan 25 at 10:00









      J.DoeJ.Doe

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          3














          There is an error in your configuration. Your gateway is not within your subnet range.



          The range for subnet 2001:41d0:2:fa3e::/64 is 2001:41d0:0002:fa3e:0000:0000:0000:0000 - 2001:41d0:0002:fa3e:ffff:ffff:ffff:ffff. However, 2001:41d0:2:faff:ff:ff:ff:ff falls outside that range.



          An example of a working config:



          iface eth0 inet6 static
          address 2001:db8:7927::61
          netmask 64
          gateway 2001:db8:7927::1




          An additional problem could be that you configured an IPv4 address on ens3 and the IPv6 address on eth0. This might be intentional, but something that could easily be missed.






          share|improve this answer





















          • 1





            While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

            – grawity
            Jan 25 at 10:44



















          0














          The OVH help document for IPv6 explains that you need to add static routes for your IPv6 gateway, because it is outside the IPv6 subnet allocated to your server.



          So your interfaces file should contain, in relevant part:



          iface ens3 inet6 static 
          address 2001:41d0:2:fa3e::2
          netmask 128

          post-up /sbin/ip -f inet6 route add 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:faff:ff:ff:ff:ff
          pre-down /sbin/ip -f inet6 route del 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:faff:ff:ff:ff:ff





          share|improve this answer
























          • Yes. The correct manual

            – J.Doe
            Jan 31 at 23:22











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398287%2fconfigure-ipv6-on-debian-9%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          There is an error in your configuration. Your gateway is not within your subnet range.



          The range for subnet 2001:41d0:2:fa3e::/64 is 2001:41d0:0002:fa3e:0000:0000:0000:0000 - 2001:41d0:0002:fa3e:ffff:ffff:ffff:ffff. However, 2001:41d0:2:faff:ff:ff:ff:ff falls outside that range.



          An example of a working config:



          iface eth0 inet6 static
          address 2001:db8:7927::61
          netmask 64
          gateway 2001:db8:7927::1




          An additional problem could be that you configured an IPv4 address on ens3 and the IPv6 address on eth0. This might be intentional, but something that could easily be missed.






          share|improve this answer





















          • 1





            While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

            – grawity
            Jan 25 at 10:44
















          3














          There is an error in your configuration. Your gateway is not within your subnet range.



          The range for subnet 2001:41d0:2:fa3e::/64 is 2001:41d0:0002:fa3e:0000:0000:0000:0000 - 2001:41d0:0002:fa3e:ffff:ffff:ffff:ffff. However, 2001:41d0:2:faff:ff:ff:ff:ff falls outside that range.



          An example of a working config:



          iface eth0 inet6 static
          address 2001:db8:7927::61
          netmask 64
          gateway 2001:db8:7927::1




          An additional problem could be that you configured an IPv4 address on ens3 and the IPv6 address on eth0. This might be intentional, but something that could easily be missed.






          share|improve this answer





















          • 1





            While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

            – grawity
            Jan 25 at 10:44














          3












          3








          3







          There is an error in your configuration. Your gateway is not within your subnet range.



          The range for subnet 2001:41d0:2:fa3e::/64 is 2001:41d0:0002:fa3e:0000:0000:0000:0000 - 2001:41d0:0002:fa3e:ffff:ffff:ffff:ffff. However, 2001:41d0:2:faff:ff:ff:ff:ff falls outside that range.



          An example of a working config:



          iface eth0 inet6 static
          address 2001:db8:7927::61
          netmask 64
          gateway 2001:db8:7927::1




          An additional problem could be that you configured an IPv4 address on ens3 and the IPv6 address on eth0. This might be intentional, but something that could easily be missed.






          share|improve this answer















          There is an error in your configuration. Your gateway is not within your subnet range.



          The range for subnet 2001:41d0:2:fa3e::/64 is 2001:41d0:0002:fa3e:0000:0000:0000:0000 - 2001:41d0:0002:fa3e:ffff:ffff:ffff:ffff. However, 2001:41d0:2:faff:ff:ff:ff:ff falls outside that range.



          An example of a working config:



          iface eth0 inet6 static
          address 2001:db8:7927::61
          netmask 64
          gateway 2001:db8:7927::1




          An additional problem could be that you configured an IPv4 address on ens3 and the IPv6 address on eth0. This might be intentional, but something that could easily be missed.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 25 at 10:35

























          answered Jan 25 at 10:19









          mtakmtak

          11.1k23353




          11.1k23353








          • 1





            While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

            – grawity
            Jan 25 at 10:44














          • 1





            While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

            – grawity
            Jan 25 at 10:44








          1




          1





          While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

          – grawity
          Jan 25 at 10:44





          While unusual, it's not technically impossible for the gateway to be off-subnet – and several server hosting companies actually do that.

          – grawity
          Jan 25 at 10:44













          0














          The OVH help document for IPv6 explains that you need to add static routes for your IPv6 gateway, because it is outside the IPv6 subnet allocated to your server.



          So your interfaces file should contain, in relevant part:



          iface ens3 inet6 static 
          address 2001:41d0:2:fa3e::2
          netmask 128

          post-up /sbin/ip -f inet6 route add 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:faff:ff:ff:ff:ff
          pre-down /sbin/ip -f inet6 route del 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:faff:ff:ff:ff:ff





          share|improve this answer
























          • Yes. The correct manual

            – J.Doe
            Jan 31 at 23:22
















          0














          The OVH help document for IPv6 explains that you need to add static routes for your IPv6 gateway, because it is outside the IPv6 subnet allocated to your server.



          So your interfaces file should contain, in relevant part:



          iface ens3 inet6 static 
          address 2001:41d0:2:fa3e::2
          netmask 128

          post-up /sbin/ip -f inet6 route add 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:faff:ff:ff:ff:ff
          pre-down /sbin/ip -f inet6 route del 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:faff:ff:ff:ff:ff





          share|improve this answer
























          • Yes. The correct manual

            – J.Doe
            Jan 31 at 23:22














          0












          0








          0







          The OVH help document for IPv6 explains that you need to add static routes for your IPv6 gateway, because it is outside the IPv6 subnet allocated to your server.



          So your interfaces file should contain, in relevant part:



          iface ens3 inet6 static 
          address 2001:41d0:2:fa3e::2
          netmask 128

          post-up /sbin/ip -f inet6 route add 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:faff:ff:ff:ff:ff
          pre-down /sbin/ip -f inet6 route del 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:faff:ff:ff:ff:ff





          share|improve this answer













          The OVH help document for IPv6 explains that you need to add static routes for your IPv6 gateway, because it is outside the IPv6 subnet allocated to your server.



          So your interfaces file should contain, in relevant part:



          iface ens3 inet6 static 
          address 2001:41d0:2:fa3e::2
          netmask 128

          post-up /sbin/ip -f inet6 route add 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:faff:ff:ff:ff:ff
          pre-down /sbin/ip -f inet6 route del 2001:41d0:2:faff:ff:ff:ff:ff dev ens3
          pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:faff:ff:ff:ff:ff






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 25 at 16:29









          Michael HamptonMichael Hampton

          11k33368




          11k33368













          • Yes. The correct manual

            – J.Doe
            Jan 31 at 23:22



















          • Yes. The correct manual

            – J.Doe
            Jan 31 at 23:22

















          Yes. The correct manual

          – J.Doe
          Jan 31 at 23:22





          Yes. The correct manual

          – J.Doe
          Jan 31 at 23:22


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398287%2fconfigure-ipv6-on-debian-9%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Index of /

          Tribalistas

          Listed building