I've assigned a static IP address to eth0 and everything is working fine on that interface.
But wlan0 is not connecting right. It correctly fetches an IP address from the router (192.168.1.1), so DHCP is working. I can ping the router, but I can't ping 8.8.8.8
With wlan0 as the active interface:
Code: Select all
pi@FestiPi_2:~/mopower $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.62 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=6.73 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=4.39 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=4.45 ms
^CCode: Select all
pi@FestiPi_2:~/mopower $ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.7.10 icmp_seq=1 Destination Host Unreachable
From 192.168.7.10 icmp_seq=2 Destination Host Unreachable
From 192.168.7.10 icmp_seq=3 Destination Host Unreachable
^CCode: Select all
pi@FestiPi_2:~/mopower $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.7.1 0.0.0.0 UG 202 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 303 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0
192.168.7.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0routing:
Code: Select all
pi@FestiPi_2:~/mopower $ ip route
default via 192.168.7.1 dev eth0 metric 202
default via 192.168.1.1 dev wlan0 metric 303
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.229 metric 303
192.168.7.0/24 dev eth0 proto kernel scope link src 192.168.7.10 metric 202 Code: Select all
wlan0 Link encap:Ethernet HWaddr b8:27:eb:72:83:f8
inet addr:192.168.1.229 Bcast:192.168.1.255 Mask:255.255.255.0and my /etc/network/interfaces:
Code: Select all
pi@FestiPi_2:~/mopower $ sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf