コンテンツへスキップ

How to a Setup Static IP Address in Linux using Netplan – (2021) – Ubuntu 20.04 LTS Beginners Guide

  • by

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.
______________________________________________________________
📚📚 Learn more about Linux / Programming 📚📚
Linux & Command Line Guide – https://amzn.to/37ggYUw (Kindle)
The Linux Command Line – https://amzn.to/345nE64 (Book)
Linux Pocket Guide – https://amzn.to/3njzTDF (Kindle)
Linux Basic for Hackers – https://amzn.to/3neMFU4 (Kindle)
Linux Bible – https://amzn.to/2W7QJJQ (Book)

C++ Programming – https://amzn.to/2Wb32F7 (From the Creator)
C++ for Dummies – https://amzn.to/37XSZZv (The basics)

💾 💾 USB Disks and SD Cards 💾 💾
Samsung 128GB USB 3.1 – https://amzn.to/3nfGMWD (Sleek)
Samsung 128GB USB 3.1 – https://amzn.to/3mfxd8O (Slim)
SanDisk 128GB USB 2.0 – https://amzn.to/3nhaLNZ (Cheap)
SanDisk 128GB SD Card – https://amzn.to/3oOYgJL (4K)

My Linux PC Setup:
https://www.amazon.com/shop/savvynik

Above contains affiliate links, this means I may receive a small commission if you click one. This helps support and grow the channel. If you do use a link thank you for supporting the channel!
_______________________________________________________________
📺📺 Check out More Videos!! 📺📺
Linux Tips – https://www.youtube.com/playlist?list=PLKMOdY6Bhga76_1N-J1YY9jcJr_DfUbYH
Linux Reviews – https://www.youtube.com/playlist?list=PLKMOdY6Bhga5fAJjr4ItXN09KXf4dd0zz
Linux Help – https://youtube.com/playlist?list=PLKMOdY6Bhga73aciZtlZgLmiKRdrQzyu0
Linux Installs – https://youtube.com/playlist?list=PLKMOdY6Bhga79HzhzEV0pSx5asSXogalI
C++ for Beginners – https://youtube.com/playlist?list=PLKMOdY6Bhga5ws13FNCbD0103pXEP-VFV
Live Streams – https://www.youtube.com/playlist?list=PLKMOdY6Bhga5kAS3OCCzFptox-XxNF-ZP
C++ Project Series – https://youtube.com/playlist?list=PLKMOdY6Bhga7BUgPca5EX1J-JYQIbX5fn

_______________________________________________________________

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 #Tutorial#Computers

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA