I bought new Pi b+. So i found my hungry wifi dongle can work on it well, I decided to put my Pi running headlessly over wifi. But problem is if wifi disconnects, the Pi wont reconnect.

I'm using Arch Linux.

The netctl profile I use:

   Description='wifi "mikroskeem" with ip 192.168.1.192'
   Interface=wlan0
   Connection=wireless
   Security=wpa
   ESSID='mikroskeem'
   Key='<ransom key>'
   IP=static
   Address='192.168.1.192/24'
   Gateway='192.168.1.1'
   DNS=('192.168.1.1')
   ExecUpPost='/usr/bin/ntpd -gq || true'

EDIT: I'm using Arch Linux, so no /etc/network/interfaces

I've enabled netctl-auto@wlan0

I've tried Wicd, but if i set IP manually, Pi can't reach internet(LAN works, ping google doesn't)

What do i need to change in that profile?

  • I would recommend you to set static IP anyway. Are you sure you can't reach internet? Try to ping directly an ip ping 8.8.8.8. Sometimes it's just DNS what's cause problems. Pinging specific IP could help. – kotrfa Aug 9 '14 at 22:04
  • Post the contents of /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf – Milliways Aug 9 '14 at 22:56
  • @kotrfa 8.8.8.8 didn't work – mikroskeem Aug 10 '14 at 0:11
  • @Milliways I use Arch Linux, no /etc/network/interfaces for me. Netctl handles this – mikroskeem Aug 10 '14 at 0:12
  • I think I fixed it by adding Restart=always at the end of netctl configuration. Let's see if network goes off after 3hrs – mikroskeem Aug 10 '14 at 0:16
up vote 0 down vote accepted

I fixed problem myself, by adding Restart=always at the end of netctl configuration.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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