All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add a part in the website about how to setup a test network.
@ 2016-02-21 20:23 Christoph Lohmann
  2016-02-22  8:27 ` Alexander Aring
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Lohmann @ 2016-02-21 20:23 UTC (permalink / raw)
  To: linux-wpan; +Cc: Christoph Lohmann

---
 website/index.txt | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/website/index.txt b/website/index.txt
index 3ac44b6..2f5c539 100644
--- a/website/index.txt
+++ b/website/index.txt
@@ -85,6 +85,47 @@ Note: we don't support any case of short-addresses right now. This is a complica
 Of course we supporting broadcast frames via short-addresses but nothing more in 802.15.4 6LoWPAN.
 Only extended address handling is supported right now.
 
+
+Setup a 6LowPAN test network
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Let's assume you want to setup a 6lowpan test network of six nodes.
+
+---------------------------------------------------------------------
+# we need some Private Area Network ID
+panid="0xbeef"
+# number of nodes
+numnodes=6
+
+# include the kernel module for a fake node, tell it to create six
+# nodes
+modprobe fakelb numlbs=$numnodes
+
+# initialize all the nodes
+for i in $(seq 0 $numnodes);
+do
+	iwpan dev wpan${i} set pan_id 0xbeef
+	ip link wpan${i} name lowpan${i} type lowpan
+	ip link set wpan${i} up
+	ip link set lowpan${i} up
+done
+---------------------------------------------------------------------
+
+Now let us send some data over our network:
+
+---------------------------------------------------------------------
+wireshark -kSl -i lowpan0 &
+# get the IPv6 address of lowpan1
+lowpan1addr="$(ip addr show lowpan1 | grep inet6 \
+	| sed 's,.*inet6 \([^/]*\).*,\1,')"
+# tell ping6 to ping the IPv6 address of lowpan1 and send it via
+# lowpan0
+ping6 ${lowpan1addr}%lowpan0
+---------------------------------------------------------------------
+
+Now watch wireshark and all the nice ICMP packets there.
+
+
 Sniffing
 ~~~~~~~~
 
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add a part in the website about how to setup a test network.
  2016-02-21 20:23 [PATCH] Add a part in the website about how to setup a test network Christoph Lohmann
@ 2016-02-22  8:27 ` Alexander Aring
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Aring @ 2016-02-22  8:27 UTC (permalink / raw)
  To: Christoph Lohmann, linux-wpan

Hi,

thanks. Applied and re-generate the website.

- Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-22  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-21 20:23 [PATCH] Add a part in the website about how to setup a test network Christoph Lohmann
2016-02-22  8:27 ` Alexander Aring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.