<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6667&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / daedalus: network interface names changing with (nearly) each boot]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6667</link>
		<description><![CDATA[The most recent posts in daedalus: network interface names changing with (nearly) each boot.]]></description>
		<lastBuildDate>Sat, 15 Jun 2024 00:18:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: daedalus: network interface names changing with (nearly) each boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=50542#p50542</link>
			<description><![CDATA[<p>Hello All!</p><p>Thanks, @fsmithred!<br />I followed this advice, event though it shows another theme!<br />My problem was not old/new naming convention, but changing interface names between boot - not daily though<br />and a quick reboot is not an answer. But I looked at this kernel commandline option and it seems not to have any effect!<br />But I found 70-persistent-net.rules, something, I&#039;ve not regarded before.<br />Astroundingly, the mapping, applied in this file, does NOT fit the reality completely, there is an exception for one interface.<br />Then I changed the rules/names, but the problem persists. Then I enabled udev debug logging and saw, that the interface,<br />which hasnt followed the rule, was renamed two times: From eth0 to eth2, the from eth2 to eth3.<br />&quot;Predictbale interface names&quot; ..... <br />Anyway, which kernel commandline applied.<br />Additionally, I found, that there COULD be &quot;net.naming-scheme=v250&quot;, according to this thread:<br /><span class="bbu">udevd produce same ID_NET_NAME_SLOT for different NIC, so break rename #28929 :</span><br /><a href="https://github.com/systemd/systemd/issues/28929" rel="nofollow">https://github.com/systemd/systemd/issues/28929</a><br />But from this thread, I found a hint: &quot;udevadm test-builtin&quot; and I used it like this:</p><div class="codebox"><pre><code>$ udevadm test-builtin net_id /sys/class/net/gif0 (where gif0 is now my 10GbE-IF)
calling: test-builtin
=== trie on-disk ===
tool version:          3
file size:         9709412 bytes
header size             80 bytes
strings            2419020 bytes
nodes              7290312 bytes
Load module index
ID_NET_NAME_MAC=enx001999c13f23
ID_OUI_FROM_DATABASE=Fujitsu Technology Solutions GmbH
ID_NET_NAME_PATH=enp4s0f0
Unload module index</code></pre></div><p>This &lt;enp4s0f0&gt; (under: ID_NET_NAME_PATH) is probably the original IF-name and could explain, why<br />the &quot;70-persistent-net.rules&quot; cannot work:<br />ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth3&quot; - because they trigger (not!) on interface<br />names, which do not exist?<br />After I enabled udev debug logging, I have to look deeper at systemstart in the next days.<br />So wether &quot;net.naming-scheme=v250&quot; nor &quot;net.ifnames=1&quot; made something!<br />To udev logging: The shown output (&quot;=== trie on-disk ===&quot;) appears in LSPCI too:</p><div class="codebox"><pre><code>08:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
=== trie on-disk ===
tool version:          3
file size:         9709412 bytes
header size             80 bytes
strings            2419020 bytes
nodes              7290312 bytes</code></pre></div><p>at the end of the list of network cards.</p><p>For the moment, I choosed a completely different set of names (eno0 for MoBo-IF, eif&lt;N&gt;<br />for the ethernet (better: 1Gbe) and gif&lt;N&gt; for the 10GbE interfaces. And these coming - at least<br />for the moment - up with exactly this names without any problem.</p><p>The drama will probably start, if I now start setting the &quot;sriov_numvfs&quot;<br />variable to get man VFs (asked a question in another part of this forum).</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sat, 15 Jun 2024 00:18:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=50542#p50542</guid>
		</item>
		<item>
			<title><![CDATA[Re: daedalus: network interface names changing with (nearly) each boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=50541#p50541</link>
			<description><![CDATA[<p>A good alternative would be to install and use <span class="bbc">ifrename</span>. Possibly easier and safer. You would then pick your own name series and declare the mapping from PCI bus addresses to your names.</p><p>Install and check out its man pages (<span class="bbc">ifrename</span> and <span class="bbc">iftab</span>).</p><p>EDIT: with <span class="bbc">ifrename</span> you would not have add that boot parameter.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 15 Jun 2024 00:03:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=50541#p50541</guid>
		</item>
		<item>
			<title><![CDATA[Re: daedalus: network interface names changing with (nearly) each boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=50520#p50520</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>In devuan, with eudev you get the old names....</p></div></blockquote></div><p>@fsmithred<br />Thanks for the good explanation. </p><p>a) <br />How can I find out, what the interfaces will actually be called without modifying the _cmdline_? <br />b)<br />and then modify the relevant files&#160; (sed ... s/eth0/enpxxx/ somefile)<br />c)<br />If I could give it a try modifying / restarting without loosing connection to my remotes without screen?</p>]]></description>
			<author><![CDATA[dummy@example.com (bai4Iej2need)]]></author>
			<pubDate>Fri, 14 Jun 2024 14:32:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=50520#p50520</guid>
		</item>
		<item>
			<title><![CDATA[Re: daedalus: network interface names changing with (nearly) each boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=50516#p50516</link>
			<description><![CDATA[<p>This is why they invented Predictable Network Interface Names.<br /><a href="https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/" rel="nofollow">https://www.freedesktop.org/wiki/Softwa … faceNames/</a></p><p>In debian, with udev you get the new names (enpblahblahblah) unless you boot with &#039;net.ifnames=0&#039; to preserve the old names (eth0...)</p><p>In devuan, with eudev you get the old names (eth0...) unless you boot with &#039;net.ifnames=1&#039;.&#160; &#160;Add that to the boot command in /etc/default/grub like this: </p><div class="codebox"><pre><code>GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet,net.ifnames=1&quot;</code></pre></div><p>and then run <span class="bbc">update-grub</span></p><p>You will need to edit any scripts you&#039;ve written that reference the interfaces by the old names.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 14 Jun 2024 00:45:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=50516#p50516</guid>
		</item>
		<item>
			<title><![CDATA[daedalus: network interface names changing with (nearly) each boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=50509#p50509</link>
			<description><![CDATA[<p>Hello!<br />I have no clue, what causes this, but the network interface names are changing often.<br />So, for this cases, there were no software or hardware changes applied.<br />I am using daedalus, devuan5, with ZFS on root, using kernel:</p><div class="codebox"><pre><code>6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux</code></pre></div><p>on a ASRock X570M Pro4.<br />The situation is to see, if one looks into &#039;/sys/class/net&#039;, here two examples.</p><div class="codebox"><pre><code>##Previous boot:

##eth0 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:02.0/0000:04:00.0/net/eth0    &lt;==
##eth1 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:04.0/0000:06:00.0/net/eth1
##eth2 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:04.0/0000:06:00.1/net/eth2
##eth3 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:06.0/0000:08:00.0/net/eth3
##eth4 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:02.0/0000:04:00.1/net/eth4

##Current boot:

eth0 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:04.0/0000:06:00.0/net/eth0/
eth1 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:04.0/0000:06:00.1/net/eth1/
eth2 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:06.0/0000:08:00.0/net/eth2/
eth3 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:02.0/0000:04:00.0/net/eth3/   &lt;==
eth4 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:02.0/0000:04:00.1/net/eth4/</code></pre></div><p>How can this be fixed?<br />BTW, the 0000:08:00.0 is the mainboard interface, which I use as basic interface for LAN access.<br />I could list the pci-device order (and have saved it), but there are never changes.<br />This is not a desktop, and this behavior makes ssh access impossible!</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Thu, 13 Jun 2024 18:44:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=50509#p50509</guid>
		</item>
	</channel>
</rss>
