<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jdac</id>
	<title>KVM - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jdac"/>
	<link rel="alternate" type="text/html" href="https://linux-kvm.org/page/Special:Contributions/Jdac"/>
	<updated>2026-05-01T15:29:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://linux-kvm.org/index.php?title=Talk:Networking&amp;diff=3098</id>
		<title>Talk:Networking</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=Talk:Networking&amp;diff=3098"/>
		<updated>2010-07-19T20:03:09Z</updated>

		<summary type="html">&lt;p&gt;Jdac: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In the section about running kvm as a non-root contains a setup that will not work. It says that one need to create a &#039;&#039;qemu-ifup&#039;&#039; script containing the line:&lt;br /&gt;
&lt;br /&gt;
 /usr/bin/sudo /usr/sbin/tunctl -u `whoami` -t $1&lt;br /&gt;
&lt;br /&gt;
However, it will not work and result in an error-message when running &#039;&#039;qemu-system-x86_64&#039;&#039;. The command above needs to be run before &#039;&#039;qemu-system-x86_64&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
&lt;br /&gt;
I think this oneliner for generating a random MAC address is much more readable, and as an added bonus it will use the entire 16 bit space:&lt;br /&gt;
    printf &amp;quot;DE:AD:BE:EF:%02X:%02X\n&amp;quot; $((RANDOM&amp;amp;255)) $((RANDOM&amp;amp;255))&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
If you create the bridge manually (&amp;quot;brctl addbr br0&amp;quot;) then you should also bring it up, with &amp;quot;ifconfig br0 up&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Jdac</name></author>
	</entry>
</feed>