Skip to content

Commit

Permalink
added a note on selfManagedNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-w-du committed Sep 9, 2021
1 parent d3d7782 commit 83d0917
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/B03-ip-anycast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ as180.createRouter('router1').joinNetwork('net1').joinNetwork('ix105')
ebgp.addPrivatePeerings(105, [2, 3], [180], PeerRelationship.Provider)
```

When compiling the emulation to generate the docker files, we need
to set the `selfManagedNetwork` option to True. Without this option,
the network will be entirely managed by Docker, which will not
allow us to have two networks with the same IP prefix. Using
this option will solve this problem.

```
emu.compile(Docker(selfManagedNetwork=True), './output')
```


Now, we have deployed two hosts using the IP anycast technology.
When other machines send a packet to `10.180.0.100`, one of these two
hosts will get the packet.
Expand Down

0 comments on commit 83d0917

Please sign in to comment.