[Router]disp cur
Now create configuration...
Current configuration
!
version 1.74
local-user user1 service-type exec-administratorpassWord simple user1
dialer-rule 1 ip permit
ip pool 1 192.168.0.1 192.168.0.200
firewall disable
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 10.9.1.168 255.255.255.0
!
interface AnalogModem0
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem1
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem2
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem3
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem4
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem5
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem6
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem7
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem8
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem9
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem10
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface AnalogModem11
physical-mode async
async mode protocol
link-protocol ppp
dialer enable-circular
dialer-group 1
dialer circular-group 0
!
interface Dialer0
link-protocol ppp
virtualbaudrate 115200
ip address 192.168.1.254 255.255.255.0
remote address pool 1
dialer enable-circular
dialer-group 1
!
quit
ip route-static 192.168.0.0 255.255.255.0 Dialer 0 preference 60
!
return
[Router]
但有如下问题:
1现在是没有PAP, 也没有CHAP, 一旦加上, 就无法通过密码验证;
2最后的路由, 并不是华为资料中的,假如按资料去配,应该是:
ip route-static 192.168.1.1 255.255.255.255 Dialer 0 preference 60
ip route-static 192.168.1.2 255.255.255.255 Dialer 0 preference 60
ip route-static 192.168.1.3 255.255.255.255 Dialer 0 preference 60
资料有问题吗?
3拨号的PC必须将网卡禁掉(或自动分配IP)才能正常通信.
4虽然通了,但是关于里面的几个IP地址的关系,还真没有搞清楚.呵呵.
答:
1.ppp authen pap的同时加上ppp author default,这个本版已经有注重事项了,看看吧。
2.其实是为了解决3的问题和其他意外的,理论上拨号上来的pc每个都应该在路由器上生成一条直连路由,但有时会不存在,多难受啊?自己加上吧。
1.74-0105(含)之后的版本,直连路由不用加了。
3.这个问题存在于测试环境中,下面详谈
pc不象路由器,以太口线拔掉了,路由就消失了,比如测试pc自己的以太口地址是10.9.1.200/24,拨号获得了IP是192.168.0.1,他要去ping 10.9.1.168,这个地址与pc自己网卡ip在同一网段,直接arp广播,而不会送给网关,所以数据包从以太口送出去了...以太口没插线...所以不通,禁用网卡,IP包从modem出去,自然就通了。