Configure IP Binding in Multiple NICs
If you have multiple network cards (meaning multiple IP addresses) in your cache servers then you must bind NCache server to one of the IP addresses. NCache installer automatically binds the cache server to one of the IP addresses but you may want to change this binding based on your preference. Once bound, this IP address must be specified to identify this cache server both for cluster configuration (config.ncconf) and for client/server configuration (client.ncconf).
You can configure IP Binding via NCache Manager or by manually editing configuration.
Cluster and Client/Server can be bound with a dedicated IP address in the following way:
Right click on a server IP address under Server Nodes in Cache Explorer and click on Select NIC option.
Available Network Interface Cards dialog will open. It will contain all network cards available on that node with drop down list. By default, IP is used for both client-server and inter cluster communications.
Select the Cluster option from the drop down list in front of the IP address with which you want to bind the cluster.
Select the Client/Server option from the drop down list in front of the IP address with which you want to bind the client/server.
NCache will ask for confirmation to apply configuration and restart service. Click Yes.
At this stage, NCache might ask for credentials if the node is remote or does not have the rights.
If the node belongs to the same domain, provide the Username and Password.
If the node does not belong in the same domain, add the user to the Administrator group in Windows and then provide the username as
domainname\usernameand the password.
This restarts the NCache service to use the selected IP addresses for the specified communication (inter-cluster).
Manually Editing Configuration
- You can also specify IP by modifying the service configuration file which is located in %NCHOME%\bin\service folder on all cache servers. %NCHOME% is NCache install directory. Please note that for .NET Core installation, the file name is Alachisoft.NCache.Service.dll.config.
<appSettings> ... <add key="NCacheServer.BindToIP" value="18.104.22.168"> <add key = "NCacheServer.BindToClientServerIP" value = "22.214.171.124" /> ... <appSettings>
- Anytime you modify the service configuration file, you must restart NCache Service on all cache servers. Do the following in Windows PowerShell.
Restart-Service -Name ncachesvc