I'm trying to configure a ubuntu server network.
[Edit] My ifconfig:
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Loopback Local)
RX packets 352 bytes 26160 (26.1KB)
RX erors 0 dropped 0 overruns 0 frame 0
TX packets 352 bytes 26160 (26.1KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I edited the /etc/network/interfaces file and here is how it is:
auto lo auto eth0 iface eth0 inet static address 192.168.15.141 netmask 255.255.255.0 gateway 192.168.15.1
I'm trying to restart the server and I'm using:
sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a
This command is an answer from this link: How to restart the networking service?
And I'm getting the following error:
Cannot find device "eth0" Failed to bring up eth0.
I'm pretty lay in configuring a server, so I have no idea what's going on.
Can someone help me please?