The PPPoE protocol is the basis of the network and is believed to be known by the vast majority of dial-up network users. So how to set the PPPoE protocol? This article will introduce this part in detail. Hope to help you.
Configuration command:
◆ Config t enter vro Configuration Mode
◆ Vpdn enable VPDN
◆ No vpdn logging because the PPPoE protocol set for ADSL dialing is implemented through virtual dialing, you need to use the VPDN function in the router.
◆ Vpdn-group pppoe: Start the vpdn process for PPPoE
◆ Request-dialin
◆ Protocol pppoe
Set the dialing protocol to PPPoE.
◆ Interface FastEthernet0
◆ Ip address 192.168.0.1 255.255.255.0
Set the company's internal network address
◆ Enable nat translation for ip NAT inside, set port Fa0 to internal network, and convert the source address that receives data from internal network to public network address
◆ Interface ATM0 set ADSL interface
◆ No ip address because the IP address is automatically obtained, do not set the ip address.
◆ No atm ilmi-keepalive
◆ Bundle-enable
◆ Dsl operating-mode auto
◆ Hold-queue 224 in
◆ Interface ATM 0.1 point-to-point
Because the communication set by ADSL dialing relies on VC, point-to-point VC must be set.
◆ Pvc 8/35 sets the related parameters of PVC, that is, the values of VCI and VPI. If you are not clear, you can ask the local telecom.
◆ Pppoe-client dial-pool-number 1PPPoE the dialing process uses the General dialing process dial-pool 1
◆ Interface Dialer1: create a virtual dialing Port
◆ Ip address negotiated because the Bureau provides a dynamic address, the address is set here for automatic negotiation, rather than manual settings.
◆ The mtu value of ip mtu 1492 is modified to apply to the ADSL dial-up setting network. The default value is 1500. We need to change it to 1492. Note that packet loss may occur if you do not modify the value.
◆ Enable nat translation for ip NAT outside and set the Internet port to an external network
◆ Encapsulation ppp uses the PPP frame format
◆ Dialer pool 1
◆ Ppp authentication pap callin
Set the dialing verification method to pap instead of chap.
◆ Ppp pap sent vip pass vip sends the user name and password. The ADSL dialing user name is VIP, And the password is also VIP. Enter the actual password here.
◆ Ip nat inside source list 1 interface Dialer1 overload sets the NAT conversion mode and uses the Dynamic Address of port dialer 1
◆ Ip classless non-class IP Address Identification Subnet
◆ Ip route 0.0.0.0 0.0.0 dialer1 Add a default route to forward all unroutable data packets to the ADSL dialing line.
◆ No ip http server
◆ Access-list 1 permit 10.92.1.0 0.0.255
◆ Set the ACL for filtering during NAT Translation
Conclusion: After the PPPoE protocol is set up, we can enable the PPPOE connection ADSL dialing settings through the router. This convenient, simple, and inexpensive way of surfing the Internet has brought us great help in our work and study.