How to Configure a Static IP Address in Linux Using Netplan – Beginner’s Guide

HomeOther ContentHow to Configure a Static IP Address in Linux Using Netplan – Beginner’s Guide
How to Configure a Static IP Address in Linux Using Netplan – Beginner’s Guide
How to Configure a Static IP Address in Linux Using Netplan – Beginner’s Guide
How to configure a static IP address, networking requirements and use a terminal with NetPlan to set your static IP address in Linux. We will see how to configure a static IP address in Linux (ubuntu) using Netplan. Also mention some of the networking terms you need to know to successfully reserve a static IP address on your local network. This can be used with any other Linux distribution that uses Netplan and does not necessarily have to be used only on Ubuntu 20.04 LTS.

By default, Ubuntu and most Linux distributions will assign an IP address dynamically using a DHCP server.

To define a static IP address via a terminal, we will use Netplan which is a utility that allows us to configure network settings in Linux. Netplan uses the YAML convention allowing us to configure a network with a simple YAML file. All that YAML stands for is Yet Another Markup Language. It is a serialization language most often used for configuration files.

My 25-page Linux cheat sheet and checklist here:
https://learn.savvynik.com

Share this free tool and support small YouTubers
https://editbulk.com
(I created this tool to help creators)

Want more information/content?
https://savvynik.com

Useful links/commands
Configuration in the video for reference:
network:
version 2
renderer: networkd *the renderer property tells netplan which network manager will manage the devices connected to the Linux box
Ethernet:
enp0s3:
DHCP4: no
addresses: [192.168.1.4/24]
gateway 4: 192.168.1.1
this tells us how to communicate with devices on different subnets
name servers:
addresses: [8.8.8.8,8.8.4.4]

#linux #ubuntu #pc

Please take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *