Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-11-07,master
commit 67a9f00b9023243aa5b83a1599950077c160c598 Author: Sven Eckelmann sven@narfation.org Date: Sun Oct 27 14:46:55 2019 +0000
doc: open-mesh/Mixing_VM_with_gluon_hardware
67a9f00b9023243aa5b83a1599950077c160c598 open-mesh/Mixing_VM_with_gluon_hardware.textile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/open-mesh/Mixing_VM_with_gluon_hardware.textile b/open-mesh/Mixing_VM_with_gluon_hardware.textile index c04ebe5..e9bd49c 100644 --- a/open-mesh/Mixing_VM_with_gluon_hardware.textile +++ b/open-mesh/Mixing_VM_with_gluon_hardware.textile @@ -10,7 +10,9 @@ The current gluon version allows to change the LAN (or WAN) ports to mesh ports.
The packets will be encapsulated in a VXLAN packet. The VXLAN uses an id which has to be calculated on the node via:
-<pre>lua -e 'print(tonumber(require("gluon.util").domain_seed_bytes("gluon-mesh-vxlan", 3), 16))'</pre> +<pre><code class="shell"> +lua -e 'print(tonumber(require("gluon.util").domain_seed_bytes("gluon-mesh-vxlan", 3), 16))' +</code></pre>
h2. Connect to gluon VXLAN
@@ -18,7 +20,8 @@ The configured gluon hardware has to be connected via ethernet to the our emulat
We must then create a vxlan interface on top of our normal ethernet interface, make sure that the ethernet interface is using an EUI64 based IPv6 link local address and insert the new interface in our bridge
-<pre> +<pre><code class="shell"> +cat > interconnect-add-vxlan.sh << "EOF" #! /bin/sh
BRIDGE=br-qemu @@ -51,4 +54,7 @@ sudo ip -6 link add "${VXLAN}" type vxlan \ ttl 1
sudo ip link set "${VXLAN}" up master "${BRIDGE}" -</pre> \ No newline at end of file +EOF + +chmod +x interconnect-add-vxlan.sh +</code></pre>