Link to home
Start Free TrialLog in
Avatar of Fero45
Fero45

asked on

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
Avatar of farzanj
farzanj
Flag of Canada image

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.
Avatar of Fero45
Fero45

ASKER

I think some settings in the modem are necessary or Comcast should do some changes. I called them without success.
Why do you have dhpc instead of dhcp?

Do you want static IP or DHCP?
Avatar of Fero45

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fero45

ASKER

Thank you for your time and patience. I wanted to know if the problem is in my settings or in Comcast.