PPPoE client in permanent mode configuration example
Network requirements
As shown in Figure 19, Router A serves as a PPPoE server. Configure Router B as a PPPoE client operating in permanent mode.
Figure 19: Network diagram
Configuration procedure
Configure Router A as the PPPoE server:
# Configure an IP address for Virtual-Template 1 and specify an IP address for the peer.
<RouterA> system-view [RouterA] interface virtual-template 1 [RouterA-Virtual-Template1] ip address 1.1.1.1 255.0.0.0 [RouterA-Virtual-Template1] remote address 1.1.1.2 [RouterA-Virtual-Template1] quit
# Enable the PPPoE server on GigabitEthernet 2/1/1, and bind the interface to Virtual-Template 1.
[RouterA] interface gigabitethernet 2/1/1 [RouterA-GigabitEthernet2/1/1] pppoe-server bind virtual-template 1 [RouterA-GigabitEthernet2/1/1] quit
Configure Router B as the PPPoE client:
# Enable bundle DDR on Dialer 1.
<RouterB> system-view [RouterB] interface dialer 1 [RouterB-Dialer1] dialer bundle enable
# Configure Dialer 1 to obtain an IP address through PPP negotiation.
[RouterB-Dialer1] ip address ppp-negotiate
# Configure a PPPoE session that corresponds to dialer bundle 1 (dialer bundle 1 corresponds to Dialer 1).
[RouterB] interface gigabitethernet 2/1/1 [RouterB-GigabitEthernet2/1/1] pppoe-client dial-bundle-number 1 [RouterB-GigabitEthernet2/1/1] quit
# Configure the PPPoE session to operate in permanent mode.
[RouterB] interface dialer 1 [RouterB-Dialer1] dialer timer idle 0
# Set the DDR auto-dial interval to 60 seconds.
[RouterB-Dialer1] dialer timer autodial 60 [RouterB-Dialer1] quit
# Configure a static route.
[RouterB] ip route-static 1.1.1.1 255.0.0.0 dialer 1
Verifying the configuration
# Display summary information about the PPPoE session established between Router B and Router A (PPPoE server).
[RouterB-Dialer1] display pppoe-client session summary Bundle ID Interface VA RemoteMAC LocalMAC State 1 1 GE2/1/1 VA0 00e0-1400-4300 00e0-1500-4100 SESSION