Configure dual APNs
Some cellular carriers offer a dual APN feature that allows a SIM card to be provisioned with two separate APNs that can be used simultaneously. For example, Verizon offers this service as its Split Data Routing feature. This feature provides two separate networking paths through a single cellular modem and SIM card, and allows for configurations such as:
- Segregating public and private traffic, including policy-based routes to ensure that your internal network traffic always goes through the private connection.
- Separation of untrusted Internet traffic from trusted internal network traffic.
- Secure connection to internal customer network without using a VPN.
- Separate billing structures for public and private traffic.
- Site-to-site networking, without the overhead of tunneling for each device.
In the following example configuration, all traffic on LAN1 is routed through the public APN to the internet, and all traffic on LAN2 is routed through the private APN to the customer's data center:
To accomplish this, we will create separate WWAN interfaces that use the same modem but use different APNs, and then use routing roles to forward traffic to the appropriate WWAN interface.

Web
- Log into Digi Remote Manager, or log into the local Web UI as a user with full Admin access rights.
- Access the device configuration:
Local Web UI:- On the menu, click System. Under Configuration, click Device Configuration.

The Configuration window is displayed.
- Increase the maximum number of interfaces allowed for the modem:
- Click Network > Modems > Modem.
- For Maximum number of interfaces, type 2.

- Create the WWAN interfaces:
In this example, we will create two interfaces named WWAN_Public and WWAN_Private.
- Click Network > Interfaces.
- For Add Interface, type WWAN_Public and click .

- For Interface type, select Modem.
- For Zone, select External.
- For Device, select Modem .
- (Optional) For APN selection, select whether you want to configure the device to use the preconfigured APNs, custom APNs, or both.
- For Add Interface, type WWAN_Private and click .

- For Interface type, select Modem.
- For Zone, select External.
- For Device, select Modem .
This should be the same modem selected for the WWAN_Public WWAN.
- For APN selection, select whether you want to configure the device to use the preconfigured APNs, custom APNs, or both.
- Create the routing policies. For example, to route all traffic from LAN1 through the public APN, and LAN2 through the private APN:
- Click Network > Routes > Policy-based routing.
- Click the to add a new route policy.

- For Label, enter Route through public APN.
- For Interface, select Interface: WWAN_Public.
- Configure the source address:
- Click to expand Source address.
- For Type, select Interface.
- For Interface, select LAN1.
- Configure the destination address:
- Click to expand Destination address.
- For Type, select Interface.
- For Interface, select Interface: WWAN_Public.

- Click the to add another route policy.
- For Label, enter Route through private APN.
- For Interface, select Interface: WWAN_Private.
- Configure the source address:
- Click to expand Source address.
- For Type, select Interface.
- For Interface, select LAN2.
- Configure the destination address:
- Click to expand Destination address.
- For Type, select Interface.
- For Interface, select Interface: WWAN_Private.

- Click Apply to save the configuration and apply the change.

Command line
- Select the device in Remote Manager and click Actions > Open Console, or log into the EX12 local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access selection menu. Type admin to access the Admin CLI.
- At the command line, type config to enter configuration mode:
> config
(config)>
- Set the maximum number of interfaces for the modem:
(config)> network modem modem max_intfs 2
(config)>
- Create the WWAN interfaces:
Create the WWANPublic interface:
(config)> add network interface WWANPublic
(config network interface WWANPublic)>
Set the interface type to modem:
(config network interface WWANPublic)> type modem
(config network interface WWANPublic)>
Set the modem device:
(config network interface WWANPublic)> modem device modem
(config network interface WWANPublic)>
- Configure whether you want the device to use the preconfigured APNs, custom APNs, or both. For more information, see Cellular modem APNs.
(config network interface WWANPublic)> modem apn public_apn
(config network interface WWANPublic)>
- Use to periods (..) to move back one level in the configuration:
(config network interface WWANPublic)> ..
(config network interface)>
- Create the WWANPrivate interface:
(config network interface)> add WWANPrivate
(config network interface WWANPrivate)>
Set the interface type to modem:
(config network interface WWANPrivate)> type modem
(config network interface WWANPrivate)>
Set the modem device:
(config network interface WWANPrivate)> modem device modem
(config network interface WWANPrivate)>
- Enable APN list only:
(config network interface WWANPrivate)> modem apn_selection apn_list_only
(config network interface WWANPrivate)>
- Set the private APN:
(config network interface WWANPublic)> modem apn private_apn
(config network interface WWANPublic)>
- Create the routing policies. For example, to route all traffic from LAN1 through the public APN, and LAN2 through the private APN:
- Add a new routing policy:
(config)> add network route policy end
(config network route policy 0)>
- Set the label that will be used to identify this route policy:
(config network route policy 0)> label "Route through public apn"
(config network route policy 0)>
- Set the interface:
(config network route policy 0)> interface /network/interface/WWANPublic
(config network route policy 0)>
- Configure the source address:
- Set the source type to interface:
(config network route policy 0)> src type interface
(config network route policy 0)>
- Set the interface to LAN1:
(config network route policy 0)> src interface LAN1
(config network route policy 0)>
- Configure the destination address:
- Set the type to interface:
(config network route policy 0)> dst type interface
(config network route policy 0)>
- Set the interface to WWANPublic
:
(config network route policy 0)> interface /network/interface/WWANPublic
(config network route policy 0)>
- Use to periods (..) to move back one level in the configuration:
(config nnetwork route policy 0)> ..
(config nnetwork route policy)>
- Add a new routing policy:
(config network route policy )> add end
(config network route policy 1)>
- Set the label that will be used to identify this route policy:
(config network route policy 1)> label "Route through private apn"
(config network route policy 1)>
- Set the interface:
(config network route policy 1)> interface /network/interface/WWANPrivate
(config network route policy 1)>
- Configure the source address:
- Set the source type to interface:
(config network route policy 1)> src type interface
(config network route policy 1)>
- Set the interface to LAN2:
(config network route policy 1)> src interface LAN2
(config network route policy 1)>
- Configure the destination address:
- Set the type to interface:
(config network route policy 1)> dst type interface
(config network route policy 1)>
- Set the interface to WWANPrivate
:
(config network route policy 1)> interface /network/interface/WWANPrivate
(config network route policy 1)>
- Save the configuration and apply the change.
(config network route policy 1)> save
Configuration saved.
>
- Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection menu. Type quit to disconnect from the device.