How to assign a static IP in Ubuntu 14.04

Here’s a quick post on how to statically assign an IP address in Ubuntu / Xubuntu 14.04 since it’s a little different than other Debian versions.

First, use your favorite text editor to edit the following file:

You’ll want to add the following lines.

**This is assuming your network is setup with the following 192.168.x.x configuration. You will want to adjust the IPs accordingly.

After you assign the static IPs, you will need to specify DNS. Here’s how:

Save the file.

Run:

Followed by:

Reminder: All of my posts are provided "AS IS", imply no warranties, and confer no rights or special privileges. Use of included postings, code samples and other works are subject to the terms specified at Microsoft. For more information, click here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.