I've tried pinging google as well as Neither works.

Results for cat /etc/network/interfaces

The loopback network interface auto lo iface lo inet loopback

The primary network interface auto em1 iface em1 inet static

# dns-* options are implemented by the resolvconf package, if installed

I can ping other sites on the local network.

I can not ping the default gateway given.

Results for route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface UG 0 0 0 em2 U 1 0 0 em2 U 0 0 0 em1 U 1000 0 0 em1

any help would be appreciated.


You need to edit


With the desired name server. If you want to use Google just add

Or based on info in question

Save file. You may also want to remove the dns line




and then restart networking

 sudo service networking restart 

For multiple entries I forget if it a space or comma to separate them. Or maybe even on a new line.

Edit: You can put each dns server on a new line of file

  • Did this help? If so, can you please mark as accepted – geoffmcc Jan 6 '15 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.