You are on page 1of 8

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 ecause Ethernet is the most cost-effective among all access technologies and PPP implements access control and accounting. PPPoE allows a large num er of hosts on an Ethernet to connect to the !nternet 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 !nternet access accounting and is widely used y road and access carriers. How to configure the device as a PPPoE client on Huawei AR1200 "hen the device functions as a PPPoE client, all hosts in a #$% use one $&'# account to dial up to the !nternet.

1 Configuring a Dialer Interface Context (efore configuring the PPPoE client, you need to configure a dialer interface and a dialer undle for the dialer interface. !"E# The device functioning as a PPPoE client supports only resource-shared &CC )*'&CC+. Procedure ,. *unsyste$%view The system view is displayed. .. *undialer%rule
1

The dialer rule view is displayed. /. *undialer%rule dialer-rule-number 0 acl 0 acl-number 1 na$e acl-name 2 1 i& 0 deny 1 &er$it 2 1 i&v' 0 deny 1 &er$it 2 2 $ dialer $C# is configured. 3. *un(uit *eturn to the system view. 4. *uninterface dialer number $ dialer interface is created and the dialer interface view is displayed. ,. *undialer user user-name $ dialer user name is created. .. *undialer%grou& group-number $ dialup group that the dialer interface elongs to is configured. The value of group-number must e the same as the value of dialer-rule-number set in step /. /. *undialer )undle number *'-&CC is ena led and a dialer undle is configured for the dialer interface. 3.

Configure an !P address for the dialer interface. Configure an !Pv3 address for the dialer interface. &irectly configure the !P address. *uni& address ip-address 0 mask 1 mask-length 2 $n !P address is configured for the dialer interface.

Configure the dialer interface to o tain an !P address from the PPPoE server.

*uni& address &&&%negotiate The dialer interface is configured to o tain an !P address from the PPPoE server through PPP negotiation.

Configure an !Pv5 address for the dialer interface. *uni&v' address 0 ipv6-address prefix-length 1 ipv6-address/prefix-length 2 $n !Pv5 address is configured for the dialer interface. !"E# (efore configuring an !Pv5 address for a dialer interface, run the i&v' command in the system view to ena le !Pv5 packet forwarding and run the i&v' ena)le command on the interface to ena le !Pv5.

2 Ena)ling the PPPoE Client *unction on the Interface Context The PPPoE session works in permanent online mode or packet triggered mode.

!n permanent online mode, the device initiates a PPPoE session immediately after the physical link ecomes Up. The PPPoE session persists until you delete it. !n triggered online mode, the device does not initiate a PPPoE session immediately after the physical link ecomes Up. !nstead, the device initiates a PPPoE session only when data needs to e transmitted on the link. !f no data is transmitted on the PPPoE link within the specified period, the device terminates the PPPoE session.

Ethernet interfaces, P6% interfaces, and $T7 interfaces support PPPoE sessions.

"hen the device uses an Ethernet interface or a P6% interface to connect to an $&'# modem, create a PPPoE session on the Ethernet interface or the P6% interface. "hen the device uses an $T7 interface to connect to the !nternet directly, create a PPPoE session on the virtual Ethernet interface ound to the $&'# interface.

Procedure ,. *unsyste$%view The system view is displayed.


3

..

*uninterface interface-type interface-number The interface view is displayed.

/.

*un&&&oe%client dial%)undle%nu$)er number 8 on%de$and 9 8 no%hostuni( 9 8 &&&% $ax%&ayload value 9 $ dialer undle is specified for a PPPoE session. !f no%hostuni( is not specified, the PPPoE session initiated y the PPPoE client contains the :ost-Uni; field. The PPPoE client uses this field to associate an access server response with a particular host re;uest, which ensures strict check. !f on%de$and is specified, run the dialer ti$er idle seconds command to set the link idle time on the dialer interface. !"E# 7ultiple PPPoE sessions can e esta lished on an Ethernet interface or a P6% interface. That is, an Ethernet interface or a P6% interface can elong to multiple dialer undles. $ dialer undle can contain only one Ethernet interface or one P6% interface. 6ne dialer undle maps one PPPoE session. !f the dialer undle of a dialer interface already has an Ethernet interface or a P6% interface used for PPPoE, no interface can e added to the dialer undle. !f the dialer undle contains other interfaces, no Ethernet interface or P6% interface can e added to the dialer undle to esta lish PPPoE sessions on the PPPoE client.

+ ,!&tional- Configuring Context

A"

"hen local area network )#$%+ users connect to the device functioning as a PPPoE client on an !Pv3 network, #$% users use private !P addresses. %etwork $ddress Translation )%$T+ needs to e configured on the device to translate private !P addresses into pu lic addresses so that #$% users can access the !nternet. Procedure

Configure %$T on a dialer interface. <or details, see %$T Configuration in the !P service configuration. !"E# "hen the !P address of the PPPoE client assigned y the PPPoE server is used as the %$T server !P address, configure the dynamic &%' )&&%'+ client. &%' refers to

domain name system. <or details a out &&%' client configuration, see Configuring the &&%' Client. . Chec/ing the Configuration Pre%configuration "as/s The device has een configured as the PPPoE client so that hosts on the #$% connected to the device can dial up to the !nternet. $ PPPoE session has een esta lished, and you can view the PPPoE session status. Procedure

*un the dis&lay &&&oe%client session 0 &ac/et 1 su$$ary 2 8 dial%)undle% nu$)er number 9 command to check the PPPoE session status and statistics.

Exa$&le for Configuring the PPPoE Client etwor/ing Re(uire$ents As shown in *igure0 the device functioning as the PPPoE client connects to hosts in the #$% using =E,>?>? and connects to the PPPoE server using =E.>?>?. Users want the hosts to share an account. !f the account is authenticated successfully on the PPPoE server, a PPPoE session is esta lished. 'ervice re;uirements are as follows

The device esta lishes a PPPoE session with the PPPoE server using PPP authentication. "hen no data needs to e transmitted within the specified period, the PPPoE client terminates the PPPoE session. "hen data needs to e transmitted, the PPPoE client esta lishes a PPPoE session with the PPPoE server again.

*igure %etworking diagram of the device functioning as the PPPoE client

Configuration Road$a&
5

The configuration roadmap is as follows,. Configure Challenge :andshake $uthentication Protocol )C:$P+ authentication on the dialer interface so that the device can esta lish a PPPoE session with the PPPoE server using PPP authentication. 'et the packet triggered mode so that the PPPoE client terminates the PPPoE session when no data is transmitted within the specified period and esta lishes the PPPoE session again when data needs to e transmitted.

..

Procedure ,. Configure the PPPoE server. Configure the authentication mode, !P address allocation mode, and !P address or !P address pool for the PPPoE client. <or details a out the configuration procedure, see the documentation of the PPPoE server. !f the device functions as the PPPoE server. .. Configure a dialer interface. @:uaweiA syste$%view 8:uawei9 sysna$e Router 8*outer9 dialer%rule 8*outer-dialer-rule9 dialer%rule 1 i& &er$it 8*outer-dialer-rule9 (uit 8*outer9 interface dialer 1 8*outer-&ialer,9 dialer user user2 8*outer-&ialer,9 dialer%grou& 1 8*outer-&ialer,9 dialer )undle 1 8*outer-&ialer,9 &&& cha& user user11syste$ 8*outer-&ialer,9 &&& cha& &assword ci&her huawei 8*outer-&ialer,9 dialer ti$er idle +00 !%<6- The configuration will ecome effective after link reset. 8*outer-&ialer,9 dialer (ueue%length 2 8*outer-&ialer,9 i& address &&&%negotiate 8*outer-&ialer,9 (uit ,B. Create a PPPoE session. 8*outer9 interface giga)itethernet 23030 8*outer-=iga itEthernet.>?>?9 &&&oe%client dial%)undle%nu$)er 1 on%de$and 8*outer-=iga itEthernet.>?>?9 (uit .,. Configure a static route from the local host to the PPPoE server. $ssume that the !P address of the PPPoE server is ,?.,?.,?./.
6

3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.


,4.

16. 17.

19. 20.

8*outer9 i& route%static 0404040 0 dialer 1 ... Cerify the configurations. *un the dis&lay &&&oe%client session su$$ary 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. 8*outer9 dis&lay &&&oe%client session su$$ary PPPoE Client 'ession!& (undle &ialer !ntf , , , =E.>?>? Client-7$C 'erver-7$C 'tate ??e?fc?/?.?, ?B,Da5cd?5B? UP

Configuration *iles

Configuration file of the PPPoE client E dialer-rule dialer-rule , ip permit E interface &ialer, link-protocol ppp ip address ppp-negotiate dialer user user. ppp chap user user,Fsystem ppp chap password cipher huawei dialer undle , dialer ;ueue-length B dialer timer idle /?? dialer-group , E interface =iga itEthernet.>?>? pppoe-client dial- undle-num er , on-demand E ip route-static ?.?.?.? ?.?.?.? &ialer, E return

5ore related# $* =/- T:!*&-=E%E*$T!6% *6UTE*'


7

:6" T6 C6%%ECT :U$"E! *6UTE* U'E CP% :U$"E! $*,.?? 'E*!E' *6UTE* 6*&E*!%= !%<6*7$T!6% 5ore Huawei &roducts and Reviews you can visit# http->>www.huanetwork.com> log

:uanetwork.com is a world leading :uawei networking products distri utor, we wholesale original new :uawei networking e;uipments, including :uawei switches, :uawei routers, :uaweisymantec security products, :uawei !$&, :uawei '<P and other :uawei networking products. 6ur customers include telecom operators, :uawei resellers, !'P and system integrators. *ight now most of our sales are contri uted y regular customers 6ur we site- http->>www.huanetwork.com Telephone- GB4.-/?4?,D3? Email- salesFhuanetwork.com $ddress- ./>< #ucky PlaHa, /,4-/., #ockhart *oad, "anchai, :ongkong

You might also like