Your SlideShare is downloading. ×
Configuring the Device as a PPPoE Client on Huawei AR1200
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Configuring the Device as a PPPoE Client on Huawei AR1200

914
views

Published on

Leading Huawei networking products distributor-huanetwork.com …

Leading Huawei networking products distributor-huanetwork.com
Configuring the Device as a PPPoE Client on Huawei AR1200

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
914
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 1 Configuring the Device as a PPPoE Client on Huawei AR1200 PPPoE is a PPP protocol running on the Ethernet and widely used on campus networks. Carriers want to connect multiple hosts at a site to the same remote access device. The access device is expected to provide access control and accounting for these hosts in a manner similar to dial-up access using PPP. Using PPPoE, carriers can achieve this goal at lower cost because Ethernet is the most cost-effective among all access technologies and PPP implements access control and accounting. PPPoE allows a large number of hosts on an Ethernet to connect to the Internet using a remote access device and controls each host using PPP. PPPoE features a large application scale, high security, and convenient accounting. The PPPoE technology implements practical applications such as Internet access accounting and is widely used by broadband access carriers. How to configure the device as a PPPoE client on Huawei AR1200 When the device functions as a PPPoE client, all hosts in a LAN use one ADSL account to dial up to the Internet. 1 Configuring a Dialer Interface Context Before configuring the PPPoE client, you need to configure a dialer interface and a dialer bundle for the dialer interface. NOTE: The device functioning as a PPPoE client supports only resource-shared DCC (RS-DCC). Procedure 1. Run: system-view The system view is displayed. 2. Run: dialer-rule The dialer rule view is displayed.
  • 2. 2 3. Run: dialer-rule dialer-rule-number { acl { acl-number | name acl-name } | ip { deny | permit } | ipv6 { deny | permit } } A dialer ACL is configured. 4. Run: quit Return to the system view. 5. Run: interface dialer number A dialer interface is created and the dialer interface view is displayed. 1. Run: dialer user user-name A dialer user name is created. 2. Run: dialer-group group-number A dialup group that the dialer interface belongs to is configured. The value of group-number must be the same as the value of dialer-rule-number set in step 3. 3. Run: dialer bundle number RS-DCC is enabled and a dialer bundle is configured for the dialer interface. 4. Configure an IP address for the dialer interface.  Configure an IPv4 address for the dialer interface.  Directly configure the IP address. Run: ip address ip-address { mask | mask-length } An IP address is configured for the dialer interface.  Configure the dialer interface to obtain an IP address from the PPPoE server. Run:
  • 3. 3 ip address ppp-negotiate The dialer interface is configured to obtain an IP address from the PPPoE server through PPP negotiation.  Configure an IPv6 address for the dialer interface. Run: ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } An IPv6 address is configured for the dialer interface. NOTE: Before configuring an IPv6 address for a dialer interface, run the ipv6 command in the system view to enable IPv6 packet forwarding and run the ipv6 enable command on the interface to enable IPv6. 2 Enabling the PPPoE Client Function on the Interface Context The PPPoE session works in permanent online mode or packet triggered mode.  In permanent online mode, the device initiates a PPPoE session immediately after the physical link becomes Up. The PPPoE session persists until you delete it.  In triggered online mode, the device does not initiate a PPPoE session immediately after the physical link becomes Up. Instead, the device initiates a PPPoE session only when data needs to be transmitted on the link. If no data is transmitted on the PPPoE link within the specified period, the device terminates the PPPoE session. Ethernet interfaces, PON interfaces, and ATM interfaces support PPPoE sessions.  When the device uses an Ethernet interface or a PON interface to connect to an ADSL modem, create a PPPoE session on the Ethernet interface or the PON interface.  When the device uses an ATM interface to connect to the Internet directly, create a PPPoE session on the virtual Ethernet interface bound to the ADSL interface. Procedure 1. Run: system-view The system view is displayed. 2. Run: interface interface-type interface-number The interface view is displayed.
  • 4. 4 3. Run: pppoe-client dial-bundle-number number [ on-demand ] [ no-hostuniq ] [ ppp-max-payload value ] A dialer bundle is specified for a PPPoE session. If no-hostuniq is not specified, the PPPoE session initiated by the PPPoE client contains the Host-Uniq field. The PPPoE client uses this field to associate an access server response with a particular host request, which ensures strict check. If on-demand is specified, run the dialer timer idle seconds command to set the link idle time on the dialer interface. NOTE: Multiple PPPoE sessions can be established on an Ethernet interface or a PON interface. That is, an Ethernet interface or a PON interface can belong to multiple dialer bundles. A dialer bundle can contain only one Ethernet interface or one PON interface. One dialer bundle maps one PPPoE session. If the dialer bundle of a dialer interface already has an Ethernet interface or a PON interface used for PPPoE, no interface can be added to the dialer bundle. If the dialer bundle contains other interfaces, no Ethernet interface or PON interface can be added to the dialer bundle to establish PPPoE sessions on the PPPoE client. 3 (Optional) Configuring NAT Context When local area network (LAN) users connect to the device functioning as a PPPoE client on an IPv4 network, LAN users use private IP addresses. Network Address Translation (NAT) needs to be configured on the device to translate private IP addresses into public addresses so that LAN users can access the Internet. Procedure  Configure NAT on a dialer interface. For details, see NAT Configuration in the IP service configuration. NOTE: When the IP address of the PPPoE client assigned by the PPPoE server is used as the NAT server IP address, configure the dynamic DNS (DDNS) client. DNS refers to domain name system. For details about DDNS client configuration, see Configuring the DDNS Client. 4 Checking the Configuration
  • 5. 5 Pre-configuration Tasks The device has been configured as the PPPoE client so that hosts on the LAN connected to the device can dial up to the Internet. A PPPoE session has been established, and you can view the PPPoE session status. Procedure  Run the display pppoe-client session { packet | summary } [ dial-bundle-number number ] command to check the PPPoE session status and statistics. Example for Configuring the PPPoE Client Networking Requirements As shown in Figure, the device functioning as the PPPoE client connects to hosts in the LAN using GE1/0/0 and connects to the PPPoE server using GE2/0/0. Users want the hosts to share an account. If the account is authenticated successfully on the PPPoE server, a PPPoE session is established. Service requirements are as follows:  The device establishes a PPPoE session with the PPPoE server using PPP authentication.  When no data needs to be transmitted within the specified period, the PPPoE client terminates the PPPoE session. When data needs to be transmitted, the PPPoE client establishes a PPPoE session with the PPPoE server again. Figure Networking diagram of the device functioning as the PPPoE client Configuration Roadmap The configuration roadmap is as follows:
  • 6. 6 1. Configure Challenge Handshake Authentication Protocol (CHAP) authentication on the dialer interface so that the device can establish a PPPoE session with the PPPoE server using PPP authentication. 2. Set the packet triggered mode so that the PPPoE client terminates the PPPoE session when no data is transmitted within the specified period and establishes the PPPoE session again when data needs to be transmitted. Procedure 1. Configure the PPPoE server. Configure the authentication mode, IP address allocation mode, and IP address or IP address pool for the PPPoE client. For details about the configuration procedure, see the documentation of the PPPoE server. If the device functions as the PPPoE server. 2. Configure a dialer interface. 3. <Huawei> system-view 4. [Huawei] sysname Router 5. [Router] dialer-rule 6. [Router-dialer-rule] dialer-rule 1 ip permit 7. [Router-dialer-rule] quit 8. [Router] interface dialer 1 9. [Router-Dialer1] dialer user user2 10. [Router-Dialer1] dialer-group 1 11. [Router-Dialer1] dialer bundle 1 12. [Router-Dialer1] ppp chap user user1@system 13. [Router-Dialer1] ppp chap password cipher huawei 14. [Router-Dialer1] dialer timer idle 300 15. INFO: The configuration will become effective after link reset. 16. [Router-Dialer1] dialer queue-length 8 17. [Router-Dialer1] ip address ppp-negotiate [Router-Dialer1] quit 18. Create a PPPoE session. 19. [Router] interface gigabitethernet 2/0/0 20. [Router-GigabitEthernet2/0/0] pppoe-client dial-bundle-number 1 on-demand [Router-GigabitEthernet2/0/0] quit 21. Configure a static route from the local host to the PPPoE server. Assume that the IP address of the PPPoE server is 10.10.10.3. [Router] ip route-static 0.0.0.0 0 dialer 1
  • 7. 7 22. Verify the configurations. Run the display pppoe-client session summary command to check the PPPoE session status and configuration. The following command output shows that the PPPoE session status is Up and the session configuration is correct. [Router] display pppoe-client session summary PPPoE Client Session: ID Bundle Dialer Intf Client-MAC Server-MAC State 1 1 1 GE2/0/0 00e0fc030201 0819a6cd0680 UP Configuration Files  Configuration file of the PPPoE client  #  dialer-rule  dialer-rule 1 ip permit  #  interface Dialer1  link-protocol ppp  ip address ppp-negotiate  dialer user user2  ppp chap user user1@system  ppp chap password cipher huawei  dialer bundle 1  dialer queue-length 8  dialer timer idle 300  dialer-group 1  #  interface GigabitEthernet2/0/0  pppoe-client dial-bundle-number 1 on-demand  #  ip route-static 0.0.0.0 0.0.0.0 Dialer1  # return More related: AR G3: THIRD-GENERATION ROUTERS HOW TO CONNECT HUAWEI ROUTER USE VPN HUAWEI AR1200 SERIES ROUTER ORDERING INFORMATION
  • 8. 8 More Huawei products and Reviews you can visit: http://www.huanetwork.com/blog Huanetwork.com is a world leading Huawei networking products distributor, we wholesale original new Huawei networking equipments, including Huawei switches, Huawei routers, Huaweisymantec security products, Huawei IAD, Huawei SFP and other Huawei networking products. Our customers include telecom operators, Huawei resellers, ISP and system integrators. Right now most of our sales are contributed by regular customers Our website: http://www.huanetwork.com Telephone: +852-30501940 Email: sales@huanetwork.com Address: 23/F Lucky Plaza, 315-321 Lockhart Road, Wanchai, Hongkong