PPPoE (Point-to-Point Protocol over Ethernet) is how most small and medium ISPs in Bangladesh connect home customers. Each customer's router logs in with a username and password, and the ISP's router gives them an address and a speed package.
Analogy: PPPoE works like a prepaid mobile SIM. The account (username and password) decides who you are and which package you get. Move the same account to another router and the same package follows it.
Our example
| Item | Value |
|---|---|
| Upstream internet | ether1 |
| Customer-facing port | ether2 (to your switches) |
| Router address for customers | 10.10.10.1 |
| Customer address pool | 10.10.10.2 to 10.10.10.254 |
| Package | 5 Mbps |
Step 1: Create the customer address pool
/ip pool add name=pppoe-pool ranges=10.10.10.2-10.10.10.254
Step 2: Create a package (PPP profile)
/ppp profile add name=pkg-5M local-address=10.10.10.1 remote-address=pppoe-pool dns-server=1.1.1.1,8.8.8.8 rate-limit=5M/5M
The profile is the package. rate-limit=5M/5M gives each customer 5 Mbps upload and 5 Mbps download. Make one profile per package (pkg-10M, pkg-20M and so on).
Step 3: Start the PPPoE server
/interface pppoe-server server add service-name=myisp interface=ether2 default-profile=pkg-5M authentication=chap,mschap2 one-session-per-host=yes disabled=no
one-session-per-host stops one customer router from opening several sessions. CHAP and MS-CHAPv2 avoid sending passwords in plain text, which PAP does.
Step 4: Add customer accounts
/ppp secret add name=cust0001 password=Rk7-Mango-19 service=pppoe profile=pkg-5M comment="Rahim, House 12"
/ppp secret add name=cust0002 password=Tq4-River-33 service=pppoe profile=pkg-5M comment="Karim, House 18"
Use the comment field for the customer's name and address; it saves a lot of time when you troubleshoot.
Step 5: Let customers reach the internet (NAT)
/ip firewall nat add chain=srcnat src-address=10.10.10.0/24 out-interface=ether1 action=masquerade
Step 6: Check who is online
/ppp active print
/interface print where type="pppoe-in"
Each connected customer appears as a dynamic pppoe-in interface, so you can watch their traffic live with Torch or the interface list.
Changing a package or blocking a customer
/ppp secret set cust0001 profile=pkg-10M
/ppp secret disable cust0002
/ppp active remove [find name=cust0002]
A profile change applies the next time the customer connects. Disabling the secret stops new logins; removing the active session disconnects them now.
Common problems
- Customer can't connect: check the username, password and that the secret is enabled. The router log shows why a login failed.
- Connects but no internet: check the NAT rule and the DNS servers in the profile.
- Some websites load slowly or not at all: often an MTU issue. PPP profiles change the TCP MSS by default (
change-tcp-mss=yes); make sure it hasn't been turned off.
Going further
Larger ISPs move accounts to a RADIUS server, add bandwidth management with queues and run BGP with upstream providers. These are covered in the MTCUME, MTCTCE and MTCINE courses. See all MikroTik certifications, and secure your router first with firewall basics.