{"id":1118,"date":"2011-02-07T17:58:12","date_gmt":"2011-02-07T09:58:12","guid":{"rendered":"http:\/\/www.tzlee.com\/blog\/?p=1118"},"modified":"2011-02-17T15:47:29","modified_gmt":"2011-02-17T07:47:29","slug":"ipv6-over-gre-in-rhelcentos","status":"publish","type":"post","link":"https:\/\/tzlee.com\/blog\/2011\/02\/ipv6-over-gre-in-rhelcentos\/","title":{"rendered":"IPv6 over GRE in RHEL\/CentOS"},"content":{"rendered":"<p>Note: This article is not about 6-to-4 tunneling. This is about carrying IPv4 and IPv6 at the same time (aka Dual Stack) over a GRE tunnel in RHEL\/CentOS<\/p>\n<p>I was configuring an existing GRE tunnel on my Linux router when I found that the initscripts in CentOS 5.5 didn&#8217;t support IPv6 for the tunnel devices.<\/p>\n<p>The quick hack was to edit <code>\/etc\/sysconfig\/network-scripts\/ifup-tunnel<\/code> and look for this line:<\/p>\n<blockquote><p><code><br \/>\n\/sbin\/ip link set dev \"$DEVICE\" up<br \/>\n<\/code><\/p><\/blockquote>\n<p>Add these lines just <em>after<\/em> the line above:<\/p>\n<blockquote><p><code><br \/>\n# Added to accomodate IPv6 in tunnel<br \/>\n\/sbin\/ip addr add \"$IPV6ADDR\" dev \"$DEVICE\"<br \/>\n<\/code><\/p><\/blockquote>\n<p>Then modify <code>\/etc\/sysconfig\/network-scripts\/ifcfg-tun0<\/code> (or whatever your device name is) and add the following lines to run dual stack over GRE:<\/p>\n<blockquote><p><code><br \/>\nIPV6ADDR=2001:abcd:1a2b:3c4d::2\/64<br \/>\n<\/code><\/p><\/blockquote>\n<p>If you need to use the tunnel as an IPv6 default gateway, create <code>\/etc\/sysconfig\/network-scripts\/route-tun0<\/code> and add an entry<\/p>\n<blockquote><p><code><br \/>\n::\/0 via 2001:abcd:1a2b:3c4d::1\/64<br \/>\n<\/code><\/p><\/blockquote>\n<p>Then just restart the interface and bingo IPv6 and IPv4 dual stack on a GRE tunnel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: This article is not about 6-to-4 tunneling. This is about carrying IPv4 and IPv6 at the same time (aka Dual Stack) over a GRE tunnel in RHEL\/CentOS I was configuring an existing GRE tunnel on my Linux router when&#8230; <a class=\"more-link\" href=\"https:\/\/tzlee.com\/blog\/2011\/02\/ipv6-over-gre-in-rhelcentos\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[252],"class_list":["post-1118","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ipv6-gre-centos-rhel"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/posts\/1118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/comments?post=1118"}],"version-history":[{"count":6,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/categories?post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tzlee.com\/blog\/wp-json\/wp\/v2\/tags?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}