access#show run
Building configuration...
Current configuration : 1833 bytes
!version 12.2
no parser cache
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!hostname access
!访问服务器用名字
no logging rate-limit
enable password cisco
!服务器的密码
username test callback-dialstring "" password 0 test
!用户名和密码,test帐号可以自己选择回拨的电话号码
username user callback-dialstring "1234567" password 0 test
!用户名user会固定回拨到1234567这个电话号码上
ip subnet-zero
!
!no ip dhcp-client network-discovery
chat-script mod ABORT ERROR ABORT BUSY "" "AT"
OK "ATDT \T" TIMEOUT 30 CONNECT \c
!名字叫“mod”的路由器回拨会话脚本
chat-script offhook "" "ATH1" OK
!
interface Ethernet0/0
ip address 10.1.84.3 255.255.255.0
duplex auto
speed auto
!
interface Group-Async1
ip unnumbered FastEthernet0/0
encapsulation ppp
ip tcp header-compression passive
async mode interactive
peer default ip address pool default
ppp callback accept
!允许客户回拨的请求
ppp authentication
pap group-range 33 40
!
ip local pool default 10.1.84.240 10.1.84.253
ip classless
ip route 0.0.0.0 0.0.0.0 10.1.84.254
!
line con 0
password cisco
login
line 33 40
script modem-off-hook offhook
script callback mod
!指定一个会话脚本来发出AT指令到MODEM,当发生回拨时
login local
modem InOut
transport preferred none
transport input all
transport output none
autoselect during-login
autoselect ppp
stopbits 1
flowcontrol hardware
line aux 0
line vty 0 4
!
end |