Skip to the content.

QEMU net with tap

what we need

what to do

run QEMU with tap

theory

               +---------+---------+
               |   Physical Eth    |                           real hardware
               +---------+---------+
                        |                               ---------------------------
                 +------+------+
                 |  Net Driver |
                 +------+------+
                        |
                 +------+------+
                 | Host System |
                 +------+------+
                        |
                  +-----+-----+                                  host linux
                  |  Virtual  |
                  |  Bridge   |
                  +--+-----+--+
                     |     |
           +---------+     +---------+
           |                         |
+----------+----------+   +----------+----------+
|  Virtual Eth (tap0) |   |  Virtual Eth (tap1) |
+----------+----------+   +----------+----------+
           |                         |                   ---------------------------
+----------+----------+   +----------+----------+
|   Simluated Eth0    |   |   Simulated Eth1    |             simulated hardware
+----------+----------+   +----------+----------+              by QEMU
           |                         |                   ----------------------------
   +-------+-------+         +-------+-------+
   |   Net Driver  |         |   Net Driver  |
   +-------+-------+         +-------+-------+
           |                         |                           guest linux
   +-------+-------+         +-------+-------+
   | Guest System1 |         | Guest System2 |
   +---------------+         +---------------+