Setting up static and private ip on Ubuntu 14.04
The following configuration works on ubuntu 12.04, I was able to setup static and a private ip addresses, however when I try the same thing on ubuntu 14.04, I get the following error:
RTNETLINK answers: File exists
Failed to bring up eth0.
RTNETLINK answers: File exists
Failed to bring up eth0:1.
Could you please give me a hint about this? I could not find anything about this on the web.
/etc/network/interfaces:
This file describes the network interfaces available on your system
and how to activate them. For more information, see interfaces(5).
The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth0 eth0:1
The address and gateway are necessary.
The netmask is taken automatically from the block.
Example: /24 is considered to be a public IP address: netmask 255.255.255.0
iface eth0 inet static
address 212.71.233.178/24
gateway 212.71.233.1
This is a private IP address. Private IPs do not have a gateway (they are not$
All you need to specify is the address and the block. The netmask is taken fr$
Example: /17 is considered to be a private IP address: netmask 255.255.128.0
iface eth0:1 inet static
address 192.168.132.42/17
Thanks in advance