How To Configure IP Address In Ubuntu 18.04 LTS

configure ip address in ubuntu 18.04

17 Responses

  1. LLyn0 says:

    Thank you for brief review, but I disagree that this method is more complicated than the old one. If you’re familiar with yaml, this way is better.

    • sk says:

      I get used to the old method, so I find the Netplan method is bit difficult. I am not familiar with YAML and I had to spend some time to figure out why my network settings isn’t not working.

  2. Lars van Egmond says:

    Thank you SK for sharing this information !

  3. Fábio says:

    Very nice explanation! And the point of indenting the lines is really important. Thank you!

  4. jason says:

    Hi, thank you for this.
    I cant help notice that the changes will not persist ad it gets overwritten. Anyone have any advice.

    kind regards

  5. Jason P says:

    I am trying to set up a static IP on Ubuntu 18.04 server, but I continue to get an error (ModuleNotFound) for netifaces. It is installed on the server, but I can’t see how to connect the two to apply the new yaml file. I can’t seem to find much on the topic. Hoping someone could help.

  6. Simon says:

    I don’t know why you would not just allocate the address in the DHCP server.

  7. Ron Crowder says:

    Sometimes if you are setting up a server you want a specific address assigned to it outside of the client machines.

  8. jeff g says:

    This is exactly why everyone hates linux… I work in IT and it is so frustrating to keep up with these stupid changes all the time with each new release, it gets even worse when you have different versions in your environment… Things that take 1-2 minutes to do in Windows end up taking up half of your day and with no proper documentation online…

  9. Lolito says:

    Thank you bro’, you just saved my life

  10. Segun says:

    Why do we always have to do simple things the hard way?. network configuration in Ubuntu 18.04 is simply lame, and up till this moment, nobody has been able to indicate the advantage of Netplan over the previous method of network configuration in 16.04 and earlier. Jeff g, i agree with you, this is why people hate Linux.

    Imagine network settings that should take few minutes is now a stringent and fragile process that could ruin your entire OS. No special advantage that i know of. This is so lame.

  11. Jordan says:

    Can you please show how to add more than one IP address to the system?

  12. Jordan says:

    I agree, these are chief reasons Windows Server is becoming more common than Linux with enterprise and industry level work.

  13. niels andersen says:

    this is brilliant, so much eacier to deploy config with ansible or policy, and so much easier to remove config.

    There may be a “hidden” address in the 50-cloud.yaml file from the installer. Double check that if you get funny issues.

  14. Jorry says:

    How does it work when the subnet is not 255, for example a /30 ?

    I don’t understand how it can know it’s subnet with just this information.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.