aboutsummaryrefslogtreecommitdiff
path: root/examples/std/README.md
diff options
context:
space:
mode:
authorTyler <[email protected]>2023-07-01 15:41:11 -0500
committerGitHub <[email protected]>2023-07-01 15:41:11 -0500
commit3aedbce5c2775ff1ab10c3ca95ea1311043f4be4 (patch)
tree3cbd9c15c68c7ee3859a17ec6d6fc7150e569686 /examples/std/README.md
parent1f2be2dac5eeed739d2866b9b63ca06fdd84c276 (diff)
parentba4344429264fa7beb99ab19c09059c2d531716d (diff)
Merge pull request #1 from embassy-rs/main
Pull changes from embassy main
Diffstat (limited to 'examples/std/README.md')
-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