harryallerston / RPI-Wireless-Hotspot

Configure your Raspberry Pi to act as a WPA encrypted WiFi hotspot, sharing the attatched ethernet connection. Allows the selection from a range of common DNS providers, including unblock-us for netflix. Chromecast support with this feature is also configured.
262 stars 100 forks source link

Kills ethernet on Rpi 2 B using wifi adapter #27

Closed vinay0410 closed 6 years ago

vinay0410 commented 6 years ago

After, running this script, my hotspot is finally made. Thanks a lot for the same. But, suddenly my ethernet dies, now I cannot use internet on my pi. Is there a fix to solve the same. ifconfig doesn't show an eth0.

Fabian42 commented 6 years ago

Look at /etc/network/interfaces. Is there a line saying "wireless-power off"? Changing that to on (and rebooting) solved the problem for me. I don't know why it affects LAN but says "wireless", but it does. There's also a line "auto eth0", if it's something else for you, change it to that. Disclaimer: I'm not sure if that fixes it 100%, I had some problems before where LAN didn't work after every boot, but now I don't know if I still have that problem, because my Raspberry reboots every time the LAN adapter is disabled.

On 16:14, Wed, 21 Mar 2018 Vinay Sharma, notifications@github.com wrote:

After, running this script, my hotspot is finally made. Thanks a lot for the same. But, suddenly my ethernet dies, now I cannot use internet on my pi. Is there a fix to solve the same. ifconfig doesn't show an eth0.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/harryallerston/RPI-Wireless-Hotspot/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_vYoY989dnsjhDdq8QWpRJ8vwUiZiAks5tgm5ZgaJpZM4S0SZs .

vinay0410 commented 6 years ago

Thanks for replying. I had no line stating wireless power off. But I did have a line called auto lo and changing that to auto eth0 didn't work.

Screenshots of /etc/network/interfaces file and output of ifconfig are attached below:

screen shot 2018-03-21 at 10 54 37 pm screen shot 2018-03-21 at 10 53 24 pm

Also, I would like to state that after running this tool by dhcpcd service was stopped, and couldn't be started. According to my experience stopping of dhcpcd service might sometimes turn off LAN.

unixabg commented 6 years ago

Greetings, Could you clone and try this repository https://github.com/unixabg/RPI-Wireless-Hotspot and see if all works for you? ty

Fabian42 commented 6 years ago

Oh no, I didn't mean that line. Here's my version of the file:

This file was installed with the RPI-Wireless-Hotspot script

For more info see https://github.com/unixabg/RPI-Wireless-Hotspot

------------------------------------------------------------------------

auto lo

iface lo inet loopback iface eth0 inet dhcp

auto eth0

auto wlan0

iface wlan0 inet static address 192.168.42.1 netmask 255.255.255.0 wireless-power on

up iptables-restore < /etc/iptables.ipv4.nat

On 21 March 2018 at 20:38, Richard Nelson notifications@github.com wrote:

Greetings, Could you clone and try this repository https://github.com/unixabg/RPI-Wireless-Hotspot and see if all works for you? ty

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/harryallerston/RPI-Wireless-Hotspot/issues/27#issuecomment-375070052, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_vYgxl_AjEjayrpjk4-imMAAjjBNd4ks5tgqwbgaJpZM4S0SZs .

vinay0410 commented 6 years ago

Thanks, installing from https://github.com/unixabg/RPI-Wireless-Hotspot fixed my issue.