Configuring PPPoE, NAT, and DHCP on Huawei AR2220 Router (WAN‑Only Model)
This guide details how to configure a Huawei AR2220 router with a single WAN port to enable PPPoE dial‑up, set up default routing, NAT, and DHCP services so that internal LAN users can access the Internet using the specified credentials.
Applicable Model: Huawei AR2220 (WAN‑only device).
Business Requirement: ISP provides PPPoE credentials (user1 / huawei123) and internal users must access the external network.
Network Topology: GE1 connects to the ISP (WAN), GE2 connects to the LAN (IP 192.168.1.1/24). LAN hosts obtain IPs via DHCP.
WAN Side Configuration
1. Create a PPPoE dialer interface and enable CHAP/PAP authentication.
system-view
interface dialer 1
dialer user abc
dialer bundle 1
dialer number 1 autodial
ppp chap user user1
ppp chap password cipher huawei123
ppp pap local-user user1 password cipher huawei123
tcp adjust-mss 1200
ip address ppp-negotiate
ppp ipcp dns admit-any
quit
2. Bind the dialer to the WAN interface (GE1) and start the PPPoE client.
interface gigabitethernet 0/0/1
pppoe-client dial-bundle-number 1
quit
3. Add a default static route via the dialer.
ip route-static 0.0.0.0 0.0.0.0 dialer 1
4. Configure NAT to translate LAN traffic to the WAN.
acl number 3000
rule permit ip
quit
interface dialer 1
nat outbound 3000
quit
LAN Side Configuration
Enable DHCP globally and configure the LAN interface (GE2) with IP address and subnet mask.
dhcp enable
interface gigabitethernet 0/0/2
ip address 192.168.1.1 255.255.255.0
dhcp select interface
dhcp server dns-list 114.114.114.114
return
After completing these steps, internal users will obtain IP addresses via DHCP and be able to access the Internet through the configured PPPoE connection.
Practical DevOps Architecture
Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.