Home » Linux » Netplan: ‘gateway4’ has been deprecated, use default routes instead

Netplan: ‘gateway4’ has been deprecated, use default routes instead

Ảnh đại diện của kientt kientt 12:14 - 3/06/2022

** (generate:2683): WARNING **: 15:41:56.657: `gateway4` has been deprecated, use default routes instead.
See the ‘Default routes’ section of the documentation for more details.

FIX:

Step 1: vi /etc/netplan/00-installer-config.yaml

Step 2: Remove: gateway4: xxx.xxx.xxx.xxx

Step 3: Add routes

routes:
- to: default
  via: xxx.xxx.xxx.xxx

Step 4: netplan apply

Read more: https://netplan.io/examples/#using-dhcp-and-static-addressing

  • Chia sẻ

CÙNG CHUYÊN MỤC

No Image

Netplan: Static & dynamic interfaces

WARNING **: Problem encountered while validating default route consistency.Please set up multiple routing tables ...

No Image

KVM: Network bridge with Netplan

Ubuntu 18.04 settings still depend on Network Manager, and wifi/3G is not supported by networkd yet. The following ...

No Image

Systemd: Networkd wait online Failed with result ‘exit-code’

systemd-networkd-wait-online[855]: Event loop failed: Connection timed out systemd[1]: ...

No Image

KVM: Install

A type 2 hypervisor enables users to run isolated instances of other operating systems inside a host system. As a ...

No Image

Linux: Scripts (bash script) Running in the Background

This articles gives a brief explanation of running bash scripts or scripts in the background. Applies to all linux ...

No Image

Ubuntu: Everything

How do I see what packages are installed on Ubuntu Linux? The procedure to list what packages are installed on ...