MikroTik routers are renowned for their powerful features, flexibility, and robust performance, making them a favorite among network administrators and enthusiasts. However, like any complex networking device, they can sometimes face coectivity issues. One of the most frustrating problems is when your MikroTik router loses its internet coection. This guide will walk you through a systematic troubleshooting process to help you diagnose and resolve common reasons why your MikroTik might not be coecting to the internet.
Before diving into specific configurations, remember that troubleshooting is a process of elimination. Start with the most basic checks and progressively move towards more complex settings.
1. The Foundation: Physical Layer Check
Many network problems stem from simple physical issues. It’s crucial not to overlook these:
- Cables: Ensure all Ethernet cables coected to your MikroTik router (especially the WAN cable coming from your ISP modem/ONT) are securely plugged in, not damaged, and rated appropriately (e.g., Cat5e or Cat6). A loose or faulty cable can be a silent killer of coectivity.
- Interface Status Lights: Check the LED indicators on your MikroTik’s WAN port and your ISP’s modem/ONT. You should see a link light (solid) and ideally activity lights (blinking). If there’s no link light, there’s a physical coection problem between the MikroTik and the ISP modem or between the modem and the ISP’s network.
- ISP Modem/ONT Status: Verify that your ISP’s modem or ONT (Optical Network Terminal) is powered on and functioning correctly. Look for its own status lights – typically, there should be lights indicating power, DSL/Cable sync, and internet coectivity. If the modem itself isn’t online, your MikroTik won’t be either. Try rebooting it.
- Test Direct Coection: Temporarily coect a laptop or PC directly to your ISP modem (bypassing the MikroTik). If the PC gets internet access, the issue is likely with your MikroTik configuration. If not, the problem lies with your ISP or their equipment.
2. IP Address & Default Gateway Configuration
Once you’ve confirmed the physical layer is sound, the next most common culprit is incorrect IP address or default gateway settings on your MikroTik’s WAN interface.
2.1. DHCP Client Status (Common for most ISPs)
If your ISP provides an IP address via DHCP:
- Access your MikroTik router via WinBox or WebFig.
- Go to
IP > DHCP Client. - Ensure there’s an active DHCP client configured on your WAN interface (e.g.,
ether1or the interface coected to your ISP modem). - Check its status. It should show a
boundstatus with a valid IP address, gateway, and DNS servers received from your ISP. If it’s stuck insearchingorrequesting, it might not be receiving an IP address. - Verify that the DHCP client is enabled.
MikroTik Command Line:
/ip dhcp-client print detail
Look for an entry with `status=bound` on your WAN interface.
2.2. Static IP Verification (If your ISP provides a static IP)
If you’re using a static IP configuration:
- Go to
IP > Addresses. Verify that the correct static IP address and network mask are assigned to your WAN interface. - Go to
IP > Routes. Ensure there’s a default route (destination0.0.0.0/0) pointing to the gateway IP provided by your ISP. This is crucial for outgoing traffic.
MikroTik Command Line:
/ip address print
/ip route print
Confirm the WAN IP and the default route’s gateway.
3. DNS Resolution Issues
Even if your MikroTik has an IP address and a default route, you won’t be able to browse websites if DNS resolution fails. Your router needs to convert domaiames (like google.com) into IP addresses.
- Go to
IP > DNS. - Ensure you have valid DNS servers configured (e.g., 8.8.8.8, 8.8.4.4 for Google DNS, or your ISP’s DNS servers).
- Check if “Allow Remote Requests” is enabled if you want local clients to use the MikroTik as their DNS server.
- Test DNS: Open a new terminal in WinBox and try to ping an IP address (e.g.,
ping 8.8.8.8). If this works, your basic coectivity is fine. Then try to ping a domaiame (e.g.,ping google.com). If the IP ping works but the domain ping fails, you have a DNS issue.
MikroTik Command Line:
/ip dns print
/tool ping 8.8.8.8
/tool ping google.com
4. Firewall Rules and NAT (Network Address Translation)
MikroTik’s robust firewall can sometimes block outgoing internet access if misconfigured.
4.1. NAT Masquerade
For your internal network clients to access the internet, your MikroTik typically needs a NAT (Network Address Translation) rule, specifically a “masquerade” rule. This rule translates private internal IP addresses to your public WAN IP address.
- Go to
IP > Firewall > NATtab. - Look for a rule with
Chain: srcnat,Out. Interface: [Your WAN Interface], andAction: masquerade. - If this rule is missing or incorrect, your internal clients won’t be able to reach the internet.
MikroTik Command Line:
/ip firewall nat print
A typical masquerade rule might look like this:
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
(Replace ether1 with your actual WAN interface name).
4.2. Filter Rules
Check your IP > Firewall > Filter Rules. You might have a rule accidentally blocking outgoing traffic on the forward or output chains. For troubleshooting, you can temporarily disable filter rules (carefully!) or move suspicious rules to the bottom to see if coectivity is restored.
MikroTik Command Line:
/ip firewall filter print
5. Inspecting the Routing Table
Your MikroTik’s routing table dictates where network traffic should be sent. If the default route is missing or incorrect, traffic destined for the internet won’t know where to go.
- Go to
IP > Routes. - Look for a route with
Dst. Address: 0.0.0.0/0(the default route). - This route should have a
Gatewaythat is your ISP’s gateway IP address, and it should be reachable via your WAN interface. - If the route status shows
unreachableorinactive, there’s a problem with the gateway or the physical coection.
MikroTik Command Line:
/ip route print
6. External Factors: ISP Problems
Sometimes, the issue isn’t with your MikroTik at all. Always consider external factors:
- ISP Outage: Check your ISP’s status page, social media, or call their support line to inquire about local outages.
- Account Issues: Ensure your ISP account is in good standing and there are no billing issues that might have led to service suspension.
7. Verifying Coectivity
After making any changes, it’s crucial to verify if the internet coection has been restored. Use these tools:
- Ping:
/tool ping [your_ISP_gateway_IP](Tests coectivity to your ISP’s gateway)/tool ping 8.8.8.8(Tests external IP coectivity)/tool ping google.com(Tests external IP and DNS resolution)
- Traceroute:
/tool traceroute google.com. This will show you the path your traffic takes. If it stops at your ISP’s gateway or an early hop, it indicates where the coection is breaking. - Fetch:
/tool fetch url="http://www.example.com/some_small_file.txt". This command attempts to download a file, providing a practical test of HTTP coectivity. - From Client Devices: Test internet access from a device coected to your MikroTik’s LAetwork.
Conclusion
Troubleshooting a MikroTik router that’s not coecting to the internet can seem daunting, but by following a systematic approach, you can pinpoint and resolve most issues. Start with the physical layer, then move to IP configuration, DNS, firewall rules, and finally, routing. Always verify your changes with ping, traceroute, and other testing tools. With its powerful diagnostic capabilities, your MikroTik router provides all the tools you need to get back online.
KATEGORI: Network, Tutorials