Navigate Select ESC Close

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

2019-10-03 Science & Technology
88.6k
1.7k
73
Eli the Computer Guy
Eli the Computer Guy
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Find code and diagrams at: https://www.EliTheComputerGuy.com 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/ sudo vim file.yaml – edit thye file that ends in yaml 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

Top Comments (10)

@engrgangi 2020-05-28

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

6
@ogunsade_benjamin 2022-06-23

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

3
@mansourq6512 2019-10-03

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

2
@visibleaesthetics7343 2023-10-07

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

2
@Shaqouun 2024-09-05

Nice to see you, legend. The first time i learned from this guy was a decade ago

2
@missunderstood7331 2021-11-02

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.

2
@nonsocoinbase5335 2019-11-29

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

2
@andresmartinez4997 2021-10-24

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

1
@SebastiaanvandenAkker 2020-01-03

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

1
@tjames22123 2022-01-16

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

1

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot