For MongoDB clustering to take effect, all servers hosting the MongoDB environment must be able to communicate with each other.
For more information about MongoDB clustering, see the official MongoDB documentation.
The server(s) must be rebooted to take all modifications into account.
Run the following command:
As root user
reboot