Having a static IP address under Ubuntu 8.10

Last update on May 24, 2009 11:00 AM by aakai1056
Published by jak58

Having a static IP address under Ubuntu 8.10






NetworkManager is a program default to Ubuntu 8.10, aiming to provide a simplified Internet connection. NetworkManager at all costs find and maintain an internet connection. The main problem will be,if you want to use a fixed IP address. Settings made in NetworkManager will not be applicable at the next restart. Ultimately if you assign a fixed IP address in NetworkManager, this setting will be forgotten the next reboot.

To have a fixed IP persistent:


Uninstall NetworkManager
A straightforward approach is to uninstall NetworkManager:

sudo apt-get remove network-manager network-manager-gnome

Configure manually the interfaces


Modify the following file: /etc/networks/interfaces.
gksudo gedit /etc/network/interfaces


keep the following lines

auto lo
iface lo inet loopback

For a fix IP (10.0.0.1 on your eth1 interface) use:


auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0

To make use of dynamic IP (e.g eth0):


auto eth0
iface eth0 inet dhcp



then enter :
sudo /etc/init.d/networking restart 

to take changes in consideration.

DNS


If you want to make use of specific DNS, modify the following file
/etc/resolv.conf

Note that if you are using DHCP on one of your interfaces, the contents of this file will be overwritten by the DHCP client.

To force the DHCP client to use a specific DNS, edit the file
 /etc/dhcp3/dhclient.conf


Add the following line:
prepend domain-name-servers 208.67.222.222,208.67.220.220;


DNS returned by DHCP are will be added after the DNS you specified.
Best answers for « Having a static IP address under Ubuntu 8.10 » in :
Command to detect your IP address! ShowCommand to detect your IP address! Command for Windows 2000 / XP / Vista Command for Windows 95/98 Command for Linux IP address (Internet Protocol) is a numerical identification to detect your computer on a network. It is used to...
MacOS X – Associating a name to an IP Address ShowMacOS X – Associating a name to an IP Address What you should know Use this step Example What you should know Please note: this is only valid until MacOSX 10.4, NOT for MacOSX 10.5 (Leopard) MacOSX is a BSD system, the first...
What is your IP address? ShowWhat is your IP address? What is an IP address? How to know your IP address? For Windows 2000/ Windows XP/ Windows Vista users For Windows 95/ Windows 98 users By using online tools What is an IP address? When a PC is connected to...
Download IP Traffic Monitor ShowIP Traffic Monitor monitors all network connections on the computer where it is installed. The program shows you detailed information, such as the remote IP address, host name if available, details of inbound and outbound traffic. Advantage It...
Download Ubuntu ShowUbuntu is a developed operational system for laptops, desktops and servers on " live CD ". Wherever you are,either at home or at school, Ubuntu contains all the applications which you will need. It proposes in particular: - word processing, -...
IP address spoofing ShowIP address spoofing "IP address spoofing" is a technique that involves replacing the IP address of an IP packet's sender with another machine's IP address. This technique lets a pirate send packets anonymously. It is not a question of changing the...
IP Address ShowWhat is an IP address? Computers communicate over the Internet using the IP protocol (Internet Protocol), which uses numerical addresses, called IP addresses, made up of four whole numbers (4 bytes) between 0 and 255 and written in the format...
NAT- Network address translation, port forwarding and port trigg ShowThe principle of NAT Network address translation or NAT was developed in order to respond to the shortage of IP addresses with IPv4 protocol (in time the IPv6 protocol will respond to this problem). In fact, in IPv4 addressing the number of...