1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic xml:lang="en-us" id="network_vde">
<title>VDE Networking</title>
<body>
<p>Virtual Distributed Ethernet (VDE) is a flexible, virtual network infrastructure system, spanning across multiple
hosts in a secure way. It enables L2/L3 switching, including spanning-tree protocol, VLANs, and WAN emulation. It
is an optional part of <ph conkeyref="vbox-conkeyref-phrases/product-name"/> which is only included in the source
code. </p>
<p>VDE is a project developed by Renzo Davoli, Associate Professor at the University of Bologna, Italy. </p>
<p>The basic building blocks of the infrastructure are VDE switches, VDE plugs, and VDE wires which interconnect the
switches. </p>
<p>The <ph conkeyref="vbox-conkeyref-phrases/product-name"/> VDE driver has a single parameter: VDE network. This is
the name of the VDE network switch socket to which the VM will be connected. </p>
<p>The following basic example shows how to connect a virtual machine to a VDE switch. </p>
<ol>
<li>
<p>
Create a VDE switch:
</p>
<pre xml:space="preserve">vde_switch -s /tmp/switch1</pre>
</li>
<li>
<p>
Configure VMs using the command-line:
</p>
<pre xml:space="preserve">VBoxManage modifyvm "VM name" --nic<x> generic</pre>
<pre xml:space="preserve">VBoxManage modifyvm "VM name" --nic-generic-drv<x> VDE</pre>
<p>
To connect to an automatically allocated switch port:
</p>
<pre xml:space="preserve">VBoxManage modifyvm "VM name" --nic-property<x> network=/tmp/switch1</pre>
<p>
To connect to a specific switch port
<varname>n</varname>:
</p>
<pre xml:space="preserve">VBoxManage modifyvm "VM name" --nic-property<x> network=/tmp/switch1[<n>]</pre>
<p>
This command can be useful for VLANs.
</p>
</li>
<li>
<p>
(Optional) Map between a VDE switch port and a VLAN.
</p>
<p>
Using the switch command line:
</p>
<pre xml:space="preserve">vde$ vlan/create <VLAN></pre>
<pre xml:space="preserve">vde$ port/setvlan <port> <VLAN></pre>
</li>
</ol>
<p>VDE is available on Linux and FreeBSD hosts only. It is only available if the VDE software and the VDE plugin
library from the VirtualSquare project are installed on the host system. </p>
<note>
<p>For Linux hosts, the shared library libvdeplug.so must be available in the search path for shared libraries. </p>
</note>
<p>For more information on setting up VDE networks, please see the documentation accompanying the software. See also
<ph>http://wiki.virtualsquare.org</ph>. </p>
</body>
</topic>
|