|

Ubuntu Server static IP

Easy enough? By default, Ubuntu Server is configured with DHCP enabled but we need a static IP. The following tutorial will show you just how to do that!

Let’s open the interfaces configuration file.

sudo nano /etc/network/interfaces

It should look like the following.

auto eth0
iface eth0 inet dhcp

DHCP is currently set but we need a static IP. The following configuration will show what needs to be changed and add.

auto eth0
face eth0 inet static
        address 192.168.1.4
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameserver 192.168.1.2 192.168.1.1

In previous version of Ubuntu you needed to edit the /etc/resolv.conf and add a line. This is no longer the case.

I hope this tutorial helped!

Similar Posts

  • Vista

    Well Vista is gone now. There were to many problem with software running on it. I don’t have a Vista disk with me or I would do a fresh install so instead XP is going back on it. I may install it later on but not until I get more RAM for my laptop. Till…

  • 6.06 KDE

    Well last week I update my Ubuntu linux to 6.06 latest and greatest. 😀 Anyways, I was sick of Gnome as it has been causing problems ever since I installed it so just after updating I took the KDE plunge. So far so good. I love the GUI much better then Gnome. It does take…

  • |

    iPhone

    Today at 6:00PM Apples new iPone will be released in all AT&T stores. I have been hearing alot about it in the many Podcasts and Video Cast. Yesterday Cranky Geeks had a few things to say about the new iPone. Personally I think there $700+ price tag is more then what I want to spend…

  • What do you cary?

    Well I thought I should make a post so I decided it would be about my laptop. 😛 Well for the last 2 days I have been bring my laptop to school. It’s very handy to have insted of using the schools computers. Anyways I’v found my self caring around quite a load in the…