[Router-Dialer0]
nat outbound 2000
[Router-Dialer0]
quit
NOTE
If a private address is used, configure an ACL referenced by NAT.
Step 3
Create a PPPoE session.
[Router]
interface ethernet 0/0/8
[Router-Ethernet0/0/8]
pppoe-client dial-bundle-number 1 on-demand
[Router-Ethernet0/0/8]
quit
Step 4
Configure a static route from the router to the PPPoE server.
[Router]
ip route-static 0.0.0.0 0.0.0.0 24 dialer 0
Step 5
Verify the configuration.
Run the
display pppoe-client session summary
command to check the PPPoE session status
and configuration. The following information shows that the PPPoE session status is Up and the
session configuration is correct.
<Huawei>
display pppoe-client session summary
PPPoE Client Session:
ID Bundle Dialer Intf Client-MAC Server-MAC State
1 1 1 Eth0/0/8 00e0fc030201 00e0fc030201 UP
----End
Configuration Files
Configuration file of the Router
#
sysname Router
#
#
acl number 2000
rule 5 permit source 192.168.1.0 0.0.0.255
#
dialer-rule
dialer-rule 1 ip permit
#
interface Dialer0
link-protocol ppp
ip address ppp-negotiate
dialer user user2
ppp chap user
12345678910
ppp chap password cipher user1
dialer-group 1
dialer bundle 1
nat outbound 2000
#
interface Ethernet0/0/8
pppoe-client dial-bundle-number 0
#
ip route-static 0.0.0.0 0.0.0.0 Dialer0
#
return
Huawei AR200-S Series Enterprise Routers
Quick Start Guide
4 Connecting to the Internet
Issue 01 (2011-12-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
26