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 Alachisoft.NCache.Service.dll.config which is located in %NCHOME%\bin\service folder on all cache servers. %NCHOME% is NCache install directory.
<appSettings> ... <add key="NCacheServer.BindToClusterIP" value="188.8.131.52"> <add key="NCacheServer.BindToClientServerIP" value = "184.108.40.206" /> ... <appSettings>
- Anytime you modify Alachisoft.NCache.Service.dll.config, you must restart NCache Service on all cache servers. Do the following in Windows PowerShell.
Restart-Service -Name ncachesvc