How to Use NetPlan in Ubuntu 18.04

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 93

  • @smibssmibs
    @smibssmibs 2 года назад +3

    Great way to explain by showing mistakes in yaml formatting.
    Anyway, what looks great about the actual netplan:
    - single place to configure all the stuff
    - validates the configuration before it is really applied (and tells you, where is the error)
    - it builds on existing solutions (networkd or NetworkManager) making their use simple by providing unified configuration interface
    I like it.

  • @digitalsparky
    @digitalsparky 5 лет назад +3

    I also really like netplan, the advanced stuff is also pretty simple to figure out as well.

  • @HikariKnight
    @HikariKnight 5 лет назад +3

    i configured netplan before in 18.04 for our server at my main job and i personally prefer it over the old method. personally i edit the yaml file with vim as i can set TAB to actually do 4 spaces instead :)

  • @nnaaaaaa
    @nnaaaaaa 5 лет назад +8

    netplan is a dream for automation because now you can just push a yaml file and provision a bunch of servers' networking. BAM done.

  • @desromic
    @desromic 5 лет назад +11

    5:50 Yay, I love playing "which of these invisible characters doesn't belong?" Netplan is fun for the whole family.

    • @mombof
      @mombof 4 года назад

      This! You can probably do just a 30sec video only of the character formatting and call it "Ubuntu netplan sucks", and you'll probably have a million views in a week ;) many people are trying to sort it out the first time and struggling with tabs.

  • @mrshodz
    @mrshodz 4 года назад +1

    Nice explanation. I like how you demonstrated how netplan works by breaking it.

  • @Speccy48k
    @Speccy48k 5 лет назад +8

    Hi, a tutorial with a Wifi interface would be great 😉

  • @antiantiantiantiantiantian9766
    @antiantiantiantiantiantian9766 4 года назад

    Thanks a lot! After struggling for hours with a malfunctioning network configuration (after cloning and migrating some VMs) Your video was quite an eye opener.
    Bad luck for me, that most google-search-results point to solutions referring to /etc/network/interfaces.

  • @marmiz444
    @marmiz444 4 года назад

    Super.W końcu ktoś konkretnie i na temat wytłumaczył co i jak i działa mi wszystko na Ubuntu 20.04.1 LTS

  • @zia.rehman
    @zia.rehman 4 года назад

    This is the best example I have came across

  • @MMWA.F
    @MMWA.F 5 лет назад

    Dude thank you so much. I was using the old networking commands and was stuck for about a good 2 hours before your video. I had to make some minor adjustments but your video without a doubt pointed me in the right direction and saved me so much time.

  • @reubenmartinez1
    @reubenmartinez1 4 года назад

    Thank you for your tutorial. I found it very helpful in troubleshooting some issues I was having.

  • @loukasmaki
    @loukasmaki 5 лет назад +5

    OMG YES (I screamed when I saw the title and thumbnail for this video)

  • @josephroblesjr.8944
    @josephroblesjr.8944 5 лет назад

    I was just looking for how to do this and then you posted this! Than you!

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 5 лет назад +1

    Thank you, Chris. Very useful video.

  • @barts3o
    @barts3o 4 года назад

    Thanks a lot! Finally it's working!

  • @benriful
    @benriful 5 лет назад +1

    Yeah Yaml's got the same issue as Python, "tab" is a bad idea.
    BTW, you can configure nano to auto convert tabs to spaces for you. Make a .nanorc file in your home folder and place the following lines into it:
    set tabsize 4
    set tabstospaces
    Alternatively create an alias for nano to include the commandline parameters: nano -E -T 4
    I'd actually go with the alias idea and give it some other name, so I can use nano in "yaml / python" mode, while for other stuff I can still use tabs if I want.

  • @kjakobsen
    @kjakobsen 5 лет назад +15

    Netplan and YAML makes my blood boil. I ended up circumventing Netplan, and use the interfaces below.
    The strict formatting insanity alone, what kind of masochist would you have to be, to come up with that?

    • @mikemockler2079
      @mikemockler2079 4 года назад +1

      Could not agree with you more. I'm sure it works better for scaling up automated configuration of large-scale deployments but I just want to configure a single damn server, where is my nmtui?!
      Obviously I know you can install and change that but I'm studying for LFCS and don't want to waste time.
      Anyway sorry to necro a year old comment but damn it's making me angry.

    • @francisphillipeck4272
      @francisphillipeck4272 Год назад

      Absolutely. Even copy/pasting config samples form netplan's own documentation and filling in your information DOESNT EVEN WORK meaning their OWN documentation is worthless!!!!

  • @dexterlowery1472
    @dexterlowery1472 3 года назад

    Thanks for including those common errors towards the end.

  • @ichimokustrategy9132
    @ichimokustrategy9132 3 года назад

    It works! Thank you

  • @unpaintedcanvas
    @unpaintedcanvas 5 лет назад

    Coming from someone who's slowly but surely going to configure an old laptop to become a nextcloud server, this seems really promising.
    I just really hate nanoing into yaml files for the reasons described though. Or really any file that relies on "tabbing" for that matter. Constantly have to fight myself.

  • @rasindunimsara6643
    @rasindunimsara6643 3 года назад

    problem solved! thank you.

  • @419sinbad
    @419sinbad 5 лет назад +3

    Hey Chris u don't know how difficult it is but could you do a video on how combine two network for higher speeds I think you mention network bonding. Thanks

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад +2

      Certainly, I'm about to bond a couple nic's on some servers I have aquired.

  • @motsgar
    @motsgar 4 года назад

    As a new guy to linux, i think that this is awesome

  • @miveliino
    @miveliino 5 лет назад +2

    If you forget the sudo, you can just use "sudo !!" it will fill in the last command.

  • @LampJustin
    @LampJustin 5 лет назад

    You should try out the micro editor ;) It's a nice replacement for nano!

  • @adibsadman4094
    @adibsadman4094 5 лет назад +1

    Hi Chris. Great video!! Would like to know what distro you use.
    Cheers

  • @VulcanOnWheels
    @VulcanOnWheels 4 года назад +2

    If you would have used vim, you could have entered an instruction to search your file for tabs and replace all of them with 4 spaces.

  • @Dmac4362
    @Dmac4362 5 лет назад

    Thank you for clearing this up for me

  • @gaiusbaltar7122
    @gaiusbaltar7122 3 года назад +1

    To make it the easy way, go to /usr/share/doc/netplan/examples and make a copy of static.yaml to /etc/netplan then, put the right values in it, and you're good to go.

  • @Sukeml
    @Sukeml 5 лет назад

    I love it's great for my setup, with qemu and unifi vlans.

  • @ImHereForPearlJamVid
    @ImHereForPearlJamVid Год назад

    this is the way. thank you.

  • @jig1056
    @jig1056 5 лет назад

    I like it.. thanks.. really nice and informative video

  • @sekt1953
    @sekt1953 5 лет назад

    yes that was the easy part, what about the auto-discovery setup so we do not need fixed ip addresses

  • @yovvel
    @yovvel 3 года назад

    Why use netplan generate? Netplan apply also check for errors before applying the changed yaml file? Just asking out of curiousity

  • @SwiatLinuksa
    @SwiatLinuksa 5 лет назад

    Network Manager give me many many issues with WiFi USB dongle ( Realtek and atheros ), in Ubuntu, Centos and Arch.. Starting from don't connect to WPA2 Network, loosing connection or just don't show device. Turn off that, manually configure wpa supplicant , then dhclient/dhcpcd resolve all problems..

  • @mon0theist_tv
    @mon0theist_tv 4 года назад

    the war between tabs and spaces rages on
    But yeah this seems like one of those things that definitely didn't need to be changed. Not sure why Canonical came up with this.

  • @jim8395
    @jim8395 5 лет назад +1

    Great video, I love you showed the errors and then fixing them. More realistic when learning and new things.

  • @s9209122222
    @s9209122222 5 лет назад +2

    Is it a different version of ifconfig? Is NetworkManager the same thing?

    • @nnaaaaaa
      @nnaaaaaa 5 лет назад

      it's a shim that generates NetworkManager and/or systemd-networkd configs

  • @danimoosakhan
    @danimoosakhan 4 года назад

    What is cloud-init. Is that need to be disable before making change to yaml file?

  • @SY1337
    @SY1337 4 года назад

    stuff like this is what drives people to use *BSD instead. What were they thinking? Hm.. what would be the most complicated way for the average user to set up their network configuration?!..

  • @FritsvanDoorn
    @FritsvanDoorn 2 года назад

    Ok, but now, there is this pc with two interner cards. One connected to the world using dhcp, easy, but the second is connected to multiple vlans with all different fixed addresses. Four different addresses per vlan, so the card has multiple addresses. How to do that?

  • @GiancarloCarccamo
    @GiancarloCarccamo 5 лет назад

    Great video.

  • @imranmanan7346
    @imranmanan7346 Год назад

    3 years later i'm still referring to this video

  • @papabones8753
    @papabones8753 5 лет назад +1

    While you're on the network trip: do a video on wifi in live-cds via wpa_supplements and the likes. I've recently used my laptop as my test machine for all sorts of things(due to having to reinstall) and I've had mixed results with wpa_supplements. I got it working with gentoo and the likes but had a lot of issues with it on other distros like arch(based) ones and void for some reason. Might be useful to someone.

    • @loukasmaki
      @loukasmaki 5 лет назад +1

      This has worked for me on Arch:
      (must be run as root) wpa_supplicant -B -i interface -c

  • @ngebolangria1060
    @ngebolangria1060 4 года назад

    Hi Chris, is there a way to factory reset the network configuration in ubuntu? I've messed up the netplan config and since then I can't connect to internet, even after i tried to revert it back (I didn't take a precaution to backup old yaml file). Many thanks

  • @sunealsblbrandt436
    @sunealsblbrandt436 4 года назад

    thanks uncle chris

  • @teddraper1746
    @teddraper1746 5 лет назад +2

    What's the advantage of a static IP address vs one that is varable?

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад

      Port forwarding is the main purpose and file sharing in a lan.

    • @teddraper1746
      @teddraper1746 5 лет назад +1

      @@ChrisTitusTech good to know. I host old school LAN parties so I'll have to put this practice to use...but I use Arch, not Ubuntu. Is there something similar in Arch?

    • @ChrisTitusTech
      @ChrisTitusTech  5 лет назад

      Yes, but it can be setup different ways. Typically it is done using NetworkManager, but some people leave the default systemd dhcpd in place and that is configured differently. So it just depends on how you setup your arch.

    • @javabeanz8549
      @javabeanz8549 5 лет назад +1

      If you run your own DHCP server, or your router allows reservations, you can assign specific IPs to specific MACs, that might be an easier way to deal with LAN parties.

  • @rafaeloliveira2740
    @rafaeloliveira2740 5 лет назад

    Hi! I'm having big trouble trying to configure a bond of two interfaces in ubuntu. Can you make a video showing that configuration?

  • @zl0y
    @zl0y 4 года назад

    in short, who did not understand! in the yaml file do not use the tab key, only spaces!
    короче кто не понял! в файле yaml не используйте клавишу таб, только пробелы!

  • @hattan6775
    @hattan6775 5 лет назад

    I have one question now I have in my laptop hard drive and SSD ok now when I download photos or applications where it will save in the hard drive or SSD or both will be mixed I want to know because I want to organize everything I tried but I could not its not like windows

  • @omemester6985
    @omemester6985 3 года назад

    How am i supposed to configure an ip range for my dhcp server?

  • @davelionneltemga6218
    @davelionneltemga6218 6 месяцев назад

    Can someone explain me why my VMs on KVM Ubuntu 18.04 are getting just 70M/s upload out of the 900M/s that I got from my ISP please?

  • @chind0na
    @chind0na Год назад

    I switched routers and this headless server kept losing the settings/ or I was not saving them hehe. Just applied dhcp=false and rebooting...... let us see if we have the same IP as before. A minute later And it is. Gracias.

  • @myprovideo7852
    @myprovideo7852 4 года назад

    I do not get what the google address has to do with anything?

  • @sleepychildkungfu
    @sleepychildkungfu 4 года назад

    got to 7:39 and I am tapping out

  • @iharvalianski7843
    @iharvalianski7843 4 года назад

    How to bond local DNS server to Ubuntu 18.04 ?

  • @bossak.mokpokpo
    @bossak.mokpokpo 3 года назад

    hi , how do i put the syntax dns-nameserver and dns-search in the config?

    • @gaiusbaltar7122
      @gaiusbaltar7122 3 года назад

      There is a file in /usr/share/doc/netplan/examples called static.yaml that you can use and make fit your needs.

  • @BruceBigby
    @BruceBigby 5 лет назад

    Why did you enter [0.0.0.0,1.1.1.1] as a name server address value?

    • @javabeanz8549
      @javabeanz8549 5 лет назад

      it wasn't 0's it was 8's Google's public DNS runs on 8.8.8.8 and 8.8.4.4 on IPv4

  • @slash1498
    @slash1498 5 лет назад

    could you change your lights ...

  • @jytan740
    @jytan740 4 года назад

    i need to learn a new syntax its also space and tab sensitive

  • @Booming-letsplays
    @Booming-letsplays 5 лет назад

    Weird video. Did you install Arch drunk and this is the result?

  • @layer8371
    @layer8371 5 лет назад

    Witch Distro u use under the VM?

  • @MrGFYne1337357
    @MrGFYne1337357 5 лет назад +4

    Yay, linux for breakfast.

  • @francisphillipeck4272
    @francisphillipeck4272 Год назад

    Man netplan and ubuntu server is a absolute nightmare, ubuntu's documentation is, dwell non-existant and netplan's own documentation isnt even correct or working. I just get syntax error after error after error, ive been messing with this server for weeks and im just fucking over it bro this is easily the worst os ive ever used in my entire life.

  • @xanosdarkpaw1
    @xanosdarkpaw1 5 лет назад

    Netplan!!! *shakes fist*

  • @williamheckman4597
    @williamheckman4597 4 года назад

    "its not that bad... " Means... not that good.

  • @zl0y
    @zl0y 4 года назад

    netplan is the most annoying in new ubuntu

  • @ZuvielDrama
    @ZuvielDrama 4 года назад

    I don't like netplan! Sorry!

  • @Kukkane
    @Kukkane 4 года назад

    Routes😏💡updates. 🤦‍♀️🤷‍♀️🇦🇶