[Hot News] [SOLVED]: Connecting Raspberry Pi to two WiFi networks at the same time

[Hot News] [SOLVED]: Connecting Raspberry Pi to two WiFi networks at the same time
Di Posting Oleh : Crew Blog
Kategori : FAQ LINUX OS Q&A RASPBERRY PI Solved TECHNOLOGY WiFi


One of my friend wanted to connect his Raspberry Pi to two different WiFi networks at the same time using two different WiFi dongles on his Raspberry Pi. He was wondering if it was possible and his basic attempts with his limited Linux kernel knowledge were found to be futile.

So I looked into this possibility and joined along with him to get the Raspberry Pi connect to two different WiFi networks at the same time using two separate USB WiFi dongles. Here were my findings and resolution to make this quest successful.

First we removed the builtin default ifplugd Linux daemon which is responsible for automatically configuring the WiFi module to connect to an existing default WiFi network. However there was a catch with this:

When we tried to remove the ifplugd Linux daemon process from the system using sudo apt-get purge command, it removed only the ifplugd files, leaving behind any other dependent modules that it might have loaded during installation time for it to be properly functional. This resulted in the two WiFi modules failing to connect to two different WiFi networks at the same time. We then remembered the difference between using sudo apt-get purge and sudo apt-get remove functionalities that we then documented here.

So further digging into the issue showed us that the ifplugd had indeed loaded lib-daemon as a dependency Linux module for its functioning, which was not removed during the apt-get purge command operation. We then used the sudo apt-get remove command to remove ifplugd which resulted in removing this dependent lib-daemon module as well from the system.

After performing this operation, we successfully removed tht ifplugd and with proper network configuration settings done in the /etc/network/interfaces file for both the WiFi networks that we were trying to connect to, we finally managed to connect the Raspberry Pi to two different WiFi networks at the same time.

Hope this helps for someone else who is also trying to accomplish the same on their Raspberry Pi hardware!

Related Posts :