Changes between Version 2 and Version 3 of PluggingIn


Ignore:
Timestamp:
Mar 20, 2012 11:44:54 AM (12 years ago)
Author:
mikeryan
Comment:

plugging into VDE

Legend:

Unmodified
Added
Removed
Modified
  • PluggingIn

    v2 v3  
    88
    99Networking configuration can be found in the following places:
    10  * TopDL: IP address, netmask, MAC address (control interface)
     10 * TopDL: IP address, netmask, MAC address, VDE switch/port
    1111 * {{{/var/benito/config/routes/$HOSTNAME}}}: routes
    1212
    13 TODO: {{{vde_plug2tap}}}
     13Each interface on the experimental network will be assigned a VDE switch and port number. If your platform supports VDE natively, then you're done!
     14
     15For platforms that do not have VDE support, TAP support is sufficient. {{{vde_plug2tap}}} acts as an adapter between a VDE switch port and a TAP interface. VDE also comes with {{{vde_tunctl}}} which can create TAP interfaces on the fly to be used by other apps.
     16
     17The following example illustrates how one might do this with QEMU. QEMU has native VDE support, but we'll assume for a moment that we can't use it:
     18
     19{{{
     20#!/bin/sh
     21
     22SWITCH_SOCKET=$1
     23SWITCH_PORT=$2
     24
     25vde_tunctl tap0
     26vde_plug2tap -d -s $SWITCH_SOCKET -p $SWITCH_PORT
     27qemu -net nic -net tap,ifname=tap0 fs.img
     28}}}
     29
     30If you don't even have TAP support.. get creative. Chances are if you can talk to a file descriptor pair {{{vde_plug}}} will work for you.
    1431
    1532=== Control Net ===