Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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'm trying assign a static IP for my web server. I purchased a static IP from my isp, and the isp entered DNS, subnet, and static IP settings in my linksys Wireless-G broadband router. I was able to assign a local ip address of, but when I try to assign an externally visible IP address by editing /etc/network/interfaces/ and the running sudo /etc/init.d/networking restart the script hangs. I have also tried sudo ifconfig eth0 down followed by sudo ifconfig eth0 up and sudo service networking restart

port forwarding enabled for - 204 on router (I purchased several static IPs)

picture of /etc/network/interfaces

picture of router setup

share|improve this question
up vote 0 down vote accepted

To my (limited) knowledge, static IP is between your router and your ISP. So your external connection (in this case your router) is what will receive that static IP.

From your router to the web server sitting behind the router, that is for your router to decide what to do.

Possible solution:

Leave the internal IP for your WebServer, and use your router PortForward to forward Port 80 (or 443 for https) to your webserver internal IP. So when you type in, your router will know it should be sent to your webserver, and will present the page your webserver have.

share|improve this answer
That worked! I was confused because my network topology has changed. I used to have my old server directly connected to the modem, and hence the old machine had an external IP. Thank you! – shupru Oct 15 '13 at 21:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .