So I've been learning how to set up my private server. I'm using netplan. According to some docs I found at https://netplan.readthedocs.io/en/stable/examples/# and a lengthy argument with Chatgpt on the right way to configure my yaml file, this is what I came up with.
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
addresses:
- 192.168.0.2/24
gateway4: 192.168.0.1
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
I get the "gateway4 is deprecated" error and I've found a wealth of knowledge on how to set up routes
with via
and to
, but I have not found on the internet *why* gateway4
is deprecated. Is it merely syntactical or is it for some other reason?
Please be aware I am **NOT ASKING A DUPLICATE QUESTION**. I am asking the specific difference between the deprecated way and the newer way and *why*.
Asked by Judah
(1 rep)
Jan 6, 2025, 08:09 PM
Last activity: Jan 7, 2025, 01:40 PM
Last activity: Jan 7, 2025, 01:40 PM