1

I have set up static Ethernet and WiFi but after rpi-update wlan no longer works. The rpi-update could just be a coincidence though. What happens is that the static IP shows up when scanned with Advanced IP scanner but connections to it timeout and that includes ping command. Network interfaces does not throw an error during boot. There is however this line that might be related but I could not find any info on it:

Network Interfaces Plugging skip eth0, skip wlan0 ... done.

What does this mean and should it "skip" anything. If not what setting affects this.

If I plug in Ethernet it works as expected and if I unplug it after boot, WiFi starts to work in a little while.

Here's my /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.14
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 192.168.0.14
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
2

You are trying to allocate the same static address to 2 interfaces eth0 and wlan0

Assign different addresses to each.

  • I thought of that but then that's really stupid implementation. The whole point of static ip is so that you would always know it, now it will change based on network device... really silly unfortunately... – DominicM Jun 7 '14 at 11:37
  • 1
    You may not like it, but that is the way IP works. An address would be allocated to eth0, regardless of whether anything is connected - that is the point of static. When the wireless eventually wakes there will be a conflict. Behaviour in this case is undefined. – Milliways Jun 7 '14 at 11:48
  • It's not just that I don't like it, having multiple static IP addresses per device does not make sense. Why does the wifi start working after Ethernet is disconnected after boot but not when only wifi is present at boot? Seems like it should not work either way. – DominicM Jun 7 '14 at 12:42
  • Also, I changed ip of the wifi and while it shows up I still cannot connect to it. – DominicM Jun 7 '14 at 12:49
  • @DominicM - does the Pi have a decent power supply? Mine can sometimes struggle with a 1 amp power supply plus Ethernet and WiFi, but works OK with a 2 amp one. – Wilf Jun 7 '14 at 13:25

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.