Dialer pool priority has a range from 1 to 255, with 1 designating lowest-priority interfaces and 255 designating the highest-priority interfaces.
In the Encapsulation column, next to the new
interface, click Edit.
Next to Dialer options, select Yes, and then click Configure.
Next to Pool, click Add new entry.
In the Pool identifier box, type usb-modem-dialer-pool.
In the Priority box, type 25.
Click OK until you return
to the Interface page.
Enter
set dialer-options pool usb-modem-dialer-pool priority 25
Configure the modem to automatically answer (autoanswer) calls
after a specified number of rings.
Note:
The default modem initialization string is AT S7=45 S0=0
V1 X4 &C1 E0 Q0 &Q8 %C0. The modem command S0=0 disables the modem from autoanswering calls.
Next to Modem options, click Configure.
In the Init command string box, type ATS0=2
\n to configure the modem to autoanswer after two rings.
Enter
set modem-options init-command-string "ATS0=2 \n"
Configure the modem to act as a dial-in WAN backup interface.
On the Modem options page, in the Dialin box,
select routable.
Click OK.
Enter
set modem-options dialin routable
Configuring a Dialer Interface for USB Modem Dial Backup
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.
After configuring the dialer interface, you must configure a
backup method—either dialer backup, a dialer filter, or dialer
watch.
For example, suppose you have a branch office router and a head
office router each with a USB modem interface and a dialer interface.
To establish a backup connection between the branch office and head
office routers, you can configure them as described in Table 113.
Table 113: Configuring Branch
Office and Head Office Routers for USB Modem Backup Connectivity
Router Location
Configuration Requirement
Instructions
Branch Office
Configure the logical dialer interface on the
branch office router for USB modem dial backup.
Configure the dialer interface dl0 in
one of the following ways on the branch office router:
Configure the dialer interface dl0 as the backup
interface on the branch office router's primary T1 interface t1-1/0/0.
Configure a dialer filter on the branch office router's
dialer interface.
Configure a dialer watch on the branch office router's
dialer interface.
To configure the logical dialer interface, see Table 114.
Note:
You cannot configure Cisco High-Level Data Link Control (HDLC)
or Multilink PPP (MLPPP) encapsulation on dialer interfaces used in
USB modem connections.
In the Encapsulation column, next to the new
interface, click Edit.
From the Encapsulation list, select ppp.
Enter
set encapsulation ppp
Create the logical unit 0.
Note:
You can set the logical unit to 0 only.
Next to Unit, click Add new
entry.
In the Interface unit number box, type 0.
Next to Dialer options, select Yes, and then click Configure.
Enter
set unit 0
Configure dialer options.
Activation delay—Number
of seconds to wait before activating the backup USB modem interface
after the primary interface is down—for example, 30. The default value is 0 seconds, and the maximum value
is 60 seconds. Use this option only for dialer backup and
dialer watch.
Deactivation delay—Number
of seconds to wait before deactivating the backup USB modem interface
after the primary interface is up—for example, 30.
The default value is 0 seconds, and the maximum value is 60 seconds. Use this option only for dialer backup and dialer
watch.
Idle timeout—Number of
seconds a connection is idle before disconnecting—for example, 30. The default value is 120 seconds, and the range
is from 0 to 4294967295.
Initial route check—Number
of seconds to wait before checking if the primary interface is up—for
example, 30. The default value is 120 seconds, and
the range is from 1 to 300 seconds.
Pool—Name of the dialer
pool to use for USB modem connectivity—for example, usb-modem-dialer-pool.
In the Activation delay box, type 60.
In the Deactivation delay box, type 30.
In the Idle timeout box, type 30.
In the Initial route check box, type 30.
In the Pool box, type usb-modem-dialer-pool.
Enter
edit unit 0 dialer-options
Enter
set activation-delay 60
Enter
set deactivation-delay 30
Enter
set idle-timeout 30 initial-route-check 30 pool usb-modem-dialer-pool
Configure the telephone number of the remote destination to
call if the primary interface goes down—for example, 5551212.
Next to Dial string, click Add new entry.
In the Dial string box, type 5551212.
Click OK until you return
to the Unit page.
Enter
set dial-string 5551212
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. Packets
can be routed through any of the dialer interfaces with the IP subnet
address, instead of being routed through the dialer interface to which
the USB modem call is mapped.
Select Inet under Family,
and click Edit.
Next to Address, click Add new
entry.
In the Source box, type 172.20.10.2.
In the Destination box, type 172.20.10.1.
Click OK.
From the [edit] hierarchy level, enter
edit interfaces dl0 unit 0
Enter
set family inet address 172.20.10.2 destination 172.20.10.1
Configuring Dial Backup for
a USB Modem Connection
Dial backup allows one or more dialer interfaces to be configured
as the backup link for the primary serial interface. The backup dialer
interfaces are activated only when the primary interface fails. USB
modem backup connectivity is supported on all interfaces except ls-0/0/0.
To configure a primary interface for backup connectivity:
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 115.
If you are finished configuring the device, commit
the configuration.
Table 115: Configuring
a Primary Interface for USB Modem Dial Backup
Task
J-Web Configuration Editor
CLI Configuration Editor
Navigate to the Interfaces level in the
configuration hierarchy.
In the J-Web interface, select Configuration>Edit
Configuration>View and Edit.
Next to Interfaces, click Edit.
From the [edit] hierarchy level, enter
edit interfaces t1-1/0/0 unit 0
Select the physical interface for USB modem USB modem backup
connectivity—for example, t1–1/0/0.
In the Interface name column, click the physical
interface name.
Under Unit, in the Interface unit number column,
click 0.
Configure the backup dialer interface—for instance, dl0.0.
Next to Backup options, click Configure.
In the Interface box, type dl0.0.
Click OK until you return
to the Interfaces page.
Enter
set backup-options interface dl0.0
Configuring
a Dialer Filter for USB Modem Dial Backup
This dial-on-demand routing backup method allows a USB modem
connection to be activated only when network traffic configured as
an “interesting packet” arrives on the network. Once the
network traffic is sent, an inactivity timer is triggered and the
connection is closed.
You define an interesting packet using the dialer filter feature
of the device.
To configure dial-on-demand routing backup using a dialer filter,
you first configure the dialer filter and then apply the filter to
the dialer interface.
To configure the dialer filter and apply it to the dialer interface:
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 116.
When you are finished configuring the device, commit
the configuration.
Table 116: Configuring a Dialer Filter for USB Modem Dial Backup
Task
J-Web Configuration Editor
CLI Configuration Editor
Navigate to the Firewall level in the configuration
hierarchy.
In the J-Web interface, select Configuration>Edit
Configuration>View and Edit.
Next to Firewall, click Edit.
From the [edit] hierarchy level, enter
edit firewall
Configure the dialer filter name—for example, interesting-traffic.
Next to Inet, click Configure or Edit.
Next to Dialer filter, click Add
new entry.
In the Filter name box, type interesting-traffic.
Enter
edit family inet
Then enter
edit dialer-filter interesting-traffic
Configure the dialer filter rule name—for example, term1.
Configure term behavior. For example, you might want to configure
the dialer filter to allow only traffic between the branch office
router and the head office router over the backup USB modem connection.
In this example, the branch office router has the IP address 20.20.90.4/32 and the head office router has the IP address 200.200.201.1/32.
To configure the term completely, include both from and then statements.
Next to Term, click Add new
entry.
In the Rule name box, type term1.
Next to From, click Configure.
Next to Source address, click Add
new entry.
In the Address box, type 20.20.90.4/32.
Click OK.
Next to Destination address, click Add new entry.
In the Address box, type 200.200.201.1/32.
Click OK until you return
to the Term page.
Enter
edit term term1
Enter
set from source-address 20.20.90.4/32
Enter
set from destination-address 200.200.201.1/32
Configure the then part of the dialer filter to discard
Telnet traffic between the branch office router and the head office
router.
Next to Then, click Configure.
From the Designation list, select Note.
Click OK.
Enter
set then note
Table 117: Applying the
Dialer Filter to the Dialer Interface
Task
J-Web Configuration Editor
CLI Configuration Editor
Navigate to the Interfaces level in the
configuration hierarchy.
In the J-Web interface, select Configuration>Edit
Configuration>View and Edit.
Next to Interfaces, click Edit.
From the [edit] hierarchy level, enter
edit interfaces dl0 unit 0
Select the dialer interface to apply the filter—for example, dl0.
In the Interface name column, click dl0.
Under Unit, in the Interface unit number column,
click 0.
Configuring
Dialer Watch for USB Modem Dial Backup
Dialer watch is a backup method that integrates backup dialing
with routing capabilities and provides reliable connectivity without
relying on a dialer filter to trigger outgoing USB modem connections.
With dialer watch, the device monitors the existence
of a specified route and if the route disappears, the dialer interface
initiates the USB modem connection as a backup connection.
In this example, you configure dialer watch to enable the device to
monitor the existence of the route to the head office router and initiate
USB modem backup connectivity if the route disappears.
To configure dialer watch, you first add a dialer watch interface
and then configure the USB modem interface to participate as a dialer
watch interface.
To configure a dialer watch:
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 118.
When you are finished configuring the device, commit
the configuration.
Table 118: Adding a Dialer Watch Interface
Task
J-Web Configuration Editor
CLI Configuration Editor
Navigate to the Interfaces level in the
configuration hierarchy.
In the J-Web interface, select Configuration>Edit
Configuration>View and Edit.
Next to Interfaces, click Edit.
From the [edit] hierarchy level, enter
edit interfaces
Select a dialer interface—for example, dl0.
Adding a description, such as dialer-watch, can help
you identify one dialer interface from another.
Under Interface name, select dl0.
In the Description box, type dialer-watch.
Enter
edit dl0
Enter
set description dialer-watch
On a logical interface—for example, 0—configure
the route to the head office router for dialer watch—for example, 200.200.201.1/32.
Under Unit, click the logical unit number 0.
Next to Dialer options, click Edit.
Next to Watch list, click Add new
entry.
In the Prefix box, type 200.200.201.1/32.
Click OK.
Enter
edit unit 0 dialer-options
Enter
set watch-list 200.200.201.1/32
Configure the name of the dialer pool to use for dialer watch—for
example, dw-pool.
In the Pool box, type dw-pool.
Click OK.
Enter
set pool dw-pool
Table 119: Configuring
a USB Modem Interface for Dialer Watch
Task
J-Web Configuration Editor
CLI Configuration Editor
Navigate to the Interfaces level in the
configuration hierarchy, and select the USB modem physical interface umd0.
In the J-Web interface, select Configuration>Edit
Configuration>View and Edit.
Next to Interfaces, click Edit.
Under Interface name, click umd0.
From the [edit] hierarchy level, enter
edit interfaces umd0 dialer-options pool dw-pool
Configure dialer watch options for the USB modem interface
participating in the dialer watch.
The USB modem interface must have the same pool identifier to
participate in dialer watch. Therefore, the dialer pool name dw-pool, for the dialer watch interface configured in Table 118, is used when configuring the
USB modem interface.
Next to Dialer options, click Edit.
Next to Pool, click Add new entry.
In the Pool identifier box, type dw-pool.
Click OK.
Configuring Dial-In for a USB Modem Connection
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 device 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 device 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 4085321091 and the caller
ID configured on a dialer interface is 5321091, 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 USB modem 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 120.
If you are finished configuring the device, commit
the configuration.
Table 120: Configuring the Dialer Interface for USB Modem 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.
In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
Next to Interfaces, click Edit.
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 dialer interface with the accept-all option configured
is used 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, 4085551515. 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 14085551515, 4085551515, and 5551515 on different dialer
interfaces.
In the Unit section, for logical unit number 0, click Dialer options under Encapsulation.
Next to Incoming map, click Configure.
From the Caller type menu, select Caller.
Next to Caller, click Add new entry.
In the Caller id box, type 4085551515.
Enter
edit unit 0
Enter
edit dialer-options
Enter
set incoming-map caller 4085551515
Configuring PAP on Dialer Interfaces (Optional)
You can configure dialer interfaces to support the Password
Authentication Protocol (PAP). PAP allows a simple method for a peer
to establish its identity using a two-way handshake during initial
link establishment. After the link is established, an ID and password
pair is repeatedly sent by the peer to the authenticator until authentication
is acknowledged or the connection is terminated.
For more information about PAP, see the JUNOS Network Interfaces Configuration Guide.
To configure PAP on the dialer interface, create an access profile
and then configure 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 121.
If you are finished configuring the device, commit
the configuration.
Table 121: Configuring
PAP on Dialer Interfaces
Task
J-Web Configuration Editor
CLI Configuration Editor
Define a PAP access profile—for example, pap-access-profile with a client (username) named pap-access-user and the
PAP password my-pap.
On the main Configuration page next to Access,
click Configure or Edit.
Next to Profile, click Add new
entry.
In the Profile name box, type pap-access-profile.
Next to Client, click Add new entry.
In the Name box, type pap-access-user.
In the Pap-password box, type my-pap.
Click OK until you return
to the main Configuration page.
From the [edit] hierarchy level, enter
set access profile pap-access-profile client pap-access-user
pap-password my-pap
Navigate to the appropriate dialer interface level in the configuration
hierarchy—for example, dl0 unit 0.
On the main Configuration page next to Interfaces,
click Configure or Edit.
In the interface name box, click dl0.
In the Interface unit number box, click 0.
From the [edit] hierarchy level, enter
edit interfaces dl0 unit 0
Configure PAP on the dialer interface and specify the local
name and password—for example, pap-access-profile and my-pap.
Next to Ppp options, click Configure.
Next to Pap, click Configure.
In the Local name box, type pap-access-profile.
In the Local password box, type my-pap.
Click OK.
Enter
set ppp-options pap local-name pap-access-user local-password
my-pap
Configuring CHAP on Dialer Interfaces (Optional)
You can optionally configure dialer interfaces to support the
PPP Challenge Handshake Authentication Protocol (CHAP). CHAP is a
server-driven, three-step authentication method that depends on a
shared secret password residing on both the server and the client.
When you enable CHAP on a dialer interface, the device can authenticate
its peer and be authenticated by its peer.
For more information about CHAP, see 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 122.
If you are finished configuring the device, commit
the configuration.
Table 122: 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.
On the main Configuration page next to Access,
click Configure or Edit.
Next to Profile, click Add new
entry.
In the Profile name box, type usb-modem-access-profile.
Next to Client, click Add new entry.
In the Name box, type usb-modem-user.
In the Chap secret box, type my-secret.
Click OK until you return
to the main Configuration page.
From the [edit] hierarchy level, enter
set access profile usb-modem-access-profile client usb-modem-user
chap-secret my-secret
Navigate to the appropriate dialer interface level in the configuration
hierarchy—for example, dl0 unit 0.
On the main Configuration page next to Interfaces,
click Configure or Edit.
In the interface name box, click dl0.
In the Interface unit number box, 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.
Next to Ppp options, click Configure.
Next to Chap, click Configure.
In the Access profile box, type usb-modem-access-profile.
Click OK.
Enter
set ppp-options chap access-profile usb-modem-access-profile