Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-15-2017, 12:24 PM   #1
Registered: Jul 2009
Posts: 61

Rep: Reputation: 8
Can you tell me what is wrong with my VDE setup?

Hi All,

I have two physical machines: Router (2 NICs), and Desktop (1 NIC).

Router: eth1 (external)
eth0 (internal)

Desktop: eth0 (internal)

On the router I ran (as root):
modprobe tun
vde_switch -tap tap0 -daemon
chmod -R a+rwx /var/run/vde.ctl
vde_pcapplug eth1 -daemon
When running vde_plug the command-line outputs some garbage, so it seems I'm receiving packets into my switch.

Then on the desktop I ran (as root):
modprobe tun
vde_switch -tap tap0 -daemon
chmod -R a+rwx /var/run/vde.ctl
Then as a user, I connected the switches on the two machines:
dpipe vde_plug = ssh vde@router vde_plug
Finally, I ran Qemu on Desktop with these networking options:
-netdev vde,id=mynet0 -device vmxnet3,netdev=mynet0,mac=00:01:55:55:55:01
This is sort-of working but the network connection seems to be unreliable. I've tried with 'hub' and 'switch' options for vde_switch, the same thing happens. I'm pretty sure my system isn't being overloaded with packets as there don't seem to be enough of them.

Any ideas?


Last edited by bifferos; 03-15-2017 at 12:26 PM.
Old 03-16-2017, 05:53 AM   #2
Registered: Jul 2009
Posts: 61

Original Poster
Rep: Reputation: 8
It seems that vde_pcapplug was the problem. I switched to the 'bridged' way of doing things and everything is working a lot better. Strange that vde_pcapplug worked perfectly for me in the past, and it seems to have worked for other people as well judging by a quick Google.

So in the end, I did something like this on the router:
brctl addbr br0
brctl addif br0 eth1
modprobe tun
vde_tunctl -u vde
ifconfig tap0 up
brctl addif br0 tap0
ifconfig br0 XXXXX ...
Then you can avoid running a vde_switch on the router by using the handy vde_plug2tap which provides a direct plug to the tap (bridge) so from the 'desktop' machine:
vde_switch -tap tap0 -daemon
dpipe vde_plug = ssh vde@router vde_plug2tap -s - tap0

Last edited by bifferos; 03-16-2017 at 06:00 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM with VDE Networking Question dman777 Linux - Virtualization and Cloud 0 09-27-2011 03:01 AM
VDE networking in QEMU trademark91 Slackware 2 02-28-2011 09:29 PM
qemu + vde on slackware 13.1 Ramurd Slackware 18 09-05-2010 07:02 AM
qemu and vde help zoran119 Slackware 13 08-03-2009 10:09 AM
QEMU and VDE fr_laz Linux - Networking 0 07-06-2005 09:06 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration