LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2017, 11:24 AM   #1
bifferos
Member
 
Registered: Jul 2009
Posts: 49

Rep: Reputation: 3
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):
Code:
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):
Code:
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:
Code:
dpipe vde_plug = ssh vde@router vde_plug
Finally, I ran Qemu on Desktop with these networking options:
Code:
-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?

thanks,
Biff.

Last edited by bifferos; 03-15-2017 at 11:26 AM.
 
Old 03-16-2017, 04:53 AM   #2
bifferos
Member
 
Registered: Jul 2009
Posts: 49

Original Poster
Rep: Reputation: 3
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:
Code:
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:
Code:
vde_switch -tap tap0 -daemon
dpipe vde_plug = ssh vde@router vde_plug2tap -s - tap0

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


Reply


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 02:01 AM
VDE networking in QEMU trademark91 Slackware 2 02-28-2011 08:29 PM
qemu + vde on slackware 13.1 Ramurd Slackware 18 09-05-2010 06:02 AM
qemu and vde help zoran119 Slackware 13 08-03-2009 09:09 AM
QEMU and VDE fr_laz Linux - Networking 0 07-06-2005 08:06 AM


All times are GMT -5. The time now is 03:00 PM.

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