I am trying to set up a static IP address for my new Ubuntu server.
I have been trying to do some research and found information that got me started on this reference page.
One thing that was different for me. When I use the GUI to set up an internet connection. I select eth2 then I was connected to the internet using a DHCP IP.
When I converted the IP now I no longer have access to the internet unless I use the connection established by the GUI.
Here is what I have done
sudo nano /etc/network/interfaces
I changed the existing info to
iface eth2 inet static address <static ip> netmask <mask> gateway <gateway IP>
then I edited this file
sudo vi /etc/resolv.conf
I added both of my DNS Server ips
then after saving the file I have done
sudo /etc/init.d/networking restart
I get the following error RTNETLINK answer: File Exists Field to bring up eth2
I have tried to change the Ethernet card number to eth1 and then to eth0 but still getting the same error.
What can I do to correct this problem?