<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ipv6 tunnel linux &#8211; Arun&#8217;s blog</title>
	<atom:link href="https://arunns.net/tag/ipv6-tunnel-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://arunns.net</link>
	<description>Arun&#039;s blog</description>
	<lastBuildDate>Mon, 23 Oct 2023 18:31:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>
	<item>
		<title>Setting Up IPv6 Tunnels on MAC and Linux</title>
		<link>https://arunns.net/ipv6-tunnel-from-maclinux/</link>
					<comments>https://arunns.net/ipv6-tunnel-from-maclinux/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:28:19 +0000</pubDate>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[ipv6 on mac]]></category>
		<category><![CDATA[ipv6 tunnel from mac]]></category>
		<category><![CDATA[ipv6 tunnel linux]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=247</guid>

					<description><![CDATA[IPv6, the next generation Internet Protocol, brings a wealth of possibilities to your network, system, and services. In this guide, we&#8217;ll walk you through the process of establishing an IPv6 network tunnel on both MAC OS X and Linux. Step 1: Choose an IPv6 Tunnel Broker First, you need to select an IPv6 tunnel broker. [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class="flex-col gap-1 md:gap-3">
<div class="flex flex-grow flex-col gap-3 max-w-full">
<div class="min-h-[20px] flex flex-col items-start gap-3 whitespace-pre-wrap break-words overflow-x-auto">
<div class="markdown prose w-full break-words dark:prose-invert light">
<p>IPv6, the next generation Internet Protocol, brings a wealth of possibilities to your network, system, and services. In this guide, we&#8217;ll walk you through the process of establishing an IPv6 network tunnel on both MAC OS X and Linux.</p>
<p><strong>Step 1: Choose an IPv6 Tunnel Broker</strong></p>
<p>First, you need to select an IPv6 tunnel broker. These brokers provide the essential infrastructure to connect your network to the IPv6 world. There are several options available, but for this guide, we&#8217;ll use Hurricane Electric, a free and reliable tunnel broker. You can find a list of tunnel brokers <a href="https://tunnelbroker.net/" target="_new" rel="noopener">here</a>.</p>
<p><strong>Step 2: Creating the Tunnel</strong></p>
<p>With your selected tunnel broker, follow these steps to create your IPv6 tunnel:</p>
<ul>
<li>Visit your chosen tunnel broker&#8217;s website and sign up for an account.</li>
<li>Once logged in, create a tunnel by specifying your public IPv4 address.</li>
<li>Your tunnel broker will assign you a range of IPv6 addresses, which you will need in the next steps.</li>
</ul>
<p><strong>Step 3: Configuration for MAC OS X</strong></p>
<p>For MAC OS X, here are the steps to configure your machine for the IPv6 tunnel:</p>
<ul>
<li>Configure the tunnel with your assigned IPv4 and IPv6 addresses:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ifconfig gif0 tunnel host_ip tunnel_broker_ipv4_ip<br />
</code></div>
</div>
<p>Replace <code>host_ip</code> with your machine&#8217;s private address or public IP if you&#8217;re not behind NAT.</p>
</div>
</div>
</div>
</div>
<p>Set up the tunnel endpoints:</p>
<div class="bg-black rounded-md mb-4">
<div class="flex items-center relative text-gray-200 bg-gray-800 gizmo:dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><code class="!whitespace-pre hljs language-bash">$ sudo ifconfig gif0 inet6 host_ipv6_address tunnel_broker_ipv6_address prefixlen 128<br />
</code></div>
</div>
<p>These IPv6 addresses are assigned by the tunnel broker.</p>
<ul>
<li>Add a default route for IPv6 traffic:</li>
</ul>
<p><code class="!whitespace-pre hljs language-bash">$ sudo route -n add -inet6 default tunnel_broker_ipv6_address<br />
</code></p>
<ul>
<li>To ensure IPv6 is enabled on the interface, use:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip6 -x gif0<br />
</code></div>
</div>
<ul>
<li>Test your IPv6 connectivity:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ ping6 ipv6.google.com<br />
$ telnet ipv6.google.com 80<br />
</code></div>
</div>
<p><strong>Step 4: Configuration for Linux</strong></p>
<p>The process is nearly identical on Linux:</p>
<ul>
<li>Confirm that the IPv6 module is present in the kernel:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo modprobe ipv6<br />
</code></div>
</div>
<ul>
<li>Create the tunnel:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip tunnel add he-ipv6 mode sit remote 216.66.xx.xx <span class="hljs-built_in">local</span> 192.168.1.2 ttl 255<br />
</code></div>
</div>
<p>Replace <code>local</code> with your public IP if directly assigned.</p>
<ul>
<li>Activate the tunnel:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip <span class="hljs-built_in">link</span> <span class="hljs-built_in">set</span> he-ipv6 up<br />
</code></div>
</div>
<ul>
<li>Assign an IP address to the interface:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip addr add 2001:470:xxxx:xxxx::2/64 dev he-ipv6<br />
</code></div>
</div>
<ul>
<li>Add a default route for IPv6:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip route add ::/0 dev he-ipv6<br />
</code></div>
</div>
<ul>
<li>Add a protocol family identifier:</li>
</ul>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ sudo ip -f inet6 addr<br />
</code></div>
</div>
<p>With these steps, your MAC or Linux machine is now equipped with an IPv6 tunnel, allowing you to access IPv6 networks.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/ipv6-tunnel-from-maclinux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
