|
This chapter describes how to configure the Cisco IOS software for line, terminal, and modem connections. Cisco devices have four types of lines: console, auxiliary, asynchronous, and virtual terminal lines. Different routers have different numbers of these line types. Refer to the hardware user guide shipped with your device for exact configurations.
For a complete description of the commands mentioned in this chapter, refer to the "Terminal Line and Modem Support Commands" chapter in the Access Services Command Reference.
For more information about making connections to network hosts through your router, refer to the "Making Connections to Network Devices" chapter later in this publication.
This section describes the different line types available on Cisco routers. It also describes the relationship between lines and interfaces.
Table 1 shows the types of lines that can be configured on Cisco routers.
Line Type | Port | Description | Numbering Rules |
---|---|---|---|
CON or CTY | Console | Typically used to log in to the router for configuration purposes. | Line 0 |
AUX | Auxiliary | RS-232 DTE port used as a backup asynchronous port (TTY). Cannot be used as a second console port. | Last TTY line number plus 1 |
TTY | Asynchronous | Same as asynchronous interface. Available on access server models only (Cisco 2509, 10, 11, 12, AS5100, and Cisco 1001). Used typically for remote-node dial-in sessions that use such protocols as SLIP, PPP, and XRemote. | Line 1 through 8 (Cisco 2509, Cisco 2510) or 1 through 16. |
VTY | Virtual terminal | Used for incoming Telnet, LAT, X.25 PAD, and protocol translation connections into synchronous ports (such as Ethernet and serial interfaces) on the router. | Last TTY line number plus 2 through the maximum number of VTY lines specified.1 |
This section describes the relationship between lines and interfaces on Cisco routers. The following sections describe the functions:
Asynchronous interfaces correspond to physical terminal (TTY) lines. Commands entered in asynchronous interface mode enable you to configure protocol-specific parameters for asynchronous interfaces; commands entered in line configuration mode permit you to configure the physical aspects of the line's port.
For example, to enable IP resources to dial in to a network, configure the lines and asynchronous interfaces as follows:
Step 1 On lines, you configure the physical aspect of a port. You might enter the following commands to configure lines 1 through 16, all asynchronous TTY lines on a Cisco 2511 access server:
Step 2 On asynchronous interface 1, you configure your protocol-specific commands. You might enter the following commands:
The remote node services SLIP, PPP, and XRemote are configured in asynchronous interface mode. AppleTalk Remote Access (ARA) is configured in line configuration mode on virtual terminal (VTY) lines or TTY lines.
For more information about configuring interfaces, refer to the "Configuring Interfaces" chapter in the Configuration Fundamentals Configuration Guide.
Only Cisco access server products have multiple asynchronous interfaces.
Virtual terminal (VTY) lines provide access to the router through a synchronous interface. VTY lines do not correspond to synchronous interfaces in the same way that TTY lines correspond to asynchronous interfaces. This is because VTY lines are created dynamically on the router, whereas TTY lines are static physical ports. When a user connects to the router on a VTY line, that user is connecting into a virtual port on an interface. You can have multiple virtual ports for each synchronous interfaces.
For example, several Telnet connections can be made to an interface (such as an Ethernet or serial interface).
The number of VTY lines available on a router are defined using the line vty number-of-lines global configuration command.
For more information about the relationship between asynchronous interfaces and the AUX port, refer to the "Configuring Interfaces" chapter in the Configuration Fundamentals Configuration Guide.
Use the show line command, to see the status of each of the lines available on a router (see Figure 8).
When you enter line configuration mode, as described in the "Enter and Exit Line Configuration Mode" section later in this chapter, you can specify an absolute line number or a relative line number. For example, in Figure 8, absolute line 20 is VTY2 (line 18 is VTY0). Referring to lines in a relative format is often easier than attempting to recall the absolute number of a line on a large system. Internally, the router uses absolute line numbers.
You can view all of the absolute and relative line numbers with the show users all EXEC command. In the following sample display, absolute line numbers are listed at the far left under the heading "Line." Relative line numbers are in the third column, after the line type. In this example, the second virtual terminal line, vty 1, is absolute line number 3.
Line User Host(s) Idle Location 0 con 0 1 aux 0 2 vty 0 incoming 0 SERVER.COMPANY.COM 3 vty 1 4 vty 2 5 vty 3 6 vty 4
Compare the line numbers in this sample display to the output from the show line command, as shown in Figure 8.
This section contains information to help you to configure most popular modems to work with asynchronous interfaces on Cisco routers (including the Cisco 2509 through 2512, the Cisco 2520 through 2523, and the Cisco AS5100 and AS5200) or with the console or auxiliary port on Cisco routers that do not have multiple asynchronous interfaces.
When configuring TTY lines for modem support, most customers typically configure a set of core commands. These commands are performed in line configuration mode and set the following parameters:
To configure lines for modem support, perform the following steps, beginning in global configuration mode:
Task | Command |
---|---|
Step 1 Specify the TTY line number. Refer to Table 1 earlier in this chapter for line numbering rules. | line tty line-number |
Step 2 Set the line speed to the highest common speed for the modem and the router port.1 | speed 115200 |
Step 3 Set RTS/CTS flow control on the line. | flowcontrol hardware |
Step 4 Configure the line to drop the connection when CD is lost (cycle DTR to close the connection). 2 | modem inout |
Step 5 Discover the type of modem attached to your router. | modem autoconfigure discovery terminal |
Step 6 Automatically configure the modem. | modem autoconfigure type |
Step 7 Configure a line to automatically start an ARA, PPP, or SLIP session when it detects the appropriate start packet. | autoselect {arap | ppp | slip | during login} |
The previous configuration parameters assume the following:
You can set many other parameters. These are the most common commands necessary for basic modem communications.
Table 2 lists the different modem commands you can substitute in Step 4 of the preceding task table, depending on the task you are performing.
Scenario | Command |
---|---|
Connect the access server directly to a terminal. | No modem needed, so no modem command needed. |
Connect the access server directly to a terminal, but close the session when the terminal is shut down (no reverse TCP allowed). | modem dialin |
Connect the access server directly to a terminal, but close the session when the terminal is shut down (reverse TCP is allowed). | modem inout |
Attach a modem to an access server for incoming calls only. | modem dialin |
Attach a modem to an access server for both incoming and outgoing calls. | modem inout |
Attach a printer device to an access server; connections refused when the printer is off. | modem host |
Access a host device through an access server; DTR is established while the connection is established. Drop the connection when the user logs out. | modem host |
Automatically dial a modem to a remote site. | modem host |
The Cisco IOS software can issue initialization strings automatically for most types of modems. A modem initialization string is a series of parameter settings that are sent to your modem to configure it to interact with the access server in a specified way. The Cisco IOS software defines seven initialization strings that have been found to properly initialize most modems so that the modems function properly with Cisco access servers. These initialization scripts have the following names:
If you do not know which of these modem strings is appropriate for your modems, refer to the "Discover the Modem Automatically" section.
If you know that your modem can be configured using an initialization string from one of these scripts, refer to the "Initialize the Modem Automatically" section.
You can also manually create modem scripts (called chat scripts). For more information, refer to the "Configure Chat Scripts for Asynchronous Lines" section later in this chapter.
The Cisco IOS software contains a database of modem capabilities for most modems. You can configure a router to automatically attempt to discover what kind of modem is connected to the line and then to configure that modem. To automatically discover which of the supported modem strings properly initializes your modem and then initialize the modem, perform the following task in line configuration mode:
Task | Command |
---|---|
Discover the type of modem attached to your router. | modem autoconfigure discovery terminal |
The Cisco IOS software first tries the first of the supported modem strings listed earlier in this section to see if the modem initializes properly. If not, the Cisco IOS software cycles to the next string and repeats the process until the appropriate string is found. If none of the strings properly initializes the modem, you must manually initialize the modem, as described in the "Manually Configure Modems" section later in this chapter.
After you discover which modem string properly initializes your modems, you can initialize the modems automatically. To initialize one or more attached modems, perform the following task in line configuration mode:
Task | Command |
---|---|
Automatically initialize the modem. | modem autoconfigure type modem-string |
To display the list of modems for which the router has entries, perform the following task in EXEC mode:
Task | Command |
---|---|
Display the list of modems for which the router has entries. | show modemcap modem-name |
You can change a modem value that was returned from the show modemcap command. For example, you might want to add the factory default, &F, entry to the configuration file. To change the values in a modem setting, perform the following task in line configuration mode:
Task | Command |
---|---|
Change a modem value that was returned from the show modemcap command. | modemcap edit attribute value |
Configure one attribute of one modem at a time. See the modem-capability values defined by the show modemcap command.
You must ensure that a modem always communicates with the router at a set speed, regardless of the speed of any incoming modem connection. To do so, issue commands to the modem starting with "AT" to specify the speed at which you want the modem to communicate with the router.
Using AT modem commands also requires that you set the modem to lock on the data terminal equipment (DTE) speed. The following sections describe how to accomplish this task. Specifically, this section describes bit-rate maximum speeds for Cisco devices, then describes the following tasks:
For information about modem settings to be used in strings, refer to the appendix "Configuring Modem Support and Chat Scripts" in the Access Services Command Reference.
Bit-rate information for Cisco access servers and routers is as follows:
If flow control is not available on your modem, use 9600 baud as the maximum speed.
If possible, configure your modems by establishing a reverse connection. To make a reverse connection, issue this Telnet command from anywhere on the network that can ping x.x.x.x:
telnet x.x.x.x 20yy
where x.x.x.x is any active, connected, and up interface on the router, and yy is the decimal line number to which you want to connect.
If you receive a connection refused message, refer to the "Modem Troubleshooting Tips" section in the "Configuring Modem Support and Chat Scripts" appendix in the Access Services Command Reference for a likely cause and resolution.
Establish a connection to the modem and specify a modem string by performing the following steps:
Step 1 Connect to the modem using the same speed at which the Cisco router port will be set, as described previously in the "Configure a Reverse Connection" section. This ensures that you are at the same line speed as the Cisco router.
Step 2 Issue an AT command configured with the appropriate information for your modem. (See the "Configuring Modem Support and Chat Scripts" appendix in the Access Services Command Reference.)
Start with commands listed as required for all modems and then add the EC/Compression pair (either "BEST," or "NO") that best suits your need. For applications that are primarily file transfer, the "BEST" pair is recommended. For connections that are primarily ARA, Xremote, or interactive packet-protocol (SLIP/PPP) traffic, the "NO" pair is recommended. This is the minimum configuration required to connect the modem.
Step 3 If you have an AUX port (or no modem control), add commands listed under the column Settings for Use with AUX Port in the table "AUX and Platform Specific Settings" in the appendix "Configuring Modem Support and Chat Scripts" in the Access Services Command Reference. Remember to limit the line speed to 9600 bps if you have no flow control.
Step 4 End the string with the &W string.
A Microcom modem with best error correction and compression is configured as follows:
AT&FS0=1&C1&D3\Q3\J0\N6%C1\Q2&W
After having configured your modem to function with the router, refer to the section "Prepare to Configure Lines" later in this chapter, then the "Automatically Configure Modems" chapter earlier in this chapter.
The following sections describe line configuration tasks. One of the first things you need to do for line configuration is to set up the lines for the terminals or other asynchronous devices attached to them. The parameters for each line are configured next. However, the tasks you perform and the order in which you perform them are determined entirely by the requirements of your network environment.
See the end of this chapter for configuration examples. See the Cisco IOS command references for information about the commands listed in this chapter.
You set terminal-specific parameters in line configuration mode. Line configuration commands can configure physical terminal (TTY) lines, virtual terminal (VTY) lines, the auxiliary (AUX) port, or the console (CON) port. This section describes how to enter line configuration mode so that you can configure these line types. Specifically, this section describes the following tasks:
To enter line configuration mode, perform the following steps:
Task | Command |
---|---|
Step 1 At the privileged EXEC prompt, enter configuration mode from the terminal. | configure1[terminal] |
Step 2 From global configuration mode, begin to configure a line by entering line configuration mode. | line [aux | console | tty | vty] line-number [ending-line-number] |
Step 3 Enter commands listed in this chapter to configure the line. | Use the commands listed in this chapter. |
Step 4 Exit line configuration mode and return to EXEC mode. | exit |
Step 5 Save the configuration changes to nonvolatile random access memory (NVRAM). | copy running-config startup-config1 |
Once a line is configured, you can check its status by entering the show users all EXEC command. To view configuration parameters before saving them to your startup configuration, enter the show running config EXEC command. To view configuration parameters after you saved them, enter the show startup-config EXEC command.
To leave line configuration mode, enter exit. You can also enter another configuration mode by issuing the mode-specific command (such as interface type number).
The AUX port sends a DTR signal only when a Telnet connection is established. To understand the differences between standard asynchronous interfaces and AUX ports configured as an asynchronous interface, refer to Table 3. To enable the auxiliary port, perform the following task:
Task | Command |
---|---|
Enable the auxiliary serial DTE port. | line aux line-number |
You cannot use the auxiliary (AUX) port as a second console port. To use the AUX port as a console port, you must order a special cable from your technical support personnel.
On an access server, you can configure any of the available asynchronous interfaces (1 through 8, 16, or 48). The auxiliary port (labeled AUX on the back of the product) can also be configured as an asynchronous serial interface, although performance on the AUX port is much slower than on standard asynchronous interfaces and does not support some features. Table 3 illustrates why asynchronous interfaces permit substantially better performance than AUX ports configured as asynchronous interfaces.
Feature | Asynchronous Interface | Auxiliary Port |
---|---|---|
Maximum speed | 115200 kbps | 38400 kbps |
Supported Platforms | Cisco 2509, 2510, 2511, 2512, AS5100, AS5200 | All Cisco routers |
Supports DMA buffering1 | Yes | No |
PPP framing on chip2 | Yes | No |
IP fast switching3 | Yes | No |
On routers without built-in asynchronous interfaces, only the AUX port can be configured as an asynchronous serial interface. To configure the AUX port as an asynchronous interface, you must also configure it as an auxiliary line with the line aux 1 command. Access servers do not have this restriction. Use the line command with the appropriate line configuration commands for modem control, such as speed.
Only IP packets can be sent across lines configured for SLIP. PPP supports transmission of IP, IPX, and AppleTalk packets on an asynchronous serial interface.
The Cisco IOS software permits you to create as many virtual terminal (VTY) lines as you need. To understand what a VTY line is, refer to the section "Cisco Line and Interface Paradigm" earlier in this chapter.
The line vty command accepts any line number larger than 5 up to the maximum number of lines supported by your router with its current configuration. The Cisco IOS software dynamically creates all of the new VTY lines between the current highest-numbered line and the number that you specify with the line vty command. You can then configure those lines with additional line configuration commands.
See the "Creating Additional Virtual Terminal Lines Example" section at the end of this chapter for an example of how to add virtual terminal lines.
To delete VTY lines, perform the following steps:
Task | Command |
---|---|
Step 1 At the privileged EXEC prompt, enter configuration mode from the terminal. | configure1 terminal |
Step 2 From global configuration mode, delete VTY lines. | no line vty line-number |
The Cisco IOS software deletes all VTY lines greater than the line-number variable that you specified.
You cannot delete VTY lines that are in use; attempting to do so results in a warning message. VTY lines should be deleted on an idle system only. See the "Eliminating Virtual Terminal Lines Example" section at the end of this chapter for an example of how to eliminate VTY lines.
To configure the Cisco IOS software to allow an AppleTalk Remote Access (ARA), Point-to-Point Protocol (PPP), or Serial Line Internet Protocol (SLIP) session to start automatically, perform the following task in line configuration mode:
Task | Command |
---|---|
Configure a line to automatically start an ARA, PPP, or SLIP session. | autoselect {arap | ppp | slip | during login} |
The autoselect command enables the Cisco IOS software to start a process automatically when a start character is received. The Cisco IOS software detects either a Return character (which is the start character for an EXEC session, or the start character for the ARA protocol).
The autoselect command bypasses the login prompt and enables the specified session to begin automatically. However, by entering the autoselect command with the during login keyword, the username or password prompt appears without pressing the Return key. While the username or password prompt is displayed, you can choose either to answer these prompts or to send packets from an autoselected protocol. For a line configuration example, see the "Basic Line Configuration Example" section at the end of this chapter.
By default, the Cisco IOS software starts an EXEC process on all lines. However, you can control EXEC processes, as follows:
Task | Command |
---|---|
Turn on EXEC processes. | exec |
Set the idle terminal timeout interval. | exec-timeout minutes [seconds] |
Dial-up modems that operate over normal dial-up telephone lines at speeds of 28800 bits per second and higher are now available. These modems do not operate at a guaranteed throughput; instead, they operate at a speed determined by the quality of the line, the effectiveness of data compression algorithms of the transmitted data, and other variables.
These modems use hardware flow control to stop the data from reaching the host by toggling an RS-232 signal when the modems cannot accept any more data. For information about setting up the RS-232 line for hardware flow control, see the hardware installation and maintenance manual for your product.
In addition to hardware flow control, dial-up modems require special software handling. For example, they must be configured to create an EXEC session when a user dials in and to hang up when the user exits the EXEC. These modems also must be configured to close any existing network connections if the telephone line hangs up in the middle of a session.
You can set both hardware and software flow control between the router and devices attached to it. Both types of flow control are bidirectional. When you specify the software flow control option, an additional keyword specifies the direction: in causes the router to listen to flow control from the attached device, and out causes the router to send flow control information to the attached device. If you do not specify a direction, the router enables software flow control in both directions.
For software flow control, the default stop and start characters are Ctrl-S and Ctrl-Q (XOFF and XON), respectively. However, you can define other characters or character sequences to signal the start and end of data transmission when software flow control is in effect. This capability is useful for providing control of data over an asynchronous serial line.
To configure flow control between the router and attached device, perform one or more of the following tasks in line configuration mode:
Task | Command |
---|---|
Set the terminal flow control. | flowcontrol {none | software [in | out] | hardware [in | out]}1 |
(Optional.) In EXEC mode, display informational messages about modem control events (such as signal transitions and autobaud progress) on the console terminal. | debug modem2 |
(Optional.) In EXEC mode, display the status of a line. In the detailed command output, a status line with "Idle" identifies inactive modem dialin lines and all other modem lines; a status line with "Ready" identifies lines in use. | show line3 |
Set the flow control start character. | start-character ascii-number4 |
Set the flow control stop character. | stop-character ascii-number1 |
Cisco routers use six EIA/TIA-232 signals for each port, so one 50-pin Telco, RJ-11, or RJ-45 connector can support eight sessions. The router can support the most popular forms of modem control and hardware flow control, as well as high-speed dial-up modems.
The EIA/TIA-232 output signals are Transmit Data (TXDATA), Data Terminal Ready (DTR), and Ready To Send (RTS, 2500 only). The input signals are Receive Data (RXDATA), Clear to Send (CTS), and RING. The sixth signal is ground. Depending on the type of modem control your modem uses, these names may or may not correspond to the standard EIA/TIA-232 signals.
Dial-up modems that operate over normal dial-up telephone lines at speeds of 28800 bits per second (bps) use hardware flow control to stop the data from reaching the host by toggling an EIA/TIA-232 signal when their limit is reached.
In addition to hardware flow control, dial-up modems require special software configuring. For example, they must be configured to create an EXEC session when a user dials in and to hang up when the user exits the EXEC. These modems also must be configured to close any existing network connections if the telephone line hangs up in the middle of a session.
The Cisco IOS software supports hardware flow control on its CTS input signal, which is also used by the normal modem handshake.
The following modem line characteristics and modem features are discussed in the following sections:
Signal and line state diagrams accompany some of the tasks in the following sections to illustrate how the modem control works. The diagrams show two processes:
In the diagrams, the current signal state and the signal the line is watching are listed inside each box. The state of the line (as displayed by the show line EXEC command) is listed next to the box. Events that change that state appear in italics along the event path, and actions that the software performs are described within the ovals.
Figure 9 illustrates line states when no modem control is set. The DTR output is always high, and CTS and RING are completely ignored. The Cisco IOS software starts an EXEC session when the user types the activation character. Incoming TCP connections occur instantly if the line is not in use and can be closed only by the remote host.
With the dial-up capability, you can set a modem to dial the phone number of a remote router automatically. This feature offers cost savings because phone line connections are made only when they are needed--you only pay for using the phone line when there is data to be received or sent. To configure a line for automatic dialing, perform the following task in line configuration mode:
Task | Command |
---|---|
Configure a line to initiate automatic dialing. | modem dtr-active |
Using the modem dtr-active command causes a line to raise DTR signal only when there is an outgoing connection (such as reverse Telnet, NASI, or DDR), rather than leave DTR raised all the time. When raised, DTR potentially tells the modem that the router is ready to accept a call.
You can configure a line to answer a modem automatically. You also can configure the modem to answer the telephone on its own (as long as DTR is high), drop connections when DTR is low, and use its Carrier Detect (CD) signal to accurately reflect the presence of carrier. (Configuring the modem is a modem-dependent process.) Wire the modem's CD signal (generally pin-8) to the router's RING input (pin-22), and perform the following task in line configuration mode:
Task | Command |
---|---|
Configure a line to automatically answer a modem. | modem dialin |
You can turn on the modem's hardware flow control independently to respond to the status of the router's CTS input. Wire CTS to whatever signal the modem uses for hardware flow control. If the modem expects to control hardware flow in both directions, you might also need to wire the modem's flow control input to some other signal that the router always has high (such as the DTR signal).
Figure 10 illustrates the modem dialin process with a high-speed dial-up modem. When the Cisco IOS software detects a signal on the RING input of an idle line, it starts an EXEC or autobaud process on that line. If the RING signal disappears on an active line, the Cisco IOS software closes any open network connections and terminates the EXEC facility. If the user exits the EXEC or the software terminates because of no user input, the line makes the modem hang up by lowering the DTR signal for 5 seconds. After 5 seconds, the modem is ready to accept another call.
You can configure a line for both incoming and outgoing calls by performing the following task in line configuration mode:
Task | Command |
---|---|
Configure a line for both incoming and outgoing calls. | modem inout |
Figure 11 illustrates the modem inout command. If the line is activated by raising the data set ready (DSR) signal, it functions exactly as a line configured with the modem dialin line configuration command described in the "Automatically Answer a Modem" section earlier in this chapter. If the line is activated by an incoming TCP connection, the line functions similarly to lines not used with modems.
You can change the interval that the Cisco IOS software waits for the CTS signal after raising the DTR signal in response to the DSR (the default is 15 seconds). To do so, perform the following task in line configuration mode. The timeout applies to the modem callin command only.
Task | Command |
---|---|
Configure modem line timing. | modem answer-timeout seconds |
You can configure a line to close connections from a user's terminal when the terminal is turned off and prevent inbound connections to devices that are out of service. To do so, perform the following task in line configuration mode:
Task | Command |
---|---|
Configure a line to close connections. | modem cts-required |
Figure 12 illustrates the modem cts-required command operating in the context of a continuous CTS signal. This form of modem control requires that the CTS signal be high for the entire session. If CTS is not high, the user's input is ignored and incoming connections are refused (or sent to the next line in a rotary group).
You can configure automatic line disconnect by performing the following task in line configuration mode:
Task | Command |
---|---|
Configure automatic line disconnect. | autohangup |
The autohangup command causes the EXEC facility to issue the exit command when the last connection closes. This feature is useful for UNIX-to-UNIX copy program (UUCP) applications, because UUCP scripts cannot issue a command to hang up the telephone. This feature is not often used at this point.
The Cisco IOS software supports dial-in modems that use DTR to control the off-hook status of the telephone line. This feature is supported primarily on old-style modems, especially those in Europe. To configure the line to support this feature, perform the following task in line configuration mode:
Task | Command |
---|---|
Configure a line for a dial-in modem. | modem callin |
Figure 13 illustrates the modem callin command. When a modem dialing line is idle, it has its DTR signal at a low state and waits for a transition to occur on the DSR (RING) input. This transition causes the line to raise the DTR signal and start watching the CTS signal from the modem. After the modem raises CTS, the Cisco IOS software creates an EXEC session on the line. If the timeout interval (set with the modem answer-timeout command) passes before the modem raises the CTS signal, the line lowers the DTR signal and returns to the idle state.
Although you can use the modem callin line configuration command with newer modems, the modem dialin line configuration command described in this section is more appropriate. The modem dialin command frees up CTS input for hardware flow control. Modern modems do not require the assertion of DTR to answer a phone line (that is, to take the line off-hook).
In addition to initiating connections, the Cisco IOS software can receive incoming connections. This capability allows you to attach serial and parallel printers, modems, and other shared peripherals to the router and drive them remotely from other modem-connected systems. The Cisco IOS software supports reverse TCP, XRemote, and LAT connections.
The specific TCP port, or socket, to which you attach the device determines the type of service that the Cisco IOS software provides on a line. When you attach the serial lines of a computer system or a data terminal switch to the serial lines of the router, the router can act as a network front-end device for a host that does not support the TCP/IP protocols. This arrangement is sometimes called front-ending, or reverse connection mode.
The Cisco IOS software supports ports connected to computers that are connected to modems. You can configure the Cisco IOS software to function somewhat like a modem by performing the following task in line configuration mode. This command also prevents incoming calls.
Task | Command |
---|---|
Configure a line for reverse connections and prevent incoming calls. | modem callout |
Figure 14 illustrates the modem callout process. When the Cisco IOS software receives an incoming connection, it raises the DTR signal and waits to see if the CTS signal is raised to indicate that the host has noticed the router's DTR signal. If the host does not respond within the interval set by the modem answer-timeout line configuration command, the software lowers the DTR signal and drops the connection.
In line configuration mode, you can set terminal operation characteristics that will be in operation for that line until the next time you change the line parameters. Alternatively, you can change the line settings temporarily with the terminal EXEC commands described in the "Configuring Connections to Network Devices" chapter.
The most commonly used terminal operation characteristics are described in the following sections:
The following sections describe less commonly used terminal operating characteristics:
Use the transport preferred command to specify which transport protocol used on connections. Use the transport input and transport output commands to explicitly specify the protocols allowed on individual lines for both incoming and outgoing connections.
Caution Cisco routers do not accept incoming network connections to asynchronous ports (TTY lines) by default. You have to specify an incoming transport protocol, or specify transport input all before the line will accept incoming connections. For example, if you are using your router as a terminal server to make console-port connections to routers or other devices, you will not be able to use Telnet to connect to these devices. You will receive the message "Connection Refused." This behavior is new as of Cisco IOS Software release 11.1. Previous to release 11.1, the default was transport input all. If you are upgrading to Cisco IOS software version 11.1(1) or later from Cisco IOS Software release 11.0 or earlier, you must add the transport input {protocol | all} command, or you will be locked out of your router. |
The process of using Telnet to make a connection out of an asynchronous port is referred to as reverse Telnet. For more information, refer to the section "Configure a Reverse Connection" earlier in this chapter.
For routers that support LAT, the default protocol for outgoing connections is LAT. For those that do not support LAT, the default protocol for outgoing connections is Telnet. For incoming connections, no supported network protocols are accepted (the default protocol is none).
Perform one or more of the following tasks in line configuration mode to specify transport protocols:
Task | Command |
---|---|
Define which protocols can be used to connect to a specific line. | transport input {all | lat | mop | nasi | none | pad | rlogin | telnet | v120} |
Determine the protocols that can be used for outgoing connections from a line. | transport output {all | lat | mop | nasi | none | pad | rlogin | telnet | v120} |
Specify the protocol for the router to use if the user did not specify a protocol. | transport preferred {all | lat | mop | nasi | pad | rlogin | telnet | v120} |
Prevent errant connection attempts. | transport preferred none |
The router accepts a host name entry at the EXEC system prompt as a Telnet command. If you enter the host name incorrectly, the router interprets the entry as an incorrect Telnet command and provides an error message indicating that the host does not exist. The transport preferred none command disables this option so that if you enter a command incorrectly at the EXEC prompt, the router does not attempt to make a Telnet connection to a host that it cannot find.
The preferred transport setting specifies a search order when attempting to resolve names that might be valid for multiple protocols. If the address or service does not match the preferred protocol, all other valid output protocols are searched to find a valid match.
To change the preferred transport protocol for a line during the current session, refer to the "Select a Preferred Connection Protocol for a Session" section in the "Making Connections to Network Devices" chapter of this publication.
To change the default privilege level for a given line or a group of lines, perform the following task in line configuration mode:
Task | Command |
---|---|
Specify a default privilege level for a line. | privilege level level 1 |
You can enable password checking on a particular line so that the user is prompted to enter a password at the system login screen. You must then also specify a password. To do so, perform the following steps in line configuration mode:
Task | Command |
---|---|
Step 1 Enable password checking on a per-line basis using the password specified with the password command. | login |
Step 2 Assign a password to a particular line. | password password |
You can enable password checking on a per-user basis, in which case authentication is based on the username specified with the username global configuration command (see the "Managing the System" chapter in the Security Configuration Guide). To enable password checking on a per-user basis, perform one of the following tasks in line configuration mode:
Task | Command |
---|---|
Enable password checking on a per-user basis using the username and password specified with the username global configuration command. | login local |
Select the TACACS-style user ID and password-checking mechanism. | login tacacs or login authentication {default | list-name} |
Use the login tacacs command with Terminal Access Controller Access Control System (TACACS) and Extended TACACS. Use the login authentication command with AAA/TACACS+.
By default, virtual terminals require passwords. If you do not set a password for a virtual terminal, the router displays an error message and closes the attempted connection. Use the no login command to disable this function and allow connections without a password.
For other access control tasks and password restrictions, including the enable password global configuration command that restricts access to privileged mode, see the Security Configuration Guide. For an example of enabling password checking, see the "Password Checking Examples" section at the end of this chapter.
The Cisco IOS software supplies the following default serial communication parameters for terminal and other serial device operation:
You can change these parameters as necessary to meet the requirements of the terminal or host to which you are connected. To do so, perform one or more of the following tasks in line configuration mode:
Task | Command |
---|---|
Set the line speed. Choose from line speed, transmit speed, or receive speed. | speed bps txspeed bps rxspeed bps |
Set the data bits. | databits {5 | 6 | 7 | 8} |
Set the stop bits. | stopbits {1 | 1.5 | 2} |
Set the parity bit. | parity {none | even | odd | space | mark} |
To change the transport protocols for a line during the current session, refer to the "Set Communication Parameters for the Current Session" section in the "Making Connections to Network Devices" chapter.
You can define or modify the default key sequences to execute functions for system escape, terminal activation, disconnect, and terminal pause. To define or change the default sequence for any of these functions, perform one or more of the following tasks in line configuration mode:
Task | Command |
---|---|
Change the system escape sequence. The escape sequence indicates that the codes that follow have special meaning. The default escape sequence is Ctrl-^.1 | escape-character ascii-number |
Define a session activation sequence or character. Entering this sequence at a vacant terminal begins a terminal session. The default activation sequence is the Return key. | activation-character ascii-number |
Define the session disconnect sequence or character. Entering this sequence at a terminal ends the session with the router. There is no default disconnect sequence. | disconnect-character ascii-number |
Define the hold sequence or character that causes output to the terminal screen to pause. To continue the output, enter any character after the hold character. To use the hold character in normal communications, precede it with the escape character. There is no default sequence. | hold-character ascii-number |
You can reinstate the default value for the escape character or activation character by using the no form of the command. For example, issuing the no escape-character line configuration command returns the escape character to Ctrl-^.
To define escape characters for a line during the current session, refer to the "Define Special Characters for the Current Session" section in the "Making Connections to Network Devices" chapter of this publication.
Data transparency enables the Cisco IOS software to pass data on a terminal connection without the data being interpreted as a control character.
During terminal operations, some characters are reserved for special functions. For example, Ctrl-Shift-6-X (^^x) suspends a session. When transferring files over a terminal connection (using the ZMODEM or Kermit protocols, for example), you must suspend the recognition of these special characters to allow a successful file transfer. This process is called data transparency.
Also, the classic U.S. ASCII character set is limited to 7 bits (128 characters) which adequately represents most displays in the U.S. Most defaults on the modem router work best on a 7-bit path. However, international character sets and special symbol display can require an 8-bit wide path and other handling. The "Specify the International Character Display" section later in this chapter describes how to reconfigure your router for international terminals.
You can set a line to act as a transparent pipe so that programs such as Kermit, XMODEM, or CrossTalk can download a file across a terminal line. To temporarily configure a line to act as a pipe for file transfers, perform the following task in EXEC mode:
Task | Command |
---|---|
Set up the terminal line to act as a transparent pipe for file transfers. | terminal download |
The terminal download command is equivalent to entering all the following commands, which are documented in the "Connection Commands" chapter of the Access Services Command Reference publication.
You can use a 7-bit character set (such as ASCII), or you can enable a full 8-bit international character set (such as ISO 8859). This allows special graphical and international characters for use in banners and prompts, and adds special characters such as software flow control. Character settings can be configured globally, by interface, and locally at the user level. Use the following criteria for determining which configuration mode to use when you set this international character display:
To specify a character set for all lines, perform one or both of the following tasks in global configuration mode:
Task | Command |
---|---|
Specify the character set used in EXEC and configuration command characters. | default-value exec-character-bits {7 | 8} |
Specify the character set used in special characters such as software flow control, hold, escape, and disconnect characters. | default-value special-character-bits {7 | 8} |
To specify a character set based on hardware, software, or on a per-line basis, perform the appropriate task in line configuration mode, as follows:
Task | Command |
---|---|
Set the number of data bits per character that are generated and interpreted by hardware. | databits {5 | 6 | 7 | 8} |
Set the number of data bits per character that are generated and interpreted by software. | data-character-bits {7 | 8} |
Specify the character set used in EXEC and configuration command characters on a per-line basis. | exec-character-bits {7 | 8} |
Specify the character set used in special characters such as software flow control, hold, escape, and disconnect characters on per-line basis. | special-character-bits {7 | 8} |
To select an international character display for the current session, refer to the "Specify an International Character Display for the Current Session" section in the "Making Connections to Network Devices" chapter.
You might need to control terminal sessions in high-traffic areas to provide resources for all users. You can define the following limitations for terminal sessions:
To establish terminal session limits, perform one of the following tasks in line configuration mode:
Task | Command |
---|---|
Set the maximum number of simultaneous sessions. | session-limit session-number1 |
Set the idle session timeout interval.
or Set the absolute timeout interval. | session-timeout minutes [output]
or absolute-timeout minutes |
Warn users of impending timeouts set with the absolute-timeout command. | logout-warning [seconds] |
To disable enhanced editing mode and revert to the editing mode of previous software releases, perform the following task in line configuration mode:
Task | Command |
---|---|
Disable the enhanced editing features for a particular line. | no editing1 |
For example, you might disable enhanced editing if you have prebuilt scripts that conflict when enhanced editing is enabled. You can re-enable enhanced editing mode with the editing command.
You can record the location of a serial device. The text provided for the location appears in the output of the EXEC monitoring commands. To record the device location, perform the following task in line configuration mode:
Task | Command |
---|---|
Record the location of a serial device. | location text |
If you attempt to connect to a remote device (such as a printer) to the device that is busy, the connection attempt is placed in a terminal port queue. If the retry interval is set too high, and several routers or other devices are connected to the remote device, your connection attempt can have long delays. To change the retry interval for a terminal port queue, perform the following task in global configuration mode:
Task | Command |
---|---|
Change the retry interval for a terminal port queue. | terminal-queue entry-retry-interval interval |
Character padding adds a number of null bytes to the end of the string and can be used to make a string an expected length for conformity. You can change the character padding on a specific output character. To set character padding, perform the following task in line configuration mode:
Task | Command |
---|---|
Set padding on a specific output character for the specified line. | padding ascii-number count |
To set character padding for the current session, refer to the "Change Character Padding for the Current Session" section in the "Making Connections to Network Devices" chapter in this publication.
You can enable a terminal-locking mechanism that allows a terminal to be temporarily locked by performing the following task in line configuration mode:
Task | Command |
---|---|
Enable a temporary terminal locking mechanism. | lockable |
After you configure the line as lockable, you must still issue the lock EXEC command to lock the keyboard.
You can specify the type of terminal connected to a line. This feature has two benefits: it provides a record of the type of terminal attached to a line, and it can be used in Telnet terminal negotiations to inform the remote host of the terminal type for display management. To specify the terminal type, perform the following task in line configuration mode:
Task | Command |
---|---|
Specify the terminal type. | terminal-type {terminal-name | terminal-type} |
This feature is used by TN3270 terminal to identify the keymap and ttycap passed by the Telnet protocol to the end host.
To specify the terminal or keyboard type for the current session, refer to the "Change the Terminal and Keyboard Type" section in the "Making Connections to Network Devices" chapter of this publication.
You can configure a terminal to detect the baud rate being used over an asynchronous serial line automatically. To set up automatic baud detection, perform the following task in line configuration mode:
Task | Command |
---|---|
Set the terminal to automatically detect the baud rate. | autobaud |
To start communications using automatic baud detection, enter multiple Returns at the terminal. A 600-, 1800-, or 19200- baud line requires three Returns to detect the baud rate. A line at any other baud rate requires only two Returns. If you enter extra Returns after the baud rate is detected, the EXEC facility simply displays another system prompt.
By default, the Cisco IOS software provides a screen display of 24 lines by 80 characters. You can change these values if they do not meet the requirements of your terminal. The screen values you set are passed during rsh and rlogin sessions. To set the terminal screen length and width, perform the following tasks in line configuration mode:
Task | Command |
---|---|
Set the screen length. | length screen-length |
Set the screen width. | width characters |
The screen values set can be learned by some host systems that use this type of information in terminal negotiation. To disable pausing between screens of output, set the screen length to a zero.
The screen length specified can be learned by remote hosts. For example, the rlogin protocol uses the screen length to set up terminal parameters on a remote UNIX host. The width specified also can be learned by remote hosts.
To change the terminal screen length or width for the current session, refer to the "Change the Terminal Screen Length and Width" section in the "Making Connections to Network Devices" chapter of this publication.
You can display the host name, line number, and location of the host each time an EXEC session is started or an incoming connection is made. The line number banner appears immediately after the EXEC banner or incoming banner. This feature is useful for tracking problems with modems because it lists the host and line for the modem connection. Modem type information is also included if applicable.
To provide line information, perform the following task in global configuration mode:
Task | Command |
---|---|
Provide service line number information after the EXEC banner or incoming banner. | service linenumber |
You can configure the Cisco IOS software to save local parameters set with terminal EXEC commands between sessions. Saving local settings ensures that the parameters the user sets will remain in effect between terminal sessions. This function is useful for servers in private offices. To save local settings between sessions, perform the following task in line configuration mode:
Task | Command |
---|---|
Save local settings between sessions. | private |
By default, user-set terminal parameters are cleared when the session ends with either the exit EXEC command, or when the interval set with the exec-timeout line configuration command has passed.
You can set up a terminal line to appear as an insecure dial-up line. The information is used by the LAT software, which reports such dial-up connections to remote systems.
To set a line as insecure, perform the following tasks in line configuration mode:
Task | Command |
---|---|
Set the line as a dial-up line. | insecure |
In the previous releases of Cisco IOS software, any line that used modem control was reported as dial-up connection through the LAT protocol; this feature allows more direct control of your line.
You can set up a line to inform a user who has multiple, concurrent Telnet connections when output is pending on a connection other than the active one. For example, you might want to know when another connection receives mail or a message. To set pending output notification, perform the following task in line configuration mode:
Task | Command |
---|---|
Set up a line to notify a user of pending output. | notify |
To change pending output notification for the current session, refer to the "Change Packet Output Notification" section in the "Making Connections to Network Devices" chapter of this publication.
The Cisco IOS software supports dispatch sequences and TCP state machines that transmit data packets only when they receive a defined character or sequence of characters. You can set up dispatch characters that allow packets to be buffered, then transmitted upon receipt of a character. You can set up a state machine that allows packets to be buffered, then transmitted upon receipt of a sequence of characters. This feature enables packet transmission when the user presses a function key, which is typically defined as a sequence of characters, such as "Esc I C."
TCP state machines can control TCP processes with a set of predefined character sequences. The current state of the device determines what happens next, given an expected character sequence. The state-machine commands configure the server to search for and recognize a particular sequence of characters, then cycle through a set of states. The user defines these states--up to eight states can be defined. (Think of each state as a task that the server performs based on the assigned configuration commands and the type of character sequences received.)
The Cisco IOS software supports user-specified state machines for determining whether data from an asynchronous port should be sent to the network. This functionality extends the concept of the dispatch character and allows the equivalent of multicharacter dispatch strings.
Up to eight states can be set up for the state machine. Data packets are buffered until the appropriate character or sequence triggers the transmission. Delay and timer metrics allow for more efficient use of system resources. Characters defined in the TCP state machine take precedence over those defined for a dispatch character.
Perform the following tasks in line configuration mode, as needed, for your particular system needs:
Task | Command |
---|---|
Specify the transition criteria for the states in a TCP state machine. | state-machine name state firstchar lastchar [nextstate | transmit] |
Specify the state machine for TCP packet dispatch. | dispatch-machine name |
Define a character that triggers packet transmission. | dispatch-character ASCII-number [ASCII-number2 . . . ASCII-number] |
Set the dispatch timer. | dispatch-timeout milliseconds |
To change character and packet dispatch sequence for the current session, refer to the "Change the Packet Dispatch Character for the Current Session" section in the "Making Connections to Network Devices" chapter of this publication.
You can set up a command to execute automatically when the router connects to another host. The Cisco IOS can execute any appropriate EXEC command and any switch or host name that occurs with the EXEC command. To define a command, perform the following task in line configuration mode:
Task | Command |
---|---|
Define a command to be automatically executed. | autocommand command |
Connections to an individual line are most useful when a dial-out modem, parallel printer, or serial printer is attached to that line. To connect to an individual line, the remote host or terminal must specify a particular TCP port on the router.
If reverse XRemote is required, that port is 9000 (decimal) plus the decimal value of the line number.
If a raw TCP stream is required, the port is 4000 (decimal) plus the decimal line number. The raw TCP stream is usually the required mode for sending data to a printer.
If Telnet protocols are required, that port is 2000 (decimal) plus the decimal value of the line number. The Telnet protocol might require that Return characters be translated into Return and line-feed character pairs. You can turn off this translation by specifying the Telnet binary mode option. To specify this option, connect to port 6000 (decimal) plus the decimal line number.
line 10 flowcontrol software no exec transport input all
A host that wants to send data to the printer would connect to the router on TCP port 4010, send the data, and then close the connection.
Connections can be made to the next free line in a group of lines, also called a rotary group or hunt group. A line can be in only one rotary group; a rotary group can consist of a single line or several contiguous lines. The console line (line 0) cannot be in a rotary group.
To configure a rotary group, perform the following task in line configuration mode:
Task | Command |
---|---|
Add a line to the specified rotary group. | rotary group |
The Cisco IOS software supports a subset of the Berkeley UNIX Line Printer Daemon (LPD) protocol used to send print jobs between UNIX systems. This subset of the LPD protocol permits:
The Cisco implementation of LPD permits you to configure a printer to allow several types of data to be sent as print jobs (for example, PostScript or raw text).
To configure a printer for the LPD protocol, perform the following task in global configuration mode:
Task | Command |
---|---|
Configure printer and specify a TTY line (or lines) for the device. | printer printername {line number | rotary number} [newline-convert] |
If you use the printer command, you also must modify the /etc/printcap file on the UNIX system to include the definition of the remote printer on the router. Use the optional newline-convert keyword on UNIX systems that do not handle single character line terminators to convert a new line to a character Return, line-feed sequence.
The following example includes the configuration of the printer Saturn on the host Memphis:
commlpt|Printer on cisco AccessServer:\ :rm=memphis:rp+saturn:\ :sd+/usr/spool/lpd/comm1pt:\ :lf=?var/log/lpd/commlpt:
The content of the actual file may differ, depending on the configuration of your UNIX system.
Chat scripts are strings of text used to send commands for modem dialing, logging onto remote systems, and initializing asynchronous devices connected to an asynchronous line. On a router, chat scripts can be configured on the auxiliary port only. A chat script must configured to dial out on asynchronous lines. You also can configure chat scripts so that they are executed automatically for other specific events on a line, or so that they are executed manually. Each chat script is defined for a different event. These events can include the following:
To use a chat script, perform the following steps:
Step 1 Define the chat script in global configuration mode using the chat-script command.
Step 2 Configure the line so that a chat script is activated when a specific event occurs (using the script line configuration command), or start a chat script manually (using the start-chat privileged EXEC command).
To define a chat script, perform the following task in global configuration mode:
Task | Command |
---|---|
Create a script that will place a call on a modem, log on to a remote system, or initialize an asynchronous device on a line. | chat-script script-name expect send... 1 |
A limited list of keywords are supported, along with expect/send pairs. Send strings can have special escape modifiers. For an example of how to write scripts, refer to section "DDR Configuration Examples" in the "Configuring DDR" chapter in the Wide-Area Networking Configuration Guide.
Cisco recommends that one chat script (a "modem" chat script) be written for placing a call and another chat script (a "system" or "login" chat script) be written to log onto remote systems, where required.
Chat scripts are not supported on lines where modem control is set for inbound activity that only uses the modem dialin command.
When you create a script name, include the modem vendor, type, and modulation, separated by hyphens. For example, if you have a Telebit t3000 modem that uses V.32bis modulation, your script name would be telebit-t3000-v32bis.
A suggested naming convention for chat scripts used to dial is as follows:
vendor-type-modulationIn other words, the syntax of the chat-script command becomes the following:
chat-script vendor-type-modulation expect send...For example, if you have a Telebit t3000 modem that uses V.32bis modulation, you would name your chat script as follows:
telebit-t3000-v32bis
The chat-script command could become the following:
Router(config)# chat-script telebit-t3000-v32bis ABORT ERROR ABORT BUSY ABORT
"NO ANSWER" "" "ATH" OK "ATDT\T" TIMEOUT 30 CONNECT
Adhering to this naming convention allows you to specify a range of chat scripts using partial chat script names with regular expressions. This is particularly useful for dialer rotary groups and is explained further in the "Configure an Interface to Receive Calls" section in the "Configuring DDR" chapter in the Wide-Area Networking Configuration Guide.
Chat scripts can be activated by any of five events, each corresponding to a different version of the script line configuration command. To start a chat script manually at any point, refer to the following section, "Start a Chat Script Manually on an Asynchronous Line."
To define a chat script to start automatically when a specific event occurs, perform the following tasks in line configuration mode:
Task | Command |
---|---|
Start a chat script on a line when the line is activated (every time a command EXEC is started on the line). | script activation regexp1 |
Start a chat script on a line when a network connection is made to the line. | script connection regexp |
Specify a modem script for DDR on a line. | script dialer2 regexp |
Start a chat script on a line whenever the line is reset. | script reset regexp |
Start a chat script on a line whenever the system is started up. | script startup regexp |
You can start a chat script manually on any line that is currently not active by performing the following task in privileged EXEC mode:
Task | Command |
---|---|
Start a chat script manually on any asynchronous line. | start-chat regexp [line-number [dialer-string]] |
If you do not specify the line number, the script runs on the current line. If the line specified is already in use, you cannot start the chat script. A message appears indicating that the line is already in use.
You can configure the Cisco IOS software to call back an asynchronous device that dials in and requests a callback from the router, then disconnects. Asynchronous callback is supported for the following protocols:
Callback is also supported on other interface types for PPP, including ISDN.
All callback sessions are returned on physical terminal (TTY) lines. ARA is supported on VTY lines, but also is supported on TTY lines if the vty-arap command is used. PPP, however, is supported on interfaces. Therefore, to enable PPP callback, you must issue the autoselect ppp command on the callback lines.
All current security mechanisms supported in the Cisco IOS software are supported by the callback facility, including the following:
The call originator must have the appropriate permissions set on the router before it can initiate a callback session.
Callback is useful for two purposes:
You can call back clients that dial in to a TTY line and connect to the EXEC prompt. To enable callback, perform the following tasks, starting in global configuration mode:
Task | Command |
---|---|
Step 1 Enable EXEC callback. | service exec-callback |
Step 2 Define a chat script to be applied when clients dial in to the EXEC prompt. | chat-script script-name expect-send1 |
Step 3 Specify a per-username callback dial string. | username2 name [callback-dialstring telephone-number] |
Step 4 Specify a per-username rotary group for callback. | username2 name [callback-rotary rotary-group-number] |
Step 5 Specify a per-username line or set of lines for callback. | username2 name [callback-line [aux | tty] line-number [ending-line-number]] |
Step 6 Do not require authentication on EXEC callback. | username2 name [nocallback-verify] |
Step 7 Enter line configuration mode. | line [tty] line-number [ending-line-number] |
Step 8 Apply a chat script to the line or a set of lines. | script callback regexp |
Step 9 Delay the callback for client modems that require a rest period before receiving a callback. | callback forced-wait number-of-seconds |
The recommended EXEC chat script is as follows:
chat-script name
ABORT ERROR ABORT BUSY "" "ATZ" OK "ATDT \T" TIMEOUT 30 CONNECT \c
For an example of calling back clients connecting to the EXEC facility, see the "Call Back Clients Connecting to the EXEC Prompt Example" section at the end of this chapter.
You can call back ARA clients. Perform the following steps, starting in global configuration mode. These steps assume you have already enabled AppleTalk routing and enabled ARA.
Task | Command |
---|---|
Step 1 Enable callback to an ARA client. | arap callback |
Step 2 Define a chat script to be applied when an ARA client connects to a TTY line and requests callback. | chat-script script-name expect-send1 |
Step 3 Enter line configuration mode. | line [tty] line-number [ending-line-number] |
Step 4 Enable ARA on the line. | arap enable 2 |
Step 5 Configure automatic protocol startup on the line. | autoselect arap 2 |
Step 6 Enable authentication on the line. | login {authentication | local}3 |
Step 7 Apply an ARA-specific chat script to a line or set of lines. | script arap-callback regexp |
Step 8 Delay the callback for client modems that require a rest period before receiving a callback. | callback forced-wait number-of-seconds |
Step 9 Exit to global configuration mode. | exit |
Step 10 Specify a per-username callback dial string. | username3 name [callback-dialstring telephone-number] |
Step 11 Specify a per-username rotary group for callback. | username3 name [callback-rotary rotary-group-number] |
Step 12 Specify a per-username line or set of lines for callback. | username3 name [callback-line [tty] line-number [ending-line-number]] |
The recommended ARA chat script follows. The parts of the string that are bolded are vendor-specific extensions on the Telebit 3000 modem to disable error control. Refer to the manual for your modem for the specific commands to disable error correction for ARA.
For an example of calling back a PPP client, see the "Call Back a PPP Client Example" section at the end of this chapter.
You can call back PPP clients that dial in to asynchronous interfaces. You can enable callback to the following two types of PPP clients:
This section describes how to enable callback to each of these types of PPP clients.
To accept a callback request from a RFC 1370-PPP compliant client, perform the following task, in interface (asynchronous) configuration mode:
Task | Command |
---|---|
Step 1 Enable callback requests from RFC1570- compliant PPP clients on an asynchronous interface. | ppp callback accept1 |
To configure the Cisco IOS software to call back the originating PPP client, refer to the section "Enable PPP Callback on Outgoing Lines" later in this chapter.
A PPP client can put itself in answer-mode and can still be called back by the router, even though it cannot specifically request callback. To enable callback on the router to this type of client, perform the following task in interface (asynchronous) configuration mode:
Task | Command |
---|---|
Initiate callback requests from non-RFC 1570- compliant PPP clients on an asynchronous interface. | ppp callback initiate1 |
To configure the Cisco IOS software to call back the originating PPP client, refer to the next section, "Enable PPP Callback on Outgoing Lines."
After enabling PPP clients to connect to an asynchronous interface and wait for a callback, you must place one or more TTY lines in PPP mode. Although calls from PPP clients enter through an asynchronous interface, the calls exit the client on a line placed in PPP mode.
To enable PPP client callback on outgoing TTY lines, perform the following steps, beginning in global configuration mode:
Task | Command |
---|---|
Step 1 Define a chat script to be applied when a PPP client requests callback. | chat-script1 script-name expect-send |
Step 2 Specify a per-username callback dial string. | username2 name [callback-dialstring telephone-number] |
Step 3 Specify a per-username rotary group for callback. | username3 name [callback-rotary rotary-group-number] |
Step 4 Specify a per-username line or set of lines for callback. | username3 name [callback-line [tty] line-number [ending-line-number]] |
Step 5 Enter line configuration mode. | line [tty] line-number [ending-line-number] |
Step 6 Configure automatic PPP startup on a line or set of lines. | autoselect ppp3 |
Step 7 Enable authentication on the line. | login {authentication | local}3 |
Step 8 Apply a chat script to a line or set of lines. | script callback regexp |
Step 9 Delay the callback for client modems that require a rest period before receiving a callback. | callback forced-wait number-of-seconds |
A client can issue a callback dial string; that dial string is used only if the dial string on the router is specified as NULL, or is not defined.
The recommended PPP chat script follows.
chat-script name
ABORT ERROR ABORT BUSY "" "ATZ" OK "ATDT \T" TIMEOUT 30 CONNECT \c
You can enable your router to function as a NetWare Asynchronous Services Interface (NASI) server. A NASI server enables a NASI client to connect to asynchronous network resources (such as modems) without having these resources located on the client's desktop, as shown in Figure 15.
You can configure the Cisco IOS software to enable NASI clients to connect to asynchronous resources attached to your router. The NASI client can connect to any port on the router other than the console port to access network resources. (See Figure 16.) The NASI clients are connected to the Ethernet 0 interface on the router. When the user on the NASI client uses the Windows or DOS application to connect to the router, a list of available TTY and VTY lines appears, beginning with TTY1. The user selects the desired outgoing TTY or VTY port. You also can configure TACACS+ security on the router so that after the user selects a TTY or VTY port, a username and password prompt appear for authentication, authorization, and accounting purposes.
The NASI client can be on a local LAN or can also be on a remote LAN. If it is on a remote LAN, the following two requirements must be met:
The fact that you can connect to many different ports on the router means that you can provide access to more than one asynchronous device. When the user accesses the VTY line, the connection to the user EXEC facility and can issue a Telnet or NASI command to access a remote network (see Figure 17). Only the first available VTY line appears in the list of available ports on the router (and it is titled RCONSOLE).
To configure your router as a NASI server, perform the following tasks, beginning in global configuration mode:
Task | Command |
---|---|
Step 1 Enable IPX routing on the router. | ipx routing1 |
Step 2 Define an internal IPX network number. | ipx internal-network1 |
Step 3 Enter interface configuration mode. | interface type number2 |
Step 4 Enable IPX routing on an interface. | ipx network [network | unnumbered]1 |
Step 5 Exit to global configuration mode. | exit |
Step 6 Enable NASI. | ipx nasi-server enable |
Step 7 Configure TACACS+ security on all lines on the router (optional). | aaa authentication nasi {list-name | default} {methods list}3 |
Step 8 Enter line configuration mode. | line [aux | tty | vty] line-number [ending-line-number] |
Step 9 Configure TACACS+ security on a per-line basis (optional). | login authentication nasi {list-name | default}3 |
You also can configure SAP filters to filter SAP updates, and access lists to filter NASI traffic between interfaces on the router.
The types of messages that can be displayed to terminal users who connect to the router are described in the following sections:
You also can turn off message displays.
For an example of displaying terminal banner messages, see the "Banner Example" section at the end of this chapter.
You can configure a message-of-the-day (MOTD) banner to be displayed on all connected terminals. This banner is displayed at login and is useful for sending messages that affect all network users (such as impending system shutdowns). To do so, perform the following task in global configuration mode:
Task | Command |
---|---|
Configure a MOTD banner. | banner motd d message d |
You can configure a line-activation banner to be displayed when an EXEC process (such as a line-activation or incoming connection to a VTY line) is created. To do so, perform the following task in global configuration mode:
Task | Command |
---|---|
Configure a banner to be displayed on terminals with an interactive EXEC session. | banner exec d message d |
You can configure a banner to be displayed on terminals connected to reverse Telnet lines. This banner is useful for providing instructions to users of these types of connections.
To configure a banner that is sent on incoming connections, perform the following task in global configuration mode:
Task | Command |
---|---|
Configure a banner to display on terminals connected to reverse Telnet lines. | banner incoming d message d |
You can configure messages to be displayed on a console or terminal not in use. Also called a vacant message, this message is different from the banner message displayed when an EXEC process is activated. To configure an idle terminal message, perform the following task in line configuration mode:
Task | Command |
---|---|
Display an idle terminal message. | vacant-message [d message d] |
You can display a "line in use" message when an incoming connection is attempted and all rotary group or other lines are in use. Perform the following task in line configuration mode:
Task | Command |
---|---|
Display a "line in use" message. | refuse-message d message d |
If you do not define such a message, the user receives a system-generated error message when all lines are in use. You also can use this message to provide the user with further instructions.
You can display a "host failed" message when a Telnet connection with a specific host fails. Perform the following task in line configuration mode:
Task | Command |
---|---|
Display a "host failed" message. | busy-message hostname d message d |
You can control display of the message-of-the-day (MOTD) and line-activation (EXEC) banners. By default, these banners are displayed on all lines. To suppress or reinstate the display of such banners, perform one of the following tasks in line configuration mode:
Task | Command |
---|---|
Suppress MOTD and EXEC banner display. | no exec-banner |
Reinstate the display of the EXEC or MOTD banners. | exec-banner |
Suppress MOTD banner display only. | no motd-banner |
Reinstate the display of the MOTD banners. | motd-banner |
These commands determine whether the router will display the EXEC banner and the message-of-the-day (MOTD) banner when an EXEC session is created. These banners are defined with the banner motd and banner exec commands. By default, the MOTD banner and the EXEC banner are enabled on all lines.
Disable the EXEC and MOTD banners using the no exec-banner command.
The MOTD banners can also be disabled by the no motd-banner line configuration command, which disables MOTD banners on a line. If the no exec-banner command is configured on a line, the MOTD banner will be disabled regardless of whether the motd-banner command is enabled or disabled. Table 4 summarizes the effects of the exec-banner command and the motd-banner command.
exec-banner (default) | no exec-banner | |
---|---|---|
motd-banner (default) | MOTD banner
EXEC banner | None |
no motd-banner | EXEC banner | None |
For reverse Telnet connections, the EXEC banner is never displayed. Instead, the INCOMING banner is displayed. The MOTD banner is displayed by default, but it is disabled if either the no exec-banner command or no motd-banner command is configured. Table 5 summarizes the effects of the exec-banner command and the motd-banner command for reverse Telnet connections.
exec-banner (default) | no exec-banner | |
---|---|---|
motd-banner (default) | MOTD banner
INCOMING banner | INCOMING banner |
no motd-banner | INCOMING banner | INCOMING banner |
The Cisco AS5200 access server supports the needs of the following users:
Figure 18 shows how the Cisco AS5200 services these types of users.
The following sections describe some of the asynchronous services you can perform with the Cisco AS5200 access server:
The Cisco AS5200 access server contains integrated V.34 modems that are manageable (also known as select) or nonmanageable (also known as reliable). Each manageable modem has one out-of-band port, which is used for polling modem statistics and creating a directly connected session for transmitting attention (AT) commands. Nonmanageable modems do not have out-of-band ports. As you read through this documentation, note which commands apply to manageable versus nonmanageable modems.
Incoming ISDN and analog calls access the Cisco AS5200 through dual T1 PRIs. Unlike digital calls, incoming analog calls are first terminated and then converted to digital data at the modem card.
Each TTY line is directly mapped to an integrated Cisco AS5200 modem, as shown in Table 6. The TTY lines 1 through 24 directly connect to modems 1/0 through 1/23, which are installed in the first chassis slot. The TTY lines 25 through 48 directly connect to modems 2/0 through 2/23, which are installed in the second chassis slot.
See the "Cisco AS5200 Startup Sample Configuration Example" section at the end of this chapter.
You can view various modem statistics and configure modem events using the Cisco IOS software with the Cisco AS5200 access server.
To show modem performance statistics, perform the following tasks in EXEC mode:
Task | Command |
---|---|
Show various performance statistics for a modem or group of modems. | show modem [slot/modem-port | group number] |
Show the call-switching module status for a modem or group of modems. | show modem csm [slot/modem-port | group number] |
Show the event log status for a modem or group of modems. | show modem log [slot/modem-port | group number]1 |
Display the cumulative system statistics for all modems installed in the access server. | show modem summary1 |
Display all directly connected AT sessions active on the access server. | show modem at-mode1 |
To enable the Cisco AS5200 modems to accept and send incoming and outgoing analog calls through the T1 PRIs, you must configure the following interface configuration and controller configuration command by performing the following tasks in interface configuration mode:
Task | Command |
---|---|
Enable ISDN voice calls to dial into and dial out of the Cisco AS5200. | isdn incoming-voice modem1 |
Enable incoming and outgoing channelized T1 voice calls to dial into and dial out of the Cisco AS5200. | cas-group channel-number [timeslots range]2 |
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "ISDN Analog Calls Example."
To set the maximum amount of time the call-switching module waits for a local modem to respond to a request before it is considered locked in a suspended state, perform the following task in global configuration mode:
Task | Command |
---|---|
Set maximum time local modems will wait for a response. The default is 5 minutes. | modem recovery-time minutes |
This command does not apply to nonmanageable modems.
After the call-switching module resets a suspended modem, the module recovers to a default call-switching module state.
To configure the size of the history event queue buffer for manageable modems in the access server, perform the following task in global configuration mode:
Task | Command |
---|---|
Define the number of modem events that each modem is able to store. The default is 100 events for each modem. | modem buffer-size number |
This command does not apply to nonmanageable modems.
Use the show modem log command to view modem events.
This section describes how to troubleshoot the integrated modems and remove them from dial-up connection services.
To perform diagnostic testing on all the installed modems during the system's initial startup or rebooting process, perform the following task in global configuration mode:
Task | Command |
---|---|
Perform diagnostic testing for all modems. | modem startup-test |
The results of the modem startup test are displayed in the Status column of the show modem command's output. Modems that pass the diagnostic test are marked as Idle, Busy, Downloading, and Reset. Modems that fail the diagnostic test are marked as Bad*. These modems cannot be used for call connections. Depending on how many modems are installed, this diagnostic test may take from 5 to 15 minutes to complete.
Perform additional testing on an inoperative modem by executing the test modem back-to-back command. The no modem startup-test command disables startup testing.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Modem Startup Test Example."
Perform additional testing on a modem suspected of being inoperable by conducting a series of internal back-to-back connections and data transfers between two modems. All modem test connections occur inside the access server. For example, if mobile users cannot dial into modem 2/5 (which is the sixth modem port on the modem board in the second chassis slot), attempt a back-to-back test with modem 2/5 and a known-functioning modem such as modem 2/6.
Use the following command in EXEC mode to perform internal back-to-back modem tests between two modems:
Task | Command |
---|---|
Perform internal back-to-back modem tests between two modems. | test modem back-to-back first-slot/modem-number second-slot/modem-number |
You might need to enable this command on several different combinations of modems to determine which one is not functioning properly. A pair of operable modems successfully connect and complete transmitting data in both directions. An operable modem and an inoperable modem do not successfully connect with each other.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Back-to-Back Modem Test Example."
To remove modems from service and indicate them as suspected or proven to be inoperable, perform the following task in line configuration mode:
Task | Command |
---|---|
Specify a modem as inoperable. | modem bad |
If you mark a single modem as inoperable using this command, it appears as Bad--without the asterisk (*)--in the Status column of the show modem command's output for that particular modem. A modem marked inoperable by the modem startup-test command appears as Bad* in the show modem command output for that particular modem. Use the no modem bad command to unmark a modem as Bad* or Bad and restore it for dial-up connection services.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Inoperable Modem Example."
To reset and isolate the modem hardware for extensive troubleshooting, perform the following task in line configuration mode:
Task | Command |
---|---|
Reset and isolate the modem hardware. | modem hold-reset |
Use this command if you are experiencing extreme modem behavior (for example, if the modem is uncontrollably dialing into the network). This command prevents the modem from establishing software relationships such as those created by the test back-to-back modem command and the modem startup-test command. The modem is unusable while the modem hold-reset command is configured.
This command is also used to reset a modem that is frozen in a suspended state. Disable the suspended modem with the modem hold-reset command, and then restart hardware initialization with the no modem hold-reset command.
A modem decommissioned by the modem hold-reset command does not accept modem firmware upgrades using the copy modem command.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Hold and Reset Modem Example."
To disable modems from dialing or answering calls, perform one of the following tasks in line configuration mode:
Task | Command |
---|---|
Gracefully disable a modem from dial-up services. | modem busyout |
Abruptly shut down a modem from dial-up services. | modem shutdown |
The modem busyout command is not executed until the active modem is idle. No active connections are interrupted when you use this command. In contrast, the modem shutdown command immediately terminates all active connections on the specified modem. The resulting modem status for both these commands is the same.
Enable the no form of these commands to restore a modem for dial-up services.
You can still configure the following commands on a disabled modem:
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Disable Modem Examples."
To debug a modem or group of modems, perform the following tasks in EXEC mode:
Use the debug modem command to do the following:
To create an asynchronous interface and use it as a group interface associated with a group of modems, refer to the "Configuring Interfaces" chapter in the Configuration Fundamentals Configuration Guide.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Debug Modem Example."
Each Cisco AS5200 manageable modem has one out-of-band port, which is used to poll modem statistics and transmit AT commands. The Cisco IOS software uses a directly connected session to transfer information to an out-of-band port. To transfer AT commands, you must permit a directly connected session on a modem, open a directly connected session and send AT commands to a modem, and clear a directly connected session from a modem.
To permit a manageable modem to accept a directly connected session, which is enabled by default on all modems, perform the following task in line configuration mode:
Task | Command |
---|---|
Permit a modem to accept a directly connected session. | modem at-mode-permit |
The no modem at-mode-permit command disables a modem from accepting a direct connection, which is useful for ensuring modem security.
See the "Cisco AS5200 Configuration Examples" section for the "Directly Connected Session Example."
To open a directly connected session and enable AT command mode (which is needed to transmit to a manageable modem), perform the following command in EXEC mode:
Task | Command |
---|---|
Open a directly connected session and enter AT command mode. | modem at-mode slot/modem-port |
Once you enable this command, you can transmit AT commands directly from your terminal session. Most incoming or outgoing calls on the modem are not interrupted when you open a directly connected session and transmit AT commands. However, some AT commands interrupt a call--for example, the ATH command, which hangs up a call.
Open and close one directly connected session at a time. Multiple open directly connect sessions slow down modem performance.
Refer to the 12-Port Modem AT Command Set and Register Summary publication (part of the Cisco AS5200 documentation set) for a complete list of AT commands that you can transmit.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Transmit AT Command Example."
You can clear or terminate an active directly connected session in two ways:
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Clear Session from a Second Telnet Session Example."
Each manageable modem has one out-of-band port, which is used for polling modem statistics.
To set the time interval between the polls that are sent to the local modems for reporting modem status and statistics, perform the following task in global configuration mode:
Task | Command |
---|---|
Specify the number of seconds between polls. The default is 12 seconds.The configuration range is 2 to 120 seconds. | modem poll time seconds |
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Time Interval Example."
To poll for a modem's status and statistics through its out-of-band port, perform the following task in line configuration mode:
Task | Command |
---|---|
Poll for a modem's status and statistics. | modem status-poll |
The no modem status-poll command disables status polling through the out-of-band port for a specified modem.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Modem Polling Example."
To set the maximum number of polling attempts used to retrieve a local modem's status or statistics, perform the following task in global configuration mode:
Task | Command |
---|---|
Set maximum number of polling attempts. The default is three polling attempts. The configuration range is from 0 to 10 attempts. | modem poll retry number |
If the number of attempts to retrieve modem status or statistics exceeds the number you define, the out-of-band port is removed from operation. In this case, you must reset the modem hardware using the clear modem command.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Polling Attempts Example."
To download firmware to modems in the access server, perform one of the following tasks in EXEC mode:
After you enter a command, you are prompted for the download destination, the remote host name, and the path leading to the source modem firmware, as requested by the system software.
If a modem that you want to upgrade is busy with a call when the copy modem command is enabled, the upgrade for that modem yields until the active call is dropped. All other idle modems in the upgrade range proceed with the downloading operation.
See the "Cisco AS5200 Configuration Examples" section at the end of this chapter for the "Download Firmware Examples."
Typically, asynchronous protocol features (such as PPP) are configured on asynchronous interfaces in the Cisco IOS software. However, the Cisco IOS software also enables you to configure asynchronous protocol features on VTY lines.
Refer to the "Enable SLIP and PPP on Virtual Asynchronous Interfaces" section in the "Configuring SLIP and PPP" chapter in this publication for more information about configuring virtual asynchronous interfaces.
The following sections provide line configuration examples:
In the following example, the user creates and configures the maximum 100 virtual terminal lines with the "no login" feature:
line vty 0 99 no login
In the following example, the user eliminates virtual terminal line number 5 and all higher-numbered virtual terminal lines. Only virtual terminal lines 0 to 4 will remain.
no line vty 5
In the following example, the user configures console line 0, auxiliary line 0, and virtual terminal lines 0 through 4:
line vty 0 4 login line con 0 password baskerville line aux 0 password Mypassword no exec access-class 1 in speed 19200 line vty 0 exec-timeout 0 0 password Mypassword line vty 1 exec-timeout 0 0 password Mypassword line vty 2 exec-timeout 0 0 password Mypassword line vty 3 password Mypassword line vty 4 password Mypassword
The following example shows how to enable password checking for a virtual terminal line 1:
line vty 1 login password letmein
The following example shows how to enable password checking on a user basis:
username jksmith password 0 letmein username lmjones password 0 littlerock ... line vty 1 login local
The following example shows how to use the banner global configuration commands and the no exec-banner line configuration command to notify your users that the server is going to be reloaded with new software:
! The EXEC and MOTD banners are inappropriate for the VTYs. line vty 0 4 no exec-banner ! banner exec / This is Cisco Systems training group router. Unauthorized access prohibited. / ! banner incoming / You are connected to a Hayes-compatible modem. Enter the appropriate AT commands. Remember to reset anything to change before disconnecting. / ! banner motd / The router will go down at 6pm for a software upgrade /
When someone connects to the router, the MOTD banner appears before the login prompt. After the user successfully logs in to the router, the EXEC banner or INCOMING banner will be displayed, depending on the type of connection. For a reverse Telnet login, the INCOMING banner will be displayed. For all other connections, the router will display the EXEC banner.
The following sections provide examples for callback:
The following example shows the process to configure an outgoing callback on the same line as the incoming request. The login local command enables local username authentication on lines 4 and 7. Re-authentication is required upon reconnection.
Router(config)#service exec-callback
Router(config)#username milarepa callback-dialstring "" password letmein
Router(config)#line 4
Router(config-line)#login local
Router(config-line)#exit
Router(config)#line 7
Router(config-line)#login local
The following example shows the process of configuring callback to an ARA client on line 7. The login local command enables local username authentication on lines 4 and 7. Line 7 will always be used for ARA callback, whether the incoming call enters line 4, 7, or 8.
Router(config)#appletalk routing
Router(config)#arap callback
Router(config)#arap network 422 router test
Router(config)#username excalibur callback-dialstring "123456" callback-line 7
password guenivere
Router(config)#line 4
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#autoselect arap
Router(config-line)#arap enable
Router(config-line)#exit
Router(config)#line 7
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#autoselect arap
Router(config-line)#arap enable
Router(config-line)#exit
Router(config)#line 8
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#autoselect arap
Router(config-line)#arap enable
The following example shows the process of configuring callback to a PPP client on rotary 77. PAP authentication is enabled for PPP on the asynchronous interfaces. The login local command enables local username authentication on lines 7, 8, and 9. The remote PPP client's host name is Ted, and the callback number is fixed at 1234567.
Router(config)#username Ted callback-dialstring "1234567" callback-rotary 77
password Rhoda
Router(config)#interface async7
Router(config-if)#ip unnumbered ethernet0
Router(config-if)#encapsulation ppp
Router(config-if)#no keepalive
Router(config-if)#async default ip address 1.1.1.1
Router(config-if)#async mode interactive
Router(config-if)#ppp callback accept
Router(config-if)#ppp authentication pap
Router(config-if)#exit
Router(config)#interface async8
Router(config-if)#ip unnumbered ethernet0
Router(config-if)#encapsulation ppp
Router(config-if)#no keepalive
Router(config-if)#async default ip address 1.1.1.2
Router(config-if)#async mode interactive
Router(config-if)#ppp callback accept
Router(config-if)#ppp authentication pap
Router(config-if)#exit
Router(config)#interface async9
Router(config-if)#ip unnumbered ethernet0
Router(config-if)#encapsulation ppp
Router(config-if)#no keepalive
Router(config-if)#async default ip address 1.1.1.3
Router(config-if)#async mode interactive
Router(config-if)#ppp callback accept
Router(config-if)#ppp authentication pap
Router(config-if)#exit
Router(config)#line 7
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#rotary 77
Router(config-line)#autoselect ppp
Router(config-line)#exit
Router(config)#line 8
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#rotary 77
Router(config-line)#autoselect ppp
Router(config-line)#exit
Router(config)#line 9
Router(config-line)#login local
Router(config-line)#modem InOut
Router(config-line)#rotary 77
Router(config-line)#autoselect ppp
This section provides the following example Cisco AS5200 configurations, including a sample startup configuration:
Take the following steps to configure the Cisco AS5200 access server.
Step 1 Configure a base security and local database with the following commands:
Step 2 Set the ISDN switch type.
Step 3 Set the parameters for the two T1 controller interfaces (which are the primary ISDN lines), to accept incoming calls and send outgoing calls through each T1 Primary Rate Interface (PRI).
Step 4 Configure the Ethernet and serial interfaces.
Step 5 Once you create the T1 controllers, two corresponding D channel serial interfaces are instantly created. Serial interface 0:23 is the D channel for controller T1 0, and serial interface 1:23 is the D channel for controller T1 1. You must configure each serial interface to receive incoming and send outgoing calls.
Step 6 Configure one group asynchronous interface to correspond with the 48 integrated modems.
Step 7 Enable a routing protocol to run on the access server.
Step 8 Define a range of IP addresses and configure the integrated modems for remote access clients using the Cisco AS5200. For example, the first remote client dialing in uses IP address 10.1.1.100, the second remote client uses 10.1.1.101, and so on. The 48 integrated modems are configured to transmit and receive data at 115.2 Kbps.
The following example configures incoming and outgoing ISDN analog calls at the controller T1 0 interface:
AS5200(config)#interface serial 0:23
AS5200(config-if)#isdn incoming-voice modem
AS5200(config-if)#
The following example shows how the cas-group command interrelates with the pri-group command and the channel-group command. The range of timeslots that you allocate to a PRI group, channel group, and channel associated signaling group must match the timeslot allocations that your central office chooses to use.
The following configuration configures one ISDN PRI group using timeslots 1 to 10:
AS5200(config-controller)# pri-group timeslots 1-10
AS5200(config-controller)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:9, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:23, changed state to up
%LINK-3-UPDOWN: Interface Serial1:23, changed state to up
Channelized T1 data is transmitted over timeslots 11 through 16, which are assigned to channel group 11 in the next configuration example. However, notice how the earlier attempt to configure channel group 1 is denied because timeslot 1 is used by the previous ISDN PRI group configuration.
AS5200(config-controller)#channel-group 1 timeslots 11-16
%Channel-group 1 is already an isdn channel AS5200(config-controller)#channel-group 11 timeslots 11-16
AS5200(config-controller)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:11, changed state to down AS5200(config-controller)# %LINK-3-UPDOWN: Interface Serial1:11, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1:11, changed state to up
The channel associated signal E&M is configured on the remaining 17 to 23 timeslots, which are used for incoming and outgoing analog calls. Notice how channel number 12 cannot be used to configure these timeslots, because it is used in the previously configured channel group range, which is timeslots 11 to 16.
AS5200(config-controller)#cas-group 12 timeslots 17-23
The channel has been assigned to pri or channel-group AS5200(config-controller)#cas-group 17 timeslots 17-23
AS5200(config-controller)#
The following example shows how to perform a startup test on the integrated Cisco AS5200 modems:
configure terminal modem startup-test
Display the results of the modem-startup test after you reboot the system by enabling the show modem command, as shown in the following example:
AS5200# show modem 2/3
Mdm Typ Status Tx/Rx G Duration TX RX RTS CTS DSR DCD DTR
2/3 VFC Bad* 19200/19200 0 00:17:11 x x x x x x x
Modem 2/3, AS5200 Manageable Modem, TTY4
Firmware (Boot) Rev: 1.0.23(1.0.5)
Modem config: Incoming and Outgoing
Protocol: Normal, Compression: None
Management config: status and AT session polling
TX signals: -17 dBm, RX signals: -33 dBm
The following example shows how to perform a back-to-back modem test between modems on a Cisco AS5200 Universal Access Server.
The first part of the example shows a successful connection between modem 2/1 and modem 2/0, which verifies normal operating conditions between these two modems. However, when modem 2/1 is tested against modem 2/3, the back-to-back modem test fails. Therefore, modem 2/3 is suspected or proven to be inoperable. Modem 2/3 is removed from dial-up services through the use of the modem bad command on line 28.
AS5200#test modem back-to-back 2/1 2/0
Repetitions (of 10-byte packets) [1]:10
AS5200# %MODEM-5-B2BCONNECT: Modems (2/1) and (2/0) connected in back-to-back test: CONN ECT9600/REL-MNP %MODEM-5-B2BMODEMS: Modems (2/0) and (2/1) completed back-to-back test: success/ packets = 20/20 AS5200#test modem back-to-back 2/1 2/3
Repetitions (of 10-byte packets) [1]:10
AS5200# %MODEM-5-BADMODEMS: Modems (2/3) and (2/1) failed back-to-back test: NOCARRIER AS5200#configure terminal
AS5200(config)#line 28
AS5200(config-line)#modem bad
AS5200(config-line)#end
Once you enter the test modem back-to-back command, you must define the number of packets transmitted between modems at the Repetitions prompt. The ideal range of packets to transmit and receive is from 1 to 100. The default is 1 packet. The response message (for example, "success/packets = 2/2") tells you how many packets were successfully sent in both directions compared to the total number of packets attempted to be sent in both directions. Because the software reports the packet total in both directions, the reported numbers are two times the number you originally specify.
The first part of the following example shows a successful connection between modem 2/1 and modem 2/0, which verifies normal operating conditions between these two modems. However, when modem 2/1 is tested against modem 2/3, the back-to-back modem test fails. Therefore, modem 2/3 is suspected or proven to be inoperable. Modem 2/3 is removed from dial-up services through the use of the modem bad command on line 28 (see Table 6).
AS5200#test modem back-to-back 2/1 2/0
Repetitions (of 10-byte packets) [1]:10
AS5200# %MODEM-5-B2BCONNECT: Modems (2/1) and (2/0) connected in back-to-back test: CONN ECT9600/REL-MNP %MODEM-5-B2BMODEMS: Modems (2/0) and (2/1) completed back-to-back test: success/ packets = 20/20 AS5200#test modem back-to-back 2/1 2/3
Repetitions (of 10-byte packets) [1]:10
AS5200# %MODEM-5-BADMODEMS: Modems (2/3) and (2/1) failed back-to-back test: NOCARRIER AS5200#configure terminal
AS5200(config)#line 28
AS5200(config-line)#modem bad
AS5200(config-line)#end
The following example disables a suspended modem and resets its hardware initialization:
configure terminal line 4 modem hold-reset no modem hold-reset
The following example gracefully disables the modem associated with line 1 from dialing and answering calls. The modem is disabled only after all active calls on the modem are dropped.
configure terminal line 1 modem busyout
The following example abruptly shuts down the modem associated with line 2. All active calls on the modem are dropped immediately.
configure terminal line 2 modem shutdown
The following example is sample output from the debug modem trace abnormal command:
AS5200# debug modem trace abnormal 1/14
Modem 1/14 Abnormal End of Connection Trace. Caller 123-4567
Start-up Response: AS5200 Modem, Firmware 1.0
Control Reply: 0x7C01
DC session response: brasil firmware 1.0
RS232 event:
DSR=On, DCD=On, RI=Off, TST=Off
changes: RTS=No change, DTR=No change, CTS=No change
changes: DSR=No change, DCD=No change, RI=No change, TST=No change
Modem State event: Connected
Connection event: Speed = 19200, Modulation = VFC
Direction = Originate, Protocol = reliable/LAPM, Compression = V42bis
DTR event: DTR On
Modem Activity event: Data Active
Modem Analog signal event: TX = -10, RX = -24, Signal to noise = -32
End connection event: Duration = 10:34-11:43,
Number of xmit char = 67, Number of rcvd char = 88, Reason: Watchdog Time-out.
The following example permits modem 1/1 on TTY line 1 to accept a directly connected session using the modem at-mode-permit command:
configure terminal line 1 modem at-mode-permit
The following example opens a directly connected session on modem 1/1, enters AT command mode on modem 1/1, and transmits the ATH command through the out-of-band port on modem 1/1:
AS5200#modem at-mode 1/1
You are now entering AT command mode on modem (slot 1 / port 1). Please type CTRL-C to exit AT command mode.at%v
MNP Class 10 V.34/V.FC Modem Rev 1.0/85 OKat\s
IDLE 000:00:00 LAST DIAL NET ADDR: FFFFFFFFFFFF MODEM HW: SA 2W United States 4 RTS 5 CTS 6 DSR - CD 20 DTR - RI MODULATION IDLE MODEM BPS 28800 AT%G0 MODEM FLOW OFF AT\G0 MODEM MODE AUT AT\N3 V.23 OPR. OFF AT%F0 AUTO ANS. ON ATS0=1 SERIAL BPS 115200 AT%U0 BPS ADJUST OFF AT\J0 SPT BPS ADJ. 0 AT\W0 ANSWER MESSGS ON ATQ0 SERIAL FLOW BHW AT\Q3 PASS XON/XOFF OFF AT\X0 PARITY 8N AT
The manageable modem returns "OK" if the AT command you transmit is successfully enabled.
The following example shows how to execute the modem at-mode command from a Telnet session:
AS5200# modem at-mode 1/1
The following example shows how to execute the clear modem at-mode command from a second Telnet session while the first Telnet session is connected to the modem:
AS5200# clear modem at-mode 1/1
clear "modem at-mode" for modem 1/1 [confirm]
AS5200#
The following output is displayed in the first Telnet session once the modem is cleared by the second Telnet session:
Direct connect session cleared by vty0 (171.69.1.164)
The following example sets the time interval between polls to 10 seconds using the modem poll time configuration command:
configure terminal modem poll time 10
The following example enables modem status polling through the out-of-band port connected to line 1:
configure terminal line 1 modem status-poll
The following example configures the server to attempt to retrieve statistics from a local modem up to five times before discontinuing the polling effort:
configure terminal modem poll retry 5
The following example shows how to copy the modem firmware file called modem_upgrade from the TFTP server called Modem_Server to modem 2/0, which is installed in the Cisco AS5200 access server:
AS5200#copy tftp modem
Modem Firmware Download Modem Numbers?2/0
Address or name of remote host [UNKNOWN]?Modem_Server
Source file name?dirt/elem/modem_upgrade
Accessing file 'dirt/elem/modem_upgrade
onModem_Server
... Loading dirt/elem/modem_upgrade
.from 223.255.254.254 (via Ethernet0): ! [OK] Loading dirt/elem/modem_upgrade
from 223.255.254.254 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 237503/278528 bytes] AS5200# %MODEM-5-DL_START: Modem (2/0) started firmware download %MODEM-5-DL_GOOD: Modem (2/0) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85
Once the modem firmware successfully downloads, a response message reports the new version number of the installed modem firmware--for example, Rev1.0.23/85.23/85--as shown the last line of this example.
The next time you use the copy tftp modem command, the interactive display shows the name of the previously accessed remote server as the default setting. For example, Modem_Server replaces UNKNOWN as shown in this example.
You might want to copy the file to one modem first for testing before copying the file to all the modems in the access server.
The following example shows how to download the same modem firmware file from the TFTP server Modem_Server to all the modems in the Cisco AS5200 access server:
AS5200#copy tftp modem
Modem Firmware Download Modem Numbe
rs?all
Address or name of remote host [UNKNOWN]?Modem_Server
Source file name?dirt/elem/modem_upgrade
Accessing file 'dirt/elem/modem_upgrade
onModem_Server
... Loading dirt/elem/modem_upgrade
.from 223.255.254.254 (via Ethernet0): ! [OK] Loading dirt/elem/modem_upgrade
from 223.255.254.254 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 237503/278528 bytes] AS5200# %MODEM-5-DL_START: Modem (2/0) started firmware download %MODEM-5-DL_START: Modem (2/1) started firmware download %MODEM-5-DL_START: Modem (2/2) started firmware download %MODEM-5-DL_START: Modem (2/3) started firmware download %MODEM-5-DL_START: Modem (2/4) started firmware download %MODEM-5-DL_START: Modem (2/5) started firmware download %MODEM-5-DL_START: Modem (2/6) started firmware download %MODEM-5-DL_START: Modem (2/7) started firmware download %MODEM-5-DL_START: Modem (2/8) started firmware download %MODEM-5-DL_START: Modem (2/9) started firmware download %MODEM-5-DL_START: Modem (2/10) started firmware download %MODEM-5-DL_START: Modem (2/11) started firmware download %MODEM-5-DL_START: Modem (2/12) started firmware download %MODEM-5-DL_START: Modem (2/13) started firmware download %MODEM-5-DL_START: Modem (2/14) started firmware download %MODEM-5-DL_START: Modem (2/15) started firmware download %MODEM-5-DL_START: Modem (2/16) started firmware download %MODEM-5-DL_START: Modem (2/17) started firmware download %MODEM-5-DL_START: Modem (2/18) started firmware download %MODEM-5-DL_START: Modem (2/19) started firmware download %MODEM-5-DL_START: Modem (2/20) started firmware download %MODEM-5-DL_START: Modem (2/21) started firmware download %MODEM-5-DL_START: Modem (2/22) started firmware download %MODEM-5-DL_START: Modem (2/23) started firmware download %MODEM-5-DL_GOOD: Modem (2/2) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/10) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/4) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/6) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/7) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/12) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/11) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/13) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/1) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/14) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/19) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/22) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/5) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/8) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/9) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/17) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/0) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/3) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/21) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/16) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/15) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/18) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/20) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85 %MODEM-5-DL_GOOD: Modem (2/23) completed firmware download: MNPClass10V.34/V.FCModemRev1.0.23/85.23/85
|