Commands for Automatic Configuration
This section introduces the commands used for automatic configuration. The modem autoconfigure type Command
The modem autoconfigure type
modem-type command is used to instruct the router to automatically configure the modem attached to a port by using the commands in the modemcap database for the modem type specified. The modemcap database is a listing of modem configuration commands that provide basic information enabling the modem to operate with the router. To show this database, use the show modemcap command. The output of this command is shown next. This output provides a list of the modem types that are defined in the database. This list is from a Cisco 2600 series router, and thus it reflects those modem types that are included with that router image:
Router_A# show modemcap default codex_3260 usr_courier usr_sportster hayes_optima global_village viva telebit_t3000 microcom_hdms microcom_server nec_v34 nec_v110 nec_piafs cisco_v110 mica
Each modem type has a related AT command-string sequence stored, which is shown with the show modemcap modem-type command. AT stands for attention and is the prefix for many modem commands. The output of this command, when used for the U.S. Robotics Courier, is as follows:
Router_A# show modemcap usr_courier Modemcap values for usr_courier Factory Defaults (FD): &F Autoanswer (AA): S0=1 Carrier detect (CD): &C1 Drop with DTR (DTR): &D2 Hardware Flowcontrol (HFL): &H1&R2 Lock DTE speed (SPD): &B1 DTE locking speed (DTE): [not set] Best Error Control (BER): &M4 Best Compression (BCP): &K1 No Error Control (NER): &M0 No Compression (NCP): &K0 No Echo (NEC): E0 No Result Codes (NRS): Q1 Software Flowcontrol (SFL): [not set] Caller ID (CID): [not set] On-hook (ONH): H0 Off-hook (OFH): H1 Miscellaneous (MSC): [not set] Template entry (TPL): default Modem entry is built-in.
This output is similar to what would happen if you manually sent the modem the sequence AT&FS0=1&C1&D2&H1&R2&B1. This sequence would instruct a Courier to reset its configuration and then answer in one ring, using hardware flow control with DTR dropping and carrier detect. As denoted, this modem entry is included in the router’s operating system—it is built-in. Please note that the database entry must be complete and exact. As shown in the following output, the router will respond with an error message if the entry is abbreviated:
Router_A#show modemcap usr_cou There is no record of modem usr_cou
In addition, the command modemcap entry modem-profile-name can be used to obtain an abbreviated version of the output, assuming that attributes are not set.
336 times read
|
|
|
Did you enjoy this article?
(total 0 votes)
|