title: Setting static IP on Ubuntu Server 12.04 makes loss of external connection
body: <p>I have a problem with static IP under Ubuntu 12.04.</p>
  
  <p>With DHCP I have no problem, but when I set (under <code>/etc/network/interfaces</code>) the static address, the gateway, the subnetmask and the dns-nameservers, I have that the Server cannot connect to external world.</p>
  
  <p>It is able only to connect to local IP hosts.</p>
  
  <p>I have tried to insert the nameservers in the <code>/etc/resolv.conf</code> but every time I restart the machine, the changes are canceled.</p>
  
  <p>What could be the problem?</p>