Splitting Network Traffic Via Multiple Interfaces
The information in this page is updated in accordance with 00.07.24.5 firmware version. '
Introduction
This article provides a guide on how to separate mobile data traffic by using first SIM card for LAN traffic and second SIM card for WLAN traffic. These configurations only work with routers, which have dual-modem hardware.
Configuration
Configuring VLANs
Go to Network → VLAN → Port Based
1. Click Add
2. Change your created VLAN ports to your preferred, for this example i will use 2 LAN ports for VLAN1, and 2 for VLAN2.
Creating A Second LAN Interface
Go to Network → LAN
1. Press Add
Under General settings:
2. Enable the instance
3. Make sure, that IPv4 address is different than your current LAN addresses.
4. Enable DHCPv4 server
Go to Physical settings
5. Select interface based on your VLAN ID. (If your created VLAN id in the first step is VLAN ID 3, your interface will be eth0.3 and so on.)
6. Press Save & Apply
Configuring Policy based routing
Go to Network → Routing → Policy Based Routing
Routing tables
- Under Routing tables, Add new instance, type ID:100, and preferred name. Press Add
Under Static IPv4 routes configuration, add a new route by pressing Add, and configure:
1. Select first mobile interface, which should be mob1s1a1
2. Type in Target 0.0.0.0
3. Press Save & Apply
- Add another routing table but with ID 200, and instead of using first mobile interface in static route, choose second one (mob2s1a1)
Your table list should look something like this:
Routing rules
Under Routing rules for IPv4 press Add
In The popup window configuration:
1. Priority: 1
2. Incoming interface: choose your first LAN (lan)
3. Lookup Table: choose the one, that has ID of 100
4. Press Save & Apply
Configure the second by pressing Add again
In the popup window configure:
5. Priority: 1
6. Incoming interface: choose your second LAN (lan1)
7. Lookup Table: choose the one, that has ID of 200
8. Press Save & Apply
Separating Wireless traffic with VLAN interface
Go to Network → Wireless → SSIDs
1. Choose Wireless network you want to edit, and press Edit.
In the popup window:
2. Network: choose your preferred Network which will handle this wireless interface
3. Press Save & Apply