Specifying a floating IP address for a queue manager
You can optionally specify a floating IP address for a high availability (HA) queue manager such that an application can connect whichever appliance the queue manager is running on.
Before you begin
About this task
This topic explains how to specify a floating IP address by using the command line. Using the IBM® MQ Console, you can specify a floating IP address when you create an HA queue manager (see IBM MQ Console: Creating a high availability queue manager and IBM MQ Console: Adding a queue manager to the high availability configuration). You can add a floating IP address to an existing HA queue mnager when you edit it in the IBM MQ Console.
You can define only one floating IP address for IBM MQ traffic on a queue manager, so you can only run the sethaint command once for each queue manager.
When you specify the floating IP address for IBM MQ traffic, you also specify the local interface that it can be reached on (for example, eth22). This interface must be a physical interface that exists on both appliances, and each interface must have a static IP address configured. You can also specify an aggregate interface that exists with the same name on each appliance. The name of the aggregate interface must obey certain rules to be used for this purpose, see link-aggregation.
The floating IP address must be a valid IPv4 address that is not already defined on either appliance, and it must belong to the same subnet as the static IP addresses defined for the local interface.
Procedure
Example
sethaint -m QM1 -a -f 192.0.2.15 - l eth22
What to do next
listyto the floating IP address 192.0.2.15:
DEFINE LISTENER(listy) IPADDR(192.0.2.15)
sendyto the floating IP address 192.0.2.15:
DEFINE CHANNEL(sendy) CHLTYPE(SDR) LOCLADDR(192.0.2.15)
setmqvar -m QMgrName -k MQ_LCLADDR -v 192.0.2.15
You can use the local-address parameter of the test tcp-connection command to test your floating IP address, see test tcp-connection.