<?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=Robert+larsen</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=Robert+larsen"/>
	<link rel="alternate" type="text/html" href="https://linux-kvm.org/page/Special:Contributions/Robert_larsen"/>
	<updated>2026-05-01T15:30:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://linux-kvm.org/index.php?title=Talk:Networking&amp;diff=2367</id>
		<title>Talk:Networking</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=Talk:Networking&amp;diff=2367"/>
		<updated>2009-07-03T13:26:50Z</updated>

		<summary type="html">&lt;p&gt;Robert larsen: Added tip on a (in my opinion) better MAC address generator&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;/div&gt;</summary>
		<author><name>Robert larsen</name></author>
	</entry>
</feed>