Skip to content

Commit 32db25a

Browse files
geogheganSam Kleinman
authored andcommitted
Makes IP addresses used RFC 5737 compliant
RFC 5737 ( http://tools.ietf.org/html/rfc5737 ) lays out what IP addresses you should use in documentation. This commit makes the documentation for the configuration RFC compliant.  Signed-off-by: Sam Kleinman <[email protected]>
1 parent 6a6d957 commit 32db25a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

source/administration/configuration.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,17 @@ following:
119119

120120
.. code-block:: cfg
121121

122-
bind_ip = 127.0.0.1,10.8.0.10,192.168.4.24
122+
bind_ip = 127.0.0.1,203.0.113.6,198.51.100.85
123123
nounixsocket = true
124124
auth = true
125125

126126
Consider the following explanation for these configuration decisions:
127127

128128
- ":setting:`bind_ip`" has three values: ``127.0.0.1``, the localhost
129-
interface; ``10.8.0.10``, a private IP address typically used for
130-
local networks and VPN interfaces; and ``192.168.4.24``, a private
131-
network interface typically used for local networks.
129+
interface; ``203.0.113.6``, an example private IP address which could
130+
be used for local networks and VPN interfaces; and
131+
``198.51.100.85``, another example of a private network interface
132+
which could be used for local networks.
132133

133134
Because production MongoDB instances need to be accessible from
134135
multiple database servers, it is important to bind MongoDB to
@@ -217,11 +218,11 @@ configuration option:
217218

218219
configsvr = true
219220

220-
bind_ip = 10.8.0.12
221+
bind_ip = 203.0.113.6
221222
port = 27001
222223

223-
This creates a config server running on the private IP address
224-
``10.8.0.12`` on port ``27001``. Make sure that there are no port
224+
This creates a config server running on IP address ``203.0.113.6``
225+
on port ``27001``. Make sure that there are no port
225226
conflicts, and that your config server is accessible from all of your
226227
":program:`mongos`" and ":program:`mongod`" instances.
227228

@@ -238,7 +239,7 @@ Finally, to establish the cluster, configure at least one
238239

239240
.. code-block:: cfg
240241

241-
configdb = 10.8.0.12:27001
242+
configdb = 203.0.113.6:27001
242243
chunkSize = 64
243244

244245
You can specify multiple :setting:`configdb` instances by

0 commit comments

Comments
 (0)