Server 18.04: systemd-networkd combining DHCP and Link Local addressing

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1












I have been toying around with the server version of Ubuntu and have been trying to get the network configured in a manner similar to how Windows manages its interfaces. First by trying DHCP and then falling back to zeroconf. Reading the man page of systemd-networkd I figured I could create something similar using this script I cobbled together:



$>sudo nano /etc/systemd/network/01-DHCP-and-link-local-on-everything
[Match]
Name=eth* en*

[Network]
DHCP=yes
LinkLocalAddressing=yes
LLMNR=true

[DHCP]
UseDNS=true
UseNTP=true


However, this doesn't work. I don't have an IP address at all now. So, my question is:
How can I have both DHCP and link-local addressing on an interface using systemd-networkd?







share|improve this question


























    up vote
    0
    down vote

    favorite
    1












    I have been toying around with the server version of Ubuntu and have been trying to get the network configured in a manner similar to how Windows manages its interfaces. First by trying DHCP and then falling back to zeroconf. Reading the man page of systemd-networkd I figured I could create something similar using this script I cobbled together:



    $>sudo nano /etc/systemd/network/01-DHCP-and-link-local-on-everything
    [Match]
    Name=eth* en*

    [Network]
    DHCP=yes
    LinkLocalAddressing=yes
    LLMNR=true

    [DHCP]
    UseDNS=true
    UseNTP=true


    However, this doesn't work. I don't have an IP address at all now. So, my question is:
    How can I have both DHCP and link-local addressing on an interface using systemd-networkd?







    share|improve this question
























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      I have been toying around with the server version of Ubuntu and have been trying to get the network configured in a manner similar to how Windows manages its interfaces. First by trying DHCP and then falling back to zeroconf. Reading the man page of systemd-networkd I figured I could create something similar using this script I cobbled together:



      $>sudo nano /etc/systemd/network/01-DHCP-and-link-local-on-everything
      [Match]
      Name=eth* en*

      [Network]
      DHCP=yes
      LinkLocalAddressing=yes
      LLMNR=true

      [DHCP]
      UseDNS=true
      UseNTP=true


      However, this doesn't work. I don't have an IP address at all now. So, my question is:
      How can I have both DHCP and link-local addressing on an interface using systemd-networkd?







      share|improve this question














      I have been toying around with the server version of Ubuntu and have been trying to get the network configured in a manner similar to how Windows manages its interfaces. First by trying DHCP and then falling back to zeroconf. Reading the man page of systemd-networkd I figured I could create something similar using this script I cobbled together:



      $>sudo nano /etc/systemd/network/01-DHCP-and-link-local-on-everything
      [Match]
      Name=eth* en*

      [Network]
      DHCP=yes
      LinkLocalAddressing=yes
      LLMNR=true

      [DHCP]
      UseDNS=true
      UseNTP=true


      However, this doesn't work. I don't have an IP address at all now. So, my question is:
      How can I have both DHCP and link-local addressing on an interface using systemd-networkd?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 16 at 5:02

























      asked May 11 at 5:29









      Nathilion

      63




      63

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034769%2fserver-18-04-systemd-networkd-combining-dhcp-and-link-local-addressing%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034769%2fserver-18-04-systemd-networkd-combining-dhcp-and-link-local-addressing%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491