nterface Dialer0
ip address 192.16.251.25 255.255.255.0
no ip directed-broadcast
encapsulation ppp
ppp authentication chap
dialer in-band
dialer-idle timeout 180
dialer map ip 192.16.251.1 modem-script call 123456
dialer-group 1
hold-queue 10 out
ip route 0.0.0.0 0.0.0.0 192.16.241.1 100
ip route 0.0.0.0 0.0.0.0 192.16.251.1 150
access-list 101 deny ip any host 224.0.0.10
access-list 101 permit ip any any
dialer-list 1 protocol ip list 101
line 1
no exec
script startup reset
script reset reset /*或modem autoconfigure type modem_3225*/
transport input all
modem DTR-active
modem autoconfigure type modem_3225
transport input all
flowcontrol hardware
end
5. 拨号服务器端有关拨号的配置
文档如下:
interface Group-Async0
ip address 80.16.251.1 255.255.255.0
no ip directed-broadcast
encapsulation ppp
ppp authentication chap
dialer in-band
async mode dedicated
group-range 65 69
ip route 192.0.1.0 255.255.255.0 192.16.241.2 100
ip route 192.0.1.0 255.255.255.0 192.16.251.2 150
line 65 69
modem InOut
modem autoconfigure discovery
transport input all
stopbits 1
flowcontrol hardware
以上路由器有关拨号的配置适用于使用脚本控制Modem的情况,对于不同的Modem需编写符合该Modem的拨号配置脚本。如:对于3265调制解调器,需输入下面的脚本:
chat-script call “”“AT*FL3&D3”OK “ATDT \T” TIMEOUT 60 “CONNECT” \d
其他不变。
(上述方法笔者已经在Cisco 路由器上测试通过)