6 Replies Latest reply on Feb 4, 2015 10:22 AM by Funkanzan

    Having trouble maintaining wifi routing after reboot.

    Funkanzan

      I'm using the standard distribution from October 2014.

       

      root@Edison_Demo_1:~# uname -a

      Linux Edison_Demo_1 3.10.17-poky-edison+ #1 SMP PREEMPT Tue Oct 14 15:19:49 CEST 2014 i686 GNU/Linux

       

      I configured wifi using configure_edison --wifi, then rebooted.

       

      [Square 1]

      I can't ping www.yahoo.com, so I checked route.

       

      root@Edison_Demo_1:~# route

      Kernel IP routing table

      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

      default         192.168.2.1     0.0.0.0         UG    0      0        0 usb0

      192.168.2.0     *               255.255.255.0   U     0      0        0 usb0

      192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0

       

      This command takes about 10 seconds to return.

       

      I'm not using usb0 for networking, so I shut it down.

       

      root@Edison_Demo_1:~# ifconfig usb0 down

       

      root@Edison_Demo_1:~# route

       

      Kernel IP routing table

      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

      192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0

      root@Edison_Demo_1:~# configure_edison --wifi

       

      Now, route returns very quickly. Still can't connect outside my LAN.

       

      So I run configure_edison --wifi again:

      [....]

      Attempting to enable network access, please check 'wpa_cli status' after a minute to confirm.

      Done. Please connect your laptop or PC to the same network as this device and go to http://192.168.2.53 or http://Edison_Demo_1.local in your browser.

       

      root@Edison_Demo_1:~# route

      Kernel IP routing table

      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

      default         router.belkin   0.0.0.0         UG    0      0        0 wlan0

      192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0

       

      NOW I can connect outside.  Great.

       

      root@Edison_Demo_1:~# ping www.yahoo.com

      PING www.yahoo.com (206.190.36.45): 56 data bytes

      64 bytes from 206.190.36.45: seq=0 ttl=51 time=36.742 ms

      64 bytes from 206.190.36.45: seq=1 ttl=51 time=56.263 ms

      64 bytes from 206.190.36.45: seq=2 ttl=51 time=53.986 ms

      ^C

      --- www.yahoo.com ping statistics ---

      3 packets transmitted, 3 packets received, 0% packet loss

      round-trip min/avg/max = 36.742/48.997/56.263 ms

       

      However, if I reboot, I'm back to square one.  I had it working yesterday and now I'm in this weird loop.