There are many users using the cisco 2500 router. The following describes how the cisco 2500 router implements the ADSL access function. I hope this will help you, this gives you a better understanding of this route.
Step 1: Configure vpdn
Vpdn enable (Virtual Private Dial-Up Network for the cisco 2500 router --- vpnd)
Vpdn-group office (create a vpdn group ,)
Request-dialin (initialize a vpnd tunnel and create a vpdn sub-group to which the request is dial ,)
Protocol pppoe (vpdn sub-group uses pppoe to establish a session tunnel)
Step 2: configure the interface for connecting the cisco 2500 router to the adsl modem
Interface Ethernet1
No ip address
Pppoe enable allows the Ethernet interface to run pppoe
Pppoe-client dial-pool-number 1 Add the pppoe dialing client of the Ethernet interface to the dialing pool 1
Step 3: configure the logical dialing Interface
Interface Dialer1
Ip address negotiated obtains the ip address from the dynamic negotiation of the adsl service provider
Ip nat outside enables NAT for this interface
Encapsulation ppp encapsulates the ppp protocol for this interface
Dialer pool 1 this interface uses the dial-up pool No. 1 for dialing
Dialer-group 1 this command is of little significance to pppoe
Ppp authentication pap callin enables ppp pap Verification
Ppp pap sent-username xxxxxxx password 0 yyyyyyy use the applied user name and password
Step 4: Configure internal network interfaces
Interface Ethernet0 (internal network interface)
Ip address 10.1.1.1 255.255.255.0
Ip nat inside enables NAT for this interface
Step 5: configure the cisco 2500 router to provide dhcp services for internal network hosts
Ip dhcp excluded-address 10.1.1.1
Ip dhcp pool ABC
Import all (import dns and wins server)
Network 10.1.1.0 255.255.255.0
Default-router 10.1.1.1
Step 6: Configure NAT
Access-list 1 permit 10.1.1.0 0.0.255
Ip nat inside source list 1 interface Dialer1 overload
Step 7: configure the default route
Ip route 0.0.0.0 0.0.0.0 Dialer1