We are going to setup MikroTik Router using the WebFig web interface.
So, the following section will show us how to login, startup and configure MikroTik Router using WebFig web interface.
Router and IP Information
To configure a MikroTik Router first time with WebFig web interface, the following information will be used for this basic configuration.
- WAN IP: 192.168.70.2/30
- WAN Gateway: 192.168.70.1
- LAN Gateway: 10.10.11.1/24
- DNS IP: 18.104.22.168 and 22.214.171.124
This IP information is just for my RND purpose.
Please Change this information according to your network requirements.
MikroTik Router First Time Startup and Configuration using WebFig
Web interface is one of the most popular methods to configure and maintain network devices.
Most of the people feel comfort to manage their devices with web interface. For this, MikroTik Router introduces WebFig web interface to configure and manage MikroTik RouterOS.
MikroTik RouterOS configuration with WebFig can be divided into two parts.
Part 1: Connecting and login to MikroTik Router first time and
Part 2: MikroTik Router basic configuration using WebFig.
All MikroTik RouterOS comes with a default IP address of 192.168.88.1/24 assigned on the first interface (ether1 port).
So, WebFig web interface can be accessible by typing in this IP address in a web browser.
The following steps will show you how to access WebFig web interface using the default IP address from windows operating system.
From Internet Protocol Version 4 (TCP/IPv4) Properties, assign a static IP to your computer, from MikroTik default IP block (Such as 192.168.88.10) and put subnet mask (255.255.255.0). Click OK button and close all open windows.
Now open your favorite web browser such Mozilla Firefox, Google Chrome or any other browsers and type MikroTik default IP (https://192.168.88.1) in URL bar and hit Enter key. If everything is OK, Quick Setup page will appear now because MikroTik Router default and only user is admin which has no password. So, no authentication is required until user is configured.
To configure a mikrotik router using the webfig interface,
Go to System > Users page and click on Add New button. Put a new username in Name input field and choose full option from Group dropdown menu.
Put a strong password in Password input field and retype your Password in Confirm Password field.
Now click Apply and OK button.
After creating a full access user, we are now eligible to delete admin user. Click on admin user and then click on Remove button.
The admin user will be deleted now.
Click on Logout button and you will now find WebFig login prompt like below image.
Put your newly created username in Login input field and password in Password input field and then click on Login button to get WegFig configuration page.
Go to IP > Addresses page. Click on default IP address. Now put LAN Gateway IP (10.10.11.1/24) in Address input field and put a meaningful comment (LAN Interface) in Comment input field and click Apply and OK button.
Assign a LAN IP in your laptop or desktop again because we have changed MikroTik’s default IP address and type LAN Gateway IP (https://10.10.11.1) in your browser.
You will find login page now.
Login with your username and password again.
Go to IP > Address page and click on Add New button. In New Address page, put WAN IP (192.168.70.2/30) in Address input field and choose ether2 from dropdown. Put a meaningful comment (WAN Interface) in Comment input field. Click on Apply and OK button.
Go to IP > DNS page and put DNS servers IP (126.96.36.199 and 188.8.131.52) in Servers input field and click on Apply and OK button.
Go to IP > Firewall page and click on NAT tab and then click on Add New button.
Under General panel, choose srcnat from Chain dropdown menu and go to Action panel and then choose masquerade from Action dropdown menu.
Click on Apply and OK button.
Go to IP > Routes page and click on Add New button.
In New Route page, click on Gateway arrow button and put WAN Gateway address (192.168.70.1) in Gateway input field and click on Apply and OK button.
Your MikroTik router is completely ready if you follow the above 4 steps carefully. Connect a switch to MikroTik LAN interface (ether1) with RJ45 cable and connect all PCs to this switch.
Also connect ISP cable to WAN interface (ether2).
Now assign IP to all your LAN PCs according to your LAN IP network series