![How to Configure a Static IP Address in Linux Using Netplan – Beginner’s Guide](https://ytimg.googleusercontent.com/vi/NjmcUYLmhj0/hqdefault.jpg)
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