2 Replies Latest reply on Nov 9, 2016 10:03 AM by Bill.

    Intel Edison WAN access - Network Unreachable

    WireSpeed

      I have my module wifi working.  I can browse to the IP address from a bowser, I can ping any computer on the LAN but I can not access any external IP address.  What am I missing?  I get the following message when I try to ping an external IP address:

       

      PING 8.8.8.8 (8.8.8.8): 56 data bytes

      ping: sendto: Network is unreachable

       

      I did a search on this message above but could not find anything to solve this issue.  I suspect it's something simple.

       

       

      Here is the results of my ifconfig:

       

       

      lo        Link encap:Local Loopback 

                inet addr:127.0.0.1  Mask:255.0.0.0

                inet6 addr: ::1/128 Scope:Host

                UP LOOPBACK RUNNING  MTU:65536  Metric:1

                RX packets:490 errors:0 dropped:0 overruns:0 frame:0

                TX packets:490 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:0

                RX bytes:45688 (44.6 KiB)  TX bytes:45688 (44.6 KiB)


       

      usb0      Link encap:Ethernet  HWaddr 02:00:86:95:50:f6 

                inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0

                inet6 addr: fe80::86ff:fe95:50f6/64 Scope:Link

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:470 errors:0 dropped:0 overruns:0 frame:0

                TX packets:517 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:87300 (85.2 KiB)  TX bytes:32552 (31.7 KiB)

      wlan0     Link encap:Ethernet  HWaddr fc:c2:de:3f:17:5e 

                inet addr:192.168.2.21  Bcast:192.168.2.255  Mask:255.255.255.0

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:2217 errors:0 dropped:0 overruns:0 frame:0

                TX packets:1357 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:255616 (249.6 KiB)  TX bytes:702407 (685.9 KiB)

        • 1. Re: Intel Edison WAN access - Network Unreachable
          hwNewbie

          Do you have a default route (0.0.0.0)? Check the output of netstat -rn


          root@edison:~# netstat -rn

          Kernel IP routing table

          Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

          0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 wlan0

          192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0

          192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 usb0

          • 2. Re: Intel Edison WAN access - Network Unreachable
            Bill.

            Hi,

             

            My version of Edison/Yocto is:  201603141535  (hmmm Pi Day

             

            When I ping elsewhere I get network unreachable.

             

            netstat -rn

             

                    Kernel IP routing table

                    Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface

                    192.168.2.0    0.0.0.0        255.255.255.0  U        0 0          0 usb0

                    192.168.42.0    0.0.0.0        255.255.255.0  U        0 0          0 wlan0

             

            No 0.0.0.0 for the Gateway.

             

            Question: should do the following:  route add default gw 192.168.42.0 wlan0

             

            Regards,

            Bill