Introduction
My dormitory has two China Mobile broadband connections via fiber to the home. One is 20Mbps and the other is 30Mbps, both using PPPoE dial-up. I hope to combine these two bandwidths.
Solution 1
Searched for multi-WAN port routers on JD.com, but they are quite expensive. Pass.
Solution 2
Modify my Xiaomi Router Mini by flashing OpenWrt.
Flashing OpenWrt
This isn’t the focus of this article. However, it’s worth noting that OpenWrt firmware can be found and downloaded from the official website. Its repositories are complete and up-to-date, so you don’t need to flash outdated firmware like Pandorabox with unreliable repositories. The router needs to be flashed with a developer version firmware and SSH firmware, then OpenWrt firmware can be flashed via command line. There’s no need to flash the Breed u-boot, which is too risky and can cause loss of the SN.
First Dial-up, Setting Up Domestic Repositories
First, turn on the router, plug in the network cable, access 192.168.1.1, and set the root password on the page.
In the System Software page, click Configuration, replace downloads.openwrt.org with openwrt.proxy.ustclug.org, and submit. In the Network - Interface page, edit the WAN configuration, change the protocol, and configure PPPoE internet access.
Connect to the router via SSH, type opkg update in the command line. Make sure it succeeds. Then type opkg install kmod-macvlan mwan3 luci-app-mwan3. If it doesn’t succeed, try a few more times.
Setting Up a Virtual Network Card
Check the VLAN binding of the WAN interface, which is eth0.2. In the terminal, enter ip link add link eth0.2 name veth0 type macvlan, and then ifconfig veth0 up.
Binding Network Card to Interface
For convenience, modify WAN6 as our second interface, set up the second account’s PPPoE internet account, and then modify its physical setting to veth0.
If the two accounts cannot dial simultaneously at this point, it means single-line dual dial is not supported.
Setting Hop Count
Set the use gateway metric in both the WAN and WAN6 pages. Make sure they are different, for example, one at 10 and one at 11.
Setting Up Load Balancing
Configure the load balance settings in sequence.
Restart Service
Click to restart the service
Testing
Reference: https://acris.me/2017/06/25/Load-balancing-multiple-PPPoE-on-LEDE/