How to a Setup Static IP Address in Linux using Netplan - Beginners Guide
How to Setup a Static IP Address, Networking Terms, and using a Terminal with NetPlan to set your Static IP Address in Linux. We'll discuss How to Setup a Static IP Address in Linux (ubuntu) using Netplan. As well as, mention some of the terms you need to know around networking to successfully reserve a Static IP Address on your local network. This can be used with any other Linux Distro that uses Netplan and doesn't have to be only used on Ubuntu 20.04 LTS.
By default Ubuntu and most Linux distributions will assign an IP Address dynamically using a DHCP Server.
To set a static ip address through terminal we’re going to use Netplan which is a utility that allows us to configure networking settings on linux. Netplan uses the YAML convention by allowing us to configure a network with a simple YAML file. All that YAML stands for is Yet Another Markup Language. It’s a serialization language that is most often used for configuration files.
My Linux Cheat Sheet and 25 Page Checklist here:
📚 https://learn.savvynik.com
Share this free tool and support Small YouTubers
https://editbulk.com
(I made this tool to help creators)
Want more info/content?
https://savvynik.com
Useful Links/Commands
Setup in the Video for Reference:
network:
version: 2
renderer: networkd *the renderer property tells netplan which network manager will manage devices connected to the linux box
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.1.4/24]
gateway4: 192.168.1.1
this tells us how to communicate to devices on different subnets
nameservers:
addresses: [8.8.8.8,8.8.4.4]
#linux #ubuntu #pc
Other Videos By SavvyNik
Other Statistics
The Beginner's Guide Statistics For SavvyNik
Currently, SavvyNik has 1,791,232 views for The Beginner's Guide across 92 videos. The Beginner's Guide has approximately 19 hours of watchable video on his channel, or 9.30% of the total watchable video on SavvyNik's YouTube channel.