ISCW实验3:配置Cisco PPPoE Server和Cisco PPPoE Client

 
 
试验拓扑介绍:两台路由器,通过ATM1和ATM2桥接,左边为R1,右边为R2。R1配置为PPPOE SERVER ,R2配置为PPPOE CLIENT。
试验要求:通过ATM1和ATM2,二层桥接,R2发送拨号请求,经过ATM2--DSLAM-AMT1从R1处获得IP地址
 
实验过程:
第一步  配置R1为PPPoE客户端

R1(config)# int f0/0
R1(config-if)# pppoe enable  接口下开启pppoe协议
R1(config-if)# no sh
R1(config-if)#
R1(config-if)# pppoe-client dial-pool-number 1 定义组名
R1(config-if)# exit
R1(config)#
R1(config)# interface Dialer0  虚拟接口Dialer0
R1(config-if)# ip address negotiated
R1(config-if)#
R1(config-if)# encapsulation ppp  封装PPP
R1(config-if)# dialer pool 1
R1(config-if)# ppp chap hostname cisco   配置拨号上去加密方式和密钥  0代表为加密强度
R1(config-if)# ppp chap password 0 cisco
R1(config-if)# exit
R1(config)#
R1(config)# ip route 0.0.0.0 0.0.0.0 Dialer0 指定一条默认路由,下一跳为dialer0

第二步  配置R2为Aggregation路由
R2(config)# username cisco password cisco
R2(config)#
R2(config)# vpdn enable
R2(config)# vpdn-group 1
R2(config-vpdn)# accept-dialin
R2(config-vpdn-acc-in)# protocol pppoe
% PPPoE config from vpdn-group is converted to pppoe-profile based config.
% Continue PPPoE configuration under 'bba-group pppoe global'
% PPPoE config from vpdn-group is converted to pppoe-profile based config.
% Continue PPPoE configuration under 'bba-group pppoe global'
R2(config-vpdn-acc-in)# exit
R2(config-vpdn)# bba-group pppoe global
R2(config-bba-group)# virtual-template 1
R2(config-bba-group)# exit
R2(config)#
R2(config)# int f0/0
R2(config-if)# no ip add
R2(config-if)# pppoe enable
R2(config-if)# no sh
R2(config-if)#
R2(config-if)# int virtual-template 1
R2(config-if)# ip add 10.0.0.1 255.255.255.0
R2(config-if)# peer default ip address pool cisco
R2(config-if)# ppp authentication chap
R2(config-if)# exit
R2(config)# ip local pool cisco 10.0.0.10 10.0.0.20
第三步  配置ATM1
ATM1(config)# no ip routing
ATM1(config)#
ATM1(config)# int f0/0
ATM1(config-if)# no ip add
ATM1(config-if)# no sh
ATM1(config-if)# bridge-group 1
ATM1(config-if)#
ATM1(config-if)# int atm1/0
ATM1(config-if)# no ip add
ATM1(config-if)# no sh
ATM1(config-if)# bridge-group 1
ATM1(config-if)# pvc 1/100
ATM1(config-if-atm-vc)# encapsulation aal5snap
ATM1(config-if-atm-vc)#
ATM1(config-if-atm-vc)# bridge 1 protocol ieee
ATM1(config)# end
ATM1#
ATM1# show bridge group
Bridge Group 1 is running the IEEE compatible Spanning Tree protocol
   Port 4 (FastEthernet0/0) of bridge group 1 is down
   Port 5 (ATM1/0 RFC 1483) of bridge group 1 is down
第四步  配置ATM2
ATM2(config)# no ip routing
ATM2(config)#
ATM2(config)# int f0/0
ATM2(config-if)# no ip add
ATM2(config-if)# no sh
ATM2(config-if)# bridge-group 1
ATM2(config-if)#
ATM2(config-if)# int atm1/0
ATM2(config-if)# no ip add
ATM2(config-if)# no sh
ATM2(config-if)# bridge-group 1
ATM2(config-if)# pvc 2/200
ATM2(config-if-atm-vc)# encapsulation aal5snap
ATM2(config-if-atm-vc)#
ATM2(config-if-atm-vc)# bridge 1 protocol ieee
ATM2(config)#
第五步  在R1上进行PPPoE和PPP信息的调试
R1# debug ppp authentication
PPP authentication debugging is on
R1# debug pppoe events
PPPoE protocol events debugging is on
R1#
*Jun 16 20:35:37.319:  padi timer expired
*Jun 16 20:35:37.319:  Sending PADI: Interface = FastEthernet0/0
R1#
*Jun 16 20:41:34.331:  PPPOE: we've got our pado and the pado timer went off
*Jun 16 20:41:34.331: OUT PADR from PPPoE Session
*Jun 16 20:41:34.451: PPPoE 1: I PADS  R:ca02.0a14.0000 L:ca01.0a20.0000 Fa0/0
*Jun 16 20:41:34.451: IN PADS from PPPoE Session
*Jun 16 20:41:34.483: %DIALER-6-BIND: Interface Vi2 bound to profile Di0
*Jun 16 20:41:34.483: PPPoE: Virtual Access interface obtained.
*Jun 16 20:41:34.487: PPPoE : encap string prepared
*Jun 16 20:41:34.487: [0]PPPoE 1: data path set to Virtual Acess
*Jun 16 20:41:34.491: Vi2 PPP: Using dialer call direction
*Jun 16 20:41:34.491: Vi2 PPP: Treating connection as a callout
*Jun 16 20:41:34.495: Vi2 PPP: Session handle[A1000004] Session id[0]
*Jun 16 20:41:34.495: Vi2 PPP: Authorization required
*Jun 16 20:41:34.495: Vi2 PPP: No remote authentication for call-out
*Jun 16 20:41:34.623: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
R1#
*Jun 16 20:41:34.807: Vi2 PPP: No authorization without authentication
*Jun 16 20:41:34.831: Vi2 CHAP: I CHALLENGE id 1 len 23 from "R2"
*Jun 16 20:41:34.903: Vi2 CHAP: Using hostname from interface CHAP
*Jun 16 20:41:34.903: Vi2 CHAP: Using password from interface CHAP
*Jun 16 20:41:34.903: Vi2 CHAP: O RESPONSE id 1 len 26 from "cisco"
*Jun 16 20:41:35.471: Vi2 CHAP: I SUCCESS id 1 len 4
R1#
*Jun 16 21:00:15.147: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up
R1# show ip route
Codes: 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
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
     10.0.0.0/32 is subnetted, 2 subnets
C       10.0.0.10 is directly connected, Dialer0
C       10.0.0.1 is directly connected, Dialer0
S*   0.0.0.0/0 is directly connected, Dialer0
R1#
R1# show pppoe session
     1 client session
Uniq ID  PPPoE  RemMAC          Port                    VT  VA         State
           SID  LocMAC                                      VA-st
    N/A      1  ca02.0a14.0000  Fa0/0                  Di0  Vi2        UP     
                ca01.0a20.0000                              UP        
R1#

你可能感兴趣的:(配置,Cisco,休闲,pppoe)