Setting up a static IP address (public) in Ubuntu

Posted by ycseattle on Server Fault See other posts from Server Fault or by ycseattle
Published on 2010-04-15T23:10:19Z Indexed on 2010/04/15 23:14 UTC
Read the original article Hit count: 421

Filed under:
|
|

I have a business class internet connection and need to setup a static ip address for a machine. I did a search online and only find how to setup static local ip addresses (like 192.168..). I tried the same technique, and only setup the ip address and netmask, but after restart networking the computer could not connect to the outside world.

This is what I did:

1) edit /etc/network/interfaces iface eth0 inet static address 173.10.xxx.xx netmask 255.255.255.252

2) edit /etc/resolv.conf search wp.comcast.net nameserver xx.xx.xx.xxx nameserver xx.xx.xx.xxx

3) restart network sudo /etc/init.d/networking restart

Now the last step didn't report error, ifconfig shows the ip address was set, but this server cannot connect to outside world, ping google.com and reports "unknown host google.com".

Any ideas?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about networking