Configuring USB Modem Interfaces with a Configuration Editor

To configure USB modem interfaces, perform the following tasks marked (Required). Perform other tasks if needed on your network.

Configuring a USB Modem Interface (Required)

To configure a USB modem interface for the device:

  1. Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 25.
  3. Go on to Configuring a Dialer Interface (Required).

Table 25: Configuring a USB Modem Interface

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy.

  1. In the J-Web interface, select CLI Tools>Point and Click CLI.
  2. Next to Interfaces, click Configure or Edit.

From the [edit] hierarchy level, enter

edit interfaces umd0

Create the new interface umd0.

  1. Next to Interface, click Add new entry.
  2. In the Interface name box, type the name of the new interface, umd0.
  3. Click OK.
 

Configure dialer options.

  • Name the dialer pool configured on the dialer interface you want to use for USB modem connectivity—for example, usb-modem-dialer-pool. For more information, see Configuring a Dialer Interface (Required).
  • Set the dialer pool priority—for example, 25.

Dialer pool priority has a range from 1 to 255, with 1 designating lowest-priority interfaces and 255 designating the highest-priority interfaces.

  1. In the Encapsulation column, next to the new interface, click Edit.
  2. Next to Dialer options, select Yes, and then click Configure.
  3. Next to Pool, click Add new entry.
  4. In the Pool identifier box, type usb-modem-dialer-pool.
  5. In the Priority box, type 25.
  6. Click OK until you return to the Interface page.

Enter

set dialer-options pool usb-modem-dialer-pool priority 25

The S0=0 command in the default modem initialization sequence AT S7=45 S0=0 V1 X4 &C1 E0 Q0 &Q8 %C0, disables the modem from automatically answering calls.

Configure the modem to automatically answer calls after a specified number of rings. For more information about modem initialization commands, see How the Device Initializes USB Modems and Modifying USB Modem Initialization Commands.

  1. Next to Modem options, click Configure.
  2. In the Init command string box, type ATS0=2 to configure the modem to automatically answer after two rings.
  3. Click OK.

Enter

set modem-options init-command-string "ATS0=2 \n"

Configuring a Dialer Interface (Required)

The dialer interface (dl) is a logical interface configured to establish USB modem connectivity. You can configure multiple dialer interfaces for different functions on the device.

To configure a logical dialer interface for the device:

  1. Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 26.
  3. Go on to Configuring Dial-In (Required).

Table 26: Adding a Dialer Interface to a Device

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy.

  1. In the J-Web interface, select CLI Tools>Point and Click CLI.
  2. Next to Interfaces, click Configure or Edit.

From the [edit] hierarchy level, enter

edit interfaces

Create the new interface—for example, dl0.

Adding a description can differentiate between different dialer interfaces—for example, USB-modem-remote-management.

  1. Next to Interface, click Add new entry.
  2. In the Interface name box, type dl0.
  3. In the Description box, type USB-modem-remote-management.
  4. Click OK.

Create and name the interface:

  1. edit dl0
  2. set description USB-modem-remote-management

Configure Point-to-Point Protocol (PPP) encapsulation.

Note: You cannot configure Cisco High-Level Data Link Control (HDLC) or Multilink PPP (MLPPP) encapsulation on dialer interfaces used in USB modem connections.

  1. In the Encapsulation column, next to the new interface, click Edit.
  2. From the Encapsulation list, select ppp.

Enter

set encapsulation ppp

Create the logical unit 0.

Note: The logical unit number must be 0.

  1. Next to Unit, click Add new entry.
  2. In the Interface unit number box, type 0.
  3. Next to Dialer options, select Yes, and then click Configure.

Enter

set unit 0

Configure the name of the dialer pool to use for USB modem connectivity—for example, usb-modem-dialer-pool.

  1. In the Pool box, type usb-modem-dialer-pool.
  2. Click OK.
  1. Enter

    edit unit 0

  2. Enter

    set dialer-options pool usb-modem-dialer-pool

Configure source and destination IP addresses for the dialer interface—for example, 172.20.10.2 and 172.20.10.1.

Note: If you configure multiple dialer interfaces, ensure that the same IP subnet address is not configured on different dialer interfaces. Configuring the same IP subnet address on multiple dialer interfaces can result in inconsistency in the route and packet loss. The device might route packets through another dialer interface with the IP subnet address instead of through the dialer interface to which the USB modem call is mapped.

  1. Select Inet under Family, and click Configure.
  2. Next to Address, click Add new entry.
  3. In the Source box, type 172.20.10.2.
  4. In the Destination box, type 172.20.10.1.
  5. Click OK.

Enter

set family inet address 172.20.10.2 destination 172.20.10.1

Configuring Dial-In (Required)

To enable connections to the USB modem from a remote location, you must configure the dialer interfaces set up for USB modem use to accept incoming calls. You can configure a dialer interface to accept all incoming calls or accept only calls from one or more caller IDs.

If the dialer interface is configured to accept only calls from a specific caller ID, the system matches the incoming call's caller ID against the caller IDs configured on its dialer interfaces. If an exact match is not found and the incoming call's caller ID has more digits than the configured caller IDs, the system performs a right-to-left match of the incoming call's caller ID with the configured caller IDs and accepts the incoming call if a match is found. For example, if the incoming call's caller ID is 4085550115 and the caller ID configured on a dialer interface is 5550115, the incoming call is accepted. Each dialer interface accepts calls from only callers whose caller IDs are configured on it.

To configure a dialer interface for dial-in:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 27.
  3. If you are finished configuring the device, commit the configuration.
  4. To verify that the network interface is configured correctly, see Verifying the USB Modem Configuration.

Table 27: Configuring the Dialer Interface for Dial-In

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Interfaces level in the configuration hierarchy, and select a dialer interface—for example, dl0.

  1. In the J-Web interface, select CLI Tools>Point and Click CLI.
  2. Next to Interfaces, click Edit.
  3. Next to dl0, click Edit.

From the [edit] hierarchy level, enter

edit interfaces dl0

On logical interface 0 configure the incoming map options for the dialer interface.

  • accept-all—Dialer interface accepts all incoming calls.

    You can configure the accept-all option for only one of the dialer interfaces associated with a USB modem physical interface. The device uses the dialer interface with the accept-all option configured only if the incoming call's caller ID does not match the caller IDs configured on other dialer interfaces.

  • caller—Dialer interface accepts calls from a specific caller ID—for example, 4085550115. You can configure a maximum of 15 caller IDs per dialer interface.

    The same caller ID must not be configured on different dialer interfaces. However, you can configure caller IDs with more or fewer digits on different dialer interfaces. For example, you can configure the caller IDs 14085550115, 4085550115, and 5550115 on different dialer interfaces.

  1. In the Unit section, for logical unit number 0, click Dialer options under Nested Configuration.
  2. Next to Incoming map, click Configure.
  3. From the Caller type menu, select Caller.
  4. Next to Caller, click Add new entry.
  5. In the Caller id box, type 4085550115.
  6. Click OK.
  7. Repeat Steps 4 through 6 for each caller ID to be accepted on the dialer interface.
  1. Enter

    edit unit 0

  2. Enter

    edit dialer-options

  3. Enter

    set incoming-map caller 4085550115

  4. Repeat Step 3 for each caller ID to be accepted on the dialer interface.

Configuring CHAP on Dialer Interfaces (Optional)

You can optionally configure dialer interfaces to support the PPP Challenge Handshake Authentication Protocol (CHAP). When you enable CHAP on a dialer interface, the device can authenticate the remote locations connecting to the USB modem.

For more information about CHAP, see the Junos OS Interfaces Configuration Guide for Security Devices and the Junos Network Interfaces Configuration Guide.

To configure CHAP on the dialer interface:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 28.
  3. If you are finished configuring the device, commit the configuration.
  4. To verify the CHAP configuration, see Verifying the USB Modem Configuration.

Table 28: Configuring CHAP on Dialer Interfaces

Task

J-Web Configuration Editor

CLI Configuration Editor

Define a CHAP access profile—for example, usb-modem-access-profile with a client (username) named usb-modem-user and the secret (password) my-secret.

  1. In the J-Web interface, select CLI Tools>Point and Click CLI.
  2. Next to Access, click Configure or Edit.
  3. Next to Profile, click Add new entry.
  4. In the Profile name box, type usb-modem-access-profile.
  5. Next to Client, click Add new entry.
  6. In the Name box, type usb-modem-user.
  7. In the Chap secret box, type my-secret.
  8. Click OK.
  9. Repeat Steps 5 through 8 for each client to be included in the CHAP profile.
  10. Click OK until you return to the Configuration page.
  1. From the [edit] hierarchy level, enter

    edit access

  2. Enter

    set profile usb-modem-access-profile client usb-modem-user chap-secret my-secret

  3. Repeat Step 2 for each client to be included in the CHAP profile.

Navigate to the appropriate dialer interface level in the configuration hierarchy—for example, dl0 unit 0.

  1. On the Configuration page next to Interfaces, click Edit.
  2. In the Interface name column, click dl0.
  3. Under Unit, in the Interface unit number column, click 0.

From the [edit] hierarchy level, enter

edit interfaces dl0 unit 0

Configure CHAP on the dialer interface and specify a unique profile name containing a client list and access parameters—for example, usb-modem-access-profile.

Note: Do not configure the passive option from the [edit interfaces dl0 unit 0 ppp-options chap] hierarchy level.

  1. Next to Ppp options, click Configure.
  2. Next to Chap, click Configure.
  3. In the Access profile box, type usb-modem-access-profile.
  4. Click OK.

Enter

set ppp-options chap access-profile usb-modem-access-profile