<?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=6709&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Looking for the RIGHT way to create a bridge]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6709</link>
		<description><![CDATA[The most recent posts in Looking for the RIGHT way to create a bridge.]]></description>
		<lastBuildDate>Sun, 07 Jul 2024 21:17:33 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Looking for the RIGHT way to create a bridge]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=50972#p50972</link>
			<description><![CDATA[<p>Hi!</p><p>Thanks for your investigation.<br />Not sure, if bridge-utils are really need, but I use them because its an easier way then &quot;ip-link&quot;.<br />I usually use &#039;ifquery&#039; ether with &#039;--list&#039; or &#039;--state&#039; but it does not show my second bridge, even<br />though &#039;ip link&#039; shows it.<br />I know the problem with the member ports and on my current workstation the solution was to<br />give it a dummy address (&quot;0.0.0.0&quot;). The bridges are for containers and LXC, so there is no<br />definitiv port at computer start - which was never a problem to me.<br />But there is &quot;/etc/network/if-pre-up.d/bridge -&gt; /lib/bridge-utils/ifupdown.sh*&quot;<br />which should solve the problem (that ip link is not persistent) and read &quot;interfaces&quot;.<br />I have two comparable computers (hardware and VM), both Devuan5. If I look into /var/log/boot:</p><div class="codebox"><pre><code>Starting: AppArmorLoading AppArmor profiles...done.
Configuring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts ... (warning).
invoke-rc.d: could not determine current runlevel
if-up.d/mountnfs[eth1]: waiting for interface lanbr before doing NFS mounts ... (warning).
invoke-rc.d: could not determine current runlevel</code></pre></div><p>Note: <strong>waiting for interface lanbr</strong> ....<br />I am even not capable to write everthing, I saw. But a internet search for</p><div class="quotebox"><blockquote><div><p>&quot;2: eth0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt;&quot;</p></div></blockquote></div><p>Exactly this is part of my experience, were the bridge and even sometime<br />a hardware inferace shows this strange status!<br />This earch gives tons of similar messages, a hint of apparmor bug, of Kernel 6.1 bug and more.<br />You remove a VF from a dual-nic and suddenly, the other(!) port does not get carrier! I changed the NIC with the exact same from another computer (shown in the log-excerpt above) with not changes and the other box does not have that problem.<br />The whole story started with unexpected behavior of a kvm-guest, which had no traffic. But then I made the same, step-by-step on this host itself (create bridge, create macvlan) and everythings works - repeated this using LXC, works.<br />I made a port mirror on the hardware-switch - no packages came out, if the VM runs ..... but you see the packets on the host.<br />Something drops them. Due to the probability, this could be some of the &quot;same subnet&quot; things, I used a complete different, 10.10.10. ... (have enough free port on other computers). No change.<br />Now I removed systemtap, xtables-common, libvirt*, qemu*, xrdp, x2go, xfce4. Upgraded to kernel 6.5 - no changes.<br />There is no wait-message for the bridge and the assigned interface does not become member (can be done manually, after login). Even &quot;/etc/network/interfaces.d/&quot; is not read (was successful with: &quot;/etc/network/if-pre-up.d/lanbr&quot;<br />(my script with name of the bridge - but the membership problem remains). So the bridge can be created, but get no member ports.<br />Time to reinstall and hope.<br />I remember, what was the first fault on this box:<br />On shutdown, after the first boot (zfs on root), installed the usual way using chroot (like one of the other<br />boxes from the logs above, were the same things works), I got:<br />~ &quot;cannot unmount /var/log&quot; .....</p><p>Thanks anyway and<br />best regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sun, 07 Jul 2024 21:17:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=50972#p50972</guid>
		</item>
		<item>
			<title><![CDATA[Re: Looking for the RIGHT way to create a bridge]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=50953#p50953</link>
			<description><![CDATA[<p>With <span class="bbc">ifupdown</span>, bridges get set up by the <span class="bbc">/etc/network/if-pre-up.d/bridge</span> script when that script detects that the <span class="bbc">iface</span> block has a <span class="bbc">bridge_ports</span> setting. That script is provided by the <span class="bbc">bridge-utils</span> package which nowadays is &quot;optional&quot;, so perhaps it&#039;s not installed?</p><p>Bridges are of course available as kernel networking elements regardless of that package, and the <span class="bbc">ip</span> command operates on the kernel elements.</p><p>Generally speaking, the <span class="bbc">ifup</span> and <span class="bbc">ifdown</span> commands are tunable and extensible by means of scripts/programs in the <span class="bbc">/etc/network/if-*</span> directories which all get invoked when interfaces are brought up or down by those commands. See <span class="bbc">man interfaces</span> for more.</p><p>The <span class="bbc">ip</span> command only operates on the kernel&#039;s networking setup and it does not make use of <span class="bbc">ifupdown</span>. It&#039;s rather the opposite, that <span class="bbc">ifupdown</span> scripts (and built-in functions) make use of <span class="bbc">ip</span> to effectuate declared configurations.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 06 Jul 2024 23:24:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=50953#p50953</guid>
		</item>
		<item>
			<title><![CDATA[Looking for the RIGHT way to create a bridge]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=50950#p50950</link>
			<description><![CDATA[<p>Until debian buster, I have had never a problem to create and or use bridges,<br />but - so far I remember correctly - this came with bullseye.<br />Since then, I had to issue (example) &quot;ip link add mybr type bridge&quot; once and the<br />bridge could be configured in the interfaces file, but only for some bridges, not all ....<br />Now, on Daedalus,I had this with my bridge for my (k)VMs - to avoid complexity,<br />I started again using a usual lan-bridge:<br /><span class="bbc">ip link add lanbr type bridge</span><br />Then I edit &#039;interfaces&#039;<br /><span class="bbc"><br />auto lanbr<br />iface lanbr inet static<br />&#160; &#160; &#160; &#160; address 10.0.0.1/24<br />&#160; &#160; &#160; &#160; gateway 10.0.0.254</span></p><p><span class="bbc">&#160; &#160; &#160; &#160; #bridge_stp off<br />&#160; &#160; &#160; &#160; #bridge_waitport 0<br />&#160; &#160; &#160; &#160; #bridge_fd 0</span></p><p><span class="bbc">&#160; &#160; &#160; &#160; bride_ports eif0<br /></span><br />But the bridge does not come up after boot and bootlog tells me:</p><div class="codebox"><pre><code>Cannot find device &quot;lanbr&quot;
Sat Jul  6 23:20:03 2024: ifup: failed to bring up lanbr
Sat Jul  6 23:20:03 2024: invoke-rc.d: could not determine current runlevel</code></pre></div><p>Looks like, someone forgot the &#039;lanbr&#039; interface.<br />This is something I never had seen before.<br />What is a - reproducable - list of steps to setup a bridge?<br />I try to avoid - for this message - that KVM has the same <br />problem and does not find (the other bridge).<br />Something strange!<br />Please help!</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sat, 06 Jul 2024 21:46:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=50950#p50950</guid>
		</item>
	</channel>
</rss>
