{"id":716,"date":"2019-06-13T10:49:04","date_gmt":"2019-06-13T09:49:04","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=716"},"modified":"2019-05-17T10:57:04","modified_gmt":"2019-05-17T09:57:04","slug":"adding-ipv6-to-existing-server-digitalocean","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/adding-ipv6-to-existing-server-digitalocean\/","title":{"rendered":"Adding IPv6 to existing server (DigitalOcean)"},"content":{"rendered":"<p>While creating the server I didn&#8217;t add any IPv6 address. Later from the Control Panel I enabled IPv6 but the address didn&#8217;t get attached to ETH0.<\/p>\n<p>Needed to do:<\/p>\n<ul>\n<li>Edit the <span style=\"color: #0000ff;\">\/etc\/network\/interfaces.d\/50-cloud-init.cfg<\/span> file<\/li>\n<li>Add<\/li>\n<\/ul>\n<pre class='wp-code-highlight prettyprint'># control-alias eth0\r\niface eth0 inet6 static\r\naddress 2400:xxxx:xxxx:xxxx:xxxx:xxxx:0000:6001\/64\r\ngateway 2400:xxxx:xxxx:xx::x\r\nautoconf 0\r\ndns-nameservers 2001:xxxx:xxxx::xxxx 2001:xxxx:xxxx::xxxx<\/pre>\n<ul>\n<li>The gateway and nameservers are important.<\/li>\n<li>The NameServers are that of the server provider<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>While creating the server I didn&#8217;t add any IPv6 address. Later from the Control Panel I enabled IPv6 but the address didn&#8217;t get attached to ETH0. Needed to do: Edit the \/etc\/network\/interfaces.d\/50-cloud-init.cfg file Add # control-alias eth0 iface eth0 inet6 static address 2400:xxxx:xxxx:xxxx:xxxx:xxxx:0000:6001\/64 gateway 2400:xxxx:xxxx:xx::x autoconf 0 dns-nameservers 2001:xxxx:xxxx::xxxx 2001:xxxx:xxxx::xxxx The gateway and nameservers are&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/adding-ipv6-to-existing-server-digitalocean\/\">Continue reading <span class=\"screen-reader-text\">Adding IPv6 to existing server (DigitalOcean)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[216,217,213,214,212,218,215],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-adding-ipv6","tag-configure-ipv6","tag-digital-ocean","tag-digitalocean","tag-ipv6","tag-ipv6-eth0","tag-ping","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=716"}],"version-history":[{"count":1,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/716\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}