| ADSL连接功能并支持VPN |
|
作者:佚名 文章来源:本站原创 更新时间:2008-3-17 11:41:38  |
|
都支持动态IP,都支持pppoe,但要配成vpdn的形式!
1、一在路由器上配wic-1adsl,配置如下:
vpdn enable no vpdn logging ! vpdn-group pppoe request-dialin protocol pppoe ! interface Ethernet0 no shut ip address ip adjust-mss 1452 ip nat inside no ip directed-broadcast ! interface ATM0 no shut no ip address no ip directed-broadcast no atm ilmi-keepalive bundle-enable ! interface ATM0.1 point-to-point no ip directed-broadcast pvc pppoe-client dial-pool-number 1 ! ! interface Dialer1 ip address negotiated mtu 1492 ip nat outside encapsulation ppp dialer pool 1 ppp chap hostname ppp chap password ppp pap sent-username password ! ip nat inside source list 1 interface Dialer1 overload ! ip classless ip route 0.0.0.0 0.0.0.0 dialer1 access-list 1 permit 0.0.255.255
2、ADSL猫和路由器搭配做,拨号在路由上做 ! vpdn enable no vpdn logging !--- default ! vpdn-group pppoe request-dialin !--- we are the PPPoE client requesting to establish !--- a session with the aggregation unit (6400 NRP) protocol pppoe ! int Dialer1 ip address negotiated encapsulation ppp ip mtu 1492 !--- Ethernet MTU is 1500 by default !--- (1492 + PPPoE headers = 1500) ip nat outside dialer pool 1 !--- ties to interface Ethernet0 dialer-group 1 ppp authentication chap callin ppp chap hostname ppp chap password ! !--- The ISP will instruct you regarding !--- the type of authentication to use. !--- To change from PPP CHAP to PPP PAP, replace !--- the following three lines: !--- ppp authentication chap callin !--- ppp chap hostname !--- ppp chap password !--- with the following two lines: !--- ppp authentication pap callin !--- ppp pap sent-username password ! dialer-list 1 protocol ip permit ! !--- internal Ethernet network interface FastEthernet0 ip address 10.0.0.1 255.255.255.0 ip nat inside ! interface Ethernet0 pppoe enable pppoe-client dial-pool-number 1 !--- The PPPoE client code ties into a dialer !--- interface upon which a virtual-access !--- interface is cloned. ! !--- For NAT we are going to overload on the !--- Dialer1 interface and add a default route !--- out of the Dialer1 interface since !--- the IP address can change. ip nat inside source list 1 interface Dialer1 overload ip classless ip route 0.0.0.0 0.0.0.0 dialer1 no ip http server ! dialer-list 1 protocol ip permit access-list 1 permit 10.0.0.0 0.0.0.255 !--- for NAT !
|
| 文章录入:admin 责任编辑:admin |
|
上一篇文章: 没有了 下一篇文章: 没有了 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |