As I mentioned on my other pages. I still highly recommend the Ubiquiti EdgeRouter X over this Mikrotik hEX because it has the superior SQM algorithm (FQ_CoDel). However the hEX works fine with SFQ. The hEX is significantly more feature rich than the edgerouter X and is great for advanced users. hEX also boots and resets really fast too..
After your MikroTik hEx box comes in, you need to hook it up. Set it up like one of the setups listed above. It is important that Ethernet Port 1 (Internet / Port In) goes to your modem and the rest of the ports goes to your computers, additional switches, or access points.
*Note: if you have an all in one Comcast modem, router, and wireless combo box you have to figure out how to put it in “bridged mode”. That means you make it function as a modem only. Try googling for your all in one modem’s model number and bridge mode to figure out how to do so.
- Turn off your modem.
- Power on the hEx box by plugging in the power and let it boot up (Takes less than 30 seconds)
- Turn on your modem and let it fully boot (may take a while depending on your Internet Provider)
- Using one of the computers connected to the hEx box via ethernet cable… Open a browser.
- Navigate to 192.168.88.1 (this is the default router IP for the hEx) in the browser.
- A login page will appear so log in with the following credentials…
- (there’s no password initially just login as Admin)
- You should be in the quick-set page and should be able to see your public IP address after the router finishes communicating with your modem.
- During this time you can set up a login password in the same page, apply configurations and logout.
- Download WinBox to access your router without the browser.
- After downloading run WinBox.exe and login with admin and your new password (that you did in step 8).
- Now a new winbox Window should appear…
- Navigate to System > Packages
- Click check for updates and update everything
- Your Mikrotik will restart after updates
- When its done restarting go back into WinBox and login again
Now we will configure the router to prevent Lag
Part I: Firewall Rules
- Navigate to IP > Firewall
- Go to Filter Rules Tab
- Select fasttrack and disable the rule (this is important otherwise the bandwidth management won’t work)
Part II: Terminal Entries
In winbox, navigate to “New Terminal”. After the Terminal window opens type in
press enter then type in….
add kind=sfq name=sfq-default sfq-perturb=10
then press enter again.
Now type in
press enter then type in….
add max-limit=100M/100M name=sfq-default queue=sfq-default/sfq-default target=192.168.88.0/24
then press enter.
Part III: Calibrating your Max Download and Max Upload Speeds
- Make sure nothing is using the network and perform a speedtest from http://www.dslreports.com/speedtest
- Take note of your results and calculate 80% to 90% of your bandwidth as the result. (SQM will not work if this percentage is not lower than your top speed!!!)
- Navigate to Queues and double-click sfq-default (which was created in terminal)
- For your limits enter in 80-90% of your full bandwidth otherwise you will lag! The router needs some extra bandwidth to work with!
- Upload is on the left side. Download is on the right side. In my example my full DL speed was 50Mbps and Full Upload speed was 3 Mbps so I entered in less.
- Then press Apply and OK.
Congrats you are Done!
Calibration and Testing
Run “ping www.google.com -t” in command prompt and then run the speedtest.
If you still have an A rating, with low pings during the speedtest. You can incrementally increase your total bandwidth above the 85% you initially set until pings start to spike higher than desired.
Otherwise if your rating is not good or you are getting bad pings try reducing the max bandwidth limits. (Ex. If 85% is still lagging try 80%.)
Doing this allows you find the sweet spot between getting max bandwidth vs experiencing high pings.