MikroTik Configuration with PPPoE WAN Connection

MikroTik Router is a popular routing device to any network administrator because of having a lot of network features availability. MikroTik PPPoE Client is a special feature that is used to connect any PPPoE Server. If your ISP provides PPPoE connection, MikroTik Router is able to connect that PPPoE Server using PPPoE Client. In my previous article, I discussed how to configure MikroTik Router with static WAN connection and in this article I will show how to configure MikroTik Router with WAN PPPoE Client.

Core Devices and IP Information

To configure MikroTik Router with WAN PPPoE Client, I am using a MikroTik RouterBoard 1100 AHX2 (RouterOS v6.38.1). IP information that I am using this configuration is given below.

  • PPPoE username: mikrotik_wan and Password: mikrotik123
  • LAN Gateway: 192.168.10.1/24 and
  • DNS IP: 8.8.8.8 or 8.8.4.4

This information is just for my R&D purpose. Change this information according to your network requirements.

Network Diagram

To configure MikroTik Router with WAN PPPoE Client, I am following a network diagram like below image.

MikroTik WAN PPPoE Client
MikroTik WAN PPPoE Client

In this network, MikroTik Router’s ether1 interface is connected to ISP network where PPPoE Server is enabled. So, we will create MikroTik PPPoE Client in this interface so that MikroTik Router can connect with ISP PPPoE Server and can access internet. Again, MikroTik Router’s ether2 interface is connected to a LAN switch having IP block 192.168.10.0/24. We are assigning static IP for LAN users but if we want, we can configure MikroTik PPPoE Server, MikroTik DHCP Server or MikroTik Hotspot Server on ether2 interface.  We will also configure NAT in our MikroTik Router so that LAN users are able to get internet using this private IP block.

MikroTik Configuration with WAN PPPoE Client

We will now start our MikroTik Router configuration with WAN PPPoE client according to the above network diagram. Complete MikroTik configuration with PPPoE WAN connection can be divided into four steps.

  • MikroTik PPPoE Client Configuration on WAN Interface
  • Assigning LAN Gateway
  • Assigning DNS IP and
  • NAT configuration

Step 1: MikroTik PPPoE Client Configuration on WAN Interface

If your uplink ISP provides PPPoE connection, you must configure MikroTik PPPoE Client on your WAN interface. The following steps will show how to configure PPPoE Client on MikroTik WAN interface.

  • Login to MikroTik Router using Winbox with admin privilege credential.
  • Click on PPP menu item. PPP window will appear. From Interface tab, click on PLUS SIGN (+) dropdown menu and then choose PPPoE Client. New Interface window will appear.
  • Under General tab, put your PPPoE interface name (pppoe-wan) in Name input field and then choose your WAN interface (ether1) from Interfaces dropdown menu.
  • Click on Dial Out tab and put your ISP given username (mikrotik_wan) in User input field and password (mikrotik123) in Password input field. Click on Dial On Demand checkbox and Use Peer DNS checkbox. Also ensure that Add Default Route checkbox is checked. Also uncheck all the checkboxes except pap checkbox from Allow panel.
  • Click Apply and OK button.
MikroTik PPPoE Client Configuration
MikroTik PPPoE Client Configuration

MikroTik PPPoE Client will be connected now and you can see PPPoE Client status from Status tab. You will find that a dynamic IP is added in IP > Address list and you will also find a default route is automatically added in IP > Routes list by MikroTik PPPoE client.

Step 2: Assigning LAN Gateway

After MikroTik PPPoE Client configuration, we will now assign LAN Gateway IP so that LAN user can communicate with MikroTik Router. The following steps will show how to assign LAN Gateway IP in MikroTik Router.

  • Go to IP > Addresses menu item. Address List window will appear.
  • Click on PLUS SIGN (+) and put your LAN gateway IP (192.168.10.1/24) in Address input field.
  • Choose your LAN interface (ether2) from Interface dropdown menu.
  • Click Apply and OK button.

LAN Gateway IP has been assigned. Now we will assign DNS IP in our MikroTik Router.

Step 3: Assigning DNS IP

According to our PPPoE Client configuration, DNS IP will be assigned dynamically if ISP provides DNS IP with their PPPoE Server’s user profile. However, we will assign DNS Server IP manually in our MikroTik Router because they may forget to assign DNS Server IP with their user profile. The following steps will show how to assign DNS IP in your MikroTik Router.

  • Go to IP > DNS menu item and put DNS Server IP (8.8.8.8 or 8.8.4.4) in Servers input field.
  • Click on Apply and OK button.

Assigning DNS IP has been completed. Now we will configure NATing so that LAN user can get internet through MikroTik Router.

Step 4: NAT Configuration

In the last step, we will create a NAT firewall rule to masquerade our LAN IP block. Otherwise, our LAN user cannot access internet through our MikroTik router. The following steps will show how to create the masquerade firewall rule in your MikroTik router.

  • Go to IP > Firewallmenu and click on NAT tab and then click on PLUS SIGN (+). New NAT Rule window will appear now.
  • Choose srcnatfrom Chain dropdown menu and put LAN IP block (192.168.10.0/24) in Address input field.
  • Click on Action tab and choose masqueradefrom Action dropdown menu.
  • Click Applyand OK

NAT configuration in MikroTik router has been completed as well as all our necessary steps to configure MikroTik Router with WAN PPPoE Client have been completed. Now connect your LAN users to MikroTik Router through a LAN switch. If everything is OK, your LAN users will able to get internet through MikroTik Router.

If you face any confusion to follow above steps properly, watch my video about MikroTik Router Configuration with WAN PPPoE Client. I hope it will reduce your any confusion.

I have used static IP for LAN users for making this article simple but in real situation you will prefer MikroTik DHCP Server or MikroTik PPPoE Server or MikroTik Hotspot Server for connecting your LAN users. So, follow my articles about MikroTik DHCP Server Configuration, MikroTik PPPoE Server Configuration and MikroTik Hotspot Server Configuration and choose which is suitable for your network.

MikroTik Router Configuration with WAN PPPoE Client has been discussed in this article. I hope you are now able to configure MikroTik PPPoE Client if your ISP uses PPPoE Server for their connection. However, if you face any confusion to configure MikroTik WAN PPPoE connection, feel free to discuss in comment or contact with me from Contact page. I will try my best to stay with you.

Why not a Cup of COFFEE if the solution?

mikrotik-configuration-with-pppoe-wan-connection

ABU SAYEED

I am a system administrator and like to share knowledge that I am learning from my daily experience. I usually work on MikroTik, Redhat/CentOS Linux, Windows Server, physical server and storage, virtual technology and other system related topics. Follow Me: Facebook, Twitter and Linkedin.

Your name can also be listed here. Have an IT topic? Submit it here to become a System Zone author.

One comment

  • Avatar for yasir yasir

    salam sir how are you … i hope you are fine ….maine ap sy boht sekha hai ap se ek question agar ap help kr sake to please sir……main pppoe ke client bnae hai par sometime masla yeh ata hai ke account to activate hote hain lekin timout ka option agar mujhe guide kr sake to thanks sir

Leave a Reply

Your email address will not be published. Required fields are marked *

*