小编yaa*_*aap的帖子

Ubuntu Server 20.04 - 动态 IPv4 和静态 IPv6 的 Netplan 配置

TL; 博士

有没有人在 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 地址。一切都在这里工作。

问题

但是,他们还提供了 …

server ipv6 ipv4 netplan

4
推荐指数
1
解决办法
6974
查看次数

标签 统计

ipv4 ×1

ipv6 ×1

netplan ×1

server ×1