Try Playground
Show / Hide Table of Contents

IP Binding with Multiple NICs

If you have multiple network cards (meaning multiple IP addresses) in your cache servers then you must bind the 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).

Step 1: Modify Alachisoft.NCache.Daemon.dll.config File

This file is located in the /opt/ncache/bin/service folder on all cache servers.

<appSettings>
...
  <add key="NCacheServer.BindToClusterIP" value="20.200.20.220">
  <add key="NCacheServer.BindToClientServerIP" value="20.200.20.221">
...
<appSettings>

Step 2: Restart NCache Service

Anytime you modify Alachisoft.NCache.Daemon.dll.config, you must restart NCache Service on all cache servers. Do the following in PowerShell.

> sudo systemctl restart ncached

See Also

IP Binding Concepts
Create a Cache
Simulate Cache Usage
NCache Programmer's Guide

Back to top Copyright © 2017 Alachisoft