/*********************************************************************************
* Ubuntu Core 网络配置
* 说明:
* 之前直接配置systemd的网络状态,在boot阶段总是出错。
*
* 2018-2-23 深圳 宝安西乡 曾剑锋
********************************************************************************/
一、参考文档:
1. networkd is not bringing eth0 up at boot
https://superuser.com/questions/1003478/networkd-is-not-bringing-eth0-up-at-boot
二、配置说明:
root@zengjf:/etc/network# cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
#iface eth0 inet manual
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.202
netmask 255.255.255.0
gateway 192.168.1.1
root@zengjf:/etc/network#