Linux - Network Configuration (ip, route, dhclient, systemd-resolve, netplan)

preview_player
Показать описание

Configuring Networking at the command line in Linux can be confusing. It’s important to know that you use many different application to manage networking and these applications may be different based on your distribution or version.

ifconfig – See IP address and Network Interface ID (deprecated, but works)

ip addr – See IP address and Network Interface ID

route -n – view default gateway

systemd-resolve --status – view DNS

sudo dhclient -v -r – DHCP release

sudo dhclient -v – DHCP renew

Set Static IP Address

Navigate to: /etc/netplan/
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.199/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply – apply network changes
Рекомендации по теме
Комментарии
Автор

Eli, Thanks for the content: went through your networking series & learnt a lot.
This intro to Linux series I really enjoyed, binged for 3 days & made it through!
Next your further Linux and programming classes.
Your teaching style is really straightforward & enjoyable, also really funny; much better than many other people's dry classes...
Cheers for the free selfless work you do.

missunderstood
Автор

Another masterpiece from the legend. Had issues editing netplan until now. Thanks.

engrgangi
Автор

Thank you for the Linux command summary in the video description. It's very useful.

ogunsadebenjaminadeiyin
Автор

Great intro to Linux vid series, Mr. Eli! Enjoyed it very much, and hopefully some things wil retain...

SebastiaanvandenAkker
Автор

I am brand new in Linux and I had started to learn and stopped almost 5 times now, This has been very to the point. Meanwhile when you wanted to show the error output when you changed from addresses to addresse. I will try it in my vLab to see the output. Thanks again.

ZeroneSolutions
Автор

After several days of headaches trying to connect to my Ubuntu server, I found this video and it was the real solution. Thanks! :)

andresmartinez
Автор

Good job mr. Eli you are doing very good job and sharing your knowledge with us ..thank you so much I have shared it to my frnds as well in India they also loved it .

varunkhurana
Автор

Brother I want to thank you because I watched 4 minutes of this video, my first ever video watching your content and boom I've cracked the puzzle

visibleaesthetics
Автор

Great content! Thanks a million times. Keep up the good work. Again, thanks.

nonsocoinbase
Автор

Thank you so much for great video, keep up your great work THUMBS up 👍

mansourq
Автор

Great !! Thanks for your detailed explanation. :)

solomonthangaraj
Автор

Thanks man!! The indentations were different on my set-up but everything worked ;)

tjames
Автор

Thanks. That last one I'll have to watch over.👍😃

brandonfarfan
Автор

Another wonderful and useful tutorial...

💯💯💯

SkyFly
Автор

Wow thanks you so you make networking easy for me.

aboubacaryayakeita
Автор

Noooo, dude you're selling out! Where's the orange shirt?!? Great vids, btw. Good and useful stuff. Thanks

MrSourcaustic
Автор

It's a nice content it's so helpful thank you Eli 👏👏

jessabeltorres
Автор

...in mine (also ubunt serb 18.04) it also has optional: true and below that a line version: 2

What does those two lines refer to?

dimitristsoutsouras
Автор

I am trying to set up NAT on Ubuntu 18.04. So, can you please tell me the list of configuration files I need to change, and is the Ubuntu18.04 NAT configuration process different than Ubuntu16.0X?

ninadjadhav
Автор

Thank you for this share, it’s educational and you are a great teacher!
May I ask, is it possible to define with NIC is the or shall be the main one (indirectly configuring the interfaces? In nmtui one can archive that and it is just point and click. But in my case doing that breaks my system which is on a Pi5, Raspberry OS 64 Lite and with OMV on top of it all.. when I sat the system up I only had the built in NIC of the Pi5, recently I got myself a 2.5Gb NIC and did’t know better so I reached out to Pi5 forums and got recommended using NetworkManager and since then I’m unable to use the system. I can boot it and using a HDMI adapter attach a monitor but as long as I don’t fix my configuration of the NIC’s using SystemD my setup will keep having errors on boot and be unstable since OMV uses that and seem to be having majors issues cause of my configuration using nmtui)

Would appreciate your input in this matter!

You got a sub either way ofc.

Arelius.D