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)
- Configuring a Dialer Interface (Required)
- Configuring Dial-In (Required)
- Configuring CHAP on Dialer Interfaces (Optional)
Configuring a USB Modem Interface (Required)
To configure a USB modem interface for the device:
- Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 25.
- 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. |
| From the [edit] hierarchy level, enter edit interfaces umd0 |
Create the new interface umd0. |
| |
Configure dialer options.
Dialer pool priority has a range from 1 to 255, with 1 designating lowest-priority interfaces and 255 designating the highest-priority interfaces. |
| 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. |
| 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:
- Navigate to the top of the interfaces configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 26.
- 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. |
| 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. |
| Create and name the interface:
|
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. |
| Enter set encapsulation ppp |
Create the logical unit 0. Note: The logical unit number must be 0. |
| Enter set unit 0 |
Configure the name of the dialer pool to use for USB modem connectivity—for example, 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. |
| 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:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 27.
- If you are finished configuring the device, commit the configuration.
- 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. |
| From the [edit] hierarchy level, enter edit interfaces dl0 |
On logical interface 0 configure the incoming map options for 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:
- Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
- Perform the configuration tasks described in Table 28.
- If you are finished configuring the device, commit the configuration.
- 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. |
|
|
Navigate to the appropriate dialer interface level in the configuration hierarchy—for example, dl0 unit 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. |
| Enter set ppp-options chap access-profile usb-modem-access-profile |
Hide Navigation Pane
Show Navigation Pane
Download
SHA1