{"id":149,"date":"2019-05-29T20:03:25","date_gmt":"2019-05-29T18:03:25","guid":{"rendered":"http:\/\/www.underealm.com\/tech\/?p=149"},"modified":"2019-05-29T20:03:25","modified_gmt":"2019-05-29T18:03:25","slug":"centos-7-dhcpv6","status":"publish","type":"post","link":"http:\/\/www.underealm.com\/tech\/2019\/05\/centos-7-dhcpv6\/","title":{"rendered":"CentOS 7 &#038; DHCPv6"},"content":{"rendered":"\n<p>Sometimes instead of the usual SLAAC you might need or want to use DHCPv6. The <code>dhcp<\/code> package and a very short manual configuration will take care of everything for you on the server, but what about the client? What if you configured the DHCPv6 client but it is not working?<\/p>\n\n\n\n<p>I setup both the server and the firewall, then I proceeded to configure the client, but it would always fail. No v6 traffic would hit the server machine, even though I added the <code>DHCPV6C=yes<\/code> on the client machine. After hours spent without a solution, I found a <a href=\"https:\/\/www.youtube.com\/watch?v=xDnvZ0thwVg\">video with the answer<\/a>: the problem is Network Manager! On top of adding the <code>DHCPV6C<\/code> parameter you also need to add <code>NM_CONTROLLED=no<\/code>. I ended up with the following <code>\/etc\/sysconfig\/network-scripts\/ifcfg-ethX<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TYPE=Ethernet\nPROXY_METHOD=none\nBROWSER_ONLY=no\nBOOTPROTO=none\nDEFROUTE=no\nIPV4_FAILURE_FATAL=no\nIPV4INIT=no\nIPV6INIT=yes\nNM_CONTROLLED=no\nDHCPV6C=yes\nIPV6_AUTOCONF=yes\nIPV6_DEFROUTE=no\nIPV6_FAILURE_FATAL=no\nIPV6_ADDR_GEN_MODE=stable-privacy\nNAME=ethX\nDEVICE=ethX\nONBOOT=yes\nIPV6_PRIVACY=yes\nZONE=public<\/code><\/pre>\n\n\n\n<p>Perfectly disabled IPv4, IPv6 configured automatically, all fine and dandy. Happy fun times!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes instead of the usual SLAAC you might need or want to use DHCPv6. The dhcp package and a very short manual configuration will take care of everything for you on the server, but what about the client? What if you configured the DHCPv6 client but it is not working? I setup both the server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[81,79,80],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-sysad","tag-centos","tag-dhcp","tag-dhcpv6"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/149"}],"collection":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":1,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":150,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/149\/revisions\/150"}],"wp:attachment":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}