Configure Static IP Address in Ubuntu Server 8.10 - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Linux and Open Source > Linux Tips and Tricks
Click Here to Login
Closed Thread
Thread Tools Display Modes
Old 03-30-2009, 09:44 AM   #1 (permalink)
Techie Beyond Description
Osiris's Avatar
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default Configure Static IP Address in Ubuntu Server 8.10

Source: Configure Static IP Address in Ubuntu Server 8.10

If you have a need for a server OS that is robust, reliable, and as flexible as any other server available, then Ubuntu 8.10 should be in serious consideration. There is only one drawback to this server - no GUI. Oh sure you could install a GUI (you’d be doing it from the command line of course), but that would defeat the purpose of having a headless server that is going to suffer from serious loneliness as it sits alone doing its job.
Naturally if you have such a server, you have to have the ability to configure that server. One of the configurations you most likely will need to undertake is the configuring of network settings for a static IP address on your headless, GUI-less server. Fortunately, when using Ubuntu Server 8.10 - that is a piece of cake.
In reality there are two files that must be configured and one file that can be configured. The “must files” are /etc/network/interfaces and /etc/resolv.conf. The “can file” is /etc/hosts. We will deal with the former two files in this article. The latter file (a file that deals with local IP to name mapping) has already been covered in my article “Ease Linux Networking with /etc/hosts” here on gHacks.
So let’s first take a look at the most important file, /etc/network/interfaces. Open that file up in your favorite editor (mine being nano).? What you will most likely see is this:
# 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
The last line is what you need to edit (and add to.) To configure eth0 (your network device) for a static IP address that last line should resemble:
iface eth0 inet static
Naturally you will need to change the last three lines to reflect your own networking setup.
Once that file has been edited you can restart your network connection with the command:
sudo /etc/init.d/networking restart
Your Ubuntu Server 8.10 should now be up and running with a static IP address.
There is one last file you will need to take care of. That file is /etc/resolv.conf. This file is in charge of holding your DNS server addresses. Open this file up in your editor. What you need are two lines:
The above example reflects using the OpenDNS servers. Your network will obviously have its own requirements for DNS addresses. Once you have edited that file save it and you’re done (no need to restart networking for the change in DNS addresses to take effect.)
Final Thoughts
That’s it. How simple is it to configure your Ubuntu Server with a static IP address - even when said server is a headless, GUI-less server. Of course there is much more you can do than simple Static IP address configuration, but this just highlights how easy a Linux server can actually be to administer.
Osiris is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
windows 2003 server? 808Alaska Microsoft Windows and Software 13 02-28-2009 12:19 AM
Ubuntu 8.10. CloneZilla Server. DHCP failure? Jayce Linux and Open Source 0 01-17-2009 01:13 AM
Ubuntu 8.10 Server objecterror Linux and Open Source 3 01-01-2009 10:30 AM
Ubuntu goes more mobile with 8.10 release Osiris Linux Tips and Tricks 6 10-29-2008 08:37 AM
Terminal License Server - Expired !! roumieh2000 Microsoft Windows and Software 2 09-04-2008 01:46 AM

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 03:15 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.