PPPoEoA client configuration example

Network requirements

As shown in Figure 71, the Ethernet interface IP address of Router A serves as the gateway of all PCs in LAN. Router A is directly connected to the ADSL accessing end of public network through the ADSL card to serve as the client of PPPoEoA (ATM1/0 is the port number of the ADSL card). The Server, PPPoEoA authentication server of public network, is used to authenticate user information through CHAP.

Figure 71: Network diagram

Configuration procedure

  1. Configure Router A:

    # Configure user name and password.

    <RouterA> system-view
    [RouterA] local-user Sysname
    [RouterA-luser-Sysname] password simple hello
    [RouterA-luser-Sysname] service-type ppp
    [RouterA-luser-Sysname] quit
    

    # Configure dialing access control list.

    [RouterA] dialer-rule 10 ip permit
    

    # Create dialer port and configure the dial-up and PPP authentication.

    [RouterA] interface dialer0
    [RouterA-Dialer0] link-protocol ppp
    [RouterA-Dialer0] ppp chap password hello
    [RouterA-Dialer0] ppp chap user user1
    [RouterA-Dialer0] ip address ppp-negotiate
    [RouterA-Dialer0] dialer user ABC
    [RouterA-Dialer0] dialer-group 10
    [RouterA-Dialer0] dialer bundle 12
    [RouterA-Dialer0] quit
    

    # Create a VE interface.

    [RouterA] interface virtual-ethernet 2
    [RouterA-Virtual-Ethernet2] quit
    

    # Configure the ATM interface of ADSL card.

    [RouterA] interface atm1/0
    [RouterA-Atm1/0] pvc 0/32
    [RouterA-atm-pvc-Atm1/0-0/32] map bridge virtual-ethernet 2
    [RouterA-atm-pvc-Atm1/0-0/32] quit
    

    # Configure a VE interface.

    [RouterA] interface virtual-ethernet 2
    [RouterA-Virtual-Ethernet2] pppoe-client dial-bundle-number 12
    

    # Configure the default route.

    [RouterA] ip route-static 0.0.0.0 0.0.0.0 Dialer 0
    
  2. If the PPPoEoA Server is of the same type of router, its PPPoEoA can be configured as follow:

    # Configure user features.

    <Sysname> system-view
    [Sysname] local-user user1
    [Sysname-luser-user1] password simple hello
    [Sysname-luser-user1] service-type ppp
    

    # Create a virtual-template, set the authentication mode to CHAP, and configure the IP address.

    [Sysname] interface virtual-template 0
    [Sysname-Virtual-Template0] ppp authentication-mode chap
    [Sysname-Virtual-Template0] ppp chap user Sysname
    [Sysname-Virtual-Template0] ip address 10.1.1.1 255.255.0.0
    [Sysname-Virtual-Template0] remote address pool 80
    [Sysname-Virtual-Template0] quit
    

    # Configure the users in the domain to use the local authentication scheme, and create a local IP address pool.

    [Sysname] domain system
    [Sysname-isp-system] scheme local
    [Sysname-isp-system] ip pool 80 10.1.1.2 10.1.1.100
    

    # Configure a VE interface.

    [Sysname] interface virtual-ethernet 1
    

    # Enable PPPoE Server on the VT specified on the virtual Ethernet interface.

    [Sysname-Virtual-Ethernet1] pppoe-server bind virtual-template 0
    [Sysname-Virtual-Ethernet1] mac-address 0022-0022-00C1
    [Sysname-Virtual-Ethernet1] quit
    

    # Configure ATM interface 1/0.

    [Sysname] interface atm1/0
    [Sysname-Atm1/0] pvc 0/32
    [Sysname-atm-pvc-Atm1/0-0/32] map bridge virtual-ethernet 1
    

After the configuration, the link layer is capable of working correctly, and the PCs can communicate with the server through the ATM upper layer protocols.