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