PPPoE-在配置PPPoE的用户名和密码的时候一定要准确严格,不要在后面加空格,千万记住,特别是复制张贴的时候,同时还有注意大小写的问题!!!


PPPoE-在配置PPPoE的用户名和密码的时候一定要准确严格,不要在后面加空格,千万记住,特别是复制张贴的时候,同时还有注意大小写的问题!!! 

-----------------------------------------------------------------------------------------------------------------------

CE: 配置;

interface dialer 1 
 ip address negotiated 
 ip mtu 1492 
 encapsulation ppp 
 dialer pool 1
 ppp chap hostname 
Jamesons-R21   ----- ---Jamesons-R21  ---R21后面绝对不可以在多敲一个空格,有空格就认证不通过,
 ppp chap password 0  CCIE

interface ethernet 0/0 
 pppoe enable group global
 pppoe-client dial-pool-number 1
 no shutdown

ip route 192.0.2.0 255.255.255.0 dialer 1 


PE:配置;

RSP#show running-config 

username Jamesons-R20 password 0 CCIE
username Jamesons-R21 password 0 CCIE
username Jamesons-R19 password 0 CCIE
!
bba-group pppoe sp
 virtual-template 1
!
interface Loopback0
 ip address 8.8.8.8 255.255.255.255
!
interface Ethernet0/0
 ip address 192.0.2.1 255.255.255.0
!
interface Ethernet0/1
 no ip address
 pppoe enable group sp
!
interface Ethernet0/2
 no ip address
 pppoe enable group sp
!
interface Ethernet0/3
 no ip address
 pppoe enable group sp
!

interface Virtual-Template1
 ip unnumbered Ethernet0/0
 peer default ip address pool sp
 ppp authentication chap
!
router bgp 12345
 bgp log-neighbor-changes
 neighbor 192.0.2.2 remote-as 65002
 neighbor 192.0.2.2 default-originate
!
ip local pool sp 192.0.2.19 192.0.2.21
ip forward-protocol nd
!
RSP#    

-------------------------------

R21#show inter
R21#show ip inter   
R21#show ip interface br
R21#show ip interface brief 
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0/0                unassigned      YES NVRAM  up                    up      
Ethernet0/1                unassigned      YES NVRAM  up                    up      
Ethernet0/2                unassigned      YES NVRAM  up                    up      
Ethernet0/3                unassigned      YES NVRAM  up                    up      
Ethernet1/0                unassigned      YES NVRAM  up                    up      
Ethernet1/1                unassigned      YES NVRAM  up                    up      
Ethernet1/2                unassigned      YES NVRAM  up                    up      
Ethernet1/3                unassigned      YES NVRAM  up                    up      
Dialer1                    192.0.2.21      YES IPCP   up                    up      
Virtual-Access1            unassigned      YES unset  up                    up      
Virtual-Access2            unassigned      YES unset  up                    up      
R21#
R21#
R21#
R21#show pp
R21#show pppoe
R21#show pppoe se
R21#show pppoe session 
     1 client session 

Uniq ID  PPPoE  RemMAC          Port                    VT  VA         State
           SID  LocMAC                                      VA-st      Type
    N/A     10  aabb.cc00.3b30  Et0/0                   Di1 Vi2        UP      
                aabb.cc00.1500                              UP              
R21#
R21#
R21#show 
% Type "show ?" for a list of subcommands
R21#
R21#
R21#show ip ro
R21#show ip route 
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      192.0.2.0/24 is variably subnetted, 3 subnets, 2 masks
S        192.0.2.0/24 is directly connected, Dialer1
C        192.0.2.1/32 is directly connected, Dialer1
C        192.0.2.21/32 is directly connected, Dialer1
R21# 
R21#


brucec@fnetlink.com
 
=========================================

PPP 认证和协商在serial线路上的配置PE-CE。

PE:配置:

username ACME-R18 password 0 CCIE
username ACME-R19 password 0 CCIE
!
interface Serial4/0
 ip address 203.3.18.1 255.255.255.252
 encapsulation ppp
 ppp authentication chap



CE:配置:

interface Serial4/0
 ip address 203.3.18.2 255.255.255.252
 encapsulation ppp
 ppp chap hostname ACME-R18
 ppp chap password 0 CCIE


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值