|

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

  • 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…

  • | |

    Service Manager

    Welcome to Service Manager v1.0.0. The following application allows a user to easily start and stop services as required. I built this tool a few years ago when I was developing database software. I would have issues with the service and need to restart it. It was much easier to build a program to do…

  • |

    Mac vs PC

    A battle that might never end between Mac and PC users. A battle that is won but no one on the PC side will admit it. The battle between Mac and PC have been going on for years and years. This history behind Apple and Microsoft has always been to “out do” the other. Microsoft…

  • |

    Birthday

    Well my birthday was on July 23 and my parents decided to get me a new mixing board. Well it arrived today and boy is it neat! 😀 It’s the new Alesis MultiMix 12 FireWire. It is a small version of the bigger recording studio mixing board. It does have firewire witch is already built…

  • | |

    New Laptop #2

    Well for those of you I don’t talk to on a regular bases here is a little update: I have graduated from Canadore College and received my “Computer System Technology – Networking Program”. So that’s it, I’m done. Not so much. I have deiced to go back for another 3 years for the “Computer Programmer…