How to a Setup Static IP Address in Linux using Netplan - Beginners Guide

SavvyNik
SavvyNik
110.9 هزار بار بازدید - 4 سال پیش - How to Setup a Static
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
4 سال پیش در تاریخ 1399/07/29 منتشر شده است.
110,928 بـار بازدید شده
... بیشتر