Dial Configuration Command Directory

chat-script

dialer called

dialer caller

dialer dtr

dialer enable-timeout

dialer fast-idle

dialer hold-queue

dialer idle-timeout

dialer load-threshold

dialer map

dialer priority

dialer rotary-group

dialer string

dialer wait-for-carrier-time

dialer-group

dialer-list

dsr-ignore

exec-script

line dial

pusle-time

script activation

script callback

script connection

script dialer

script reset

script startup

clear dialer interface

clear dialer sessions

show dialer interface

show dialer maps

show dialer sessions

show script

debug chat

debug dialer

 

chat-script

Configuring the script that can be used for multiple modules.

parameter:

Currently Script language only supports the script language provided by Unix system. The content of script is marked with quotation mark.  

default:

Default defines two scripts of reset-scriptdialer-script, which are used for modem initialization and default dial. 

command mode:

global configuration mode

Explanation:

Currently Script language only supports the script language provided by Unix system. In order to facilitate user configuration, the match mode of script applies the random match based on the line.

example

Router_config#chat-script myscript ABORT ERROR ABORT BUSY ABORT "NO CARRIER" TIMEOUT 45 "" ATZ OK "ATDT \T" CONNECT \c

Relevant command

exec-script

script activation

script connection

script reset

script dialer

script startup

dialer caller

Setting telephone number of caller

[no] dialer caller [number]

 

parameter:

numberTelephone number of the caller. If there are quite a few numbers, they are spaced by semicolon.

default:

none

 

command mode:

Interface configuration mode

example:

Router_config_s1/0#dialer caller 12345678

 

dialer called

Designating telephone number of the called.

[no] dialer called [number]

 

parameter:

numberTelephone number of the party called. If there are quite a few numbers, they are spaced by semicolon.

 

default:

none

 

command mode:

Interface configuration mode

 

example:

Router_config_s1/0#dialer called 12345678

 

dialer dtr

Setting port dial mode as dtr dial

[no] dialer dtr

 

parameter:

none

 

default:

DTR dial is forbidden.

 

command mode:

Interface configuration mode

 

Explanation:

The general dial mode sets the number to be dialed for modem through active use of script. Dtr dial is DTR signal that Modem directly detects DTE. If the signal is effective, the relevant dial processing will be executed automatically. The dialed number is set directly on Modem. The number of dialer string and dialer map set under DTR dial mode is ineffective. DTR dial cannot be set for Dialer interface and ISDN.

example:

Router_config_s1/0#dialer dtr

 

dialer enable-timeout

Setting the minimum time interval between two dials.

[no] dialer enable-timeout [timeout]

 

parameter:

timeoutThe time interval calculated on second.

 

default:

5 seconds

command mode:

Interface configuration mode

 

example:

Router_config_s1/0#dialer enable-timeout 10

 

dialer fast-idle

Setting fast idle time. When physical port or logic port is linked in some destination IP address, and the packet of new IP destination address is to be sent, trigging dial and causing dial competition, the set circuit shall be disconnected at the fast idle-stipulated time of no data transmit so that the dial up connection can be established between the port and new IP destination address.  

[no] dialer fast-idle [timeout]

 

parameter:

timeoutThe timeout time calculated on second

 

default:

20 seconds

 

command mode:

Interface configuration mode

 

example:

Router_config_s1/0#dialer fast-idle 30

dialer hold-queue

Setting the number of data packet saved from starting dial to circuit protocol startup.

dialer hold-queue [length]

no dialer hold-queue

 

parameter:

lengthHolding queue length (number of data packet), the scope of value is 0 to 100.

 

default:

10

 

command mode:

Interface configuration mode

 

example:

Restoring the held queue length to the default value.

router_s1/0#no dialer hold-queue

 

dialer idle-timeout

After s port call is set up, the command “dialer idle-timeout” is used for setting idle time of port. The command “no dialer idle-timeout” is used for restoring default time interval.

dialer idle-timeout seconds

no dialer idle-timeout

parameter:

Seconds is idle time, the unit is second, the scope of value is 0~2147483.

default:

Default idle time is 120 seconds

command mode:

Interface configuration mode

Explanation:

When a linkage is created, idle-time timing works. If no effective data packet is sent from the linkage within the set time, DDR will disconnect the linkage. If idle-timeout is set as 0, the linkage will never be disconnected after the corresponding linkage is established (even if no effective data is sent from the linkage).

example

Router_config_s1/0 #dialer idle-timeout 50

relevant command:

dialer fast-idledialer-group

 

dialer load-threshold

Set the threshold value of traffic in dialer rotary group.

dialer load-threshold enable-threshold disable-threshold

no dialer load-threshold

parameter:

enable-threshold and disable-threshold are used for starting the threshold value of a dial port and disconnecting the threshold value of multiple ports separately. The unit is the ratio between the total of real speed of all the physical ports under connection and the total of bandwidth occupying physical port under connection, the scope of value is 0~100. When the value is 0, the threshold value is identified as unworkable.

default:

Default value is 0.

command mode:

Interface configuration status of Dialer interface and ISDN interface

Explanation:

DDR exercise real-time monitoring of the flow on the port. When the flow far exceeds the stipulated threshold value and the dial group has the usable port, a port will started to increase the bandwidth of dial group. When the flow is very small and lower than the stipulated threshold value, the unwanted ports will be disconnected automatically. If physical port is configured with priority level, the dial will be made on priority level or the unwanted ports will be disconnected. The port with top priority level will be chosen at the time of activating and the port with the least priority level will be chosen at the time of deactivating.

example

Router_config_d1 #dialer load-threshold 50 10

relevant command:

dialer prioritydialer rotary-group

 

dialer map

The configuration command dialer map is used for configuring a DDR port to call one or multiple destination address or receiving the call of multiple opposite terminals. The no format of the command can be used for deleting a dialer map.

dialer map next-hop-address [ name hostname ] dial-string [ modem-script modem-script-name] [ system-script system-script-name]

no dialer map next-hop-address [ broadcast ] dial-string [ modem-script script-name] [ system-script script-name]

parameter:

next-hop-address 

Address of opposite network

Name

(optional) Username of opposite terminal, it is used for receiving the verification at the time of call.

broadcast 

(optional) Broadcast packet can be transmitted through the linkage

 

default:

System default does not define dialer map

command mode:

Interface configuration mode

Explanation:

The command dialer map and dialer-string are used for calling.

example

Router_config_s1/0#dialer map 130.130.1.1 name xyz 12345678

relevant command:

dialer string

 

dialer priority

Setting priority level of physical port in dialer rotary group

dialer priority number

no dialer priority

parameter:

number Value of priority level

default:

0

command mode:

Interface configuration mode

Explanation:

The sequence pf using interface is based on the priority level of each interface.

example

Router_config_s1/0#dialer priority 200

relevant command:

dialer rotary-group

dialer rotary-group

Designating which dialer interface the local port belong to. If dialer interface is not configured, the system will generate a dialer interface automatically.

parameter:

Serial number of dialer interface

default:

none

command mode:

Interface configuration mode

Explanation:

On a physical port, the port can belong to Dialer Interface at the most.

example

Router_config_s1/0#dialer rotary-group 1

relevant command:

interface dialer

dialer string

The command sets the dial-string of opposite terminal. The no format of the command can be used for deleting the dial string.

dialer string dial-string [ modem-script modem-script-name] [ system-script system-script-name]

no dialer string

parameter:

dial-string                             Dial-string of opposite terminal

modem-script             (Optional) Script of modem dialing

system-script     (Optional) The script used for logging in the system of opposite terminal after accessing the opposite terminal by dialing

default:

No default dial string

command mode:

Interface configuration mode

Explanation:

The command is used when the port only calls a destination address or default address.

The command is effective when it meets one of the conditions below:

(1) Dialer map is not configured to the port.

(2) The destination address to be sent is not in the configuration of “dialer map”.

example

Router_config_s1/0#dialer string 11111

relevant command:

dialer mapdialer-group

 

dialer wait-for-carrier-time

Set the maximum waiting time from starting dial to enabling CD signal.

dialer wait-for-carrier-time [time]

no dialer wait-for-carrier-time

 

parameter:

timeThe waiting time calculated on second

default:

30

command mode:

Interface configuration mode

example:

router_s1/0#dialer wait-for-carrier-time 60

 

dialer-group

dialer-group number 

This command configures the associated dialer group.It is required to be used with the “dialer-list” command.

Use the   “no” format of this command can cancel the configuration.

dialer-group group-number  

no dialer-group

command mode:

Interface configuration mode

parameter:

group-number: the dialer group of the interface belongs to,  and the dialer group can be defined by the command “dialer-list”.

explanation:

 This command set port belongs to specified dialer group. According to dialer groups access policy, it can determine if the data from the port can trigger the dialer or update the line Idle counter. If the packet not matching dialer group policy, it will not trigger the dialer actively when the port has no connection established. If those ports with connection established, it will send this packet without updating Idle counter, which means the line doesnt transfer valid data, and the port will be disconnected if Idle timer timeout.

example:

The following configuration means that s1/0 will trigger the dialer or update the idle timer only if the target IP is 2.0.0.2.

ip access-list standard 2

permit 2.0.0.2 255.255.255.255

dialer-list 1 protocol ip list 2  

interface s1/0

ip addr 2.0.0.1 255.0.0.0

line dial

dialer string 12345

dialer-group 1

 

dialer-list

dialer-list dialer-group protocol 

This command configures dialer group.It is similar to “Ip access list”,it can configure the access control list with one dialer group.

Use the   “no” format of this command can cancel the configuration.

dialer-list dialer-group protocol protocol-name {permit | deny | list access-list-number | access-group}

no dialer-list dialer-group [protocol protocol-name [list access-list-number | access-group]]

   

command mode:

global configuration mode

example:

The following configuration means that dialer group 1 is merely the packet matching policy whose target IP is 2.0.0.2.

ip access-list standard 2

permit 2.0.0.2 255.255.255.255

dialer-list 1 protocol ip list 2

 

dsr-ignore

Setting router whether to care about DSR signal of Modem.

dsr-ignore

no dsr-ignore

parameter:

none

default:

Router needs to care about DSR signal of Modem

command mode:

Interface configuration mode

explanation:

Some modems do not provide DSR signal. If the command is not configured, router will think that exterior modem does not work normally and the normal dial will not be made. Therefore the command can be configured for instructing the router not to care about DSR signal of Modem.example::

Router_config_a0/0#dsr-ignore

relevant command:

none

 

exec-script

Executing the designated Modem script on the interface.

exec-script WORD Serial/Async

parameter:

word  Name of WORD script

Serial/Async   The name of the port where the script is executed.

command mode:

Interface configuration mode

explanation:

The command offers the method for the immediate execution of Modem script. When a script is executed on the corresponding interface, the command will not be executed and will report a wrong packet.

example:

router(config-if-Serial0)#exec-script myscript s1/0

relevant command:

chat-script

 

line dial

Setting port as dial port. The port is connected by private line under default state.

parameter:

none

default:

 none

command mode:

Interface configuration mode

explanation:

When the port is connect with Modem, it shall be configured as dial mode

example:

Router_config_s1/0#line dial

 

pusle-time

Setting time interval of  DTR signal disable . The “no” command is used for restoring default value.

pulse-time intervals

no pulse-time

parameter:

intervals time interval (second)

default:

2 seconds

command mode:

Interface configuration mode

explanation:

When serial port circuit is down for some reason, the interface hardware will set the ineffective lasting time of resetDTR signal and DTR signal as the value stipulated by the command.

example:

Router_config_s2/0#pulse-time 3

relevant command:

none

 

script activation

The command “script activation” is used for designating the Modem script executed at the time of successful setup of callout in the circuit. The command “no script activation” is used for canceling this feature.

script activation word

no script activation

parameter:

word name of script 

default:

System default does not have the designation.

command mode:

circuit configuration mode

explanation:

If the configuration is made, the script will be executed when the callout connection is successfully established. The script can be the registration of a remote terminal, for example, When the router is connected with a remote UNIX server, the script can be used for logging in remote server and sending login character string and password to UNIX server.

example:

37DE_config_line#script activation example

relevant command:

chat-script

exec-chat

script connection

script reset

script dialer

script startup

 

script connection

The command is used for setting the script executed after Asynchronous port sets up connection with the remote terminal (CD signal occurs).

[no] script connection script_name

 

parameter:

script_name Script name

 

default:

none

 

command mode:

circuit configuration mode

 

example:

router_conf#line tty 1

router_conf_line#script connection Login_script

The connection script of s1/0 is set as Login_script and it is assumed that s1/0 corresponds to line tty 1 of Asynchronous circuit at this time.

 

script callback

The command is used for setting the modem dial script used at the time of callback of Asynchronous port.

[no] script callback script_name

 

parameter:

script_name Script name

 

default:

Dial script defaulted by the system is used.

 

command mode:

circuit configuration mode

example:

router_conf#line tty 1

router_conf_line#script callback callback_script

The callback script of s1/0 is set as callback_script and it is assumed that s1/0 corresponds to line tty 1 of Asynchronous circuit at this time.

script dialer

script dialer word

The command “script dialer” is used for configuring default Modem script used at the time of DDR dial. The command “no script dialer” is used for canceling the feature.

parameter:

word Script name  

default:

The system default does not have the designation.  

command mode:

circuit configuration mode

explanation:

If dialer script is configured, the designated dialer script will be executed at the time of dial.  

relevant command:

exec-script

chat-script

script activation

script connection

script reset 

 

script reset

The command is used for setting the initialization script of Asynchronous port.

[no] script reset script_name

 

parameter:

script_name Script name

 

default:

The initialization script defaulted by the system is used.

 

command mode:

circuit configuration mode

 

example:

router_conf#line tty 1

router_conf_line#script reset RESET_SCRIPT

The connection script of s1/0 is set as RESET_SCRIPT and it is assumed that s1/0 corresponds to line tty 1 of Asynchronous circuit at this time.

 

script startup

The command is used for setting the script executed to the dial port when the system is restarted through power turn-on.

[no] script reset script_name

 

parameter:

script_name Name of script

 

default:

The initialization script defaulted by the system is used.

command mode:

circuit configuration mode

 

example:

router_conf#line tty 1

router_conf_line#script reset RESET_SCRIPT

The initialization script of s1/0 is set as RESET_SCRIPT and it is assumed that s1/0 corresponds to line tty 1 of Asynchronous circuit at this time.

 

clear dialer interface

The command is used for clearing the statistic information of designated dial port (such as the number of successful dial-up and failure, etc)  

clear dialer interface [Port]

 

parameter:

Port is the name of dial port

 

command mode:

supervisor mode 

 

clear dialer sessions

The command is used for disconnecting designated dial port.

clear dialer sessions [Port]

 

parameter:

Port is the name of dial port

 

command mode:

supervisor mode

 

show dialer sessions

The command is used for showing all the active dial port.

show dialer sessions

 

parameter:

none

 

command mode:

None user mode

 

show dialer interface

The command is used for showing the status of the designated dial port.

show dialer interface [Port]

 

parameter:

Port is the name of dial port

 

command mode:

None user mode

 

example:

router#show dialer interface s1/0

Serial1/0 - dialer type = ASYNC

Idle timer (120 secs), Fast idle timer (20 secs)

Wait for carrier (30 secs), Re-enable (5 secs)

Dial String    Successes   Failures    Last called   Last status

*                  0           0         never

Dialer state is Line down

show dialer maps

The command is used for showing the static map configuration of all the dial ports.

show dialer maps

 

parameter:

none

 

command mode:

None user mode

 

example:

router#sh dialer map

Static dialer map ip 1.0.0.2 (02156784321) on Serial1/0

Static dialer map ip 1.0.0.4 (01022345665) on Dialer0

The value in the bracket is the dial number.

 

show script

Showing the various scripts of current router configuration

show script

 

parameter:

none

 

command mode:

None user mode

 

example:

router#sh script

37DE_config_line#show script

Chat scripts predefined:

DEFAULT_RESET_SCRIPT:

ABORT ERROR "" AT OK ATE0S0=1 OK AT&C1&D2&S0 OK

DEFAULT_DIALER_SCRIPT:

ABORT ERROR ABORT "NO DIAL TONE" ABORT BUSY ABORT "NO CARRIER" TIMEOUT 45 "" AT OK "ATDT \T" CONNECT \c

Chat scripts user defined:

init:

ABORT ERROR ABORT "NO TONE" "" ATZ OK ATL1M1&C1&D2&S0S0=1 OK

 These in “Chat scripts predefined” are the reset and dial script of default configuration of router, those described after “Chat scripts user defined:” are user-defined scripts.

 

debug chat

Tracing script activities, such as starting a script and stopping the execution of script; Tracing the execution process of script. The command “no debug is used to stop showing information.

 

debug chat

no debug chat

parameter:

none

command mode:

supervisor mode

example:

Router#debug chat

Router#SCRIPT: start script default_dialer_script...

SCRIPT:Sending string: ATZ

SCRIPT:Expecting string: OK

SCRIPT: Receive string:

41 54 0D 0D 0A 4F 4B 0D 0A AT...OK..

SCRIPT:Completed match for expect:OK

SCRIPT:Sending string: ATDT 2

SCRIPT:Expecting string: CONNECT

SCRIPT: Receive string:

43 4F 4E 4E 45 43 54 CONNECT

SCRIPT: Completed match for expect:CONNECT

SCRIPT:Chat script finished

The first piece of information indicates the starting of the script named “default_dialer_script

The second information indicates the sending of ATZ character

The third piece of information indicates the expecting of character string OK.

The fourth piece of information indicates the expecting of character string OK.

The fifth piece of information indicates the demanding modem dial for sending ATDT 2 character string.

The sixth piece of information indicates the expecting of character string CONNECT

The seventh piece of information indicates the expecting of character string CONNECT

The eighth piece of information indicates the success of script execution.

relevant command:

chat-script

 

debug dialer

Tracing the dial process and dial activities, such as initializing modem, DDR startup dial. The command “no debug is used to stop showing information.

debug dialer

no debug dialer

parameter:

none

command mode:

supervisor mode

example:

Router#debug dialer

DIALER Serial 1/0: Dialing cause ip(PERMIT).

DIALER Serial 1/0: Dialing using Modem script: default_dialer_script  & System script: none

DIALER Serial 1/0: Attempting to dial 2

DIALER Serial 1/0: process started

DIALER Serial 1/0: Chat script default_dialer_script (dialer) started.....

DIALER Serial 1/0: Connection established

DIALER Serial 1/0: Modem script finished successfully

The first piece of information indicates that dialer checks whether the packet is allowed to trigger dial and the check result is IP packet can trigger dial.

The second piece of information indicates that modem script used by dial is pre-defined default dial script and system script is not used.

The third piece of information indicates that the dial number used is 2.

The fourth piece of information indicates the startup of dial process.

The fifth piece of information indicates that the dial script is started and modem should be on and dial number at this time.

The sixth and seventh information indicates the successful execution of dial script and the success of this call.