Update docs for mixed manual and automatic IP allocation

This commit is contained in:
Bryan Boreham committed 2015-09-03 12:17:31 +01:00
1 parent 3097565664
commit 5b437d2199
2 files changed
+11 -7

No files matched your search

+4 -4
View File
@@ -112,11 +112,11 @@ Similarly, in the container on $HOST2...
round-trip min/avg/max/stddev = 1.034/1.034/1.034/0.000 ms round-trip min/avg/max/stddev = 1.034/1.034/1.034/0.000 ms
The IP addresses and netmasks can be anything you like, but make sure The IP addresses and netmasks can be anything you like, but make sure
they don't conflict with any IP ranges in use on the hosts (including they don't conflict with any IP ranges in use on the hosts or
those delegated to weave's [automatic IP address allocator](ipam.html)) or
IP addresses of external services the hosts or containers need to IP addresses of external services the hosts or containers need to
connect to. The same IP range must be used everywhere, and the connect to. The individual IP addresses given to containers must, of
individual IP addresses must, of course, be unique. course, be unique - if you pick an address that the automatic
allocator has already assigned you will receive a warning.
### <a name="naming-and-discovery"></a>Naming and discovery ### <a name="naming-and-discovery"></a>Naming and discovery
+7 -3
View File
@@ -159,9 +159,13 @@ symbolically with `net:default`.
## <a name="manual"></a>Mixing automatic and manual allocation ## <a name="manual"></a>Mixing automatic and manual allocation
If you want to start containers with a mixture of You can start containers with a mixture of automatically-allocated
automatically-allocated addresses and manually-chosen addresses, *and addresses and manually-chosen addresses in the same range, but you may
have the containers communicate with each other*, you can choose a find that the automatic allocator has already reserved a specific
address that you wanted.
To reserve a range for manual allocation in the same subnet as the
automatic allocator, you can specify an
`--ipalloc-range` that is smaller than `--ip-default-subnet`, For `--ipalloc-range` that is smaller than `--ip-default-subnet`, For
example, if you launch weave with: example, if you launch weave with: