Using Packet Tracer for PPPoE, DHCP, DHCP Snooping


R1:

ena
config t
!
host R1
no ip domain-look
!
int g0/0/0
description Host Network Left
ip address 10.1.0.254 255.255.255.0
no shut
!
user John pass johnpppoe
!
bba-group pppoe global
virtual-template 1
!
ip local pool JOHN_PPPOE_POOL 10.0.0.1 10.0.0.25
!
int virtual-Template 1
ip unnumbered g0/0/1
peer default ip address pool JOHN_PPPOE_POOL
ppp authentication chap
!
int g0/0/1
ip address 10.0.0.254 255.255.255.0
mtu 1492
pppoe enable group global
no shut
!
router rip
ver 2
network 10.0.0.0
!
end

R2:

ena
config t
!
host R2
no ip domain-look
!
int g0/0/0
description Host Network Right
ip address 10.2.0.254 255.255.255.0
no shut
!
int g0/0/1
pppoe enable
pppoe-client dial-pool-number 1
no shut
!
int dialer 1
ppp authentication chap
dialer pool 1
ip address negotiated
mtu 1492
encap ppp
ppp chap hostname John
ppp chap password johnpppoe
!
ip route 0.0.0.0 0.0.0.0 dialer 1 200
!
router rip
ver 2
network 10.0.0.0
!
end



DHCP


ena
config t
!
host R1
no ip domain-look
!
int g0/0/0
description Host Network Left
ip address 10.1.0.254 255.255.255.0
no shut
!
int g0/0/1
ip address 10.0.0.1 255.255.255.252
no shut
!
router rip
ver 2
network 10.0.0.0
!
ip dhcp excluded-address 10.2.0.151 10.2.0.254
ip dhcp excluded-address 10.2.0.1 10.2.0.50
!
ip dhcp pool RIGHT
network 10.2.0.0 255.255.255.0
default-router 10.2.0.254
dns-server 8.8.8.8
domain-name jmowry.com
!
ip dhcp excluded-address 10.1.0.251 10.1.0.254
ip dhcp excluded-address 10.1.0.1 10.1.0.150
!
ip dhcp pool LEFT
network 10.1.0.0 255.255.255.0
default-router 10.1.0.254
dns-server 8.8.8.8
domain-name jmowry.com
!
end



R2:

ena
config t
!
host R2
no ip domain-look
!
int g0/0/0
description Host Network Right
ip address 10.2.0.254 255.255.255.0
ip helper-address 10.0.0.1
no shut
!
int g0/0/1
ip address 10.0.0.2 255.255.255.252
no shut
!
router rip
ver 2
network 10.0.0.0
!
end



SW1


ena
config t
!
host S1
!
ip dhcp snooping
!
int g1/0/2
description Connection DHCP Server
ip dhcp snooping trust
!
end