Difference between revisions of "Multi-APN"

From Teltonika Networks Wiki
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<p style="color:red">The information in this page is updated in accordance with [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version.</p>  
+
<span style="color: red;">The information in this page is updated in accordance with firmware version <i><b>R_00.07.04</b></i>.</span>
 +
 
 
==Introduction==
 
==Introduction==
  
This article contains instructions on how to utilize the device's <b>Multi-APN</b> feature in order to establish connections to multiple mobile networks using a single SIM card. This feature may also be referred to as "Multiple PDN".
+
This article contains instruction on how to utilize the device's <b>Multi-APN</b> feature in order to establish connections to multiple mobile networks using a single SIM card. This feature may also be referred to as "Multiple PDN".
  
 
==Configuration prerequisites==
 
==Configuration prerequisites==
Line 18: Line 19:
 
In the example below, we will be using <i>wap</i> (dynamic) and <i>bangapro</i> (static) as our different APNs. Replace these values in accordance with your SIM card provider.
 
In the example below, we will be using <i>wap</i> (dynamic) and <i>bangapro</i> (static) as our different APNs. Replace these values in accordance with your SIM card provider.
  
<i><b>Note:</b> As of firmware version <b>R_00.07.08</b>, 8 different APNs are supported at once. Multi-APN feature is <b><u>not supported</u></b> on the following devices:
+
<i><b>Note:</b> As of firmware version <b>R_00.07.04</b>, 8 different APNs are supported at once. Multi-APN feature is <b><u>not supported</u></b> on the following devices:
 
* TRB1 series
 
* TRB1 series
* TRB256
 
 
* TRB5 series
 
* TRB5 series
* RUT200 (if module is EC200A)
+
* RUT230</i>
* RUT901
 
* RUT906</i>
 
 
----
 
----
<b>STEP 1</b>: Create a new mobile interface:
+
<b>STEP 1</b>: Create a new mobile interface.
Connect to router's <b>WebUI</b>, navigate to <b>Network → WAN</b>. Find the <b>Add</b> button below and click the '''Add''' button.
 
  
[[File:Multi_APN_7.8_add.png|border|class=tlt-border|1100px]]
+
 
 +
Connect to router's <b>WebUI</b>, navigate to <b>Network > Interfaces</b>. Find the <b>Add New Instance</b> section below, enter a name for your mobile interface and click ADD.
 +
 
 +
[[File:Networking_rutos_manual_add_new_instance_demo_v1.png|border|class=tlt-border]]
 
----
 
----
 
<b>STEP 2</b>: Configure the new interface.
 
<b>STEP 2</b>: Configure the new interface.
  
  
An interface configuration window should appear after adding a new interface.
+
Interface configuration window should appear after adding a new interface. Select <b>Mobile</b> in the protocol list.
 +
 
 +
[[File:Networking_rutos_configuration_example_multi_apn_interface_configuration_protocol_v1.png|border|class=tlt-border]]
  
 
Then configure the interface in this order:
 
Then configure the interface in this order:
#Select <b>Mobile</b> in the protocol list.
+
#Disable <b>Auto APN</b>.
#Choose the name for your new <b>interface</b>.
+
#Choose an APN from the list, <i>or</i> select <b>-- Custom --</b> to define a custom APN.
#Choose an APN from the list, <i>or</i> select <b>+ Add new </b> to define a custom APN.
+
#Enter your APN in the <b>Custom APN</b> field.
#Press <b>Save & Apply</b> below once done.
+
#Press <b>Save & Apply</b> below.
  
[[File:Multi_APN_7.8_new_interface_edit.png|border|class=tlt-border]]
+
[[File:Networking_rutos_configuration_example_multi_apn_interface_configuration_mobile_apn1_v1.png|border|class=tlt-border]]
  
If your first interface has auto APN, once you will click '''"Save & Apply"''', you will be prompted to a new window, where you will have to accept to turn off the Auto APN on the sim card interfaces. Choose '''Yes'''.
+
The new interface should appear in the list and start connecting to mobile data.
  
[[File:Multi_APN_7.8_auto_apn_off_yes.png|border|class=tlt-border]]
+
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_mobile1_stopped_v1.png|border|class=tlt-border]]
  
The new interface should appear in the list and start connecting to mobile data.
 
----
 
 
Once connected, you will see an IP assigned according to the APN.
 
Once connected, you will see an IP assigned according to the APN.
  
[[File:Multi_APN_7.8_new_interface_connected.png|border|class=tlt-border|1100px]]
+
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_mobile1_running_v1.png|border|class=tlt-border]]
  
 
If your new interface is unable to connect, make sure you have not set an identical APN on the default mobile interface for that SIM card.
 
If your new interface is unable to connect, make sure you have not set an identical APN on the default mobile interface for that SIM card.
Line 58: Line 58:
 
<b>STEP 3</b>: Configure the default interface.
 
<b>STEP 3</b>: Configure the default interface.
  
[[File:Multi_APN_7.8_old_interface_edit.png|border|class=tlt-border|1100px]]
+
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_default_interface_edit_v2.png|border|class=tlt-border]]
 +
 
 +
Interface configuration window should appear after pressing EDIT. Follow the same steps in <b>STEP 2</b> with a different APN or leave it on Auto APN if the interface automatically connected to a different APN.
  
Interface configuration window should appear after pressing EDIT. Follow the same steps in <b>STEP 2</b> with a different APN if needed.
+
The default interface should soon connect to data with an IP assigned according to the APN:
  
The default interface should soon connect to data with an IP assigned according to the APN.
+
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_mobile2_running_v2.png|border|class=tlt-border]]
  
 
==Results==
 
==Results==
Line 68: Line 70:
 
You should see the two different mobile interfaces connected to data with different IPs assigned:
 
You should see the two different mobile interfaces connected to data with different IPs assigned:
  
[[File:Multi_APN_7.8_interfaces_overall_connected.png|border|class=tlt-border|1100px]]
+
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_results_v2.png|border|class=tlt-border]]
  
 
==Testing configuration==
 
==Testing configuration==
  
 
You may also check if the configuration was successful by pinging an address reachable from the internet via <b>CLI</b> or <b>SSH</b>:
 
You may also check if the configuration was successful by pinging an address reachable from the internet via <b>CLI</b> or <b>SSH</b>:
To check which interfaces are created for mobile, you can use this command:
 
ifconfig
 
 
[[File:Multi_APN_7.8_ifconfig.png|border|class=tlt-border]]
 
  
 
To ping from the default interface, use command:
 
To ping from the default interface, use command:
 
  ping -I qmimux0 8.8.8.8
 
  ping -I qmimux0 8.8.8.8
  
[[File:Multi_APN_7.8_ping1.png|border|class=tlt-border]]
+
[[File:Networking_rutos_configuration_example_multi_apn_testing_configuration_ping_default_v1.png|border|class=tlt-border]]
  
 
To ping from the created interface, use command:
 
To ping from the created interface, use command:
  ping -I qmimux<b>1</b> 8.8.8.8
+
  ping -I qmimux<b>8</b> 8.8.8.8
  
[[File:Multi_APN_7.8_ping2.png|border|class=tlt-border]]
+
[[File:Networking_rutos_configuration_example_multi_apn_testing_configuration_ping_custom_v1.png|border|class=tlt-border]]
 
[[Category:Modem control]]
 
[[Category:Modem control]]

Revision as of 14:48, 2 August 2023

Main Page > General Information > Configuration Examples > Modem control > Multi-APN

The information in this page is updated in accordance with firmware version R_00.07.04.

Introduction

This article contains instruction on how to utilize the device's Multi-APN feature in order to establish connections to multiple mobile networks using a single SIM card. This feature may also be referred to as "Multiple PDN".

Configuration prerequisites

Prerequisites:

  • Latest firmware with Multi-APN support (R_00.07.00 and newer)
  • SIM card with multiple APNs

Configuring router

If you're having trouble finding this 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, located at the top of the WebUI.

Networking rutos manual webui basic advanced mode 75.gif

In the example below, we will be using wap (dynamic) and bangapro (static) as our different APNs. Replace these values in accordance with your SIM card provider.

Note: As of firmware version R_00.07.04, 8 different APNs are supported at once. Multi-APN feature is not supported on the following devices:

  • TRB1 series
  • TRB5 series
  • RUT230

STEP 1: Create a new mobile interface.


Connect to router's WebUI, navigate to Network > Interfaces. Find the Add New Instance section below, enter a name for your mobile interface and click ADD.

Networking rutos manual add new instance demo v1.png


STEP 2: Configure the new interface.


Interface configuration window should appear after adding a new interface. Select Mobile in the protocol list.

Networking rutos configuration example multi apn interface configuration protocol v1.png

Then configure the interface in this order:

  1. Disable Auto APN.
  2. Choose an APN from the list, or select -- Custom -- to define a custom APN.
  3. Enter your APN in the Custom APN field.
  4. Press Save & Apply below.

Networking rutos configuration example multi apn interface configuration mobile apn1 v1.png

The new interface should appear in the list and start connecting to mobile data.

Networking rutos configuration example multi apn interfaces mobile1 stopped v1.png

Once connected, you will see an IP assigned according to the APN.

Networking rutos configuration example multi apn interfaces mobile1 running v1.png

If your new interface is unable to connect, make sure you have not set an identical APN on the default mobile interface for that SIM card.


STEP 3: Configure the default interface.

Networking rutos configuration example multi apn interfaces default interface edit v2.png

Interface configuration window should appear after pressing EDIT. Follow the same steps in STEP 2 with a different APN or leave it on Auto APN if the interface automatically connected to a different APN.

The default interface should soon connect to data with an IP assigned according to the APN:

Networking rutos configuration example multi apn interfaces mobile2 running v2.png

Results

You should see the two different mobile interfaces connected to data with different IPs assigned:

Networking rutos configuration example multi apn interfaces results v2.png

Testing configuration

You may also check if the configuration was successful by pinging an address reachable from the internet via CLI or SSH:

To ping from the default interface, use command:

ping -I qmimux0 8.8.8.8

Networking rutos configuration example multi apn testing configuration ping default v1.png

To ping from the created interface, use command:

ping -I qmimux8 8.8.8.8

Networking rutos configuration example multi apn testing configuration ping custom v1.png