Site icon Zit Seng's Blog

MikroTik IPv6 Setup for StarHub

I use IPv6 everywhere I can, not just on my websites, but also on my home broadband. So when I recently got a new MikroTik router to replace my pfSense gateway, one of the tasks I had to do was to configure IPv6 on it.

I am not unfamiliar with MikroTik, but my previous MikroTik hAP ac was used primarily as a wired and wireless bridging device behind my pfSense gateway. In that setup, the MIkroTik didn’t actually need any IPv6 configuration of its own. MikroTik doesn’t quite have a UI that is consumer friendly, so it’s not anything like you’d expect from a consumer router like D-Link or Linksys, and not even anything like pfSense.

The instructions in this mini tutorial is reasonably generic, as my broadband provider, StarHub, doesn’t do anything weird on their network. Hence, this tutorial may also be useful to other broadband networks.

The first thing to do is to make sure that you have the IPv6 package enabled. It’s likely that you’ll find this disabled by default out of the box. Go to System, Packages, then click on the IPv6 entry in the table, click enable, Close, then reboot.

You should see an entry for IPv6 on the left navigation menu now.

The next step is to configure the MikroTik router to use a DHCPv6 client to receive an IPv6 prefix delegation from the ISP. Go the IPv6, DHCP Client, and Add New. Setup the new DHCP client entry as follows:

Click OK. Wait a few moments, and check that your router should now receive an IPv6 address as well as a IPv6 delegated prefix.

Next, you’ll need a global IPv6 address configured on your LAN interface. In my case, I will use bridge1 as my primary LAN. Go to IPv6, Addresses, and click on Add New.

Configure the address as follows:

The final step involves configuring Route Advertisements. Go to IPv6, ND, and click Add New. Configure the entry as follows:

Your LAN clients should now receive a global IPv6 address, and have a default IPv6 route to your MikroTik LAN interface. On a Linux box, the following commands will show that:

This is the setup that works for me on StarHub fibre broadband network. StarHub uses DHCPv6 for address and prefix allocation. If your WAN provider does the same thing, then the steps here should work for you.

Exit mobile version