CARA SETTING / KONFIGURASI DASAR MIKROTIK - MIKROTIK TUTORIAL [ENG SUB]
3 min read
2 months ago
Published on Aug 21, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial provides a comprehensive guide to performing basic configuration on MikroTik routers. Understanding these foundational steps is essential before diving into more advanced configurations such as QoS, Firewall, and Hotspot setups. Follow this step-by-step guide to ensure a successful start to your MikroTik configuration.
Step 1: Create a Network Design
- Design your network topology: Before configuring your router, sketch out how your network will be structured. Consider the devices that will connect to your router and how they will interact.
- Document your design: Write down the devices, their roles, and how they will connect to each other.
Step 2: Allocate IP Addresses for LAN
- Choose a private IP address range: Common ranges include 192.168.0.0/24 or 10.0.0.0/8.
- Assign IP addresses: Decide which IP addresses will be assigned to each device within your local network.
Step 3: Gather ISP Information
- Collect necessary details: Obtain the following from your Internet Service Provider (ISP):
- Public IP address
- Gateway address
- DNS server addresses
- Document this information for easy reference during configuration.
Step 4: Configure the Router for WAN Connection
- Access the MikroTik router: Connect to your router using Winbox or through the web interface.
- Set up the WAN interface:
- Go to the Interfaces menu.
- Select the interface connected to your ISP.
- Assign the public IP address you received from your ISP.
Example CLI Commands:
/ip address add address=<YOUR_PUBLIC_IP> interface=<WAN_INTERFACE>
/ip route add gateway=<YOUR_GATEWAY_IP>
Step 5: Configure the Router for LAN Connection
- Set up the LAN interface:
- Choose the interface that connects to your local network.
- Assign the selected private IP address for the LAN.
Example CLI Commands:
/ip address add address=<YOUR_PRIVATE_IP> interface=<LAN_INTERFACE>
Step 6: Enhance Router Security
- Change default credentials: Always update the default username and password to prevent unauthorized access.
- Enable firewall rules: Implement basic firewall rules to protect your network.
- Disable unused services: Turn off any services you won't use to reduce vulnerabilities.
Example CLI Commands:
/user set admin password=<NEW_PASSWORD>
/ip firewall filter add chain=input action=drop protocol=tcp dst-port=23
Step 7: Add Additional Services
- Explore services: Consider enabling services such as DHCP, NAT, or hotspot functionality based on your needs.
- Configure DHCP Server: If you want devices to get IP addresses automatically, set up a DHCP server.
Example CLI Commands for DHCP:
/ip dhcp-server add address-pool=dhcp_pool interface=<LAN_INTERFACE> name=dhcp1
/ip dhcp-server network add address=<YOUR_PRIVATE_IP_RANGE> gateway=<YOUR_PRIVATE_IP>
Conclusion
By following these steps, you’ve laid the groundwork for a well-configured MikroTik router. Ensure you keep your documentation updated as your network evolves. As you get comfortable with these basics, explore additional configurations to optimize your network further. Happy configuring!