Skip to content

Commit cbcaab7

Browse files
authored
Change ip neigh command to use replace instead of add
Pinging between h1a and h1b before the permanent neighbor entries are added results in a FAILED neighbor entry. This entry is not overwritten by "ip neigh add", resulting in the tutorial failing. Use "ip neigh replace" instead, which is safe for both no entries or a failed entry in the neighbor table.
1 parent 19f5556 commit cbcaab7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

EXERCISE-1.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,17 @@ be able to handle NDP packets if correctly programmed using P4Runtime (see
298298
`l2_ternary_table`), however, **to keep things simple for now, let's insert two
299299
static NDP entries in our hosts.**
300300

301-
Add and NDP entry to `h1a`, mapping `h1b`'s IPv6 address (`2001:1:1::b`) to its
302-
MAC addres (`00:00:00:00:00:1B`):
301+
Add an NDP entry to `h1a`, mapping `h1b`'s IPv6 address (`2001:1:1::b`) to its
302+
MAC address (`00:00:00:00:00:1B`):
303303

304304
```
305-
mininet> h1a ip -6 neigh add 2001:1:1::B lladdr 00:00:00:00:00:1B dev h1a-eth0
305+
mininet> h1a ip -6 neigh replace 2001:1:1::B lladdr 00:00:00:00:00:1B dev h1a-eth0
306306
```
307307

308-
And vice versa, add and NDP entry to `h1b` to resolve `h1a`'s address:
308+
And vice versa, add an NDP entry to `h1b` to resolve `h1a`'s address:
309309

310310
```
311-
mininet> h1b ip -6 neigh add 2001:1:1::A lladdr 00:00:00:00:00:1A dev h1b-eth0
311+
mininet> h1b ip -6 neigh replace 2001:1:1::A lladdr 00:00:00:00:00:1A dev h1b-eth0
312312
```
313313

314314
### Start ping
@@ -393,4 +393,4 @@ PING 2001:1:1::b(2001:1:1::b) 56 data bytes
393393
You have completed the first exercise!
394394

395395
[p4c]: https://github.com/p4lang/p4c
396-
[p4runtime-sh]: https://github.com/p4lang/p4runtime-shell
396+
[p4runtime-sh]: https://github.com/p4lang/p4runtime-shell

0 commit comments

Comments
 (0)