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:
|
An example usage of this application could be setup like this:
|
||||||
1. Open a terminal window, navigate to the RIOT directory, and enter
|
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
|
2. Open a second terminal window and navigate to this directory in both of
|
||||||
windows.
|
windows.
|
||||||
3. Call `make -B clean all term` in the first terminal and `PORT=tap1 make
|
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:
|
Preparing the logical interfaces:
|
||||||
|
|
||||||
./../../dist/tools/tapsetup/tapsetup --create 2
|
sudo ./../../dist/tools/tapsetup/tapsetup --create 2
|
||||||
|
|
||||||
For the server instance:
|
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:
|
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
|
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
|
them. This constitutes a virtual network that the RIOT instances can
|
||||||
use to communicate.
|
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
|
Then, make sure you've compiled the application by calling `make` and
|
||||||
start the first RIOT instance by invoking `make term`. In the RIOT
|
start the first RIOT instance by invoking `make term`. In the RIOT
|
||||||
|
|||||||
@ -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:
|
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
|
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):
|
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:
|
Create `tap` and `tapbr` devices using RIOT's `tapsetup` script before stating the application:
|
||||||
```bash
|
```bash
|
||||||
./RIOTDIR/dist/tools/tapsetup/tapsetup
|
sudo ./RIOTDIR/dist/tools/tapsetup/tapsetup
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run the application on 2 different terminals :
|
Then run the application on 2 different terminals :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user