PPPoE Client-Server setup and configuration

From DocWiki

(Difference between revisions)
Jump to: navigation, search
(New page: This is an example of configuring PPPoE in a back-to-back scenario. The objective here is to simulate a PPPoE server (typically found on the ISP end) Client--Fa0/0---------------------...)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
This is an example of configuring PPPoE in a back-to-back scenario. The objective here is to simulate a PPPoE server (typically found on the ISP end)
+
This is an example of configuring PPPoE in a back-to-back scenario. The objective here is to simulate a PPPoE server (typically found on the ISP end)<br><br>
   
   
   
   
-
Client--Fa0/0----------------------------------------Fa0/0--Server
+
Client--Fa0/0----------------------------------------Fa0/0--Server<br>
   
   
 +
In this example, we're using 2 routers connected back-to-back on their Fa0/0 ports. Here're the parameters being simulated<br>
   
   
-
In this example, we're using 2 routers connected back-to-back on their Fa0/0 ports. Here're the parameters being simulated
+
1. Authentication using Chap/Pap (Username: cisco, password: sisco) <br>
 +
2. Client being authenticated by the server (one way authentication)<br>
 +
3. IP address being negotiated using IPCP<br><br>
   
   
-
1. Authentication using Chap/Pap (Username: cisco, password: sisco)
+
Here's the relevant configuration needed on the client router<br>
-
2. Client being authenticated by the server (one way authentication)
+
-
3. IP address being negotiated using IPCP
+
   
   
-
Here's the relevant configuration needed on the client router
 
   
   
 +
interface FastEthernet0/0<br>
 +
no ip address<br>
 +
no ip redirects<br>
 +
no ip unreachables<br>
 +
no ip proxy-arp<br>
 +
ip virtual-reassembly<br>
 +
ip tcp adjust-mss 1452<br>
 +
duplex auto<br>
 +
speed auto<br>
 +
pppoe enable<br>
 +
pppoe-client dial-pool-number 1<br>
 +
!<br>
 +
 +
interface Dialer1<br>
 +
ip address negotiated<br>
 +
encapsulation ppp<br>
 +
dialer pool 1<br>
 +
dialer-group 1<br>
 +
no cdp enable<br>
 +
ppp authentication pap chap callin<br>
 +
ppp pap sent-username cisco password sisco<br>
 +
ppp chap hostname cisco<br>
 +
ppp chap password sisco<br>
 +
!<br>
 +
ip route 0.0.0.0 0.0.0.0 Dialer1<br>
 +
 +
 +
Here's the relevant configuration needed on the Server<br>
 +
   
   
-
interface FastEthernet0/0
+
username cisco password sisco<br>
-
no ip address
+
!<br>
-
no ip redirects
+
bba-group pppoe global<br>
-
no ip unreachables
+
virtual-template 1<br>
-
no ip proxy-arp
+
!<br>
-
ip virtual-reassembly
+
interface FastEthernet0/0<br>
-
ip tcp adjust-mss 1452
+
ip address 10.252.102.49 255.255.255.240<br>
-
duplex auto
+
load-interval 30<br>
-
speed auto
+
duplex auto<br>
-
pppoe enable
+
speed auto<br>
-
pppoe-client dial-pool-number 1
+
pppoe enable group global<br>
-
!
+
!<br>
   
   
-
interface Dialer1
+
interface Virtual-Template1<br>
-
ip address negotiated
+
mtu 1492<br>
-
encapsulation ppp
+
ip unnumbered FastEthernet0/0<br>
-
dialer pool 1
+
peer default ip address pool pppoepool<br>
-
dialer-group 1
+
ppp authentication pap chap<br>
-
no cdp enable
+
!<br>
-
ppp authentication pap chap callin
+
ip local pool pppoepool 10.10.10.1 10.10.10.200<br>
-
ppp pap sent-username cisco password sisco
+
!<br>
-
ppp chap hostname cisco
+
-
ppp chap password sisco
+
-
!
+
-
ip route 0.0.0.0 0.0.0.0 Dialer1
+
   
   
 +
 +
Here's how the flow will be<br>
 +
   
   
-
Here's the relevant configuration needed on the Server
+
1. Client negotiates PPPoE using PADo, PADi and PADr with the server, both client and server move into PPP-->LCP phase<br>
 +
2. Client/Server negotiate authentication, other parameters<br>
 +
3. Server asks the client for a username/password (using pap, as pap is configured before chap)<br>
 +
4. Client sends out a username/password configured in it's dialer<br>
 +
5. Server authenticates this username/password against its global username/password list (alternatively a AAA/Radius server)<br>
 +
6. Client and Server both move on to IPCP phase<br>
 +
7. Client sends an ip address of 0.0.0.0 (asking for an ip address from the Server)<br>
 +
8. Server hands out an IP address from its pool (in this case pppoepool)<br>
 +
9. Client/Server finish IPCP phase and the link comes up<br>
   
   
   
   
-
username cisco password sisco
+
At this time, the link should be up and able to pass traffic<br>
-
!
+
-
bba-group pppoe global
+
-
virtual-template 1
+
-
!
+
-
interface FastEthernet0/0
+
-
ip address 10.252.102.49 255.255.255.240
+
-
ip rip advertise 4
+
-
load-interval 30
+
-
duplex auto
+
-
speed auto
+
-
pppoe enable group global
+
-
!
+
-
+
-
interface Virtual-Template1
+
-
mtu 1492
+
-
ip unnumbered FastEthernet0/0
+
-
peer default ip address pool pppoepool
+
-
ppp authentication pap chap
+
-
!
+
-
ip local pool pppoepool 10.10.10.1 10.10.10.200
+
-
!
+
-
+
-
+
-
Here's how the flow will be
+
-
+
-
+
-
1. Client negotiates PPPoE using PADo, PADi and PADr with the server, both client and server move into PPP-->LCP phase
+
-
2. Client/Server negotiate authentication, other parameters
+
-
3. Server asks the client for a username/password (using pap, as pap is configured before chap)
+
-
4. Client sends out a username/password configured in it's dialer
+
-
5. Server authenticates this username/password against its global username/password list (alternatively a AAA/Radius server)
+
-
6. Client and Server both move on to IPCP phase
+
-
7. Client sends an ip address of 0.0.0.0 (asking for an ip address from the Server)
+
-
8. Server hands out an IP address from its pool (in this case pppoepool)
+
-
9. Client/Server finish IPCP phase and the link comes up
+
-
+
-
+
-
At this time, the link should be up and able to pass traffic
+

Latest revision as of 10:03, 5 June 2010

This is an example of configuring PPPoE in a back-to-back scenario. The objective here is to simulate a PPPoE server (typically found on the ISP end)


Client--Fa0/0----------------------------------------Fa0/0--Server

In this example, we're using 2 routers connected back-to-back on their Fa0/0 ports. Here're the parameters being simulated

1. Authentication using Chap/Pap (Username: cisco, password: sisco)
2. Client being authenticated by the server (one way authentication)
3. IP address being negotiated using IPCP

Here's the relevant configuration needed on the client router


interface FastEthernet0/0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip virtual-reassembly
ip tcp adjust-mss 1452
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!

interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication pap chap callin
ppp pap sent-username cisco password sisco
ppp chap hostname cisco
ppp chap password sisco
!
ip route 0.0.0.0 0.0.0.0 Dialer1


Here's the relevant configuration needed on the Server


username cisco password sisco
!
bba-group pppoe global
virtual-template 1
!
interface FastEthernet0/0
ip address 10.252.102.49 255.255.255.240
load-interval 30
duplex auto
speed auto
pppoe enable group global
!

interface Virtual-Template1
mtu 1492
ip unnumbered FastEthernet0/0
peer default ip address pool pppoepool
ppp authentication pap chap
!
ip local pool pppoepool 10.10.10.1 10.10.10.200
!


Here's how the flow will be


1. Client negotiates PPPoE using PADo, PADi and PADr with the server, both client and server move into PPP-->LCP phase
2. Client/Server negotiate authentication, other parameters
3. Server asks the client for a username/password (using pap, as pap is configured before chap)
4. Client sends out a username/password configured in it's dialer
5. Server authenticates this username/password against its global username/password list (alternatively a AAA/Radius server)
6. Client and Server both move on to IPCP phase
7. Client sends an ip address of 0.0.0.0 (asking for an ip address from the Server)
8. Server hands out an IP address from its pool (in this case pppoepool)
9. Client/Server finish IPCP phase and the link comes up


At this time, the link should be up and able to pass traffic

Rating: 3.9/5 (8 votes cast)

Personal tools