Identify Your Network Interface & Subnet
Locate Your Netplan Config File
bash
ip -br aLocate Your Netplan Config File
bash
ls /etc/netplan/text
cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
ens18:
dhcp4: truetext
sudo nano /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
ens18:
dhcp4: false
addresses:
- 192.168.1.100/24
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8
sudo netplan try
sudo netplan apply
ip a show dev ens18linux/ubuntu/static-ip.md
Related articles
- LinuxDocker(Link)[https://docs.docker.com/engine/install/ubuntu/]
- LinuxRetrieve and Execute the Installation ScriptInstall Node.js and npm Verify the Installation
- LinuxStep 1: Download the Go 1.26 TarballStep 2: Extract the Toolchain Step 3: Configure Environment Variables
- LinuxTo change date time of current time zoneTo change date time of current time zone — notes from the Linux collection.