NEW: Script-based MikroTik CHR installation

__ __ ___ _ ______ ___ _____ ___ _ __ | \/ |_ _| |/ / _ \ / _ \_ _|_ _| |/ | |\/| || || ’ /| |_) | | | || | | || ’ / | | | || || . \| _ <| |_| || | | || . \ |_| |_|___|_|\_\_| \_\\___/ |_| |___|_|\_\

… or continue below for the classic, manual installation:

How to install Mikrotik on your VPS

To install Mikrotik on an EDIS Global VPS, you’ll need to adjust a few hardware settings first, after which the installation will run smoothly.

1

Log in to your

2

Locate your VPS in the Services tab

3

Head to KVM Settings (button)

4

Change Disk driver to IDE

5

Change Network Driver to E100

6

Cold-Boot your VPS

Implications on Mikrotik Upgrades from v6 to v7

We learned from clients that the upgrade procedure from Mikrotik v6 to v7 seems to be broken. Clients were left with instances not being able to boot after the version upgrade from Mikrotik 6.x to Mikrotik 7.x and error messages like

VNC
Press ESC from boot menu.

Booting from Hard Disk ...
Load system

ERROR: could not mount disk!
Please attach it somewhere else

So far, the only known workaround is a fresh Mikrotik v7.x intallation.

Mikrotik CHR (Cloud Hosted Router)

If you want to give Mikrotik CHR a try, you can download images from the official Mikrotik download page. To make life easy for you, we converted a couple of cloud images downloaded from the Mikrotik website, which can be used with our Cloud-Init installer 😎

1

Log in to your

2

Locate your VPS in the Services tab

3

Head to KVM Settings (button)

4

Change Disk driver to IDE

5

Change Network Driver to E100

6

Click on Autoinstall OS (button)

7

Proceed to Custom Cloud-Init Images (tab)

8

Upload the .qcow2 file and proceed with the installation (pick any password)

you will see: Server Status: AUTOINSTALL IN PROGRESS it will change to: Server Status: RUNNING, AUTOINSTALL IN PROGRESS

The installation will take a couple of minutes!

9

Once the installer is done (Server Status: RUNNING)

start a VNC session, start noVNC, click into the noVNC window (set focus) and finish the installation.

Mikrotik username: admin

Mikrotik password: no password, leave field empty, just press Enter

Configure Static IPv4 in MikroTik

Log into MikroTik Router:

  • Use a VNC session to connect to your MikroTik router.

  • Log in with your credentials (by default, the username is admin, and there is no password unless you changed it).

Set Static IPv4 Address:

After logging into MikroTik, use the Terminal window and enter the following commands to configure the static IP:

Assign Static IP Address: Use this command to set a static IP on the interface you want (e.g., ether1):

ip/address/add address=192.168.1.100/24 interface=ether1
  • Replace 192.168.1.100/24 with your VPS static IP and subnet mask.

  • Replace ether1 with the correct interface if it’s different.

Set Gateway (Default Route): To configure a default gateway, use the following command:

ip/route/add gateway=192.168.1.1
  • Replace 192.168.1.1 with your VPS default gateway IP address

Set DNS Servers: To configure DNS servers (for example, using Google DNS), use:

ip/dns/set servers=8.8.8.8,8.8.4.4
  • You can use any DNS servers, such as 1.1.1.1 and 1.0.0.1 for Cloudflare’s public DNS resolvers.

Verify Your Configuration:

Please reboot the server with the following command to apply the changes and set up the network:

system/reboot
  • After the server has rebooted, you can connect to the server via Winbox, the web interface, or SSH using the IP address you configured.

Configure IPv6 address in MikroTik

To configure the imaginary IPv6 address 2a03:f80:22:4198::1 on a MikroTik CHR device, follow these steps:Always refer to your VPS dashboard for the correct I/64 Pv6 address assignment-.

Assign the IPv6 Address

  1. Open your MikroTik terminal or connect via Winbox.

  2. Add the IPv6 address to the desired interface (e.g., ether1).

/ipv6 address add address=2a03:f80:22:4198::1/48 interface=ether1

• Replace ether1 with the actual interface you are using. Replace 2a03:f80:22:4198:: with your own VPS IPv6 range.

Remember that the subnet mask is configured as /48 while the size of your allocation remains /64.

Configure the IPv6 Default Route

  1. Add the default route for IPv6 to allow external communication.
/ipv6 route add dst-address=::/0 gateway=2a03:f80:22::1

Note: This example uses 2a03:f80:22::1 as the gateway. Your gateway consists of the first three segments of your IP address and ::1

Verify the Configuration

  1. Check the assigned IPv6 address:
/ipv6 address print
  1. Check the default route:
/ipv6 route print

This configuration will allow your MikroTik CHR to use the imaginary IPv6 address 2a03:f80:22:4198::1 and establish external connectivity via the default gateway. Remember that the subnet mask is configured as /48, not /64.

Was this page helpful?