有没有人在 Ubuntu Server 20.04 下设置动态 IPv4 和静态 IPv6的有效网络规划配置?
我的提供商 (OVH) 为我提供了一个/etc/netplan/50-cloud-init.yaml开箱即用的具有此配置的服务器:
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
ens3:
dhcp4: true
match:
macaddress: xx:yy:zz:aa:bb:cc
mtu: 1500
set-name: ens3
Run Code Online (Sandbox Code Playgroud)
所以服务器正在通过 DHCP 获取 IPv4 地址。一切都在这里工作。
但是,他们还提供了 …