做个记录,主要是几个关键字的写法,仅供参考。 `cat /etc/network/interfaces` 内容如下:
```
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens33
iface ens33 inet static
address 192.168.33.58
network 255.255.255.0
gateway 192.168.33.1
dns-nameservers 114.114.114.114
```