AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S CLI-based Typical Configuration Examples

Example for Configuring the Device as a PPPoE Client to Connect Devices to the Internet

Example for Configuring the Device as a PPPoE Client to Connect Devices to the Internet

Applicability

This example applies to AR routers in all versions.

Networking Requirements

Enterprises want to connect multiple hosts at a site to the same remote access device. The access device provides access control and accounting for these hosts in a manner similar to dial-up access. PPPoE allows a large number of hosts on an Ethernet to connect to the Internet through a remote access device and controls each host using PPP. PPPoE applies to various scenarios, and provides high security as well as convenient accounting. In Figure 5-19, hosts on the enterprise intranet connect to the same PPPoE client, and the PPPoE client is connected to the Internet through a PPPoE server. Router is the PPPoE client and authenticated by the PPPoE server.

Figure 5-19 Networking diagram for PPPoE client configuration

Procedure

  1. Configure the Router. (Take V200R005C20 as an example.)

    #
    dialer-rule   //Enter the dialer rule view.
     dialer-rule 1 ip permit   //Create dialer rule 1.
    #
    acl 3002   //Configure an ACL for NAT.
     rule 5 permit ip source 192.168.0.0 0.0.0.255  
    #
    interface Dialer0   //Enter the dialer interface view.
     link-protocol ppp   //Set the link layer protocol of the dialer interface to PPP.
     ip address ppp-negotiate   //Enable the interface to obtain an IP address after a successful PPP negotiation.
     ppp chap user client   //Configure the user name for PPPoE clients to use in CHAP authentication by the PPPoE server.
     ppp chap password cipher %@%@VGZIW'r|aGrQ"v8`<pEP$7uH%@%@   //Configure the user name for PPPoE clients to use in CHAP authentication by the PPPoE server.
     dialer user server   //Enable RS-DCC.
     dialer bundle 1   //Apply dialer bundle 1 to the dialer interface.
     dialer-group 1   //Add the dialer interface to dialer bundle 1.
     nat outbound 3002   //Configure outbound NAT in Easy IP mode.
     tcp adjust-mss 1200   //Set the maximum segment size (MSS) of TCP packets.
    #
    interface Ethernet2/0/0   //Enter the Ethernet interface view.
     pppoe-client dial-bundle-number 1   //Enable the PPPoE client function on the Ethernet interface.
    #
     ip route-static 0.0.0.0 0 Dialer0   //Configure a static route to the PPPoE server, with dialer0 as the outbound interface.
    

  2. Verify the configuration.

    # Run the display pppoe-client session summary command to check the PPPoE session status and configuration. The command output shows that the PPPoE session status is Up and the PPPoE client configuration is correct.

Configuration Notes

  • The dialer rule number in dialer-rule must be the same as that in dialer-group. The dialer rule number in dialer bundle must be the same as the dial-bundle-number value in pppoe-client.
  • You can define a user name using the dialer user command. The dialer user command only enables the RS-DCC function.
  • The user name and password for PPP authentication on the dialer interface must be the same as those configured on the PPPoE server.
  • The PPPoE client function is enabled on the Ethernet interface. If you specify the on-demand parameter, the on-demand dial-up mode is configured. After being disconnected, the device can create a dial-up connection only when data needs to be transmitted. If you do not specify the on-demand parameter, the automatic dial-up mode is configured. After being disconnected, the device will automatically attempt to create a dial-up connection at intervals.