<?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 Archives - Tom Barbette</title>
	<atom:link href="https://perso.uclouvain.be/tom.barbette/tag/ipv6/feed/" rel="self" type="application/rss+xml" />
	<link>https://perso.uclouvain.be/tom.barbette/tag/ipv6/</link>
	<description></description>
	<lastBuildDate>Thu, 28 Apr 2022 07:21:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/cropped-logo-uclouvain-2021-barbette-32x32.png</url>
	<title>ipv6 Archives - Tom Barbette</title>
	<link>https://perso.uclouvain.be/tom.barbette/tag/ipv6/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>VOO in bridge mode with IPv6 (optional: and prefix delegation!)</title>
		<link>https://perso.uclouvain.be/tom.barbette/voo-in-bridge-mode-with-ipv6-optional-and-prefix-delegation/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Wed, 27 Apr 2022 17:21:00 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[voo]]></category>
		<guid isPermaLink="false">https://www.tombarbette.be/?p=1004</guid>

					<description><![CDATA[<p>Tutorial on configuring a Linux box to do IPv6 prefix delegation from a VOO modem in bridge mode</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/voo-in-bridge-mode-with-ipv6-optional-and-prefix-delegation/">VOO in bridge mode with IPv6 (optional: and prefix delegation!)</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Despite old threads that can be seen on VOO&#8217;s forum, VOO do not seem to use SLAAC in bridge mode (anymore?), but DHCPv6. Also VOO only gives a /64 prefix so you can&#8217;t do internal subnets <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph"><strong>Important:</strong> my outgoing (WAN) interface directly connected to the VOO modem in bridge mode is <em>enx000ec6ec03b3 </em>. My internal LAN interface is <em>br0 </em>(it&#8217;s a bridge between my actual eth0 LAN interface and a WiFi access point using hostapd, but that&#8217;s for another day).</p>



<p class="wp-block-paragraph">This tutorial assumes Ubuntu 18.04:</p>



<p class="wp-block-paragraph">sudo apt install wide-dhcpv6-client</p>



<p class="wp-block-paragraph">sudo vi /etc/wide-dhcpv6/dhcp6c.conf</p>



<pre class="wp-block-code"><code>interface enx000ec6ec03b3 {
  send ia-na 1;
  send ia-pd 1;
  request domain-name-servers;
  request domain-name;
  script "/etc/wide-dhcpv6/dhcp6c-script";
};

# Only for prefix delegation
id-assoc pd 1 {
  prefix-interface br0 { #internal facing interface (LAN)
    sla-id 0; # subnet. Combined with ia-pd to configure the subnet for this interface.
    ifid 1; #IP address "postfix". if not set it will use EUI-64 address of the interface. Combined with SLA-ID'd prefix to create full IP address of interface.
    sla-len 0; # Number of prefix bits assigned. Sadly this is 0 with voo... 
    };
  };

  id-assoc na 1 {
  # id-assoc for eth1
};</code></pre>



<p class="wp-block-paragraph">sudo vi /etc/default/wide-dhcpv6-client</p>



<pre class="wp-block-code"><code>INTERFACES="enx000ec6ec03b3"</code></pre>



<p class="wp-block-paragraph">sudo service wide-dhcpv6-client restart</p>



<p class="wp-block-paragraph">At this point you should get an IPv6 address:</p>



<pre class="wp-block-code"><code>enx000ec6ec03b3: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 109.89.XXX  netmask 255.255.255.0  broadcast 109.89.XXXX
        inet6 2a02:2788:XXXXXXXXX:8458  prefixlen 128  scopeid 0x0&lt;global&gt;
        inet6 fe80::20e:c6ff:feec:3b3  prefixlen 64  scopeid 0x20&lt;link&gt;
        ether 00:0e:c6:ec:03:b3  txqueuelen 1000  (Ethernet)
        RX packets 1358557038  bytes 1701875645905 (1.7 TB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 648168501  bytes 176987273193 (176.9 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</code></pre>



<h2 class="wp-block-heading">Enable prefix delegation</h2>



<p class="wp-block-paragraph">Actually enable the prefix delegation with radvd:</p>



<p class="wp-block-paragraph">sudo apt-get install radvd</p>



<p class="wp-block-paragraph">sudo vi /etc/radvd.conf</p>



<pre class="wp-block-code"><code>interface br0 # LAN interface
{
  AdvManagedFlag off; # no DHCPv6 server here.
  AdvOtherConfigFlag off; # not even for options.
  AdvSendAdvert on;
  AdvDefaultPreference high;
  AdvLinkMTU 1280;
  prefix ::/64 #pick one non-link-local prefix assigned to the interface and start advertising it
  {
    AdvOnLink on;
    AdvAutonomous on;
  };
};</code></pre>



<p class="wp-block-paragraph">sudo service radvd restart</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><em>Some configuration is taken and adapted from https://www.ipcalypse.ca/?p=204 </em></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/voo-in-bridge-mode-with-ipv6-optional-and-prefix-delegation/">VOO in bridge mode with IPv6 (optional: and prefix delegation!)</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
