CCNP (ISCW) experiment: Configure Cisco PPPoE Server and Client

CCNP (ISCW) experiment: Configure Cisco PPPoE Server and Client
Step 1: Configure R1 as a PPPoE client
R1(config)#int f0/0
R1(config-if)#pppoe enable //Enable PPP0E report service
R1(config-if)#no sh
R1(config-if)#pppoe -client dial-pool-number 1 //Configure this interface as the client, the dial address pool is 1
R1(config-if)#exi

R1(config)#int dialer 0 //Enter dial 0 port configuration mode
R1(config-if)#ip add negotiated //Enable address negotiation
R1(config-if)#en ppp //Packed as ppp
R1(config- if)#dialer pool 1 //Define the address pool number as 1
R1(config-if)#ppp chap hostname libo
R1(config-if)#ppp chap password cisco
R1(config-if)#exi
R1(config)# ip route 0.0.0.0 0.0.0.0 dialer 0

第二步:配置R2为aggregation路由
R2(config)#username libo password cisco
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'
R2(config-vpdn-acc-in)#exi

R2(config-vpdn)#bba-group pppoe global
R2(config-bba-group)#virtual-template 1 //创建一个虚模板
R2(config-bba-group)#exi
R2(config)#int f0/0
R2(config-if)#no ip add
R2(config-if)#pppoe enable
R2(config-if)#no sh
R2(config)#int virtual-template 1
R2(config-if)#ip add 10.0.0.1 255.255.255.0
R2(config-if)#peer default ip add pool libo
R2(config-if)#ppp authen chap
R2(config-if)#exi
R2(config)#ip local pool libo 10.0.0.10 10.0.0.20

第三步:配置ATM1
ATM1(config)#no ip routing
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)#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/00
ATM1(config-if-atm-vc)#encapsulation aal5snap
ATM1(config-if-atm-vc)#bridge 1 protocol ieee
ATM1(config)#end
ATM1#sh bridge group

Bridge Group 1 is running the IEEE compatible Spanning Tree protocol

Port 4 (FastEthernet0/0) of bridge group 1 is learning
Port 5 (ATM1/0 RFC 1483) of bridge group 1 is learning

第四步:配置ATM2
ATM2(config)#no ip routing
ATM2(config)#int f0/0
ATM2(config-if)#no sh
ATM2(config-if)#bridge-group 1
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)#bridge 1 protocol ieee

第五步:
R1#show ip route
………………
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

Debug过程
May 10 15:03:18.879: PPPoE 0: I PADI R:ca01.0ed0.0000 L:ffff.ffff.ffff Fa0/0
May 10 15:03:18.883: Service tag: NULL Tag
May 10 15:03:18.883: PPPoE 0: O PADO, R:ca02.0b80.0000 L:ca01.0ed0.0000 Fa0/0
May 10 15:03:18.887: Service tag: NULL Tag
R2#
May 10 15:03:20.947: PPPoE 0: I PADR R:ca01.0ed0.0000 L:ca02.0b80.0000 Fa0/0
May 10 15:03:20.951: Service tag: NULL Tag
May 10 15:03:20.987: PPPoE : encap string prepared
May 10 15:03:20.999: [1]PPPoE 1: Access IE handle allocated
May 10 15:03:21.007: [1]PPPoE 1: pppoe SSS switch updated
May 10 15:03:21.007: [1]PPPoE 1: AAA unique ID allocated
May 10 15:03:21.007: [1]PPPoE 1: No AAA accounting method list
May 10 15:03:21.007: [1]PPPoE 1: Service request sent to SSS
May 10 15:03:21.011: [1]PPPoE 1: Created, Service: None R:ca02.0b80.0000 L:ca01.0ed0.0000 Fa0/0
May 10 15:03:21.031: [1]PPPoE 1: State NAS_PORT_POLICY_INQUIRY Event MORE_KEYS
R2#
May 10 15:03:21.035: [1]PPPoE 1: O PADS R:ca01.0ed0.0000 L:ca02.0b80.0000 Fa0/0
May 10 15:03:21.051: [1]PPPoE 1: State PPP_START Event DYN_BIND
May 10 15:03:21.051: [1]PPPoE 1: data path set to PPP
May 10 15:03:21.779: [1]PPPoE 1: State LCP_NEGOTIATION Event PPP_LOCAL
May 10 15:03:21.783: PPPoE 1/SB: Sent vtemplate request on base Vi1
May 10 15:03:22.259: [1]PPPoE 1: State VACCESS_REQUESTED Event VA_RESP
May 10 15:03:22.263: [1]PPPoE 1: Vi1.1 interface obtained
May 10 15:03:22.267: [1]PPPoE 1: State PTA_BINDING Event STAT_BIND
May 10 15:03:22.271: [1]PPPoE 1: data path set to Virtual Acess
May 10 15:03:22.271: [1]PPPoE 1: Connected PTA
Show
R1#show pppoe session
1 client session

Uniq ID PPPoE RemMAC Port VT VA State
SID LocMAC VA-st
N/A 1 ca02.0b80.0000 Fa0/0 Di0 Vi2 UP
ca01.0ed0.0000 UP

R2#sh ip local pool

Pool Begin End Free In use Blocked
libo 10.0.0.10 10.0.0.20 10 1 0

Guess you like

Origin blog.51cto.com/starshomes/2577821