This question already has an answer here:
My raspberry pi 2 is connected to my Windows 8 laptop with an ethernet cable. I have DHCP, Bitvise server, and Putty all installed and running on my laptop. I can connect to my pi using putty and all works well. Every time I run ping google.com on putty I get an unknown host error. I've been through tons of tutorials and searched everywhere I can't get my pi to share the internet from my laptop.
I've set the sharing to enabled on my Wifi network connection properties. I have the Ethernet's IPv4 set to 192.168.137.1. If I run sudo cat /etc/network/interfaces I get the following:
auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet manual auto wlan0 allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf auto wlan1 allow-hotplug wlan1 iface wlan1 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
I have tried every suggestion written on different forums and still I can't get internet working on my pi. Can someone please tell me what to do or what config changes I need to make to get this working?