BetaIT Bible Labs is new. Things may change or break while we improve it. Found a problem? Tell us in the community.

IT BIBLE LABS
← All labs
NetworkingbeginnerAbout 35 minutes

Set up a MikroTik router from scratch

Take a factory MikroTik router to a working home or small-office gateway: a LAN bridge, DHCP, a way out to the internet with NAT and DNS, and a backup.

Part of the path MikroTik routing (step 1 of 4), next: Separate networks with VLANs on a MikroTik

What you will do

11 tasks
  1. 1.Name the router

    You are at the terminal of a brand new MikroTik router, signed in as admin.

  2. 2.Give the admin account a password

    A new MikroTik has an admin account with no password, so anyone who reaches it can configure it.

  3. 3.Build the LAN bridge

    The office machines will plug into ports ether2, ether3 and ether4.

  4. 4.Give the LAN an address

    The router needs an address on the office network, which is also the gateway the office machines will use.

  5. 5.Make a pool of addresses

    A DHCP server needs a range of addresses to hand out.

  6. 6.Turn on DHCP

    Create a DHCP server named lan-dhcp on bridge-lan that hands out addresses from lan-pool, with /ip dhcp-server add.

  7. 7.Get an address from the provider

    ether1 is plugged into your internet provider, which gives the router a public address by DHCP.

  8. 8.Share the connection with NAT

    The office machines use private addresses, which the internet cannot reply to.

  9. 9.Set up DNS

    Office machines will ask the router to look up names.

  10. 10.Test the way out

    Check that the router can reach the internet.

  11. 11.Back it up

    Save a backup of the configuration named first-steps with /system backup save name=first-steps.