电脑技术学习

回拨测试config

dn001

  version 12.0
  service exec-callback
  !--- This command enables the Cisco IOS software to return a call to a
  !--- device that dials in, connects to the EXEC, and requests callback.
  service timestamps debug datetime msec
  service timestamps log datetime msec
  no service passWord-encryption
  !
  hostname maui-nas-04
  !
  enable secret 5
  !
  username austin-01 nocallback-verify callback-dialstring 84001 password 0 xxxxx
  !--- Does not require authentication after callback.
  !--- This string applies to the "no-verify callback" scenario
  username austin-02 callback-dialstring "" password 0 xxxxx
  !--- For mobile users. Client specifies the callback number.
  !--- This string applies to the "callback to any number with verification"
  !--- scenario
  !
  ip subnet-zero
  chat-script offhook "" "ATH1" OK
  chat-script rtp ABORT ERROR ABORT BUSY "" "AT" OK "ATDT T" TIMEOUT 45 CONNECT c
  !--- This is the chat script used to dial the callback number.
  interface Ethernet0/0
   ip address 10.0.0.1 255.0.0.0
   no ip directed-broadcast
  !
  ip classless
  !
  line con 0
   transport input none
  line 65 70
  line aux 0
   script modem-off-hook offhook
   script callback rtp
   !--- Use chat script rtp for the callback
   login local
   modem InOut
   transport input all
   callback forced-wait 5
   !--- Wait 5 seconds before initiating the callback. This prevents problems with
   !--- the router passing the callback string back to the modem before it is
   !--- ready to dial the callback connection.
   flowcontrol hardware
   line vty 0 4
   login local
  !
  end