Separating Mobile Data Traffic: Using First SIM Card For LAN Traffic and Second SIM Card For WLAN Traffic

From Teltonika Networks Wiki
Revision as of 08:46, 15 October 2024 by Edvardas.kilbauskas (talk | contribs)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Main Page > General Information > Configuration Examples > Router control and monitoring > Separating Mobile Data Traffic: Using First SIM Card For LAN Traffic and Second SIM Card For WLAN Traffic

The information in this page is updated in accordance with firmware version 00.07.10

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 are specifically made for RUTX12.


If you're having trouble finding any page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Advanced" button which is located at the top-right corner of the WebUI.


Creating A LAN Interface For WLAN

  • Go to NetworkWirelessSSIDs
  • Press the Edit button next to the WLAN whose traffic you want to route through a different SIM card.
  • In the opened tab, next to Network from the dropdown meniu press Add new and enter the desired LAN name.

  • In the newly opened tab:
  1. Write the desired IPv4 address.
  2. Enable DHCP.
  3. Press Save & Apply.


Configuring Policy Based Routing

  • Go to NetworkRoutingPolicy Based Routing
  • Under the "Add New Instance" tab, enter the ID and name for your new Routing Table, for our use, we will need 2 Routing Tables
  • Create a routing table with these parameters: ID: 100, Name: first
  • Click Add


  • In the configuration window, under the Static IPV4 Routes tab, click Add
  • Enter these parameters: Interface: mob1s1a1, Target: 0.0.0.0, Netmask: 0.0.0.0
  • Leave the rest of the parameters on their default values and click Save & Apply


  • Create a second routing table with these parameters: ID: 200, Name: second
  • Click Add


  • In the configuration window, under the Static IPV4 Routes tab, click Add
  • Enter these parameters: Interface: mob2s1a1, Target: 0.0.0.0, Netmask: 0.0.0.0
  • Leave the rest of the parameters on their default values and click Save & Apply


  • Go to NetworkRoutingPolicy Based RoutingRouting Rules For IPV4 and press ADD button.
  • Create 2 new rules with these parameters:
  • First Rule:
  1. Priority: 1
  2. Incoming interface: lan
  3. Lookup table: 100



  • Second Rule:
  1. Priority: 1
  2. Incoming interface: lan2
  3. Lookup table: 200


Separating Traffic Via Ethernet Ports

This example could also be applied when there is a need to split ethernet ports traffic via different SIM cards.


Configuring VLANs

To start with we will need to create new VLAN.

  • Go to NetworkVLANPort Based and press ADD button.
  • Once new VLAN appears, untag desired ports from VLAN 1 and tag them on VLAN 3. In this example ports 3 and 4 will be used in VLAN 3.


Configuring LAN

  • Navigate to NetworkLAN and press Edit button next to the previously created LAN.
  • In Physical Settings select new VLAN. In this example eth0.3 after that press Save & Apply.

Testing the configuration

To test the configuration simply connect to one of the ports that are in LAN and check the IP address, then connect to the port that is in different LAN and check again the IP address. For this test icanhazip.com website will be used.

  • End device connected to first LAN:

  • End device connected to second LAN: