<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4710&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Chimaera network-manager ipv6 stable address]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4710</link>
		<description><![CDATA[The most recent posts in [SOLVED] Chimaera network-manager ipv6 stable address.]]></description>
		<lastBuildDate>Fri, 17 Dec 2021 02:06:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Chimaera network-manager ipv6 stable address]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33298#p33298</link>
			<description><![CDATA[<p>Finally I managed to get ipv6 stable-privacy SLAAC address with network-manager on Devuan <img src="https://dev1galaxy.org/img/smilies/cool.png" width="15" height="15" alt="cool" /><br />NM generates them from <span class="bbc">/var/lib/NetworkManager/secret_key</span> and <span class="bbc">/etc/machine-id</span> &lt;&lt; which is missing on Devuan as non-systemd distro (and present on my arm64-board with Armbian).<br />So NM takes <span class="bbc">/var/lib/dbus/machine-id</span> instead, which is set to random on boot, and I got random ipv6 address.<br />After commenting <span class="bbc">IDTYPE=&quot;RANDOM&quot;</span></p><div class="codebox"><pre><code>cat /etc/default/dbus
...
#IDTYPE=&quot;RANDOM&quot;</code></pre></div><p>I get stable ipv6 address.</p>]]></description>
			<author><![CDATA[dummy@example.com (ff255)]]></author>
			<pubDate>Fri, 17 Dec 2021 02:06:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33298#p33298</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Chimaera network-manager ipv6 stable address]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33204#p33204</link>
			<description><![CDATA[<p>Hello.<br />I&#039;m using Devuan as main desktop for several years, but still don&#039;t have much experience in linux-administration because mostly it just works <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />But now after upgrade from Beowulf to Chimaera I have problems with network ipv6 setup, address changes on every boot.</p><p>Devuan-system is wired-connected by UTP to home router and recieves ipv4(dhcp) and ipv6(router-advertisements) on eth0 from home router.<br />I need ipv6 address to be Stable private, as described here <a href="https://superuser.com/questions/243669/how-to-avoid-exposing-my-mac-address-when-using-ipv6/243713#243713" rel="nofollow">https://superuser.com/questions/243669/ … 713#243713</a><br />On Beowulf I used Linux kernel SLAAC (/etc/network/interfaces), and all worked fine, eth0 always had the same public ipv6.<br />Router config did not change.<br />Now I&#039;m using network-manager 1.30.0-2+devuan1, I commented entries in &quot;/etc/network/interfaces&quot;, and by default there is &quot;ipv6.addr-gen-mode: stable-privacy&quot; in /etc/NetworkManager/system-connections/&#039;Wired connection 1.nmconnection&#039;</p><div class="codebox"><pre><code>cat /etc/network/interfaces

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
###allow-hotplug eth0
#auto eth0
#iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
#iface eth0 inet6 auto</code></pre></div><div class="codebox"><pre><code>/etc/NetworkManager/system-connections# cat &#039;Wired connection 1.nmconnection&#039; 
[connection]
id=Wired connection 1
uuid=48c5b0e7-ff8e-3fa2-804c-b9e0387dd3f2
type=ethernet
autoconnect-priority=-999
interface-name=eth0
permissions=
timestamp=1637396292

[ethernet]
auto-negotiate=true
mac-address-blacklist=

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto</code></pre></div><p>Also I checked uuid of connection and secret key&#160; &quot;/var/lib/NetworkManager/secret_key&quot; are the same upon reboots, but ipv6-global and link-local addresses still changes after every reboot <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><div class="codebox"><pre><code>~$ ip -6 addr show eth0
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    inet6 2002:5158:d15a:0:bd20:87c3:96ed:4ce5/64 scope global dynamic noprefixroute 
       valid_lft 5379sec preferred_lft 5379sec
    inet6 fe80::6fbf:aad6:9f1c:5d70/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever</code></pre></div><p>Reboot</p><div class="codebox"><pre><code>~$ ip -6 addr show eth0
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    inet6 2002:5158:d15a:0:4d79:3873:178:795d/64 scope global dynamic noprefixroute 
       valid_lft 5354sec preferred_lft 5354sec
    inet6 fe80::f5f5:c928:231:5dee/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever</code></pre></div><p>Checked also</p><div class="codebox"><pre><code>cat /proc/sys/net/ipv6/conf/default/use_tempaddr
0</code></pre></div><p>I would assume it&#039;s a bug in network-manager, but on my arm64-board on the same network running Armbian-10(buster) and network-manager 1.14.6-2+deb10u1 and same [ipv6] config, ipv6 addresses remains the same over reboots, as expected.<br />I tried to compare network-manager configs from Devuan and Armbian systems with no luck...they are almost the same... May be there are some settings in system unknown to me...<br />%-(<br />How can I make ipv6 addresses stable over reboots with network-manager on Devuan?</p><p>P.S. Sorry for not-always-good-english</p><p>EDIT<br />I tried setting <span class="bbc">connection.stable-id</span>=${CONNECTION}</p><div class="codebox"><pre><code>~$ nmcli conn show Wired1 
connection.id:                          Wired1
connection.uuid:                        48c5b0e7-ff8e-3fa2-804c-b9e0387dd3f2
connection.stable-id:                   ${CONNECTION}</code></pre></div><p>tried&#160; <span class="bbc">connection.stable-id</span>=<span class="bbc">connection.uuid</span></p><div class="codebox"><pre><code>~$ nmcli conn show Wired1
connection.id:                          Wired1
connection.uuid:                        48c5b0e7-ff8e-3fa2-804c-b9e0387dd3f2
connection.stable-id:                   48c5b0e7-ff8e-3fa2-804c-b9e0387dd3f2</code></pre></div><p>But no luck, every time after reboot i get new ipv6 address...</p>]]></description>
			<author><![CDATA[dummy@example.com (ff255)]]></author>
			<pubDate>Wed, 08 Dec 2021 19:49:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33204#p33204</guid>
		</item>
	</channel>
</rss>
