mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-29 02:02:28 +00:00
283debfda4
The previous given command `nc -l 8000` doesn't let me see anything and lead to a "WARN connect error: ConnectionReset". By explicitly changing the `local-port` of `nc` with the `-p` I can now see the `Hello` message printed, and the warning log disappeared.
24 lines
598 B
Markdown
24 lines
598 B
Markdown
|
|
## Running the `embassy-net` examples
|
|
|
|
First, create the tap0 interface. You only need to do this once.
|
|
|
|
```sh
|
|
sudo ip tuntap add name tap0 mode tap user $USER
|
|
sudo ip link set tap0 up
|
|
sudo ip addr add 192.168.69.100/24 dev tap0
|
|
sudo ip -6 addr add fe80::100/64 dev tap0
|
|
sudo ip -6 addr add fdaa::100/64 dev tap0
|
|
sudo ip -6 route add fe80::/64 dev tap0
|
|
sudo ip -6 route add fdaa::/64 dev tap0
|
|
```
|
|
|
|
Second, have something listening there. For example `nc -lp 8000`
|
|
|
|
Then run the example located in the `examples` folder:
|
|
|
|
```sh
|
|
cd $EMBASSY_ROOT/examples/std/
|
|
cargo run --bin net -- --static-ip
|
|
```
|