When a machine has multiple Network Interfaces (NICs) the CA Message Queuing service (CAM/CAFT) will use the first interface that was bound by the OS, or if present will use the CAM.cfg configuration file to determine the appropriate subnet.
Without the CAM.cfg file present, the bind order of the network interface for the subnet does not necessarily have to be the first NIC bound by the OS.
There are two alternatives to resolve this.
- Re-order the binding order of the interfaces through the Network settings.
- Create a CAM configuration file (CAM.cfg)
- Click Start, point to Settings, and then click Control Panel.
- Double-click Network and Dial-up Connections.
- On the Advanced menu, click Advanced Settings.
- In the Connections box, select the adapter you want to change the binding order on. After you select the adapter, the Bindings for Local Area Connection box displays the current binding order.
- Use the arrows on the right-side of the box to move the protocol you choose to the top of the list, and then click OK.
- If you are prompted to restart the computer, click Yes.
Create and configure a CAM.cfg file
Note: Ensure that the %CAI_MSQ% variable is set.
- If a CAM.cfg configuration file does not exist on the machine in question, it can be created from the command prompt by running the command:
- Then open the file %CAI_MSQ%\CAM.cfg and add the following in uppercase (CAPS on):
FORWARD 127.0.0.1=<IP as discovered>
When you need to set an IP-address as the new default source, you need to add the real IP-address twice after the loopback, e.g. using the IP-address of 172.16.45.16:
FORWARD 127.0.0.1=172.16.45.16 172.16.45.16
* Using the Forward rules, Cam can be configured to use preferred IP addresses for communication. A message can match only one forward rule. If it is capable of matching more than one, the first defined in the configuration file will be used. However, CAM will listen on all NICs attached to the machine. So if the forward rule is wrong or the IP address stated is not valid, CAM will still work with other IP addresses configured by other NICs. There is no configuration from CAM side to block any communication.