davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

Ethernet connectivity #31

Closed augisbud closed 4 years ago

augisbud commented 5 years ago

Hello, is it possible to enable ethernet connectivity and if yes, how do I do that? Because right now ethernet doesn't get an ip from dhcp

davesteele commented 5 years ago

If you downloaded the Comitup disk image, Ethernet is configured as 10.0.0.2/24. I tried adding a DHCP alias, but it didn't work.

augisbud commented 5 years ago

If i get it right, the interfaces that are not defined in /etc/network/interfaces are managed by python-networkmanager?

davesteele commented 5 years ago

Yes, which is in turn being called by Comitup.

augisbud commented 5 years ago

How do you tell network manager to connect to wifi, create a hotspot etc, use dhcp for wlan ip

augisbud commented 5 years ago

nmcli device status DEVICE TYPE STATE CONNECTION wlan0 wifi connected 11111 eth0 ethernet disconnected -- lo loopback unmanaged -- ok, so this is what I get when I plug in an ethernet cable

augisbud commented 5 years ago

changing /etc/network/interfaces to

auto lo
iface lo inet loopback

enables ethernet, however the wifi ap doesn't start or it doesn't connect to the last known network when ethernet was disconnected

wifi doesnt appear even after a reboot

davesteele commented 5 years ago

The change you made to interfaces should have no ill effect on Comitup (unless you have a wlan* entry), though I don't see input there to have it handle Ethernet.

There is a comitup.log file in /var/log. Check that. Also, you can shut down the service ("systemctl stop comitup") and then run "comitup" from the command line to see stdout output.

augisbud commented 5 years ago

everything seems to be fine, I'm wondering, how can we disable the hotspot if there is internet from eth0

davesteele commented 5 years ago

That's not something that would be on my short list.

You might be able to address the underlying issue by adding a password to the hotspot (supported in the next release). Otherwise, you would need a process that detected the Ethernet connection, terminated Comitup, and terminated the hotspot NetworkManager connection.

Kegmaster commented 5 years ago

I second this. It would be nice to have the option to disable the hotspot if Internet/Ethernet connectivity was established.

davesteele commented 5 years ago

I'll consider patches.

davesteele commented 4 years ago

Ethernet configuration is updated. See the home page.