<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sig-I/O (Posts about vlan)</title><link>https://sig-io.nl/</link><description></description><atom:link href="https://sig-io.nl/categories/vlan.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:mark@sig-io.nl"&gt;Mark Janssen&lt;/a&gt; </copyright><lastBuildDate>Sun, 21 Jul 2024 15:45:30 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Getting (fast) IPv6 at home</title><link>https://sig-io.nl/posts/getting-ipv6-at-home/</link><dc:creator>Mark Janssen</dc:creator><description>&lt;section id="ipv6-1"&gt;
&lt;h2&gt;IPv6&lt;/h2&gt;
&lt;p&gt;I value IPv6 access as quite important, however T-Mobile Thuis doesn't offer any official form
of IPv6 on their network at this time. I looked into various options to get decent IPv6 for
my home network:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;6to4&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HE.net tunnelbroker&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;VPN based access&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;section id="in4"&gt;
&lt;h3&gt;6in4&lt;/h3&gt;
&lt;p&gt;6to4 is a deprecated form of IPv6 access, but something that would work for any connection with
a fixed IPv4 address. Configuring 6to4 on OpenWRT is quickly done, and it was easy to delegate
a /64 subnet to my local network. 6to4 however results in a quite slow connection (of around 10
to 20 megabit), and reachability was spotty at best.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="he-net-tunnelbroker"&gt;
&lt;h3&gt;HE.net tunnelbroker&lt;/h3&gt;
&lt;p&gt;Upto a couple of years ago there used to be various public tunnelbrokers for 6in4 tunnels, and
I used the sixxs.net tunnels for almost 10 years myself, however, almost all public tunnel-services
seem to have shut down over the years. Only HE.net's tunnelbroker seems to be alive.&lt;/p&gt;
&lt;p&gt;I have used a couple of HE.net tunnels throughout the years, and while they work fine in
general, they seem quite limited in available bandwidth. This became even worse as sixxs.net
shutdown, as most sixxs users migrated to HE.net.&lt;/p&gt;
&lt;p&gt;Configuring OpenWRT to use a HE.net tunnel is quite easy, just a matter of copy/pasting the
values from your HE.net account into OpenWRT's webinterface and providing credentials for the
dynamic updating of the tunnel.&lt;/p&gt;
&lt;p&gt;I did some speed-tests and these confirmed my experience, I seemed to be limited to maybe 20mbit,
which is a bit low when using a 700+ mbit connection, but this is to be expected for a free
service. If your needs are limited, HE.net is a good and free solution.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="vpn-based-access"&gt;
&lt;h3&gt;VPN based access&lt;/h3&gt;
&lt;p&gt;The third and final method of getting IPv6 that I tried was tunneling over IPv4 to my own
server in a public datacenter. At that server (hosted at Hetzner) I have a /56 of IPv6 space,
This is not standard, but available on request, and you get a /64 standard with every server
or VPS.&lt;/p&gt;
&lt;p&gt;I configured &lt;a class="reference external" href="https://www.wireguard.com/"&gt;wireguard&lt;/a&gt; on OpenWRT (client) and my server in the datacenter, and route a /60
subnet of IPv6 space to my home-network. This range can then be split further for a couple
of subnets. The remainder of the /56 can be used for some more VPN's and tunnels.&lt;/p&gt;
&lt;img alt="/images/speedtest-v6.png" src="https://sig-io.nl/images/speedtest-v6.png"&gt;
&lt;p&gt;Using the &lt;a class="reference external" href="https://www.wireguard.com/"&gt;Wireguard&lt;/a&gt; VPN and testing speed on IPv6 I could easily get over 200mbit per second
and I have even seen it hit 500mbit.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="todo"&gt;
&lt;h2&gt;Todo&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Try and get IP-TV working, though this doesn't have much priority for me&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cancelling voice and tv-subscriptions before the discount runs out :)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="openwrt-config"&gt;
&lt;h2&gt;OpenWRT Config&lt;/h2&gt;
&lt;p&gt;Various bits of relevant configuration for OpenWRT:&lt;/p&gt;
&lt;p&gt;The configuration of the switchports:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-1" name="rest_code_e1ccc61777d6451aae999102698e26ba-1" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-2" name="rest_code_e1ccc61777d6451aae999102698e26ba-2" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option name 'switch0'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-3" name="rest_code_e1ccc61777d6451aae999102698e26ba-3" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option reset '1'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-4" name="rest_code_e1ccc61777d6451aae999102698e26ba-4" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-4"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option enable_vlan '1'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-5" name="rest_code_e1ccc61777d6451aae999102698e26ba-5" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-6" name="rest_code_e1ccc61777d6451aae999102698e26ba-6" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-7" name="rest_code_e1ccc61777d6451aae999102698e26ba-7" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-7"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-8" name="rest_code_e1ccc61777d6451aae999102698e26ba-8" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-8"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '1'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-9" name="rest_code_e1ccc61777d6451aae999102698e26ba-9" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-9"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '1 2 3 4 6t'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-10" name="rest_code_e1ccc61777d6451aae999102698e26ba-10" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-10"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '1'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-11" name="rest_code_e1ccc61777d6451aae999102698e26ba-11" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-11"&gt;&lt;/a&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-12" name="rest_code_e1ccc61777d6451aae999102698e26ba-12" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-12"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-13" name="rest_code_e1ccc61777d6451aae999102698e26ba-13" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-13"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-14" name="rest_code_e1ccc61777d6451aae999102698e26ba-14" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-14"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '300'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-15" name="rest_code_e1ccc61777d6451aae999102698e26ba-15" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-15"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '300'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-16" name="rest_code_e1ccc61777d6451aae999102698e26ba-16" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-16"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-17" name="rest_code_e1ccc61777d6451aae999102698e26ba-17" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-17"&gt;&lt;/a&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-18" name="rest_code_e1ccc61777d6451aae999102698e26ba-18" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-18"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-19" name="rest_code_e1ccc61777d6451aae999102698e26ba-19" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-19"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-20" name="rest_code_e1ccc61777d6451aae999102698e26ba-20" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-20"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '640'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-21" name="rest_code_e1ccc61777d6451aae999102698e26ba-21" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-21"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '640'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-22" name="rest_code_e1ccc61777d6451aae999102698e26ba-22" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-22"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-23" name="rest_code_e1ccc61777d6451aae999102698e26ba-23" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-23"&gt;&lt;/a&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-24" name="rest_code_e1ccc61777d6451aae999102698e26ba-24" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-24"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-25" name="rest_code_e1ccc61777d6451aae999102698e26ba-25" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-25"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-26" name="rest_code_e1ccc61777d6451aae999102698e26ba-26" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-26"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '100'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-27" name="rest_code_e1ccc61777d6451aae999102698e26ba-27" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-27"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_e1ccc61777d6451aae999102698e26ba-28" name="rest_code_e1ccc61777d6451aae999102698e26ba-28" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_e1ccc61777d6451aae999102698e26ba-28"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '100'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Configuration of the Wireguard VPN for IPv6 tunneling&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-1" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-1" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;config interface 'WG6'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-2" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-2" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option proto 'wireguard'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-3" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-3" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option private_key '&amp;lt;wireguard-private-key-base64&amp;gt;'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-4" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-4" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-4"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;list addresses '2001&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s"&gt;xxxx:xxx:xxx::3/60'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-5" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-5" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-6" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-6" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;config wireguard_WG6&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-7" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-7" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-7"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;list allowed_ips '&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s"&gt;:/0'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-8" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-8" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-8"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option endpoint_host 'ipv4-of-wireguard-server'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-9" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-9" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-9"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option endpoint_port 'wireguard-portnumber'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-10" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-10" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-10"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option persistent_keepalive '25'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-11" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-11" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-11"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option description 'Wireguard-ipv6-tunnel-name'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-12" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-12" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-12"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option public_key '&amp;lt;public-key-of-wireguard-server-in-base64&amp;gt;'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-13" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-13" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-13"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option route_allowed_ips '1'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-14" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-14" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-14"&gt;&lt;/a&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-15" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-15" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-15"&gt;&lt;/a&gt;&lt;span class="na"&gt;config route6&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-16" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-16" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-16"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option interface 'WG6'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-17" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-17" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-17"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option target '0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s"&gt;:/0'&lt;/span&gt;
&lt;a id="rest_code_885e9eaa07974503bc4aefa941fbdb37-18" name="rest_code_885e9eaa07974503bc4aefa941fbdb37-18" href="https://sig-io.nl/posts/getting-ipv6-at-home/#rest_code_885e9eaa07974503bc4aefa941fbdb37-18"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option gateway '2001&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="s"&gt;xxxx:xxx:xxx::1'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;</description><category>ipv6</category><category>networking</category><category>openwrt</category><category>tunnelbroker</category><category>vlan</category><category>wireguard</category><guid>https://sig-io.nl/posts/getting-ipv6-at-home/</guid><pubDate>Sat, 15 Sep 2018 13:40:00 GMT</pubDate></item><item><title>T-Mobile Thuis (fiber) with a custom router</title><link>https://sig-io.nl/posts/tmobilethuis-with-own-router/</link><dc:creator>Mark Janssen</dc:creator><description>&lt;p&gt;I have been using &lt;a class="reference external" href="https://www.tweak.nl/glasvezel/productoverzicht.html"&gt;Tweak.nl&lt;/a&gt; as my ISP for a few years now, since getting
fiber-to-the-home, but Tweak doesn't have their own (non-KPN (incumbant
dutch telco)) infrastructure in my area. This means they are limited in
offering products provided by KPN, at prices mostly dominated by what
they have to pay KPN to get access to the last-mile. In area's where they
do have their own fiber infrastructure they can offer gigabit connections
at very nice prices (less then €400 per year) and 10-gigabit even, but this
is a bit overkill, especially since traffic is then quite limited :)&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://www.t-mobile.nl/thuis"&gt;T-Mobile Thuis&lt;/a&gt; (which used to be Vodafone Thuis, but had to be split-off
from Vodafone due to anti-compete measures) does have it's own infrastructure
in my area, which means they can provide their own networking products. This
translates into getting a symmetrical 750 mbit connection for €40,- per month
(Sold as €50,- with a permanent 10,- discount). It can also include voice
and TV-services, but these cost extra, and would only with if you let T-Mobile
control your network by using their router.&lt;/p&gt;
&lt;img alt="/images/speedtest-v4.png" src="https://sig-io.nl/images/speedtest-v4.png"&gt;
&lt;p&gt;Sadly they still don't provide any form of native &lt;a class="reference external" href="http://ipv6-test.com/"&gt;IPv6&lt;/a&gt; connectivity, and I'm
not too fond of letting ISP's control my routers and internet-infrastucture, so
I looked into ways to get a fast and affordable connection whule using my own
router, preferably running OpenWRT.&lt;/p&gt;
&lt;p&gt;After some research on the Tweakers.net and T-Mobile Thuis web forums I was
sure that it wouldn't be too hard to get a fast internet-connection on T-Mobile
Thuis using my trusty &lt;a class="reference external" href="https://openwrt.org/"&gt;OpenWRT&lt;/a&gt; routers. The requirements basically come down to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Some way to connect to the fiber-connection&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A fast enough &lt;a class="reference external" href="https://openwrt.org/"&gt;OpenWRT&lt;/a&gt; based router that can handle gigabit speeds&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Support for VLAN's&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I initially used a RouterBoard &lt;a class="reference external" href="https://mikrotik.com/product/RB750Gr3"&gt;RB750Gr3&lt;/a&gt;, since I was already using that as a
router for my Tweak connection, but I also had a few &lt;a class="reference external" href="https://www.ubnt.com/edgemax/edgerouter-x/"&gt;Edgerouter ER-X&lt;/a&gt;'s around.
Both routers basically are the same chipset, but with slightly different
peripherals. The RB750 has a low amount of flash, but USB and MicroSD ports, so
you can add external storage, the ER-X has no USB or MicroSD, but has 256MB of
built-in flash, which is more then enough for everything you might want to
install on it.&lt;/p&gt;
&lt;p&gt;Both routers would be more then sufficient and powerful enough to route a
gigabit connection, as they have 256MB of RAM, and a quad-core Mips24 800Mhz cpu.
In the end I swapped out the RB750 for the ER-X, since I had a few of those and
only one RB750 and would have no use for the USB port on the router.&lt;/p&gt;
&lt;p&gt;Installing OpenWRT 18.06.1 is outside of the scope of this article, but I've
written about installing it in an &lt;a class="reference external" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/link;/slug/openwrtlede-on-a-routerboard-rb750gr3-hex3"&gt;earlier post&lt;/a&gt;, and documentation is on the
OpenWRT wiki&lt;/p&gt;
&lt;section id="connecting-to-the-fiber"&gt;
&lt;h2&gt;Connecting to the fiber&lt;/h2&gt;
&lt;p&gt;The first step is finding some way to connect the router to the fiber. There are
basically 2 methods to do this:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Get a router with an SFP port,and use the SFP module that is provided by T-Mobile,
as their own router also uses an SFP-port. This is most useful when the T-Mobile/Guidion
mechanic has set-up your connection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use a media-converter. In my case, there was already a media-converter present, since
this was the solution used by my two previous ISP's. This box connects to the fiber, and
outputs the conneciton over a RJ45 connection. I used this connection to hoop up to
the OpenWRT routers WAN port using a CAT5e cable.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want to go for the SFP method, be sure to get a router with SFP-ports, like the
&lt;a class="reference external" href="https://www.ubnt.com/edgemax/edgerouter-x-sfp/"&gt;ER-X-SFP&lt;/a&gt; or the &lt;a class="reference external" href="https://mikrotik.com/product/hex_s"&gt;HEX_S&lt;/a&gt;&lt;/p&gt;
&lt;/section&gt;
&lt;section id="vlan-configuration"&gt;
&lt;h2&gt;VLAN Configuration&lt;/h2&gt;
&lt;p&gt;T-Mobile Thuis uses a few different VLAN's, but for our use we only need to use the
regular internet VLAN, which is vlan 300. Besides this vlan there is also vlan 100, which
is used for T-Mobile's management and vlan 640, which is used for TV.&lt;/p&gt;
&lt;p&gt;Configure the WAN port or port that's used for connecting to T-Mobile with the 3 tagged vlan's&lt;/p&gt;
&lt;img alt="/images/tmobile-wan-vlan.png" src="https://sig-io.nl/images/tmobile-wan-vlan.png"&gt;
&lt;p&gt;The internet vlan (300) will give you a public IPv4 address using a DHCP-request. This
will also be the default gateway. The Management-lan (100) wil also respond to DHCP-requests,
but only return adresses in 10.66.0.0/16 ip-space. There is some traffic on this network, but
I haven't looked into it too much yet.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="television"&gt;
&lt;h2&gt;Television&lt;/h2&gt;
&lt;p&gt;Posts on various forums informed me that IP-TV is normally configured on the 640 vlan. I myself
don't use much TV, so I haven't done any configuration yet. T-Mobile also lets you use TV-Anywhere,
which is a mobile application (IOS/Android) for streaming TV on any internet-connection, so this
can be used as a zero-configuration alternative. I might update this post or publish a new one
when I get TV-Streaming working, but I'll probably cancel the TV and voice subscriptions before
too long, I only took them because it was cheaper with then without (the first 6 months).&lt;/p&gt;
&lt;/section&gt;
&lt;section id="todo"&gt;
&lt;h2&gt;Todo&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Try and get IP-TV working, though this doesn't have much priority for me&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cancelling voice and tv-subscriptions before the discount runs out :)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="openwrt-config"&gt;
&lt;h2&gt;OpenWRT Config&lt;/h2&gt;
&lt;p&gt;Various bits of relevant configuration for OpenWRT:&lt;/p&gt;
&lt;p&gt;The configuration of the switchports:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-1" name="rest_code_997ef5cc71d64321b33c9c22726fab24-1" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-2" name="rest_code_997ef5cc71d64321b33c9c22726fab24-2" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option name 'switch0'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-3" name="rest_code_997ef5cc71d64321b33c9c22726fab24-3" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option reset '1'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-4" name="rest_code_997ef5cc71d64321b33c9c22726fab24-4" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-4"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option enable_vlan '1'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-5" name="rest_code_997ef5cc71d64321b33c9c22726fab24-5" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-6" name="rest_code_997ef5cc71d64321b33c9c22726fab24-6" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-7" name="rest_code_997ef5cc71d64321b33c9c22726fab24-7" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-7"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-8" name="rest_code_997ef5cc71d64321b33c9c22726fab24-8" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-8"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '1'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-9" name="rest_code_997ef5cc71d64321b33c9c22726fab24-9" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-9"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '1 2 3 4 6t'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-10" name="rest_code_997ef5cc71d64321b33c9c22726fab24-10" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-10"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '1'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-11" name="rest_code_997ef5cc71d64321b33c9c22726fab24-11" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-11"&gt;&lt;/a&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-12" name="rest_code_997ef5cc71d64321b33c9c22726fab24-12" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-12"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-13" name="rest_code_997ef5cc71d64321b33c9c22726fab24-13" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-13"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-14" name="rest_code_997ef5cc71d64321b33c9c22726fab24-14" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-14"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '300'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-15" name="rest_code_997ef5cc71d64321b33c9c22726fab24-15" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-15"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '300'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-16" name="rest_code_997ef5cc71d64321b33c9c22726fab24-16" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-16"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-17" name="rest_code_997ef5cc71d64321b33c9c22726fab24-17" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-17"&gt;&lt;/a&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-18" name="rest_code_997ef5cc71d64321b33c9c22726fab24-18" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-18"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-19" name="rest_code_997ef5cc71d64321b33c9c22726fab24-19" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-19"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-20" name="rest_code_997ef5cc71d64321b33c9c22726fab24-20" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-20"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '640'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-21" name="rest_code_997ef5cc71d64321b33c9c22726fab24-21" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-21"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '640'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-22" name="rest_code_997ef5cc71d64321b33c9c22726fab24-22" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-22"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-23" name="rest_code_997ef5cc71d64321b33c9c22726fab24-23" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-23"&gt;&lt;/a&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-24" name="rest_code_997ef5cc71d64321b33c9c22726fab24-24" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-24"&gt;&lt;/a&gt;&lt;span class="na"&gt;config switch_vlan&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-25" name="rest_code_997ef5cc71d64321b33c9c22726fab24-25" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-25"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option device 'switch0'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-26" name="rest_code_997ef5cc71d64321b33c9c22726fab24-26" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-26"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vlan '100'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-27" name="rest_code_997ef5cc71d64321b33c9c22726fab24-27" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-27"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option ports '0t 6t'&lt;/span&gt;
&lt;a id="rest_code_997ef5cc71d64321b33c9c22726fab24-28" name="rest_code_997ef5cc71d64321b33c9c22726fab24-28" href="https://sig-io.nl/posts/tmobilethuis-with-own-router/#rest_code_997ef5cc71d64321b33c9c22726fab24-28"&gt;&lt;/a&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="na"&gt;option vid '100'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;</description><category>edgerouter</category><category>fiber</category><category>networking</category><category>openwrt</category><category>tmobile</category><category>vlan</category><guid>https://sig-io.nl/posts/tmobilethuis-with-own-router/</guid><pubDate>Fri, 14 Sep 2018 11:37:00 GMT</pubDate></item><item><title>Configuring bridging, bonding, vlans on CentOS/RedHat 6.x</title><link>https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/</link><dc:creator>Mark Janssen</dc:creator><description>&lt;p&gt;/etc/sysconfig/network-scripts/ifcfg-em1 and em2&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_6b0b62fd6320492bb6dab596216d6be6-1" name="rest_code_6b0b62fd6320492bb6dab596216d6be6-1" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_6b0b62fd6320492bb6dab596216d6be6-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;DEVICE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;device-name&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_6b0b62fd6320492bb6dab596216d6be6-2" name="rest_code_6b0b62fd6320492bb6dab596216d6be6-2" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_6b0b62fd6320492bb6dab596216d6be6-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;ONBOOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_6b0b62fd6320492bb6dab596216d6be6-3" name="rest_code_6b0b62fd6320492bb6dab596216d6be6-3" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_6b0b62fd6320492bb6dab596216d6be6-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;HWADDR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;XX:XX:XX:XX:XX:XX&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/etc/sysconfig/network-scripts/ifcfg-em1.vlanid (example ifcfg-em1.20)&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-1" name="rest_code_c37b86e15e574c638384d9160e6000b4-1" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;DEVICE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;device&amp;gt;.&amp;lt;vlanid&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-2" name="rest_code_c37b86e15e574c638384d9160e6000b4-2" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;ONBOOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-3" name="rest_code_c37b86e15e574c638384d9160e6000b4-3" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;VLAN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-4" name="rest_code_c37b86e15e574c638384d9160e6000b4-4" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;BOOTPROTO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;none&lt;/span&gt;
&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-5" name="rest_code_c37b86e15e574c638384d9160e6000b4-5" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;SLAVE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_c37b86e15e574c638384d9160e6000b4-6" name="rest_code_c37b86e15e574c638384d9160e6000b4-6" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_c37b86e15e574c638384d9160e6000b4-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;MASTER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bond&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/etc/sysconfig/network-scripts/ifcfg-bond (example ifcfg-bond20)&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-1" name="rest_code_bd7c4217cca742feacb91faff7441d2b-1" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;DEVICE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bond&amp;lt;vlanid&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-2" name="rest_code_bd7c4217cca742feacb91faff7441d2b-2" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;ONBOOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-3" name="rest_code_bd7c4217cca742feacb91faff7441d2b-3" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;BONDING_OPTS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mode=active-backup primary=em1 miimon=100"&lt;/span&gt;
&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-4" name="rest_code_bd7c4217cca742feacb91faff7441d2b-4" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;BOOTPROTO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;none&lt;/span&gt;
&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-5" name="rest_code_bd7c4217cca742feacb91faff7441d2b-5" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;BRIDGE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;br&amp;lt;vlanid&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bd7c4217cca742feacb91faff7441d2b-6" name="rest_code_bd7c4217cca742feacb91faff7441d2b-6" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_bd7c4217cca742feacb91faff7441d2b-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;MACADDR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;RANDOM_MAC&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;/etc/sysconfig/network-scripts/ifcfg-br (example ifcfg.br20)&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code ini"&gt;&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-1" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-1" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-1"&gt;&lt;/a&gt;&lt;span class="na"&gt;DEVICE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;br&amp;lt;vlanid&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-2" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-2" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;ONBOOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yes&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-3" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-3" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;TYPE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Bridge&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-4" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-4" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;DELAY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-5" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-5" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;BOOTPROTO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;static&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-6" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-6" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;IPADDR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;X.X.X.X&lt;/span&gt;
&lt;a id="rest_code_9df2b7f28de6478fbff0adb524eae83c-7" name="rest_code_9df2b7f28de6478fbff0adb524eae83c-7" href="https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/#rest_code_9df2b7f28de6478fbff0adb524eae83c-7"&gt;&lt;/a&gt;&lt;span class="na"&gt;NETMASK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;X.X.X.X&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;So, creating 3 vlans (20, 200, 250) on a 2 interface bond (em1, em2) creates the following set of configfiles:&lt;/p&gt;
&lt;dl class="field-list simple"&gt;
&lt;dt&gt;ifcfg-em1&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Base configuration for em1&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em2&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Base configuration for em2&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em1.20&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 20 interface on em1 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em1.200&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 200 interface on em1 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em1.250&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 250 interface on em1 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em2.20&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 20 interface on em2 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em2.200&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 200 interface on em2 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-em2.250&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Vlan 250 interface on em2 interface&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-bond20&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Bonding em1.20 with em2.20&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-bond200&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Bonding em1.200 with em2.200&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-bond250&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Bonding em1.250 with em2.250&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-br20&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Create a bridge on bond20&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-br200&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Create a bridge on bond200&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;ifcfg-br250&lt;span class="colon"&gt;:&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Create a bridge on bond250&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;</description><category>bonding</category><category>bridging</category><category>network</category><category>redhat</category><category>vlan</category><guid>https://sig-io.nl/posts/configuring-bridging-bonding-vlans-on-centosredhat-6x/</guid><pubDate>Tue, 11 Mar 2014 19:10:45 GMT</pubDate></item></channel></rss>