MikroTik is a popular router used by many home users, small businesses, and even branches of large enterprise networks. When it comes to connecting MikroTik to the internet, sometimes you may encounter a pppoe connection.
Out of the box, MikroTik has ether1 configured as the WAN port and ether2 as the LAN port. If your ISP provides DHCP as the WAN uplink, all you need to do is connect the MikroTik router’s first port to the ISP, which will provide the public IP address. However, it’s not always the case that the ISP offers DHCP service. In such situations, they provide PPPoE configuration.
In that case, you’ll have to configure the MikroTik router as a PPPoE client. Configuring PPPoE on the MikroTik device is relatively easy. However, if you’re new to MikroTik, you might find it challenging to manually configure the PPPoE client settings.
In this blog, we will explore how to configure PPPoE client settings on MikroTik so that it can establish an internet connection. There are two methods to configure a PPPoE client in MikroTik: using the Quickset wizard and performing manual configuration. Don’t worry; we will cover both options.
We will connect Ethernet 1 to the ISP and configure the remaining ports, including Wi-Fi, for the LAN side. Afterward, we will set up the necessary rules and NAT configurations so that all the LAN hosts can communicate with the internet.
Below is the topology we will be working with:
As you can see, ether1 is connected to the internet using the PPPoE network, and the Ethernet 2 link is connected to the switch, providing LAN access. Finally, there is a wireless network that will offer Wi-Fi connectivity to all the other devices. All the LAN devices will use the 10.1.1.0/24 address range.
Before you proceed you need to have the below.
- MikroTik router hardware ofcourse.
- Winbox utility – You can download it from here.
- Windows machine – You need to run winbox utility in it, though you can run winbox on linux from unofficial build, officially it supports only on windows, so you need a windows machine.
Step by Step to configure the PPPoE network on MikroTik router.
1. Access the MikroTik GUI.
The MikroTik device I’m using for this lab is the MikroTik hAP ac3, equipped with five Ethernet ports. For power, you have the option to connect either directly using the charger or through the PoE Ethernet port.
Let’s take a look at the ports we’ll be using. The first port will be designated for the internet connection, while the second port will serve as the LAN connection. Additionally, I’ll configure the remaining ports to be part of the same LAN network. This means that if you don’t have a switch and want to connect directly to the MikroTik router, you can do so.
It’s important to note that by default, port 2 is configured as the LAN port with the IP address 192.168.88.0/24. When you plug in the LAN port (port 2 or Ethernet 2), it will have DHCP service enabled and will assign IP addresses within the 192.168.88.0/24 range. So, by default, you will receive an IP address from this range.
In my case, I received the IP address 192.168.88.253, and the gateway is set to 192.168.88.1, which is the MikroTik LAN gateway.
To access the router’s graphical user interface (GUI), you can use the Winbox tool.
Note: If you have already configured an IP address on the MikroTik, make sure to take note of the gateway address, as it may be different.
To begin, open Winbox and click on “Neighbors.” Here, you will see the router listed. Click on “Connect” to establish a connection.
If this is your first time accessing the router, you will be prompted to reset the password. Leave the password field blank, enter your new password, and confirm it.
If, for any reason, you are unable to access the Winbox, you can attempt to reach the MikroTik router using the WEB GUI through the HTTP service.
Simply open your preferred browser and type in the following URL: http://192.168.88.1. Note that it should be “http” instead of “https.” In order for HTTPS to function properly, you must have a valid certificate installed which is for another topic of discussion.
2. Obtain the PPPoE credentials from your Internet Service Provider (ISP).
When configuring your MikroTik as a PPPoE client, you’ll need to obtain the necessary credentials from your ISP. These credentials typically consist of a username and password.
Once you have obtained the credentials, you can proceed to configure the PPPoE network on the WAN side of your MikroTik device.
- Ensure that the MAC address is cleared at the ISP’s end.
While this step may not be applicable to all internet service providers, some providers utilize MAC caching when configuring PPPoE on their network.
If you are setting up the network for the first time, you should not encounter any issues. However, it’s important to note that the ISP may store the MAC address in their backend system. Therefore, if you replace your existing device with a new one, the connection may not work until the ISP clears the stored MAC address.
To avoid any complications, it is advisable to contact your ISP and inquire whether they employ MAC caching. If they do, kindly request them to remove the existing MAC address before proceeding with the PPPoE configurations.
PPPoE Client Configurations.
There are two ways to configure the PPPoE link: using the convenient QuickSet wizard or opting for manual configuration.
At times, you may desire complete control over your network, and that’s when the manual configuration comes in handy.
Let’s begin with the QuickSet PPPoE configuration, and later we’ll delve into the Manual setup.
1.PPPoE configurations using quickSet.
Open the QuickSet Menu.
In the mikrotik router, Click on Quick Set in the left top corner.
On the right side, below the internet, choose PPPoE connection.
PPPoE user: Enter the username that you got from the ISP.
PPPoE Password: Enter the password you got from the ISP.
PPPoE Service name: Enter the name of the service, though it is not mandatory.
Click on Apply, as soon as you click on Apply and if the credentials are matching, you should get a message that says Connected.
That’s how easy it is to configure the PPPoE using the QuickSet wizard.
Change the LAN Network.
There are other settings as well, in the Quick set, for example configuring the LAN and its DHCP service.
You can follow the steps mentioned here to change the LAN IP address, ensure to update the DNS as well.
2. PPPoE configuration manually.
Sometimes, you may prefer not to use the quick set wizard to configure the PPPoE settings. Instead, you might want to configure it manually. Let’s explore the step-by-step process for doing that.
In my current setup, the ISP is configured with DHCP, but now I’m transitioning to a PPPoE network.
The MikroTik router has the capability to function as both a PPPoE server and a PPPoE client.
In our case, the PPPoE service is provided by the internet service provider, and the MikroTik router that we’re about to deploy will act as the PPPoE client.
To begin, log in to the Winbox.
On the left pane, locate and click on the PPP section.
A new window will appear, where we will configure the PPPoE Client under the interface side.
Click on the plus icon and choose PPPoE client from the drop-down menu.
Configure PPPoE client.
A PPPoE client interface window will pop up.
Name: You have the option to keep the default name or enter a descriptive one. I’m personally sticking with the default. Interface: This step is crucial; make sure to select “ether1” as the interface since we’ll be connecting the ISP interface to it.
Let’s proceed to the Dial Out tab now.
In the dial out tab.
Service: Enter the service name, it is best to enter the ISP name here.
User: enter the username that you got from the ISP.
Password: Enter the password that you received from the ISP.
Check the option that says, Use Peer DNS.
And click on Apply and OK.
You will find the updated PPPoE configuration listed under the Interface tab.
After successfully connecting, you will witness the flow of incoming and outgoing traffic.
To delve deeper into the status, simply click on the recently created PPPoE configuration and navigate to the traffic tab. Here, you can observe the real-time traffic activity.
No need to be concerned about the 55GB transfer mentioned in the screenshot; it was captured after a week of usage, so it’s not representative of the immediate traffic flow. 😊
We’ve successfully set up and activated the PPPoE link manually, so now we can move on to the next configurations, like assigning IP addresses, configuring interfaces, and setting up bridges. To continue with these steps, refer to the following article.