Creating and Using Modem Chat Scripts
Using Chat Scripts
DC-167
Cisco IOS Dial Technologies Configuration Guide
Modem-Specific Chat Script Examples
The following example shows line chat scripts being specified for lines connected to Telebit and US
Robotics modems:
! Some lines have Telebit modems.
line 1 6
script dialer telebit.*
! Some lines have US Robotics modems.
line 7 12
script dialer usr.*
Dialer Mapping Example
The following example shows a modem chat script called dial and a system login chat script called login:
chat-script dial ABORT ERROR "" "AT Z" OK "ATDT \T" TIMEOUT 60 CONNECT \c
chat-script login ABORT invalid TIMEOUT 60 name: myname word: mypassword ">" "slip
default"
interface async 10
dialer in-band
dialer map ip 10.55.0.1 modem-script dial system-script login 96837890
Figure 30 illustrates the configuration.
Figure 30 Chat Script Configuration and Function
•
The configuration is on Router A.
• The modem chat script dial is used to dial out to the modem at Router B.
• The system login chat script login is used to log in to Router B.
• The phone number is the number of the modem attached to Router B.
• The IP address in the dialer map command is the address of Router B.
In the sample script shown, the dialer in-band command enables DDR on asynchronous interface 10,
and the dialer map command dials 96837890 after finding the specified dialing and the system login
scripts. When a packet is received for 10.55.0.1, the first thing to happen is that the modem script is
implemented. Table 17 lists the functions that are implemented with each expect-send pair in the modem
script called dial.
Router B
Router A
10.55.0.1
96837890
S2313
Comments to this Manuals