![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This chapter describes how to communicate with the modem by establishing a reverse Telnet session from an access server's or router's asynchronous line to a modem.
To establish a reverse Telnet session to a modem, determine the IP address of your LAN (Ethernet) interface, then enter a Telnet command to port 2000 + n on the access server, where n is the line number to which the modem is connected. For example, to connect to the modem attached to line 1, enter the following command from an EXEC session on the access server:
router# telnet 172.16.1.10 2001
Trying 172.16.1.10, 2001 ... Open
This example enables you to communicate with the modem on line 1 using the AT (attention) command set defined by the modem vendor.
![]() | Time Saver Use the ip host configuration command to simplify reverse Telnet sessions with modems. The ip host command maps an IP address of a port to a device name. |
If you are unable to connect to the modem, check the following:
Modem state: Idle Modem hardware state: CTS noDSR DTR RTS
After you make a reverse Telnet connection to the modem, you need to test the connection. Send the modem the AT command to request its attention. It should respond with OK. For example:
at
OK
If the modem does not reply to the AT command, check the following:
The reverse Telnet session must be terminated before the line can accept incoming calls. If you do not terminate the session, it will be indicated in the output of the show users command when it returns a modem state of ready if the line is still in use. If the line is no longer in use, the output of the show line value command will return a state of idle.
Terminating the Telnet session requires first suspending it, then disconnecting it. To suspend a Telnet session, enter the escape sequence Ctrl-Shift-6 x (press Control-Shift-6, let go, then press x). Enter the disconnect EXEC command to terminate the Telnet session.
To suspend and then disconnect a Telnet session, perform the following steps:
Step 1 Suspend the Telnet session by entering Ctrl-Shift-6 x:
- suspend keystroke -
Step 2 Enter the where EXEC command to check for open sessions:
where
Step 3 After suspending a session with one modem, you can connect to another modem (then suspend it):
telnet modem2
- suspend keystroke -
Step 4 To disconnect (completely close) a session, issue the disconnect EXEC command:
disconnect
line 1
y
y
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |