Code: Select all
cat /etc/network/interfacesCode: Select all
ifconfigCode: Select all
cat /etc/network/interfacesCode: Select all
ifconfigCode: Select all
eth0 Link encap:Ethernet HWaddr b8:27:eb:cc:6a:47
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:499 errors:0 dropped:0 overruns:0 frame:0
TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32876 (32.1 KiB) TX bytes:36064 (35.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:580 (580.0 B) TX bytes:580 (580.0 B)
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 202 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0Code: Select all
auto lo eth0 wlan0 wlan1
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
iface wlan0 inet manual
iface wlan1 inet manual
Code: Select all
ping 192.168.0.1Code: Select all
$ ping www.google.com
PING www.google.com (216.58.208.196) 56(84) bytes of data.
Code: Select all
server 8.8.8.8Code: Select all
dpkg -l | grep resolvconf
Code: Select all
dns-nameservers 8.8.8.8
dns-nameservers 8.8.4.4
When I said that I should have said that it should go beneath the "iface..." line in your interfaces file.NormanDunbar wrote:... you need to add the dns details to /etc/interfaces as follows:
Code: Select all
dns-nameservers 8.8.8.8 dns-nameservers 8.8.4.4
Code: Select all
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 8.8.8.8
dns-nameservers 8.8.4.4
Code: Select all
nameserver 8.8.8.8
nameserver 8.8.4.4