Configuring a Cisco Router to Connect to an ISP Through an ADSL Modem


Hello!
Not so long ago, I helped my friend to configure a Cisco router in their office to connect to their Internet Service Provider (ISP) via ADSL. They had a UC520 SMB router installed, which needed to be connected to the ISP via an ADSL modem. A diagram of that connection is shown in the figure above.
Perhaps some of you will also encounter the need to configure such a connection, so here I provide an example of the configuration that we used for the UC520. Actually, you have to configure PPPoE, NAT and a static route:

interface FastEthernet0/0
 description $ETH-WAN$
 ip address dhcp
 ip virtual-reassembly in
 duplex auto
 speed auto
 pppoe enable group global
 pppoe-client dial-pool-number 1
!
interface Dialer0
 description $FW_OUTSIDE$
 ip address negotiated
 ip mtu 1492
 ip nat outside
 ip virtual-reassembly in
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication chap pap callin
 ppp chap hostname username@dsl.ukrtel.net
 ppp chap password 7 1016594D514347585E567A79
 ppp pap sent-username username@dsl.ukrtel.net password 7 005C4352500F5E555D731C1C
 ppp ipcp dns request
!
interface BVI1
 description $FW_INSIDE$
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
 ip tcp adjust-mss 1452
!
ip nat inside source list 1 interface Dialer0 overload
ip route 0.0.0.0 0.0.0.0 Dialer0
!
access-list 1 permit 192.168.10.0 0.0.0.255