linux:generic:qemu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:generic:qemu [2013/05/28 06:36] – [VDE2] add more information about VDE stybla | linux:generic:qemu [2013/06/08 09:20] (current) – [VDE2] add couple FIXME - connect two switches, monitoring traffic stybla | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Networking ===== | ===== Networking ===== | ||
| + | |||
| + | Quite nice summary of QEMU networking at [[http:// | ||
| + | Beware, though, it doesn' | ||
| + | which are usually confused for 802.1q. I originally wanted to describe it here, but since it' | ||
| + | described elsewhere, I won't. | ||
| + | |||
| ==== VDE2 ==== | ==== VDE2 ==== | ||
| Line 49: | Line 55: | ||
| -f / | -f / | ||
| </ | </ | ||
| + | |||
| + | As for rc script, you just put the same commands as you would via '' | ||
| Line 61: | Line 69: | ||
| </ | </ | ||
| - | And if you want to hook your VM on specific port: | + | And if you want to hook up your VM on specific port. This is quite useful when VLANs are used: |
| < | < | ||
| Line 72: | Line 80: | ||
| === VLANs === | === VLANs === | ||
| - | FIXME | + | VLANs with VDE are easy and a bit tricky at the same time. What I really like is they remind |
| + | me VLANs in non-Cisco hardware - simple, easy, clean. | ||
| + | |||
| + | You can configure VLANs in two ways. Either via '' | ||
| + | these two go hand in hand where former is good for testing and latter for a " | ||
| + | I'm not going over '' | ||
| + | and I see no reason to parrot it here. | ||
| + | |||
| + | |||
| + | Here is a simple and short RC script/set of '' | ||
| + | |||
| + | < | ||
| + | port/ | ||
| + | port/sethub 0 | ||
| + | |||
| + | vlan/create 100 | ||
| + | |||
| + | port/create 1 | ||
| + | port/ | ||
| + | |||
| + | port/create 2 | ||
| + | port/ | ||
| + | vlan/add 100 2 | ||
| + | |||
| + | port/create 3 | ||
| + | port/ | ||
| + | port/ | ||
| + | vlan/add 100 3 | ||
| + | |||
| + | port/create 4 | ||
| + | port/ | ||
| + | port/ | ||
| + | </ | ||
| + | |||
| + | And here is explanation(matches commands +/-): | ||
| + | |||
| + | - switch has 32 ports | ||
| + | - it's a switch, not a hub | ||
| + | - create VLAN 100 | ||
| + | - create port #1 which: | ||
| + | - can be allocated only if ', | ||
| + | - accepts untagged traffic, resp. traffic with VLAN#0 | ||
| + | - create port #2 which: | ||
| + | - can be allocated only if ', | ||
| + | - add port to VLAN# | ||
| + | - accepts untagged traffic, resp. traffic with VLAN#0 | ||
| + | - create port #3 which: | ||
| + | - can be allocated only if ', | ||
| + | - doesn' | ||
| + | - add port to VLAN# | ||
| + | - create port #4 which: | ||
| + | - can be allocated only if ', | ||
| + | - all incoming untagged traffic is tagged with VLAN#100 | ||
| + | |||
| + | Some more notes: | ||
| + | * how-to delete VLAN#0 or remove ports from VLAN#0 | ||
| + | * you can't, because it's used for untagged traffic | ||
| + | * however you can ' | ||
| + | * or ' | ||
| + | * **NOTE:** there is a bug, at least in VDE2-2.3.2, which will cause '' | ||
| + | - ' | ||
| + | - attach QEMU VM specifically to ' | ||
| + | - your '' | ||
| + | * ' | ||
| + | * seems to be thing you want when running VLANs | ||
| + | * you really don't want your VM to be auto-binded to random port with " | ||
| + | * FIXME connect two VDE switches | ||
| + | * # dpipe vde_plug /tmp/vde1 = vde_plug /tmp/vde2 & ; | ||
| + | * however, why would you use # dpipe; since you can use the very same TAP interface? | ||
| + | * could you use OpenVPN(tap interface)? and wouldn' | ||
| + | * FIXME [[http:// | ||
| Line 187: | Line 265: | ||
| </ | </ | ||
| - | === Links === | + | ===== Links ===== |
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
linux/generic/qemu.1369740963.txt.gz · Last modified: by stybla
