<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>macvlan on Geek Vinkey</title>
    <link>https://www.mawenqian.com/en/tags/macvlan/</link>
    <description>Recent content in macvlan on Geek Vinkey</description>
    <image>
      <title>Geek Vinkey</title>
      <url>https://www.mawenqian.com/images/papermod-cover.png</url>
      <link>https://www.mawenqian.com/images/papermod-cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>MA Wenqian · mawenqian.com</copyright>
    <lastBuildDate>Wed, 26 Aug 2026 21:44:00 +0800</lastBuildDate>
    <atom:link href="https://www.mawenqian.com/en/tags/macvlan/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Getting IPv6 into a macvlan Container: Endpoint sysctls and SLAAC</title>
      <link>https://www.mawenqian.com/en/docker-macvlan-ipv6/</link>
      <pubDate>Wed, 26 Aug 2026 20:30:00 +0800</pubDate>
      <guid>https://www.mawenqian.com/en/docker-macvlan-ipv6/</guid>
      <description>&lt;p&gt;A macvlan container (ipvlan behaves the same) has no IPv6 by default: a link-local address and nothing else, no default route. The network is fine — Docker sets &lt;code&gt;disable_ipv6&lt;/code&gt; to 1 on the container interface whenever the network&amp;rsquo;s &lt;code&gt;EnableIPv6&lt;/code&gt; is false.&lt;/p&gt;
&lt;p&gt;Here is the configuration that works on a home connection, where the ISP hands out the prefix dynamically.&lt;/p&gt;
&lt;!-- more --&gt;
&lt;h2 id=&#34;confirm-thats-the-problem&#34;&gt;Confirm that&amp;rsquo;s the problem&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gp&#34;&gt;$&lt;/span&gt; docker &lt;span class=&#34;nb&#34;&gt;exec&lt;/span&gt; &amp;lt;container&amp;gt; ip -6 addr show eth0
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;    inet6 fe80::ef5:b3ae:a64e:e782/64 scope link      # link-local only
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gp&#34;&gt;$&lt;/span&gt; docker &lt;span class=&#34;nb&#34;&gt;exec&lt;/span&gt; &amp;lt;container&amp;gt; cat /proc/sys/net/ipv6/conf/eth0/disable_ipv6
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;go&#34;&gt;1                                                     # administratively off
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;do-not-declare-a-v6-subnet-on-the-docker-network&#34;&gt;Do not declare a v6 subnet on the docker network&lt;/h2&gt;
&lt;p&gt;The official-looking version is wrong for residential broadband:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running mihomo as a LAN Gateway with Docker macvlan</title>
      <link>https://www.mawenqian.com/en/mihomo-macvlan-gateway/</link>
      <pubDate>Thu, 20 Aug 2026 19:30:00 +0800</pubDate>
      <guid>https://www.mawenqian.com/en/mihomo-macvlan-gateway/</guid>
      <description>&lt;p&gt;I run mihomo in Docker on an N95 mini PC. macvlan gives the container its own LAN address (&lt;code&gt;10.0.0.6&lt;/code&gt;), so any device that points its default gateway there gets rule-based proxying — without touching the router&amp;rsquo;s own routing table.&lt;/p&gt;
&lt;p&gt;Two things bite you once the container is up: the host and its own macvlan containers cannot reach each other, and you still have to decide how clients switch over to the new gateway. This post covers both.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
