Ok, I know this is a simple question but I need to ask it...

I have set up an Apache web server on my home network on a Ubuntu 8.04 Server Edition machine. I just have it working on my home network which is behind a garden-variety Linksys router. I set it up with a static IP today by editing my /etc/network/interfaces file, here is the entry:

auto eth0
iface eth0 inet static

The netmask, network, and broadcast values were taken from the ifconfig output when the box was still using DHCP. However, I didn't know what the gateway value is supposed to be so I filled it with 0's. The server now serves pages correctly and predictably but I can't request anything from it. That is, it can't get on the web, can't get to any remote Git repo's etc.

I know I'm missing something simple, can anyone enlighten me?

closed as off topic by Michael Hampton, mdpc, Jenny D, Iain May 22 '13 at 6:53

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.


The correct network address for an IP of is, not As for the gateway, it's most likely as Zypher said.

  • ahh missed that went right past it to the – Zypher Jun 12 '09 at 1:42

You're gateway will be on a linksys router

  • Unless you've modified any of the Linksys router's default settings then yes your default gateway would be – Codejnki Jun 12 '09 at 1:27
  • yep, assumed he hadn't because he didn't know the gateway address – Zypher Jun 12 '09 at 1:32

When it's still on DHCP you can determine the default gateway by examining the output of:

route -n

And the correct DNS servers by the output of:

cat /etc/resolv.conf

Also, you don't need (and shouldn't have) the "network" or "broadcast" entries as they only exist for the very rare networks where those settings aren't the default (mostly parts of corporate or university networks that haven't been properly fixed since the early 1990's).


Fix the gateway and network address and you will be able to get on the web. You need a gateway to get on the internet. I don't know what router you have at home, but I suggest looking it up, check the manual and search for the standard IP address to manage the router. 99 % of the times, that's the address you need to enter in the gateway line.


I thing you need to conf at your linksys box at brige then it should work as u needed


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