<?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=2497&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / persistent network interface names with multiple interface cards]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2497</link>
		<description><![CDATA[The most recent posts in persistent network interface names with multiple interface cards.]]></description>
		<lastBuildDate>Wed, 05 Dec 2018 23:44:11 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: persistent network interface names with multiple interface cards]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13126#p13126</link>
			<description><![CDATA[<p>I finally got back to trying using interface names other than ethN&#160; and it does indeed fix the problem I was seeing. Thanks !</p><p>Here are the details:</p><p>This is the new setup in the 70-persistent-net.rules file</p><p>SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:01:29:d3:0f:01&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;ethr0&quot;<br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;04:4b:80:08:80:03&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;ethr1&quot;<br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:15:e9:bd:1c:b7&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;ethr2&quot;</p><p>and this is the new /etc/network/interfaces</p><p># This file describes the network interfaces available on your system<br /># and how to activate them. For more information, see interfaces(5).</p><p>source /etc/network/interfaces.d/*</p><p># The loopback network interface<br />auto lo<br />iface lo inet loopback</p><p># The primary network interface<br />allow-hotplug ethr1<br />iface ethr1 inet dhcp</p><p># The distributed compile/cluster network interface<br />allow-hotplug ethr0<br />iface ethr0 inet static<br />address 192.168.10.109<br />netmask 255.255.255.0</p><p># The first test interface<br />allow-hotplug ethr2<br />iface ethr2 inet static<br />address 192.168.69.96<br />netmask 255.255.255.0</p><p>and the network interfaces wired interface name in wicd preferences was changed to ethr1</p>]]></description>
			<author><![CDATA[dummy@example.com (gdstew)]]></author>
			<pubDate>Wed, 05 Dec 2018 23:44:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13126#p13126</guid>
		</item>
		<item>
			<title><![CDATA[Re: persistent network interface names with multiple interface cards]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12968#p12968</link>
			<description><![CDATA[<p>Thank you both for your replies.</p><p>I should have been a little clearer with my description of the problem. This computer<br />is also used to test hardware. eth0 and eth1 (always present on the motherboard) swap<br />names when the eth2 card is inserted into a PCI slot to test it. When I used<br />70-persistent-net.rules with (pre-systemd) Debian this did not happen and I got the<br />persistent net names I wanted which is, as I understand it what 70-persistent-net.rules<br />was for. I&#039;m not sure if they swap back when eth2 is removed. I had a new<br />problem with my test setup, my ISP overriding ping addresses, so it got a little<br />hectic as I had to spend time finding a fix for a previously working test setup.</p><p>In the process of searching for answers to this problem I found out that systemd<br />programmers are now responsible for udev and that eudev is a Gentoo fork of the<br />earlier udev. It does not seem to work like it use to when it comes to persistent<br />net names.</p><p>I tried @fsmithred&#039;s idea and as far as I could tell it made no difference even with<br />the &quot;bus addresses&quot; being fixed on eth0 and eth1 and with eth2 in the same PCI slot<br />through both reset and power sequence events.</p><p>I would like to be able to force which network interface name is used for a particular<br />hardware interface to maintain consistent network interface names across multiple<br />computers with multiple Ethernet interfaces in my distributed compile/cluster setup<br />and of course on the test computer. From your response it looks like using my own<br />naming convention is the best (OK, easiest) route. This computer has been moved <br />off of my test bench while I try to install Devuan on my first UEFI motherboard so it<br />will be a while before I can try it.</p>]]></description>
			<author><![CDATA[dummy@example.com (gdstew)]]></author>
			<pubDate>Tue, 27 Nov 2018 04:30:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12968#p12968</guid>
		</item>
		<item>
			<title><![CDATA[Re: persistent network interface names with multiple interface cards]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12877#p12877</link>
			<description><![CDATA[<p>Firstly, do these interfaces really initialize in different orders at different boots, or are they always in the same order?</p><p>The example you present suggests that &quot;04:4b:80:08:80:03&quot; is first, then &quot;00:01:29:d3:0f:01&quot;, and then &quot;00:15:e9:bd:1c:b7&quot;. If that is always the boot order, then you would do best in naming the first one &quot;eth0&quot;, the second one &quot;eth1&quot; and the the third one &quot;eth2&quot;, since that coincides with what they are initialized as.</p><p>If there is initialization randomness, then you do best in naming them on a naming scheme apart from &quot;ethN&quot;, since that will avoid name clashes. The suggestion by @fsmithred might work if their &quot;bus addresses&quot; remain fixed, but it&#039;s probably better if you use a scheme of your own, say &quot;eN&quot;.</p><p>If you also really need them to be named &quot;ethN&quot; in your way, then you must rename twice: first to a different scheme, then back to the &quot;ethN scheme&quot;. In that case, you cannot really rely on <span class="bbc">udev</span> to configure them, since the configuration has to be postponed until after the double renaming (and not on &quot;first sight&quot;). I think you are in scripting territory with that.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 20 Nov 2018 22:38:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12877#p12877</guid>
		</item>
		<item>
			<title><![CDATA[Re: persistent network interface names with multiple interface cards]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12876#p12876</link>
			<description><![CDATA[<p>One solution would be to force eudev to use the new naming scheme. Add &#039;net.ifnames=1&#039; to the boot command, and you&#039;ll get interface names that will not change.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 20 Nov 2018 20:59:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12876#p12876</guid>
		</item>
		<item>
			<title><![CDATA[persistent network interface names with multiple interface cards]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12864#p12864</link>
			<description><![CDATA[<p>How can I get persistent net interface names on multiple network interfaces? I am using the wicd network manager on my primary network interface and it is the only<br />one configured in wicd.</p><p>When I tried using a hand generated /etc/udev/rules.d/70-persistent-net.rules file I get these error messages during boot:</p><p>Waiting for /dev to be fully populated...<br />[...] udevd[397]: Error changing net interface name eth2 to eth1: File exists<br />[...] udevd[395]: Error changing net interface name eth1 to eth0: File exists<br />[...] udevd[393]: Error changing net interface name eth0 to eth2: File exists</p><p>This is the setup in the 70-persistent-net.rules file:</p><p>UBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:01:29:d3:0f:01&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;<br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;04:4b:80:08:80:03&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;<br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:15:e9:bd:1c:b7&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth2&quot;</p><p>and this is the /etc/network/interfaces file:</p><p># This file describes the network interfaces available on your system<br /># and how to activate them. For more information, see interfaces(5).</p><p>source /etc/network/interfaces.d/*</p><p># The loopback network interface<br />auto lo<br />iface lo inet loopback</p><p># The primary network interface<br />allow-hotplug eth1<br />iface eth1 inet dhcp</p><p># The distributed compile/cluster network interface<br />allow-hotplug eth0<br />iface eth0 inet static<br />address 192.168.10.109<br />netmask 255.255.255.0</p><p># The first test interface<br />allow-hotplug eth2<br />iface eth2 inet static<br />address 192.168.69.96<br />netmask 255.255.255.0</p><p>and this is what ifconfig reports:</p><p>root@testy123:# ifconfig<br />eth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;&#160; mtu 1500<br />&#160; &#160; &#160; &#160; inet 192.168.10.109&#160; netmask 255.255.255.0&#160; broadcast 192.168.10.255<br />&#160; &#160; &#160; &#160; inet6 2605:6001:e20b:9400:215:e9ff:febd:1cb7&#160; prefixlen 64&#160; scopeid 0x0&lt;global&gt;<br />&#160; &#160; &#160; &#160; inet6 fe80::215:e9ff:febd:1cb7&#160; prefixlen 64&#160; scopeid 0x20&lt;link&gt;<br />&#160; &#160; &#160; &#160; ether 00:15:e9:bd:1c:b7&#160; txqueuelen 1000&#160; (Ethernet)<br />&#160; &#160; &#160; &#160; RX packets 146&#160; bytes 15152 (14.7 KiB)<br />&#160; &#160; &#160; &#160; RX errors 0&#160; dropped 0&#160; overruns 0&#160; frame 0<br />&#160; &#160; &#160; &#160; TX packets 7&#160; bytes 606 (606.0 B)<br />&#160; &#160; &#160; &#160; TX errors 0&#160; dropped 0 overruns 0&#160; carrier 0&#160; collisions 0<br />&#160; &#160; &#160; &#160; device interrupt 18&#160; </p><p>eth1: flags=4099&lt;UP,BROADCAST,MULTICAST&gt;&#160; mtu 1500<br />&#160; &#160; &#160; &#160; ether 00:01:29:d3:0f:61&#160; txqueuelen 1000&#160; (Ethernet)<br />&#160; &#160; &#160; &#160; RX packets 0&#160; bytes 0 (0.0 B)<br />&#160; &#160; &#160; &#160; RX errors 0&#160; dropped 0&#160; overruns 0&#160; frame 0<br />&#160; &#160; &#160; &#160; TX packets 0&#160; bytes 0 (0.0 B)<br />&#160; &#160; &#160; &#160; TX errors 0&#160; dropped 0 overruns 0&#160; carrier 0&#160; collisions 0<br />&#160; &#160; &#160; &#160; device interrupt 18&#160; </p><p>eth2: flags=4099&lt;UP,BROADCAST,MULTICAST&gt;&#160; mtu 1500<br />&#160; &#160; &#160; &#160; inet 192.168.69.96&#160; netmask 255.255.255.0&#160; broadcast 192.168.69.255<br />&#160; &#160; &#160; &#160; ether 04:4b:80:08:80:03&#160; txqueuelen 1000&#160; (Ethernet)<br />&#160; &#160; &#160; &#160; RX packets 0&#160; bytes 0 (0.0 B)<br />&#160; &#160; &#160; &#160; RX errors 0&#160; dropped 0&#160; overruns 0&#160; frame 0<br />&#160; &#160; &#160; &#160; TX packets 0&#160; bytes 0 (0.0 B)<br />&#160; &#160; &#160; &#160; TX errors 0&#160; dropped 0 overruns 0&#160; carrier 0&#160; collisions 0</p><p>lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;&#160; mtu 65536<br />&#160; &#160; &#160; &#160; inet 127.0.0.1&#160; netmask 255.0.0.0<br />&#160; &#160; &#160; &#160; inet6 ::1&#160; prefixlen 128&#160; scopeid 0x10&lt;host&gt;<br />&#160; &#160; &#160; &#160; loop&#160; txqueuelen 1&#160; (Local Loopback)<br />&#160; &#160; &#160; &#160; RX packets 8&#160; bytes 480 (480.0 B)<br />&#160; &#160; &#160; &#160; RX errors 0&#160; dropped 0&#160; overruns 0&#160; frame 0<br />&#160; &#160; &#160; &#160; TX packets 8&#160; bytes 480 (480.0 B)<br />&#160; &#160; &#160; &#160; TX errors 0&#160; dropped 0 overruns 0&#160; carrier 0&#160; collisions 0</p><p>All of the searches I&#039;ve googled come up with systemd related responses. I&#039;ve also scanned and searched this forum and could not find any that helped although a couple of them addressed related problems.</p>]]></description>
			<author><![CDATA[dummy@example.com (gdstew)]]></author>
			<pubDate>Tue, 20 Nov 2018 06:23:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12864#p12864</guid>
		</item>
	</channel>
</rss>
