VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
How to Use NetPlan in Ubuntu 18.04 - Chris Titus Tech

How to Use NetPlan in Ubuntu 18.04 - Chris Titus Tech

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
How to Use NetPlan in Ubuntu 18.04 - Chris Titus Tech In this video, I go over how to use NetPlan the new NetworkManager for Ubuntu 18+. New configuration files /etc/netplan/ (Yaml Files) sudo nano 01-netcfg.yaml (Make sure to Copy for a Backup) Configuring: network: Version: 2 Renderer: networkd ethernets: DEVICE_NAME: Dhcp4: yes/no Addresses: [IP/NETMASK] Gateway: GATEWAY Nameservers: Addresses: [NAMESERVER, NAMESERVER] Where: -DEVICE_NAME is the actual device name to be configured. -yes/no is an option to enable or disable dhcp4. -IP is the IP address for the device. -NETMASK is the netmask for the IP address. -GATEWAY is the address for your gateway. -NAMESERVER is the comma-separated list of DNS nameservers. Generate Configuration: $ sudo netplan generate Applying Configuration: $ sudo netplan apply
Date: 2022-03-21

Comments and reviews: 10


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.

reply

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

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.

reply

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
reply

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?
reply

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
reply

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

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?!..
reply

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.

reply

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.
reply
Add a review, comment






Other channel videos