Static IP breaks Network connection

Posted by Pasquale Tedesco on Ask Ubuntu See other posts from Ask Ubuntu or by Pasquale Tedesco
Published on 2014-08-19T15:43:07Z Indexed on 2014/08/19 16:30 UTC
Read the original article Hit count: 234

Filed under:
|
|

I am somewhat new to Linux. I am setting up a Web server and installed Ubuntu server 14.04 on an vSphere ESXi 5.5 host. I am connecting perfectly fine to the internet when using DHCP but when I apply my Static settings I loose the ability to connect to websites.

Whats weird is I can Ping google.com but if I try wget gooogl.com it hangs at connecting to google.com (google.com):173.194.43.32:80 and I get "failed: connection refused"

But if I am set to DHCP the connection resolves perfectly. Thanks

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.1.2.25
gateway 10.1.2.2
netmask 255.255.255.0
search tsig.com
dns-nameservers 10.1.2.13 10.1.2.30

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server