IT坊
IT坊互联 旗下淘宝站 站长工具 站长俱乐部 网站地图 加入收藏 设为首页 繁体版
首页
首页
书籍
书籍
资讯
资讯
下载
下载
博客
博客
视频
视频
源码
源码
办公
办公
学院
学院
娱乐
娱乐
商家
商家
团购
团购
供求
供求
贴图
图库
论坛
论坛
摄影
酷图
新闻资讯 软件应用 图形图像 网络应用 硬件学堂 程序开发 安全中心 新手学堂 黑客专题
网站客服QQ群 ③群20730522
①群15569476 ④群31220781
②群19439244 ⑤群7190232
您现在的位置: IT坊资讯网 >> 服务器 >> 应用技术 >> 功能服务器 >> 文章正文 同时按下键盘 Ctrl+D 会有惊喜发生!域名注册 虚拟主机 企业邮局 优惠套餐
站内文章搜索 高级搜索 最近更新 热点导读 精彩推荐
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
l2tp vpn 通过ISA的问题
  ADSL连接功能并支持VPN           ★★★
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 
  • 上一篇文章: 没有了

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    收藏本文到:   新浪VIVI 和讯网摘 博彩中心 365Key网摘 poco网摘 狐摘 天极网摘 亿友响享Yeeyoo
      网摘中国 igooi-it网摘 5seek网摘 I2Key 我摘网摘 天下图摘 YouNote 百特门 都市网摘
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    新 闻 焦 点
    {$MY_IT坊2006冰爽网页底}