Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a NetGear WNR2000 wireless router, and I'd like to be able to hardwire a server to it, and have that server host a number of things: Subversion, Artifactory, Jenkins CI, and maybe a few others. Basically, it would serve the role of my personal "build server" at the homestead.

The problem is, in my software I'll need a reliable (preferably static) URL to hit for working with this build server. For instance, my Artifactory server might live at:


And in Ant buildscript, I need to hardcode that URL in order for my project to build correctly.

Not being a "network guy", what options do I have at my disposal? Static routes come to mind, but I've never set one up and am not even sure if that's the right solution. The server will be whatever is the newest release of Ubuntu Server.

Any ideas? Thanks in advance!

share|improve this question
No need to simulate, you can actually assign static IPs on a home network. – Rob Apr 16 '12 at 16:46
up vote 1 down vote accepted

It is possible, and usually easy, to set up static IPs behind a NAT (192.168.1.*). For Ubuntu Server, you'll want to set up the /etc/network/interfaces file similar to 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

allow-hotplug eth0
iface eth0 inet static

If you can change the DHCP setting on your router, it'd be best to have it start assigning somewhere after any static IPs or end before. For my home, I have static IPs given out starting at and end at, leaving me with ~50 IPs to assign statically, which is more than I should ever need.

share|improve this answer
So the solution is a combination of manipulating this interfaces file as well as loggin into the router and altering its DHCP settings? Thats it?!?! Awesome! thanks! – pnongrata Apr 16 '12 at 17:04
You don't really HAVE to set the DHCP up that way, but I suggest it just to avoid any potential issues (server is shut down, new device comes onto the network and takes it's ip, what now?). There's also other ways to assign static IPs, but this'll be the best way for ubuntu server, which you probably won't be running X on. – Rob Apr 16 '12 at 17:08

Usually, if your server once got an IP address assigned by the DHCP server, it will try to always get that address again in the future. The DHCP server might also try to keep assigning the same address to the same device.

If this isn't happening for you, simply assign a static IP address to your server. Or make a manual DHCP address reservation for your server (to make sure it will always get the same address).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.