Depois de adicionar o IP a /etc/network/interfaces
, recebo este erro:
$ sudo /etc/init.d/networking restart
[....] Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details failed!
Interfaces:
auto lo
iface lo inet loopbackauto eth0
iface eth0 inet static
address 192.168.8.1
netmask 255.255.255.0
gateway 192.168.8.2
dns-nameservers 192.168.8.2
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down