千家论坛_弱电智能化技术与工程讨论(建筑智能,家居智能,人工智能)

路由交换
收藏本版 (7) |订阅

路由交换 今日: 3703 |主题: 18312|排名: 28 

发新帖
打印 上一主题 下一主题

PPPoE配置实例(2600路由器接ADSL Modem)...

[复制链接]
mypath 发布于: 2009-5-12 00:40 1543 次浏览 7 位用户参与讨论
跳转到指定楼层
 

hostname pooh
ip host rund 172.17.247.195
!
ip subnet-zero
no ip domain-lookup
!
vpdn enable
no vpdn logging
!
vpdn-group 1
request-dialin
protocol pppoe
!
!
!
!
interface Ethernet0/0
ip address 10.200.56.22 255.255.255.0
ip nat inside
no ip mroute-cache
!
!
!
!
interface Ethernet0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address negotiated
ip nat outside
ip mtu 1492
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
ppp authentication pap
ppp pap sent-username cisco password cisco1
!
ip classless
no ip http server
!
dialer-list 1 protocol ip permit
ip nat inside source list 1 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 dialer1
access-list 1 permit 10.200.56.0 0.0.0.255
!
line con 0
exec-timeout 0 0
transport input none
line vty 0 4
login
password ww
!
end
------------------------------------------------

#p#PPPoA配置实例 (2600路由器连接Wic-1ADSL)

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
!


!--- internal Ethernet network.

!
interface FastEthernet0
ip address 10.92.1.182 255.255.255.0
ip nat inside


!--- DSL interface.

!
interface ATM0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
hold-queue 224 in

!--- All defaults.

 


!--- PPPoE runs on top of AAL5SNAP, but the
!--- encap aal5snap command is not used.

!
interface ATM0.1 point-to-point
pvc 1/1
pppoe-client dial-pool-number 1

!--- pvc 1/1 is an example value that must be changed
!--- to match the value used by the ISP.

!

 

!--- The PPPoE client code ties into a dialer interface upon
!--- which a virtual-access interface is cloned.

!
interface Dialer1
ip address negotiated
ip mtu 1492

!--- Ethernet MTU default = 1500 (1492 + PPPoE headers = 1500)

ip nat outside
encapsulation ppp
dialer pool 1

!--- Ties to atm interface.

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


!--- For NAT we are going to overload on the Dialer1
!--- interface and add a default route out
!--- since dialer 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
!
access-list 1 permit 10.92.1.0 0.0.0.255

回复

使用道具 举报

已有7人评论

新浪微博达人勋

千家认证

沙发
gancie 发表于 2009-5-12 02:59:00
我去试一下,用26接宽带的感觉应该不错
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

板凳
mina258 发表于 2009-6-3 11:47:00
恩恩。学习。谢谢楼主
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

地板
fansk 发表于 2009-6-3 16:17:00
看这一大堆就晕
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

5#
CoolmenTT 发表于 2009-6-3 18:13:00
能说明一下吗??
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

6#
w15007171563 发表于 2009-6-26 09:08:00
我也是
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

7#
田帅雨 发表于 2009-7-2 09:45:00

学习了

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

8#
peter_jiang 发表于 2009-7-30 14:12:00
感谢CCTV  感谢MTV  感谢1000TV
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆 千家通行证登陆

本版积分规则

千家智客微信号
千家智客微信
玩物说商城
玩物说商城