
PPP over Ethernet
Tác gi Lê Anh Đ cả ứ
Mô t :ả
topo trên, ta có, R3 s làm PPPoE client, còn R1 s làm PPPoE server, th c hi n k t n i v i các m ngỞ ẽ ẽ ự ệ ế ố ớ ạ
trong Internet v i ISP làm router gi l p ISP. Router R2 là router chi nhánh, th c hi n NAT đ choớ ả ậ ở ự ệ ể
mang private ra internet. Chú ý: Các router R3, R1 là các route 2600, ch y IOS version 12.2 tr lên.ạ ở
C u hình:ấ
R1
Building configuration...
*
!
hostname R1
!
!
memory-size iomem 10
ip subnet-zero
!
!
!

vpdn enable b t vpdnậ
!
vpdn-group 1 t o vpdn group đ trao đ i v i clientạ ể ổ ớ
accept-dialin xác đ nh đây là PPPoE serverị
protocol pppoe
virtual-template 1
!
interface Loopback1
ip address 203.162.3.2 255.255.255.255
!
interface Ethernet0/0
no ip address
half-duplex
pppoe enable
!
interface Serial0/0
ip address 203.20.20.2 255.255.255.252
no fair-queue
!
interface Virtual-Template1
ip unnumbered Loopback1
!
ip classless
ip route 0.0.0.0 0.0.0.0 203.20.20.1
!

end
R2
Building configuration...
!
hostname R2
!
interface Ethernet0/0
ip address 10.10.2.1 255.255.255.0
ip nat inside
half-duplex
!
interface Serial0/0
ip address 203.30.30.2 255.255.255.252
ip nat outside
no fair-queue
!
ip nat inside source list 1 interface Serial0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 203.30.30.1
ip http server
!
!
access-list 1 permit 10.10.2.0 0.0.0.255
!
end

R3
Building configuration...
!
hostname R3
!
vpdn enable
!
vpdn-group 1
request-dialin đây là PPPoE client
protocol pppoe
!
interface Loopback0
ip address 10.10.1.1 255.255.255.0
ip nat inside
!
interface Ethernet0/0
no ip address
half-duplex
pppoe enable
pppoe-client dial-pool-number 1 s d ng dialer 1 đ giao ti p v i PPPoE serverử ụ ể ế ớ
!
interface Dialer1

mtu 1492
ip address 203.162.3.1 255.255.255.0
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
!
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 203.162.3.2
ip http server
!
!
access-list 1 permit 10.10.1.0 0.0.0.255
dialer-list 1 protocol ip permit
!
end
ISP
!
hostname ISP
!
!
ip subnet-zero
!
interface Serial0
ip address 203.20.20.1 255.255.255.252

