“connect: Network is unreachable”

Run –

sudo route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

– no Gateway IP.  execute following command:

 sudo route add default gw 192.168.1.1

where 192.168.1.1 is an IP address of router, which is connected to the outside network

Leave a Reply

Your email address will not be published. Required fields are marked *