现象
在Ubuntu 16.04内核的开发板系统上配置多个网卡,开发板上有3个网口,/etc/network/interfaces配置如下
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.18
netmask 255.255.255.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.1.231
netmask 255.255.255.0
gateway 192.168.1.1
auto eth2
iface eth2 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
启动时出现
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
然后查看,systemctl status networking.service,有错误如下:
networking.service - Raise network interfaces
Loaded: loaded