I'm working to get the Edison to connect to two different networks over ethernet (via the LAN9512 usb-to-ethernet chip) and wifi, simultaneously and automatically when booted.
First I set a static IP for wifi following this thread:
Then, I followed this thread /thread/75725# 310902 https://communities.intel.com/thread/75725# 310902 to setup the ethernet connection, only using these lines from the first part of the "correct answer":
systemctl start connman
systemctl enable connman
connmanctl> enable ethernet
*A0 Wired ethernet_00106031716e_cable
connmanctl> config ethernet_00106031716e_cable --ipv4 dhcp
However, now my board will connect only through ethernet and not wifi.
Any tips on where I might look to resolve this? Please let me know if you'd like any screenshots, etc.
I suggest you to change the /var/lib/connman/settings file in order to add the PreferredTechnologies and the SingleConnectedTechnology for managing the interfaces you are going to use.
Take a look at the following links:
https://wiki.archlinux.org/index.php/Connman https://wiki.archlinux.org/index.php/Connman This is for archlinux, but it should work the same way on Yocto:
"..ConnMan allows you to be connected to both ethernet and wireless at the same time. This can be useful as it allows programs that established a connection over wifi to stay connected even after you connect to ethernet…"
Also, why do you want this configuration (More speed, an interface as backup, …)?
Thank you for the quick response and help. My goal is to be able to connect the edison to other single board computers (e.g. raspberry pi) over ethernet and then have a wireless connection to the network.
I've added the PreferredTechnologies and SingleConnectedTechnology lines to the /var/lib/connman/settings file. With this, I can now connect to both ethernet and wifi, however, on startup, the Edison will only connect to ethernet. I then have to manually go through "configure_edison --setup" to turn on wifi. If I reboot, the dual connection is lost and the edison will only connect over ethernet. Do you know how I might fix this so that it connects to both on startup?
On first boot, with the edison and my breakout board connected to ethernet, I'll only have connectivity to ethernet and not wifi. "ifconfig" shows I only get an ip address for enp0s17u1u1. I confirmed the ethernet connection by pinging the edison from my desktop machine over the network.
Have you checked if there are changes in the /etc/wpa_supplicant/wpa_supplicant.conf everytime the board boots?
Also, have you tried by configuring the network using connman instead of using configure_edison --setup? With Connman you need to run
Also, please check the status of the connman and wpa_supplicant services with:
systemctl status wpa_supplicant systemctl status connman
I would like to know if you have been able to work on this and the results you have obtained. Please let me know if you checked the wpa_supplicant file and if you tried with connman.