Ubuntu Linux

Ubuntu Linux

Based on Debian GNU/Linux, Ubuntu concentrates on usability, regular releases, ease of installation, and freedom from legal restrictions. Ubuntu is sponsored by Canonical Ltd., a private company founded by South African entrepreneur Mark... [more]

Based on Debian GNU/Linux, Ubuntu concentrates on usability, regular releases, ease of installation, and freedom from legal restrictions. Ubuntu is sponsored by Canonical Ltd., a private company founded by South African entrepreneur Mark Shuttleworth.

Ubuntu Tip of The Week: Configuring Static IP Addressing

Hello fellow geeks and geekette's! It is I, El Di Pablo back with another quick Ubuntu tip. I thought of this because I am working on creating an Ubuntu 8.04 VMWare GSX server for my company. I figured I might as well write about it on aTa while it is still fresh in my mind.

As with most servers, you want to configure it for static IP addressing to make life a little more simple for everybody. Linux servers are no exception. The only trouble with some flavors of Linux servers is that they are strictly command line for less overhead and better performance. So how does one configure Ubuntu server for static IP addressing in the terminal you ask? Simple:

  1. First you need to edit /etc/network/interfaces using your favorite text editor (I like nano):

    sudo nano /etc/network/interfaces

  2. Next you need to enter your static IP information:

    #The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.0.100
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1

  3. Save your changes.
  4. Now you need to point your server to your DNS server. To do this, you need to edit /etc/resolv.conf:

    sudo nano /etc/resolv.conf

    name server xxx.xxx.xxx.xxx (Replace the x's with the IP address of your DNS server)

  5. Save your changes, then restart your network:

    sudo /etc/init.d/networking restart

  6. Now test it by pinging www.asktheadmin.com. If all went well, you should be all set!


Have you had to set up a production Ubuntu server in your environment? Tell us about your experience in the comments!

By: El Di Pablo of Bauer-Power

Check out our RSS feed. Need Free Tech Support? Ask The Admin a Question

Sponsors
Comments
Be the first to leave a comment!
Add a Comment:
Already a member? Log In
Sponsors
About the Author

17 Kudos
Top Geek Articles
Celebrities on the Phone
Cell phones are to celebrities like bats are to baseball: no one runs too far without them.
Why every guy should buy their girlfriend Wii Fit.
Gratuitous...
Hot Geeks -- The Sexiest Geeky Girls
These girls are gorgeous AND they'll play Warcraft with you. Doesn't get much better than that.
More From Zimbio
Copyright © 2009 - Zimbio, Inc. Some rights reserved.