How to Set Static IP in Ubuntu Server 20.04

Поділитися
Вставка
  • Опубліковано 4 сер 2024
  • In this video we're using netplan and Systemd-networkd to assign a static IP address to our server.
    netplan.io
  • Наука та технологія

КОМЕНТАРІ • 77

  • @Drakellakos
    @Drakellakos 9 місяців тому +5

    at last an IT engineer. Simple step by step explanation. Yes some of us need the information spoon fed. You rock

    • @absprog
      @absprog  9 місяців тому

      Glad it was helpful!👍

  • @kateniaallen8670
    @kateniaallen8670 10 місяців тому +1

    Thank you! Not only for showing how but also explaining what's going on so I can preform the task correctly for my system!! I appreciate this video so much!!!

    • @absprog
      @absprog  10 місяців тому

      That's great to hear 😊👍

  • @alexarmstrong7482
    @alexarmstrong7482 2 роки тому +1

    Hi, your the explanations in all your videos are high quality, simple to understand and with examples. I am a new fan and follower of yours 🙂 . This video just saved my day. Thanks a lot.

    • @absprog
      @absprog  2 роки тому

      Awesome, thank you so much!

  • @bronzePower
    @bronzePower 2 роки тому +1

    Thanks buddy, this was a short and effective tutorial. Fixed my issue.

    • @absprog
      @absprog  2 роки тому

      Glad to hear that! Thanks for the comment!

  • @fvgoya
    @fvgoya Рік тому +1

    Thank you!!!! Simple and straight to the point.

  • @ckevintucker
    @ckevintucker Рік тому

    Thank you for publishing this video! It was very helpful.

  • @glendubie
    @glendubie 2 роки тому +1

    Thank you sooooooo much. Great video!!!! Thanks for your time and keep up the good work.

  • @NigerianBaller
    @NigerianBaller Рік тому

    Thank you so much for this video. I saved it in my playlist

  • @theslaphappychap
    @theslaphappychap 7 місяців тому

    Clear, concise, professional. Thank you for this video! :)

    • @absprog
      @absprog  7 місяців тому

      Thanks for your kind words!👍

  • @simondetrez2221
    @simondetrez2221 2 роки тому

    Thank you for this clear tutorial !

  • @drishtdeummalik3124
    @drishtdeummalik3124 2 роки тому

    awesome explanation, loved it :)

  • @mikeendsley8453
    @mikeendsley8453 2 роки тому

    Very helpful, great video.

  • @GamerMasterlink
    @GamerMasterlink 6 місяців тому

    Thanks for the tutorial, it seems that the page you used to pick the example changed a little bit, and I could not found it but just typing the same text and being extra careful with the indents did the trick, thank you!

    • @absprog
      @absprog  6 місяців тому

      Thank you for your feedback!👍

  • @adhwake
    @adhwake Рік тому +5

    very well explained. much better than a lot of other short videos on this topic that dont cover some important bits. a question: with other devices we generally define the static ip in the router. do i not need to do that in this case and this procedure forces the change on the router, somhow?

    • @everythingyouwant5377
      @everythingyouwant5377 17 днів тому

      It just takes the pi so that other devices can’t take it basically

  • @notker88
    @notker88 Рік тому

    What is I have /20 at the size of the subnet mask at first from the dynamic IP? Yesterday it was working and today after I restarted my PC it does not work anymore. I assume it's because of the /20? There was subnet mask 20 but the second three numbers changed on reboot, how can that be?

  • @kcreations5478
    @kcreations5478 Рік тому +2

    Sir after setting static ip whenever I am running apt-get update or sudo apt update or to install any package I am getting "Ign1 some error" like that and unable to download or install any package. Please help me

  • @leafyon
    @leafyon Рік тому

    Invaluable tutorial. Thank you

    • @absprog
      @absprog  Рік тому

      Thank you for your kind words! It's always rewarding to hear that my content has been useful🤗

  • @zohrehahmadi3883
    @zohrehahmadi3883 Рік тому

    high quality explanation. thank you so much

    • @absprog
      @absprog  Рік тому

      You are welcome! Thank you very much! 🤗

  • @iberianful
    @iberianful Рік тому

    Great video!!!!🙂

  • @KeesFluitman
    @KeesFluitman 3 місяці тому

    I could succesfully set a static IP on my VMs, but they werent "discovered" by my router. They worked perfectly fine, except for connecting to github. So I debugged, removed static IP and voila. I could push and pull again, ssh to github, etc. Any ideas what that could be? Was somehow my router interfering and wanting to appoint a different IP?

  • @elanosilveira2131
    @elanosilveira2131 5 місяців тому

    thank you! all I needed

    • @absprog
      @absprog  5 місяців тому

      Glad to hear that!👍

  • @sebastienroll9249
    @sebastienroll9249 2 роки тому

    Good Job! You can also set up an Static IP at the begining of the Ubuntu Server installation. Its faster and easier.

    • @absprog
      @absprog  2 роки тому

      Yes, you are right, thanks!

  • @farazhassan6417
    @farazhassan6417 Рік тому

    Very to the topic, Best.

  • @Cathy-up3qc
    @Cathy-up3qc 2 роки тому +1

    Good video. Anybody knows how to configure multiple network adapters (like eth1, eth2 etc with diff vlans) in ubuntu 20.04? I have searched a lot but didn't get a clear solution for 20.04

  • @Omar_Doble_R
    @Omar_Doble_R Рік тому

    i have problem with multipass it does not save configuration when reboot machine . so i try to change with hyper-v console but mulltipass go to disabled, any solution?, nice video

  • @moathghanim9052
    @moathghanim9052 Рік тому

    I got into ipv4: N/A
    any idea why that happend

  • @dzkfdl
    @dzkfdl 13 днів тому

    Can the same method be done on 20.10?

  • @alexanderpoplawski577
    @alexanderpoplawski577 3 роки тому

    Thanks for the info. How does the dhcp-server know, that this address from the dhcp range is used static?

    • @absprog
      @absprog  3 роки тому

      Your safest bet would be confining the address range of the DHCP server, so it doesn’t fully cover the subnet. That’s usually the case by default. Then use addresses outside this range whenever you need a static IP.

    • @alexanderpoplawski577
      @alexanderpoplawski577 3 роки тому

      @@absprog That's what I do normally. Of course you will loose the connection as soon as you restart the network service. Then try to reconnect with the new address. If everything was correct, you can login. Otherwise go grab a keyboard and monitor :-)

    • @absprog
      @absprog  3 роки тому

      Do you manage a big network?

    • @alexanderpoplawski577
      @alexanderpoplawski577 3 роки тому

      @@absprog No, for my work the network is managed by the IT of my client. But I have to bring up a new server from time to time. But I have some Raspberry Pi servers at home.

  • @djawnstlr9018
    @djawnstlr9018 Рік тому

    short and easy to understand

    • @absprog
      @absprog  Рік тому

      Glad you liked it!

  • @LibraryOfTheOligarchs
    @LibraryOfTheOligarchs Рік тому

    Appreciate you!

    • @absprog
      @absprog  Рік тому

      Thank you for watching! I appreciate your support

  • @mahmutikilic
    @mahmutikilic Рік тому

    i tried this a lot but i couldnt succes the dns resolving. in this video u deleted nameservers parameters. how could I add DNS info to ubuntu.

  • @awumyvesagwo6581
    @awumyvesagwo6581 Рік тому

    Thank you.

  • @1rajuindia
    @1rajuindia 8 місяців тому

    Good explanation

    • @absprog
      @absprog  8 місяців тому

      Thank you for your feedback!👍

  • @poke1994271
    @poke1994271 Рік тому +1

    Hi bro, but when we config like this. Server cannot connect to the Internet via static IP address

    • @bogdanalexandru75
      @bogdanalexandru75 11 місяців тому

      You can connect to the ethernet with a static ip, but you need to configure the adapter manually. Add the gateway (might be your router's ip) and the DNS servers (might be Google DNS servers).

  • @Admiral_Jezza
    @Admiral_Jezza Рік тому

    I get temporary failure in name resolution

  • @martinrosolino
    @martinrosolino Рік тому

    THANKS MAN

    • @absprog
      @absprog  Рік тому

      Thank you for watching! I appreciate your support 👍

  • @keithryon23
    @keithryon23 2 роки тому

    Did you upload the network manager video?

    • @absprog
      @absprog  2 роки тому

      Tbh I never got to make it… Do you think there would be viewers to it?

    • @bruce716
      @bruce716 Рік тому

      @@absprog Yes, that would be great, I am using desktop version of ubuntu. And I would like to know if this is the reason, after followed your tutorial and rebooted the desktop ubuntu, I lost connection to internet. Lastly, how do I know if I did successfully assign a static ip to the ubuntu?

    • @420thdistrict
      @420thdistrict Рік тому

      @@absprog is there not a video for the desktop version

    • @absprog
      @absprog  Рік тому

      @@420thdistrict ua-cam.com/video/0mfsE8t_7yY/v-deo.html

  • @jvskrishna
    @jvskrishna Рік тому

    I am using a linux based iot device where I am unable to /etc/netplan. is there any other method?

    • @absprog
      @absprog  Рік тому

      Which distro do you have running there?

    • @jvskrishna
      @jvskrishna Рік тому

      @@absprog distro?

  • @francoischarbonneau8944
    @francoischarbonneau8944 6 місяців тому

    the link does not work

  • @fakename8670
    @fakename8670 3 місяці тому

    What if it server or desktop doesn't have renderer?

  • @EminKmmm
    @EminKmmm 10 місяців тому

    I feel quality

  • @zachperkins6382
    @zachperkins6382 6 місяців тому

    ip a is unknown

  • @highcel
    @highcel Рік тому +4

    Helpful but incomplete and will confuse a beginner like myself. By choosing not to set the gateway the server no longer has access to internet! Luckily I figured out in the end what was wrong...

    • @kyaryi1
      @kyaryi1 Рік тому +1

      Hey, can you explain how to setup the gateaway and the syntax for it?
      Have the same problem, this video screwed me over

    • @dauji6159
      @dauji6159 6 місяців тому +1

      dude tell us how you fixed it atleast

  • @Spek601
    @Spek601 Рік тому

    This killed my internet access

  • @indhi05channel71
    @indhi05channel71 2 роки тому

    Very helpful, great video.