From 2bdf955257b5cbf2bd2a3509e5433b19a7eb5527 Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Mon, 25 Jan 2016 05:43:01 -0800 Subject: [PATCH 1/2] examples/microcoap_server: add instruction to set up tap if --- examples/microcoap_server/README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/microcoap_server/README.md b/examples/microcoap_server/README.md index 7f1d9f8441..9530de2be8 100644 --- a/examples/microcoap_server/README.md +++ b/examples/microcoap_server/README.md @@ -4,25 +4,31 @@ microcoap server example This application is meant to get you started with impementing a CoAP server on RIOT. It uses the gnrc network stack through RIOT's conn socket API. - Usage ===== -To try on native, compile with +To try out the server on native, compile it with ``` -# make all +$ make all ``` -Then run the resulting binary, e.g., +Then, create a tap interface (to which RIOT will connect): ``` -# make term +$ sudo ip tuntap add tap0 mode tap user ${USER} +$ sudo ip link set tap0 up +``` + +Run the resulting RIOT binary by invoking: + +``` +$ make term ``` The application is now listening on all it's configured IP addresses. -Now find out it's link\_layer address: +Now find out its link\_layer address: ``` From 26a4406286710cd2d83a52f35d3ef4731fdd6d8e Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Mon, 25 Jan 2016 06:09:11 -0800 Subject: [PATCH 2/2] examples/gnrc_networking: rm mention of tap bridge --- examples/gnrc_networking/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gnrc_networking/README.md b/examples/gnrc_networking/README.md index 01de50f08d..8ad8bbd587 100644 --- a/examples/gnrc_networking/README.md +++ b/examples/gnrc_networking/README.md @@ -10,7 +10,7 @@ IPv6 module automatically. On some systems (openSUSE for example), the _firewall_ may interfere, and prevent some packets to arrive at the application (they will however show up in Wireshark, which can be confusing). So be sure to adjust your firewall rules, or turn it off (who needs security anyway). -First, create a tap interface (to which RIOT will connect) and a bridge (to which Linux will connect): +First, create a tap interface: sudo ip tuntap add tap0 mode tap user ${USER} sudo ip link set tap0 up