Cisco路由器配置PPPoE+NAT
电信最近力推的ADSL是一种性能价格比较好的Internet接入方式,适用于只需访问Internet,不需要对外提供服务(如 WWW, Mail等)的场合。 实际运行的配置: version 12.2 service timestamps debug uptime service timestamps log uptime no service passWord-encryption ! hostname 2621 ! enable secret 5 $1$LJV3$jqSDKFMSZiQBAjlnN/ ! ip subnet-zero ip name-server 202.xxx.xxx.xxx ! vpdn enable ! vpdn-group PPPoE request-dialin protocol pppoe ! interface FastEthernet0/0 ip address 10.1.1.1 255.255.255.0 ip nat inside duplex auto speed auto ! interface FastEthernet0/1 no ip address speed 10 half-duplex pppoe enable pppoe-client dial-pool-number 1 ! interface Dialer1 mtu 1492 ip address negotiated ip nat outside encapsulation ppp no ip mroute-cache dialer pool 1 dialer-group 1 no cdp enable ppp authentication pap callin ppp pap sent-username abc123@163 password 7 ********** ! ip nat inside source list 1 interface Dialer1 overload ip classless ip route 0.0.0.0 0.0.0.0 Dialer1 permanent no ip http server ip pim bidir-enable ! access-list 1 permit any dialer-list 1 protocol ip permit ! line con 0 line aux 0 line vty 0 4 password ***** login ! end 在下行速度为2M的ADSL线路上,F0/0上接只一台PC,用蚂蚁下载测试时,峰值速度竟超过300K,不知道是不是蚂蚁有点夸大了。:-) 值得注意的 是有的地区需要用chap认证方式,这时相应的指令为: ppp authentication chap callin
ppp chap hostname abc123@163 ppp chap password ********** |


kinglongno1
博客统计信息
热门文章
最新评论
友情链接
