aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-06-29 19:51:16 +0200
committerDario Nieuwenhuis <[email protected]>2023-06-29 19:55:32 +0200
commit6eac49186d5a5da4c310027e59adcd0bf44ae514 (patch)
tree3cbd9c15c68c7ee3859a17ec6d6fc7150e569686 /examples
parent4feabb13bfbda46de74be09566118adc1ba49d5d (diff)
Release embassy-net v0.1
Diffstat (limited to 'examples')
-rw-r--r--examples/std/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/std/README.md b/examples/std/README.md
new file mode 100644
index 000000000..adc795928
--- /dev/null
+++ b/examples/std/README.md
@@ -0,0 +1,23 @@
1
2## Running the `embassy-net` examples
3
4First, create the tap0 interface. You only need to do this once.
5
6```sh
7sudo ip tuntap add name tap0 mode tap user $USER
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```
15
16Second, have something listening there. For example `nc -l 8000`
17
18Then run the example located in the `examples` folder:
19
20```sh
21cd $EMBASSY_ROOT/examples/std/
22cargo run --bin net -- --static-ip
23``` \ No newline at end of file