{"id":241744,"date":"2025-01-05T15:53:10","date_gmt":"2025-01-05T15:53:10","guid":{"rendered":"https:\/\/ded9.com\/?p=241744"},"modified":"2025-11-05T10:12:27","modified_gmt":"2025-11-05T10:12:27","slug":"mikrotik-adding-ipv6-tutorial","status":"publish","type":"post","link":"https:\/\/ded9.com\/de\/mikrotik-adding-ipv6-tutorial\/","title":{"rendered":"How to Add IPv6 to MikroTik: A Step-by-Step Guide"},"content":{"rendered":"<p>In this article, we will teach you how to add IPv6 to the MikroTik terminal.<\/p>\n<p>First, connect to your <a href=\"https:\/\/mikrotik.com\/\" target=\"_blank\" rel=\"noopener\">MikroTik<\/a> server.<\/p>\n<h2>What Do We Need?<\/h2>\n<ul>\n<li>Obtain IPv6 from your hosting provider.<\/li>\n<li>Obtain the Gateway from your hosting provider.<\/li>\n<\/ul>\n<p>You can get these two items by contacting your hosting provider&#8217;s support. DED9 can provide you with IPv6 at a low cost.<\/p>\n<h2>Defining IPv6 in MikroTik<\/h2>\n<p>After connecting to the server, navigate to the following path:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/ipv6\/address<\/pre>\n<\/div>\n<p>Then, use the following command to view the defined IPv6 addresses:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">print<\/pre>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-241749 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-15-e1728473172920-1024x81-1.jpg\" alt=\"Defining IPv6 in MikroTik\" width=\"1024\" height=\"81\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-15-e1728473172920-1024x81-1.jpg 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-15-e1728473172920-1024x81-1-300x24.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-15-e1728473172920-1024x81-1-768x61.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<\/div>\n<p>If you receive an empty message after entering the <strong>print<\/strong> command, it means that IPv6 has not been defined on your MikroTik server.<\/p>\n<p>In this case, you can define an IPv6 address using the following command:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">add address=your-ipv6\/32 interface=ether2<\/pre>\n<\/div>\n<p>Replace <strong>your-ipv6<\/strong>\u00a0with the address you received from your hosting provider, for example:<\/p>\n<p>2001:9ad8:902e:1be2::dbc9<code><\/code><\/p>\n<p>Replace <strong>ether 2<\/strong> with the name of your Ethernet interface. If you are unsure of its name, you can find it using the following command:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/interface\/ethernet print<\/pre>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-241753 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-186-1-e1728478757288-1024x43-1.png\" alt=\"Replace your-ipv6\u00a0with the address you received from your hosting provider, for example:\" width=\"1024\" height=\"43\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-186-1-e1728478757288-1024x43-1.png 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-186-1-e1728478757288-1024x43-1-300x13.png 300w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/Screenshot-186-1-e1728478757288-1024x43-1-768x32.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>After entering the above command, your IPv6 should be defined, and you can confirm this again using the <strong>print<\/strong> command.<\/p>\n<p>Now, you need to return to the terminal using the <strong>\/<\/strong> command.<\/p>\n<h2>Defining Gateway in MikroTik<\/h2>\n<p>Now it\u2019s time to define Gateway. As we mentioned at the beginning, you need a Gateway as well, which you should obtain from your hosting provider.<\/p>\n<p>Now, use the following command to enter the route section:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/ipv6\/route add gateway=your-gateway<\/pre>\n<\/div>\n<p>Replace <strong>your-gateway<\/strong> with yGatewayeway (this information should be obtained from your hosting provider), for example, <strong>2001:9ad8:902e:1bff:ff:ff:ff:ff.<\/strong><\/p>\n<h2>Setting DNS on MikroTik<\/h2>\n<p>Now, return to the main menu using the \/\u00a0 command.<\/p>\n<p>Then, use the following command to set Google\u2019s DNS:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/ip\/dns edit servers\r\n<\/pre>\n<\/div>\n<p>By entering this command, you will enter the nameserver editing section, and you need to set Google\u2019s IPv6 DNS:<\/p>\n<p dir=\"ltr\"><b>2001:4860:4860::8888<\/b><\/p>\n<p dir=\"ltr\"><b>2001:4860:4860::8844<\/b><\/p>\n<p dir=\"ltr\">Make sure to separate the DNS addresses with a comma without spaces, for example:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">2001:4860:4860::8888,2001:4860:4860::8844\r\n<\/pre>\n<\/div>\n<p dir=\"ltr\">After entering the above items, you can save your file using the shortcut Ctrl + O.<\/p>\n<p dir=\"ltr\">Currently, IPv6 has been defined for us; now you need to ensure that IPv6 is enabled in MikroTik&#8217;s DNS settings.<\/p>\n<h2 dir=\"ltr\">Enabling IPv6 in MikroTik<\/h2>\n<p>Return to the main menu again using the \/ command.<\/p>\n<p>Now you can check the status of IPv6 with the following command:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/ipv6\/settings\/ print<\/pre>\n<\/div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-241756 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/3.png\" alt=\"Enabling IPv6 in MikroTik\" width=\"1024\" height=\"207\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/3.png 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/3-300x61.png 300w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/3-768x155.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>If you see an output similar to the image above, your IPv6 is disabled. To enable it, change<strong> disable-ipv6<\/strong>: <strong>yes<\/strong> to <strong>no<\/strong> by entering the following command:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">\/ipv6\/settings edit disable-ipv6\r\n<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-241759 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/4.jpg\" alt=\"If you see an output similar to the image above, your IPv6 is disabled. To enable it, change disable-ipv6: yes to no by entering the following command:\" width=\"1024\" height=\"488\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/4.jpg 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/4-300x143.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/4-768x366.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>After opening the file, change the word <strong>yes<\/strong> to <strong>no<\/strong>.<\/p>\n<p>Congratulations, your IPv6 is now ready.<\/p>\n<p>Now you can use the following command to ping and ensure it\u2019s activated:<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">ping 2001:4860:4860::8888<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-241762 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/6.jpg\" alt=\"Now you can use the following command to ping and ensure it\u2019s activated:\" width=\"1024\" height=\"519\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/6.jpg 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/6-300x152.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2024\/10\/6-768x389.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>If you see an output similar to the image above in MikroTik, all steps have been successfully completed, and your IPv6 is ready for use.<\/p>\n<h2>Why Should We Use IPv6?<\/h2>\n<p>One of the main reasons we should migrate to IPv6 is the limitation of <a href=\"https:\/\/ded9.com\/what-is-the-difference-between-ipv6-and-ipv4\/\">IPv4<\/a> addresses. IPv4 only has about 4.3 billion unique addresses, which is no longer sufficient given the rapid growth of connected devices on the internet. In contrast, IPv6, with its 128-bit addresses, provides a space of approximately <span class=\"katex\"><span class=\"katex-mathml\">103810^{38}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">1<\/span><span class=\"mord\">0<span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\"><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">38<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span> addresses, which is ample for current and future needs.<\/p>\n<p>Furthermore, IPv6 inherently includes security features like IPSec, which helps protect data and prevent cyber attacks. Additionally, it has a simpler and more efficient structure that improves network performance.<\/p>\n<p>In summary, migrating to IPv6 not only addresses the issue of address shortages but also provides better security, performance, and efficiency for our networks. It is not just a technical upgrade; it represents a fundamental shift towards a more connected and secure internet. As we continue to advance technologically, adopting IPv6 becomes not only beneficial but necessary for future-proofing our networks and accommodating the growing demands of digital communication.<\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I assign an IPv6 address to my MikroTik router?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use the following command: \/ipv6\/address add address=2001:9ad8:902e:1be2::\/32 interface=ether2 Replace 2001:9ad8:902e:1be2::\/32 with your assigned IPv6 address and ether2 with your interface name.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I set the default gateway for IPv6?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Enter the following command: \/ipv6\/route add gateway=2001:9ad8:902e:1bff:ff:ff:ff:ff Replace 2001:9ad8:902e:1bff:ff:ff:ff:ff with your provided gateway address.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I configure DNS for IPv6 on MikroTik?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To set Google's DNS servers, use: \/ip\/dns set servers=2001:4860:4860::8888,2001:4860:4860::8844 This configures IPv6 DNS resolution for your router.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will teach you how to add IPv6 to the MikroTik terminal. First, connect to your MikroTik server. What Do We Need? Obtain IPv6 from your hosting provider. Obtain the Gateway from your hosting provider. You can get these two items by contacting your hosting provider&#8217;s support. DED9 can provide you with [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":241766,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2260],"tags":[4816,315],"class_list":["post-241744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mikrotik","tag-ipv6","tag-mikrotik"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/241744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/comments?post=241744"}],"version-history":[{"count":6,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/241744\/revisions"}],"predecessor-version":[{"id":265016,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/241744\/revisions\/265016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media\/241766"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media?parent=241744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/categories?post=241744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/tags?post=241744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}