Basic Mikrotik Router Configuration



IP Address Configuration:
/ip address
add address=192.168.10.1/24 network=192.168.0.0 broadcast=192.168.10.255 interface=LOCAL
add address=103.254.248.206/29 network=103.7.248.200 broadcast=103.254.248.207 interface=WAN

 DNS Configuration:
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=8.8.8.8,4.2.2.1



NAT Configuration:
/ip firewall nat
add action=masquerade chain=srcnat



IP Route Configuration: 
/ip route
add dst-address=0.0.0.0/0 gateway=103.254.248.201


Simple Queue Configuration For Client 192.168.10.2:
/queue simple
Add name="xxx" target-addresses=192.168.10.2/32 interface=LOCAL parent=none
      packet-marks="" direction=both priority=8
      queue=default-small/default-small limit-at=0/0 max-limit=512k/512k
      burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
      total-queue=default-small
Simple Queue Configuration For Client 192.168.1.3:
/queue simple
Add name="yyy" target-addresses=192.168.10.3/32 interface=LOCAL parent=none
      packet-marks="" direction=both priority=8
      queue=default-small/default-small limit-at=0/0 max-limit=1M/1M
      burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
      total-queue=default-small

Comments