aboutsummaryrefslogtreecommitdiff
path: root/examples/std/README.md
diff options
context:
space:
mode:
authorBart Massey <[email protected]>2024-12-31 14:27:41 -0800
committerBart Massey <[email protected]>2024-12-31 15:29:16 -0800
commit6b3ca677631a360bc1e485f0edd158f5b7afa1f1 (patch)
tree65bf9f83888a2d7c48a4f0686021c1057131ec2f /examples/std/README.md
parent667dfa34b525f727936d621ba91001fa25d80426 (diff)
modified examples/std README to avoid possible problems
Diffstat (limited to 'examples/std/README.md')
-rw-r--r--examples/std/README.md14
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
4First, create the tap0 interface. You only need to do this once. 4First, create the tap99 interface. (The number was chosen to
5hopefully not collide with anything.) You only need to do
6this once.
5 7
6```sh 8```sh
7sudo ip tuntap add name tap0 mode tap user $USER 9sudo sh tap.sh
8sudo ip link set tap0 up
9sudo ip addr add 192.168.69.100/24 dev tap0
10sudo ip -6 addr add fe80::100/64 dev tap0
11sudo ip -6 addr add fdaa::100/64 dev tap0
12sudo ip -6 route add fe80::/64 dev tap0
13sudo ip -6 route add fdaa::/64 dev tap0
14``` 10```
15 11
16Second, have something listening there. For example `nc -lp 8000` 12Second, 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
21cd $EMBASSY_ROOT/examples/std/ 17cd $EMBASSY_ROOT/examples/std/
22cargo run --bin net -- --static-ip 18sudo cargo run --bin net -- --tap tap99 --static-ip
23``` 19```