Closed vinay0410 closed 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 .
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:
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.
Greetings, Could you clone and try this repository https://github.com/unixabg/RPI-Wireless-Hotspot and see if all works for you? ty
Oh no, I didn't mean that line. Here's my version of the file:
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 .
Thanks, installing from https://github.com/unixabg/RPI-Wireless-Hotspot fixed my issue.
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.