Chinaunix首页 | 论坛 | 博客
  • 博客访问: 216770
  • 博文数量: 40
  • 博客积分: 316
  • 博客等级: 二等列兵
  • 技术积分: 840
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-13 12:39
文章分类

全部博文(40)

文章存档

2014年(2)

2013年(28)

2012年(10)

分类: 系统运维

2012-05-12 18:14:34

拓扑:

用aaa来验证,
-fig)#aaa new
-fig)#aaa authen ppp default local
-fig)#bba-group pppoe global
-fig)#virtual-template 1
-fig)#username  用户名  password  密码
-fig)#int virtual-template 1

-fig)#ppp authen chap


pppoe_client完整配置:
Current configuration : 713 bytes                                                              
!                                                                                              
version 12.4                                                                                   
service timestamps debug datetime msec                                                         
service timestamps log datetime msec                                                           
no service password-encryption                                                                 
!                                                                                              
hostname Router                                                                                
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!        
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 pppoe enable group global   //接口下命令pppoe enable 产生的
 pppoe-client dial-pool-number 1
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Dialer0
 ip address negotiated
 ip mtu 1492
 encapsulation ppp
 dialer pool 1
 ppp authentication chap callin
 ppp chap hostname ccnp
 ppp chap password 0 cisco

!
ip http server
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 login
!
end
---------------------------------------------------------------------------------------------------
pppoe_server完整配置

Current configuration : 877 bytes                                                              
!                                                                                              
version 12.4                                                                                   
service timestamps debug datetime msec                                                         
service timestamps log datetime msec                                                           
no service password-encryption                                                                 
!                                                                                              
hostname Router                                                                                
!                                                                                              
boot-start-marker                                                                              
boot-end-marker                                                                                
!
!
aaa new-model
!
!
aaa authentication ppp default local
!
aaa session-id common
memory-size iomem 5
!
!
ip cef   
!
!
vpdn enable
!
vpdn-group 1
!
!
username ccnp password 0 cisco
!
!
!
bba-group pppoe global
 virtual-template 1
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
  //模拟互联网的,可以不要
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 pppoe enable group global
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Virtual-Template1
 ip unnumbered Loopback0 //这里可以是其他地址,此地址作为pppoe_cient上网的网关。为了能通,pppoe_client 加由
 peer default ip address pool itb
 ppp authentication chap

!
ip local pool itb 100.1.1.1 100.1.1.50
ip http server
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
end

阅读(2238) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~