Ubuntu服务器20.04 Netplan一张网卡上的多个IP地址

一个全新的Ubuntu 20.04安装存在一些实际问题。我正在尝试完成简单的网络配置-一个物理接口,使用同一网关使用来自同一网络的2个不同IP地址。我看到netplan不再支持别名,因此我遵循了netplan页面上的建议。这是我的配置:

network:
version: 2
renderer: networkd
  ethernets:
    enp2s0:
     addresses:
       - 192.168.1.100/24
       - 192.168.1.99/24
     gateway4: 192.168.1.1
     nameservers:
         addresses: [1.1.1.1, 1.0.0.1]  

因此,当我使用netplan应用服务器时,服务器会完全从网络中消失。通过查看系统日志,我看到以下错误:

enp2s0:无法设置路由:Nexthop的网关无效。网络不可达 enp2s0:失败

I was following the examples from here https://netplan.io/examples#using-multiple-addresses-on-a-single-interface This should be very simple configuration which I don't understand why not working. Am I missing something? Thanks, Andrey