配置网络
假设系统识别的网卡设备为enp2s0
关闭NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
修改网络配置文件
打开/etc/network/interfaces,添加如下内容:
auto enp2s0
iface enp2s0 inet static
address 10.10.10.15
netmask 255.0.0.0
gateway 10.10.10.1
dns-nameservers 10.10.10.1 8.8.8.8
重启网络
systemctl restart ifup@enp2s0
systemctl enable ifup@enp2s0