diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-01-02 10:30:17 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-02 10:30:17 +0000 |
| commit | 87b4d949bdfd67105729d90250d35debf22ad1d8 (patch) | |
| tree | bfb21e6fdc6c7d0606e48bb6a9a5d5a430017026 /examples/std/README.md | |
| parent | adf1e424f4e6ec8602b429b2727a7c5ce153558e (diff) | |
| parent | b5ef53ac1349d2c96f37c5186c2f4945604767be (diff) | |
Merge pull request #3702 from BartMassey-upstream/std-example-cosmetics
std example cosmetics
Diffstat (limited to 'examples/std/README.md')
| -rw-r--r-- | examples/std/README.md | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/std/README.md b/examples/std/README.md index e3a59d6ea..dcc152fc2 100644 --- a/examples/std/README.md +++ b/examples/std/README.md | |||
| @@ -1,16 +1,12 @@ | |||
| 1 | 1 | ||
| 2 | ## Running the `embassy-net` examples | 2 | ## Running the `embassy-net` examples |
| 3 | 3 | ||
| 4 | First, create the tap0 interface. You only need to do this once. | 4 | First, create the tap99 interface. (The number was chosen to |
| 5 | hopefully not collide with anything.) You only need to do | ||
| 6 | this once. | ||
| 5 | 7 | ||
| 6 | ```sh | 8 | ```sh |
| 7 | sudo ip tuntap add name tap0 mode tap user $USER | 9 | sudo sh tap.sh |
| 8 | sudo ip link set tap0 up | ||
| 9 | sudo ip addr add 192.168.69.100/24 dev tap0 | ||
| 10 | sudo ip -6 addr add fe80::100/64 dev tap0 | ||
| 11 | sudo ip -6 addr add fdaa::100/64 dev tap0 | ||
| 12 | sudo ip -6 route add fe80::/64 dev tap0 | ||
| 13 | sudo ip -6 route add fdaa::/64 dev tap0 | ||
| 14 | ``` | 10 | ``` |
| 15 | 11 | ||
| 16 | Second, have something listening there. For example `nc -lp 8000` | 12 | Second, have something listening there. For example `nc -lp 8000` |
| @@ -19,5 +15,5 @@ Then run the example located in the `examples` folder: | |||
| 19 | 15 | ||
| 20 | ```sh | 16 | ```sh |
| 21 | cd $EMBASSY_ROOT/examples/std/ | 17 | cd $EMBASSY_ROOT/examples/std/ |
| 22 | cargo run --bin net -- --static-ip | 18 | sudo cargo run --bin net -- --tap tap99 --static-ip |
| 23 | ``` | 19 | ``` |
