PPPoE configuration example
Lab scenario
PPPoe Client R7(f0/0)------------(f0/0)R2 PPPoe Server
R7 learns IP address 6.6.27.7 from R2.
1.PPPoE Client configuration
vpdn enable
!
vpdn-group 1
request-dialin
protocol pppoe
interface FastEthernet0/0
no ip address
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
ppp authentication chap callin
ppp chap hostname R7
ppp chap password cisco
!
2.PPPoE server configuration
username R7 password Cisco
!
vpdn enable
!
vpdn-group 1
accept-dialin
protocol pppoe
virtual-template 1
!
interface FastEthernet0/0
ip address 6.6.27.2 255.255.255.0
pppoe enable
!
interface Virtual-Template1
ip unnumbered FastEthernet0/0
peer default ip address pool p-1
ppp authentication chap
ppp ipcp mask 255.255.255.0
!
ip local pool p-1 6.6.27.7
3.Vevify connection between R2 and R7
R7#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
Dialer1 6.6.27.7 YES IPCP up up
R7#
R7#ping 6.6.27.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.27.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R7#
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 6.6.27.2 YES manual up up
Virtual-Access1 unassigned YES unset up up
Virtual-Access1.1 6.6.27.2 YES TFTP up up
Virtual-Template1 6.6.27.2 YES TFTP down down
4.Monitoring VPDN Groups
R7#sh vpdn
PPPoE Tunnel and Session Information Total tunnels 1 sessions 1
PPPoE Session Information
UID SID RemMAC OIntf Intf Session
LocMAC VASt state
0 47475 000d.bc47.2600 Fa0/0 Vi1 N/A
000d.bdcd.5dc0 UP
R7#sh vpdn session packets
PPPoE Session Information Total tunnels 1 sessions 1
PPPoE Session Information
SID Pkts-In Pkts-Out Bytes-In Bytes-Out
47475 332 333 6962 6977
R7#
R2#sh vpdn
PPPoE Tunnel and Session Information Total tunnels 1 sessions 1
PPPoE Session Information
UID SID RemMAC OIntf Intf Session
LocMAC VASt state
427 47473 000d.bdcd.5dc0 Fa0/0 Vi1.1 CNCT_PTA
000d.bc47.2600 UP
R2#
R2#sh vpdn session packets
PPPoE Session Information Total tunnels 1 sessions 1
PPPoE Session Information
SID Pkts-In Pkts-Out Bytes-In Bytes-Out
47475 206 208 4664 4706
R2#
PPPoe Client R7(f0/0)------------(f0/0)R2 PPPoe Server
R7 learns IP address 6.6.27.7 from R2.
1.PPPoE Client configuration
vpdn enable
!
vpdn-group 1
request-dialin
protocol pppoe
interface FastEthernet0/0
no ip address
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
ppp authentication chap callin
ppp chap hostname R7
ppp chap password cisco
!
2.PPPoE server configuration
username R7 password Cisco
!
vpdn enable
!
vpdn-group 1
accept-dialin
protocol pppoe
virtual-template 1
!
interface FastEthernet0/0
ip address 6.6.27.2 255.255.255.0
pppoe enable
!
interface Virtual-Template1
ip unnumbered FastEthernet0/0
peer default ip address pool p-1
ppp authentication chap
ppp ipcp mask 255.255.255.0
!
ip local pool p-1 6.6.27.7
3.Vevify connection between R2 and R7
R7#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
Dialer1 6.6.27.7 YES IPCP up up
R7#
R7#ping 6.6.27.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.27.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R7#
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 6.6.27.2 YES manual up up
Virtual-Access1 unassigned YES unset up up
Virtual-Access1.1 6.6.27.2 YES TFTP up up
Virtual-Template1 6.6.27.2 YES TFTP down down
4.Monitoring VPDN Groups
R7#sh vpdn
PPPoE Tunnel and Session Information Total tunnels 1 sessions 1
PPPoE Session Information
UID SID RemMAC OIntf Intf Session
LocMAC VASt state
0 47475 000d.bc47.2600 Fa0/0 Vi1 N/A
000d.bdcd.5dc0 UP
R7#sh vpdn session packets
PPPoE Session Information Total tunnels 1 sessions 1
PPPoE Session Information
SID Pkts-In Pkts-Out Bytes-In Bytes-Out
47475 332 333 6962 6977
R7#
R2#sh vpdn
PPPoE Tunnel and Session Information Total tunnels 1 sessions 1
PPPoE Session Information
UID SID RemMAC OIntf Intf Session
LocMAC VASt state
427 47473 000d.bdcd.5dc0 Fa0/0 Vi1.1 CNCT_PTA
000d.bc47.2600 UP
R2#
R2#sh vpdn session packets
PPPoE Session Information Total tunnels 1 sessions 1
PPPoE Session Information
SID Pkts-In Pkts-Out Bytes-In Bytes-Out
47475 206 208 4664 4706
R2#
0 Comments:
Post a Comment
<< Home