I have my raspberry pi running on raspbian jessie lite. I have created a hotspot on my windows machine and connected my raspberry pi to the hotspot. The pi has got an ip address assigned to it, but when I ping www.google.com I get unknown host, and when I ping 8.8.8.8 I get network is unreachable.
I tried connecting my phone to the wifi hotspot and it got connected to the internet. The hotspot shows that both my phone and raspberry pi is connected to the PC but the raspberrt pi is not connecting to the internet, while my phone is working fine.
ifconfig:
eth0 Link encap:Ethernet HWaddr b8:27:eb:ae:1a:8a
inet6 addr: fe80::3a87:90a8:b2e7:b84a/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:340 errors:0 dropped:0 overruns:0 frame:0 TX packets:340 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:27440 (26.7 KiB) TX bytes:27440 (26.7 KiB)
wlan0 Link encap:Ethernet HWaddr 50:2b:73:ec:0d:12
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::64f1:6e14:507d:7cb7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:808 errors:0 dropped:0 overruns:0 frame:0 TX packets:540 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:80924 (79.0 KiB) TX bytes:87654 (85.5 KiB)
route:
Kernel IP routing table Destination Gateway Genmask
Flags Metric Ref Use Iface link-local *
255.255.0.0 U 303 0 0 wlan0 192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
I work on embedded systems ,this linux and networking just makes me mad.