I just tried to configure eth0 interface on my Ubuntu Server 14.04 Lts.
I want to set up static ip, therefore I put the following lines in /etc/network/interfaces
:
## To configure a dynamic IP address
auto eth0
iface eth0 inet dhcp
## Or configure a static IP
auto eth0
iface eth0 inet static
address 192.168.1.111
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
I can perfectly ping my router with this configuration. I also can connect to the server from my laptop via ssh. But internet is not working:
ping google.de
ping: unknown host google.de
What could be wrong here?