Hello,
I’ve got an error while trying to bing IP with the config file.
The server (19.0.18.100 on CentOS 7) and client (19.0.18.101) are WM on the same subnetwork.
The config file was auto created by mongoDB installation, all work except when I change the IP binding line:
No problem with:
net:
port: 27017
bindIp: "127.0.0.1" # bindIpAll: true work well too
With BindIpAll I can reach the server with the client.
Fail with:
net:
port: 27017
bindIp: "127.0.0.1, 19.0.18.101"
Process: 28566 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=48)
Process: 28563 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 28561 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 28559 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
Main PID: 27861 (code=exited, status=0/SUCCESS)
I’ve read other post with some IP binding problem which talk about network config.
If need, here ifconfig -a | grep “inet”:
inet 19.0.18.100 netmask 255.255.255.0 broadcast 19.0.18.255
inet 127.0.0.1 netmask 255.0.0.0
I really appreciate some help.
Have a good Day
Benoit