3,981 bytes added
, 10:37, 30 July 2021
<span style="color: red;">The information in this page is updated in accordance with firmware version <span style="color: #0054A6;"><b>R_00.07.00</b></span>.</span>
==Configuration prerequisites==
'''Prerequisites''':
* Latest firmware with Multi-APN support
* SIM card with multiple APNs
==Configuring router==
{{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer
| series = RUTX
}}
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 <span style="color: #0054A6;"><b>R_00.07.00</b></span>, only 2 different APNs are supported at once.</i>
----
<b>STEP 1</b>: Navigate to mobile interface configuration.
Connect to router's <b>WebUI</b>, navigate to <b>Network > Interfaces</b>. Find the default mobile interface and click the EDIT icon on the right.
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_default_interface_edit_v1.png|border|class=tlt-border]]
----
<b>STEP 2</b>: Configure the default interface.
Interface configuration window should appear after pressing EDIT. Follow these steps:
#Disable <b>Auto APN</b>.
#Choose an APN from the list, <i>or</i> select <b>-- Custom --</b> to define a custom APN.
#Enter your APN in the <b>Custom APN</b> field.
#Press <b>Save & Apply</b> below.
[[File:Networking_rutos_configuration_example_multi_apn_interface_configuration_mobile_apn2_v1.png|border|class=tlt-border]]
The interface should soon connect to data with an IP assigned according to the APN:
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_mobile2_running_v1.png|border|class=tlt-border]]
----
<b>STEP 3</b>: Create a new mobile interface.
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 4</b>: Configure the 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:
#Disable <b>Auto APN</b>.
#Choose an APN from the list (different from the one previously), <i>or</i> select <b>-- Custom --</b> to define a custom APN.
#Enter your APN in the <b>Custom APN</b> field.
#Press <b>Save & Apply</b> below.
[[File:Networking_rutos_configuration_example_multi_apn_interface_configuration_mobile_apn1_v1.png|border|class=tlt-border]]
The new interface should appear in the list and start connecting to mobile data.
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_mobile1_stopped_v1.png|border|class=tlt-border]]
Once connected, you will see an IP assigned according to the APN.
[[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.
==Results==
You should see the two different mobile interfaces connected to data with different IPs assigned:
[[File:Networking_rutos_configuration_example_multi_apn_interfaces_results_v1.png|border|class=tlt-border]]
==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>:
To ping from the default interface, use command:
ping -I qmimux0 8.8.8.8
[[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:
ping -I qmimux<b>8</b> 8.8.8.8
[[File:Networking_rutos_configuration_example_multi_apn_testing_configuration_ping_custom_v1.png|border|class=tlt-border]]