PPPoE Server Howto [TXT]

Taking care of your Linux box.
Post Reply
Posts: 97
Joined: Thu Jan 10, 2008 3:11 pm
Location: Karachi

PPPoE Server Howto [TXT]

Post by zaib »

Steps Required to Setup Mikrotik RouterOS as an PPPoE Server:

Step 1: Configuring IP Addresses of Interface connected to Local Ntework and WAN (ISP/Fiber/DSL)
ether1 (Connected to WAN with ip=
ether2 (connected to LAN with ip=

Step 2: Setting up MTR as a DNS Server.

Step 3: Setting up MTR as a DHCP Server.

Step 4: Creating IP-Pools for PPPoE Server use.

Step 5: Setting up PPPoE Server.

Step 6: Creating Profiles for PPPoE Server, that will use IP-
Pools created earliest.

Step 7: Creating Profiles for PPPoE Server, that wlil use IP- Pools created earlier.

Step 8: Creating Default Route for Internet Traffic.

Let's Start ...

Installing Mikrotik RouterOS is quite simple, just download the latest version from www.mikrotik.com and burn it on CD. its an ISO base image file, so you may be need NERO or any cd burning application. Boot from the CD and you will be prompted to choose options what to select, just makr tick on everything, and press 'i' to install it,
WARNING !!! MTR installation will erase all prtitions on your Harddisk and format it. you dont have any partition selection option, so Better be carefull.
It will only few minutes , and then it will restart.
After booting the MTR OS, it will ask you to enter Admin id and pass. The first default id password is

id = admin
pass =
(No password, just hit ENTER)
Later on, you can change it by entring:

Now lets setup Basic Interface configuration:

You can see interface config by typing:
ip address print

Now we will first configure WAN ethernet:
ip address add address= broadcast= interface=ether1

Now we will configure LAN ethernet:
ip address add address= broadcast= interface=ether2

Now we will set Primary DNS so we can resolve internet addresses:
ip dns set primary-dns= allow-remote-requests=yes
(Note: Replace with your isp DNS server Ip.)

Now we will setup MTR as a DHCP Server which will handout ip's to LAN users so they can connect with the MTR to establish PPPoE connection:
ip pool add name=DHCP ranges=

ip dhcp-server add name=DHCP-Main add-arp=yes disabled=no interface=ether2 address-pool=DHCP

Creating IP-Pools which PPPoE server will hand out to users when they establish PPPoE Connectivity with the Server:
ip pool add name=pppoe-pool ranges=

Setting up PPPoE Server:
interface pppoe-server server add interface=ether2 max-mtu=1488 max-mru=1488 keepalive-timeout=disabled one-session-per-host=yes max-sessions=0 default-profile=default authentication=pap disabled=no

Creating profiles for PPPoE Server, that will use ip-pools created earlier:
ppp profile add name=pppoe-profile local-address= remote-address=pppoe-pool dns-server= rate-limit=128k/128k

Creating Firewall/Masquerade rules to allow PPPoE client to access Internet:
ip firewall nat add chain=srcnat src-address-list= action=masquerade

Setting Default Route for internet Traffic:
ip route add dst-address= gateway=

Now create a test user which will use the profile created earlier.

ppp secret add name=test password=test profile=pppoe-profile

PPPoE Server Setup Done :), now test it on any winXP machine by creating a PPPoE Dialer.
[Note: MTR PPPoE Server , Text format howto derived from Mudassir's PPoE CBT from http://www.diglinux.com/videos/Mikrotik ... Server.avi ]
Create a PPPoE client connection:
You can install the PPPoE client just like you install any other dial-up networking connection. To create a PPPoE client connection, follow these steps:
1. Click Start, click Control Panel, and then double-click Network and Internet Connections.
2. Click Network Connections, and then click Create a new connection in the Network Tasks pane.
3. After the Network Connection Wizard starts, click Next.
4. Click Connect to the Internet, and then click Next.
5. Click Set up my connection manually, and then click Next.
6. Click either Connect using a broadband connection that requires a user name and password or Connect using a broadband connection that is always on.
7. Type the Internet service provider (ISP) name that your ISP provided, and then click Next.
8. Type the user name that the ISP provided.
9. Type the password that the ISP provided.
10. Type the password one more time to confirm it, and then click Next.
11. Click Add a shortcut to this connection to my desktop.
12. Click Finish to complete the wizard.


web: http://aacable.wordpress.com
msn: aacable@hotmail.com
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad

Post by x2oxen »

Good effort. Include in this that how to integrate billing with this. it will be a nice thing.
Muhammad Usman
Chemonics International
Posts: 9
Joined: Mon Nov 08, 2004 2:56 am
Location: karachi

Post by softnetworks »

Very nice . i also ask how can integrate billing system with this .
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai

Post by mudasir »


the video is not at diglinux.com any more. that site is down bcz i am unable to give proper time.
videos can be found at above link, however the video quality is not that good.

about integrating billing system, its not that difficult at all. i have done radius integration with daloradius, and it worls like charm.
Kind Regards
Mudasir Mirza (RHCE)
Post Reply