From 0a5c778f3a14516e0ad8a979e6a5a282034fe19f Mon Sep 17 00:00:00 2001 From: bobbie Date: Fri, 15 May 2026 10:41:46 +0100 Subject: [PATCH] vault backup: 2026-05-15 10:41:46 --- _Inbox/Linux CLI Config and Commands.md | 28 ++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/_Inbox/Linux CLI Config and Commands.md b/_Inbox/Linux CLI Config and Commands.md index 199f54c..49904c0 100644 --- a/_Inbox/Linux CLI Config and Commands.md +++ b/_Inbox/Linux CLI Config and Commands.md @@ -5,9 +5,35 @@ category: title: Linux CLI Commands tags: --- -### Networking +### Network config network config file is located (usually `01-netcfg.yaml` or `50-cloud-init.yaml`) ``` nano /etc/netplan/50-cloud-init.yaml ``` + +typical config +``` +network: + version: 2 + renderer: networkd + ethernets: + enp0s3: + dhcp4: false + addresses: + - 192.168.1.100/24 + routes: + - to: default + via: 192.168.1.1 +``` + +then try +``` +sudo netplan try +``` + +or apply +``` +sudo netplan apply +``` +