Netplan apply warns "gateway4 has been deprecated but .yaml has no gateway4 line
1
vote
1
answer
6112
views
I've seen a couple of other posts about the 'gateway4 has been deprecated' warning that some get when entering
sudo netplan apply
. My problem is slightly different: I get that warning even though there is no 'gateway4' line in my .yaml config file.
Running Ubuntu 22.04.1 on a headless server.
Here's the .yaml file:
network:
version: 2
renderer: networkd
ethernets:
enp0s31f6:
addresses:
- [ipv4 address]/32
- [ipv6 address]/64
routes:
- to: default
via: [gateway ipv4 address here]
metric: 100
on-link: true
- to: ::/0
via: fe80::1
nameservers:
addresses:
- 1.1.1.1
- 2606:4700:4700::1111
- 1.0.0.1
- 2606:4700:4700::1001
Why might I be getting warnings about gateway4 having been deprecated?
Asked by banjopotato
(11 rep)
Jan 12, 2023, 06:43 PM
Last activity: Jul 5, 2025, 03:04 AM
Last activity: Jul 5, 2025, 03:04 AM