设为首页收藏本站language 语言切换
查看: 2686|回复: 2
收起左侧

[其他] 鸿鹄解读:adsl-pppoe拨号配置,献给不会pppoe拨号的人~

[复制链接]
发表于 2014-1-23 20:21:11 | 显示全部楼层 |阅读模式
在家用的2611路由器,摸索了4个小时,终于配置成功了,分享一下,大虾别见笑。 mars_23):
路由器是2611,2个ethernet口,ios是c2600-is-mz.122-13.T9.bin(ios参数最好是带-is-的,有些其他参数的不支持pppoe)。下面是配置说明,红色字体的是配置pppoe需要的命令。拓扑图在最下边。
Router#show run
Building configuration...
*Mar  1 00:28:43.163: %SYS-5-CONFIG_I: Configured from console by console
Current configuration : 1170 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
!
ip subnet-zero
ip cef
!
!
no ip domain lookup
!
vpdn enable
!
vpdn-group 1
request-dialin
  protocol pppoe
!
!         
!
!
!
!
!
!
!
!
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Ethernet0/0    #连接外网的接口。别忘no shutdown了
description waiwang
no ip address
half-duplex
pppoe enable
pppoe-client dial-pool-number 1
!
interface Serial0/0
no ip address
shutdown
!
interface Ethernet0/1   #这个接口连在我电脑上,别忘no shutdown了
description neiwang
ip address 192.168.1.1 255.255.255.0
ip nat inside                #不做nat,电脑就上不了网
half-duplex
!
interface Serial0/1
no ip address
shutdown
!
interface Dialer0        #这个是逻辑接口,不用管他是干什么用的,能照葫芦画瓢就行。别忘no shutdown了
ip address negotiated
ip nat outside           #nat outside在这个接口下定义
encapsulation ppp
dialer pool 1
dialer-group 1
ppp pap sent-username *** password ****    #**表示宽带的账号和密码。上不了网的话,就把pap改成chap再试试。

!
ip nat inside source list 1 interface Dialer0 overload   #这个是nat,别忘配置了
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0                     #别忘做默认路由了,要不然上不去网啊
ip http server
!
!
access-list 1 permit 192.168.1.0 0.0.0.255     #地址转换的列表
dialer-list 1 protocol ip permit
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

配置成功以后,在show ip int b下,应该可以看到Dialer0 口被分配了一个公网地址,就可以上网啦!mars_12):

5a.jpg

SFP光模块欢迎大家到最热的思科技术论坛来交流:http://bbs.hh010.com/

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-26 18:58 , Processed in 0.125210 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表