756 CHAPTER 52: CONFIGURING MODEM
Power-on Initialization
through the
Initialization Script
Enable the router to initialize the modem to which the asynchronous interface is
connected when powering on the router or rebooting it.
[Router] script-string init "" AT OK AT&B1&C1&D2&S0=1 OK AT&W OK
[Router] interface async 0
[Router-Async0] modem
[Router-Async0] start-chat init
Use the Script to Dial
Directly Configure a modem script and direct dial.
[Router] script-string dial "" AT OK ATDT8810058 CONNECT
[Router] interface async 0
[Router-Async0] modem
[Router-Async0] start-chat dial
Authentication for
Modem Dial-in User Before logging in network through dialing, multiple users who connect with
modem are authenticated on 3Com router based on username and password.
Only the authenticated users can logging in network, and those who have failed
the authentication are not allowed to log in.
Figure 242 Network of authentication for modem dial-in user
1Configure a modem script.
[Router] script-string welcome "" "Welcome use 3Com router!"
2Configure a modem user, and enable AAA authentication.
[Router] local-user testuser password simple testuser service
exec-operator
[Router] aaa-enable
[Router] aaa authentication-scheme login default local
[Router] aaa accounting-scheme optional
3Execute specified script in serial0 interface view.
[Router] interface serial 0
[Router-Serial0] modem-login
[Router-Serial0] script trigger connect welcome
[Router-Serial0] undo modem auto-answer
Troubleshooting The modem is in abnormal status (such as the dial tone or busy tone
remains for a long time).
Do the following:
Execute the commands shutdown and undo shutdown on the router physical
interface connected to the modem to check whether the modem has been
restored to normal status.
PC
PSTN
Router
Modem