1.1: Edit /etc/network/interfaces:
sudo nano /etc/network/interfaces
1.2: Change from dhcp to static:
- iface eth0 inet dhcp + iface eth0 inet static + address 10.10.10.1 + netmask 255.255.255.0 + gateway 10.10.10.10 + network 10.10.10.0 + broadcast 10.10.10.255
2: Make sure that the name server is specified in ‘/etc/resolv.conf’:
nameserver 10.10.10.10
3: Uninstall the dhcp-client (otherwise it will overwrite your changes on the next renew cycle!):
sudo apt-get remove dhcp3-client
4: Restart the network to use the new settings:
sudo /etc/init.d/networking restart
Done
Making any changes to /etc/network/interfaces file will cause the local area network to crash upon restart. Network will only start if the /etc/network/interfaces file contains the following two lines:
auto lo
iface lo inet loopback
Adding lines to recognize eth1 (which normally works) crashes the network. The only way to restore network operation is to restore the /etc/network/interfaces to the condition as shown above.
Removing dhcp-client makes the computer station unable to access the Internet no matter what the condition of /etc/network/interaces is. Unless you have the Ubuntu disc on hand, the result is the need to reformat and reinstall Ubuntu.
Any clues? I have been working for many many hours trying to static address a computer on Ubuntu Intrepid running out of the box.
There are many many posts offering the instruction you offer or instruction with slight permutations, none of which are effective. What am I missing?
Thanks.