examples: adapt doc on tapsetup for new sudo requirement
This commit is contained in:
parent
38f76f951d
commit
64a0d73a0a
@ -39,7 +39,7 @@ RIOT provides three shell to interact with the CCN-Lite stack:
|
||||
|
||||
An example usage of this application could be setup like this:
|
||||
1. Open a terminal window, navigate to the RIOT directory, and enter
|
||||
`dist/tools/tapsetup/tapsetup -c`.
|
||||
`sudo dist/tools/tapsetup/tapsetup -c`.
|
||||
2. Open a second terminal window and navigate to this directory in both of
|
||||
windows.
|
||||
3. Call `make -B clean all term` in the first terminal and `PORT=tap1 make
|
||||
|
||||
@ -12,7 +12,7 @@ Linux version of TinyDTLS. However, this is not tested yet.
|
||||
|
||||
Preparing the logical interfaces:
|
||||
|
||||
./../../dist/tools/tapsetup/tapsetup --create 2
|
||||
sudo ./../../dist/tools/tapsetup/tapsetup --create 2
|
||||
|
||||
For the server instance:
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ single RIOT native instance, we can do the following:
|
||||
|
||||
1. Setup `tap` and `tapbr` devices using RIOT's `tapsetup` script:
|
||||
```
|
||||
./RIOTDIR/dist/tools/tapsetup/tapsetup
|
||||
sudo ./RIOTDIR/dist/tools/tapsetup/tapsetup
|
||||
```
|
||||
|
||||
2. Assign a site-global prefix to the `tapbr0` interface (the name could be
|
||||
|
||||
@ -104,7 +104,7 @@ you first need to set up two tap devices and a bridge that connects
|
||||
them. This constitutes a virtual network that the RIOT instances can
|
||||
use to communicate.
|
||||
|
||||
./../../dist/tools/tapsetup/tapsetup --create 2
|
||||
sudo ./../../dist/tools/tapsetup/tapsetup --create 2
|
||||
|
||||
Then, make sure you've compiled the application by calling `make` and
|
||||
start the first RIOT instance by invoking `make term`. In the RIOT
|
||||
@ -156,4 +156,4 @@ In your first terminal, you should now see output that looks like this.
|
||||
dst_l2addr: 62:fc:3c:5e:40:df
|
||||
~~ PKT - 4 snips, total size: 79 byte
|
||||
|
||||
[sso]: https://stackoverflow.com/questions/14478167/bind-socket-to-network-interface#14478657
|
||||
[sso]: https://stackoverflow.com/questions/14478167/bind-socket-to-network-interface#14478657
|
||||
|
||||
@ -12,7 +12,7 @@ however show up in Wireshark, which can be confusing). So be sure to adjust your
|
||||
|
||||
First, create a tap interface (to which RIOT will connect) and a bridge (to which Linux will connect) from the RIOT main directory run:
|
||||
|
||||
./dist/tools/tapsetup/tapsetup -c 1
|
||||
sudo ./dist/tools/tapsetup/tapsetup -c 1
|
||||
|
||||
Now you can start the `gnrc_tftp` example by invoking `make term`. This should automatically connect to the `tap0` interface. If
|
||||
this doesn't work for some reason, run `make` without any arguments, and then run the binary manually like so (assuming you are in the `examples/gnrc_tftp` directory):
|
||||
|
||||
@ -8,7 +8,7 @@ Any board with a default netdev can be used to run this example.
|
||||
|
||||
Create `tap` and `tapbr` devices using RIOT's `tapsetup` script before stating the application:
|
||||
```bash
|
||||
./RIOTDIR/dist/tools/tapsetup/tapsetup
|
||||
sudo ./RIOTDIR/dist/tools/tapsetup/tapsetup
|
||||
```
|
||||
|
||||
Then run the application on 2 different terminals :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user