IPv6-subnets with systemd-networkd











up vote
1
down vote

favorite












My new ISP gives me a public IPv6 address with a /56 prefix to play around:



2001:b:c:d:5:6:7:8/56


I would like to create two subnets divided by a linux server like this:



internet - fritzbox - server - pc


But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:



/etc/systemd/network/eth1.network



[Match]
Name=eth1

[Network]
DHCP=ipv6
IPv6AcceptRA=yes
IPv6PrefixDelegation=dhcpv6
IPForward=yes


After a systemctl restart systemd-networkd the externel interface gets an address:



ip -6 addr
...
inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic


Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:



internet: 2001:b:c:d::
server: 2001:b:e:f::


Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?



/etc/systemd/network/eth0.network



[Match]
Name=eth0

[Network]
???


My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.










share|improve this question




























    up vote
    1
    down vote

    favorite












    My new ISP gives me a public IPv6 address with a /56 prefix to play around:



    2001:b:c:d:5:6:7:8/56


    I would like to create two subnets divided by a linux server like this:



    internet - fritzbox - server - pc


    But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:



    /etc/systemd/network/eth1.network



    [Match]
    Name=eth1

    [Network]
    DHCP=ipv6
    IPv6AcceptRA=yes
    IPv6PrefixDelegation=dhcpv6
    IPForward=yes


    After a systemctl restart systemd-networkd the externel interface gets an address:



    ip -6 addr
    ...
    inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic


    Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:



    internet: 2001:b:c:d::
    server: 2001:b:e:f::


    Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?



    /etc/systemd/network/eth0.network



    [Match]
    Name=eth0

    [Network]
    ???


    My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      My new ISP gives me a public IPv6 address with a /56 prefix to play around:



      2001:b:c:d:5:6:7:8/56


      I would like to create two subnets divided by a linux server like this:



      internet - fritzbox - server - pc


      But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:



      /etc/systemd/network/eth1.network



      [Match]
      Name=eth1

      [Network]
      DHCP=ipv6
      IPv6AcceptRA=yes
      IPv6PrefixDelegation=dhcpv6
      IPForward=yes


      After a systemctl restart systemd-networkd the externel interface gets an address:



      ip -6 addr
      ...
      inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic


      Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:



      internet: 2001:b:c:d::
      server: 2001:b:e:f::


      Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?



      /etc/systemd/network/eth0.network



      [Match]
      Name=eth0

      [Network]
      ???


      My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.










      share|improve this question















      My new ISP gives me a public IPv6 address with a /56 prefix to play around:



      2001:b:c:d:5:6:7:8/56


      I would like to create two subnets divided by a linux server like this:



      internet - fritzbox - server - pc


      But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:



      /etc/systemd/network/eth1.network



      [Match]
      Name=eth1

      [Network]
      DHCP=ipv6
      IPv6AcceptRA=yes
      IPv6PrefixDelegation=dhcpv6
      IPForward=yes


      After a systemctl restart systemd-networkd the externel interface gets an address:



      ip -6 addr
      ...
      inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic


      Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:



      internet: 2001:b:c:d::
      server: 2001:b:e:f::


      Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?



      /etc/systemd/network/eth0.network



      [Match]
      Name=eth0

      [Network]
      ???


      My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.







      ipv6 router systemd-networkd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago

























      asked Dec 4 at 17:34









      Frank

      1485




      1485



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f485956%2fipv6-subnets-with-systemd-networkd%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


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





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2funix.stackexchange.com%2fquestions%2f485956%2fipv6-subnets-with-systemd-networkd%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt