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/06/04 02:22] – add a link to virtualsquare.org - VDE documentation stybla | linux:generic:qemu [2013/06/08 09:20] (current) – [VDE2] add couple FIXME - connect two switches, monitoring traffic stybla | ||
---|---|---|---|
Line 80: | 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 195: | Line 265: | ||
</ | </ | ||
- | === Links === | + | ===== Links ===== |
* [[http:// | * [[http:// | ||
Line 201: | Line 271: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
linux/generic/qemu.1370330547.txt.gz · Last modified: 2013/06/04 02:22 by stybla