当我在ubuntu 18.04上设置静态ip时,文档给出了示例:
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]
如何设置网络掩码? IP为127.16.1.10,网络掩码为255.255.248.0