• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1493
  • Last Modified:

Set-up a static IP in Ubuntu 11.10

Hi experts
I have a static IP and want to host my sites on my home Apache web server.

* OS: Ubuntu 11.10

* ISP: Comcast (business account)

* My /etc/network/interfaces setting (IP, netmask and gateway are according to Comcast)
auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet static
address 173.165.222.193
netmask 255.255.255.252
gateway 173.165.222.194

* My /etc/hosts settings
127.0.0.1  localhost.localdomain localhost
127.0.1.1  mypc.localdomain mypc
173.165.222.193  mypc

* My /etc/resolv.conf settings (as provided by Comcast)
domain wp.comcast.net
search wp.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76

I deleted Network Manager. When I want to have the Internet, I edit /etc/network/interfaces and add these two lines
auto eth0
iface eth0 inet dhpc

I have the Internet,
http://localhost and
http://173.165.222.193 
both show index.html in DocumentRoot, BUT this index.html is not seen outwardly, only locally.
I assume I need to adjust some settings in the modem. This worked a year ago with Comcast, then with NuVu after some settings had been made.
Thanks
Fero
0
Fero45
Asked:
Fero45
  • 3
  • 3
1 Solution
 
farzanjCommented:
Ok, I can dig IP address but I cannot ping it.  DNS seems to be working but your IP is not seen outside.  You need to test that first.
0
 
Fero45Author Commented:
I think some settings in the modem are necessary or Comcast should do some changes. I called them without success.
0
 
farzanjCommented:
Why do you have dhpc instead of dhcp?

Do you want static IP or DHCP?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Fero45Author Commented:
It is a typo. I do not have it in my /etc/network/interfaces. Since I removed Network Manager, I temporarily change this file and add dhcp to get the Internet
0
 
farzanjCommented:
Ok.  Then I believe you should contact Comcast.
0
 
Fero45Author Commented:
Thank you for your time and patience. I wanted to know if the problem is in my settings or in Comcast.
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now