网卡配置

配置文件路径: /etc/network/interfaces

source /etc/network/interfaces.d/*

# the loopback network interface
auto lo
iface lo inet loopback

# the primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

将对应网卡默认的 dhcp 修改为 static ,举例如下:

(更多…)