Как использовать мобильный интернет и Wi-Fi одновременно на устройстве Android?

Как можно организовать одновременную связь по мобильному интернету и по локальной сети через WIFI с роутером, используя консоль (с рутом)? В настоящее время консоль показывает следующее:

:/ # ip route
10.247.167.212/30 dev rmnet_data2 proto kernel scope link src 10.247.167.214
192.168.2.0/24 dev wlan0 proto kernel scope link src 192.168.2.187
:/ # ip rule
0:      from all lookup local
10000:  from all fwmark 0xc0000/0xd0000 lookup legacy_system
11000:  from all iif lo oif dummy0 uidrange 0-0 lookup dummy0
11000:  from all iif lo oif rmnet_data0 uidrange 0-0 lookup rmnet_data0
11000:  from all iif lo oif wlan0 uidrange 0-0 lookup wlan0
11000:  from all iif lo oif rmnet_data2 uidrange 0-0 lookup rmnet_data2
16000:  from all fwmark 0x10063/0x1ffff iif lo lookup local_network
16000:  from all fwmark 0xd0001/0xdffff iif lo lookup rmnet_data0
16000:  from all fwmark 0x10082/0x1ffff iif lo lookup wlan0
16000:  from all fwmark 0x10083/0x1ffff iif lo lookup rmnet_data2
17000:  from all iif lo oif dummy0 lookup dummy0
17000:  from all fwmark 0xc0000/0xc0000 iif lo oif rmnet_data0 lookup rmnet_data0
17000:  from all iif lo oif wlan0 lookup wlan0
17000:  from all iif lo oif rmnet_data2 lookup rmnet_data2
18000:  from all fwmark 0x0/0x10000 lookup legacy_system
19000:  from all fwmark 0x0/0x10000 lookup legacy_network
20000:  from all fwmark 0x0/0x10000 lookup local_network
23000:  from all fwmark 0x82/0x1ffff iif lo lookup wlan0
23000:  from all fwmark 0x83/0x1ffff iif lo lookup rmnet_data2
31000:  from all fwmark 0x0/0xffff iif lo lookup rmnet_data2
32000:  from all unreachable
  • 18 октября 2023 г. 8:59
Ответы на вопрос 3
To use mobile internet and Wi-Fi simultaneously on an Android device, follow these steps:

1. Make sure you are connected to a Wi-Fi network.
2. Go to the Settings app on your Android device.
3. Tap on "Network & internet" or "Connections" (depending on your device).
4. Select "Wi-Fi" and tap on the Wi-Fi network you are connected to.
5. Tap on the gear icon or "Advanced" (depending on your device).
6. Look for an option called "Smart network switch" or "Switch to mobile data" and disable it. This option may vary depending on your device and Android version.
7. Once disabled, your device will now use both Wi-Fi and mobile data simultaneously.

Regarding organizing simultaneous communication through mobile internet and a local Wi-Fi network via a router using the console with root access, the provided information shows the IP routes and rules currently configured on your device. It does not give specific instructions on achieving simultaneous communication.

If you have root access, you can explore advanced routing configurations using tools like ip command-line tool or iptables. However, modifying these configurations requires technical knowledge and careful consideration of potential risks and compatibility issues. It is recommended to have a solid understanding of networking concepts and consult with an experienced technician or network administrator before making any changes to the routing settings on your device.
Конфигурирование iptables может помочь в данной ситуации. 
 Анализируйте возможность использования iptables для решения задачи.
Похожие вопросы