Configuring TCP/IP group access by using the BSDS (INADDR_ANY) method
The bootstrap data set (BSDS) method is the preferred method for configuring TCP/IP communications for a Db2® data sharing group. Use this method to specify dynamic virtual IP addresses (DVIPAs) in the bootstrap data set by using the DSNJU003 utility.
Before you begin
The steps in this topic require you to specify several types of VIPADYNAMIC statements. For more information, see TCP/IP profile (PROFILE.TCPIP) and configuration statements.
About this task
This task describes how to define the DVIPAs that are needed by a Db2 data sharing group by specifying those DVIPAs in the BSDS. This task uses IPV4 addressing to illustrate the configuration process, but IPV6 addresses are also supported.
A member of a data sharing group can be configured to have a maximum of two IP addresses: a group IP address and a member IP address. Each pair can be of type IPV4 or IPV6, or you can specify a pair of both IPV4 and IPV6 addresses.
- A group IP address
- A group IP address must be the same for all members of a data sharing group. You define a group IP address by specifying a GRPIPV4 address, a GRPIPV6 address, or both in the BSDS. The instructions in this topic show how to define a group IP address as a VIPADISTRIBUTE must be the same for all members of a data sharing group. You define a group IP address by specifying a GRPIPV4 address, a GRPIPV6 address, or both in the BSDS. The instructions in this topic show how to define a group IP address as a VIPADISTRIBUTE VIPA address, which is also referred to as a sysplex distributor address or a distributing DVIPA (DDVIPA). Using a sysplex distributor address is the preferred way to define a group IP address.Note: You can define a separate DDVIPA independent of the DDVIPA defined to Db2 as the group's IP address to also distribute connections to the member ports of a data sharing group, possibly with a different distributing method; however, Db2 will have no knowledge of this IP address.Restriction: In some TCP/IP configurations, a DDVIPA is configured with no port values specified in its definition so that it can be shared by many applications, and all of those applications bind their ports to this DDVIPA. In these types of configurations in which the DDVIPA dynamically learns the ports it is to manage, the DDVIPA cannot be used exclusively as the Db2 group IP address in its BSDS as the GRPIPV4 address or GRPIPV6 address. For TCP/IP configurations in which a DDVIPA is used by many applications, you must use the BINDSPECIFIC method to configure TCP/IP group access.
- A member IP address
- A member IP address must be unique to each member of a data sharing group. You define a member IP address by specifying an IPV4 address, an IPV6 address, or both in the BSDS. The instructions in this topic show how to define a member IP address as a VIPARANGE IP address, which is the preferred way to define member IP addresses. A TCPIP VIPARANGE address will not physically exist until Db2 is started with its IPV4 or IPV6 set to a VIPARANGE address value.
- The BSDS and BINDSPECIFIC methods are mutually exclusive. If any BIND specifications exist on any Db2 server port entries of the PORT reservation statement of the currently active PROFILE.TCPIP, connection requests will fail.
- This task is typically performed by or in consultation with a network communications administrator.
Procedure
Example
The following example TCPIP.PROFILE PORT statements show how you might define the ports and IP addresses to configure TCP/IP for group access by using the BSDS method. The values that are used in these examples match the values that are used in the procedure section of this topic.
- z/OS LPAR 1: Primary sysplex distributor
-
PORT 446 TCP DB2A SHAREPORT 448 TCP DB2A SHAREPORT 5001 TCP DB2A 446 TCP DB2B SHAREPORT 448 TCP DB2B SHAREPORT 5002 TCP DB2B 446 TCP DB2C 448 TCP DB2C 5003 TCP DB2C VIPADYNAMIC VIPARANGE DEFINE 255.255.255.255 10.1.1.2 VIPARANGE DEFINE 255.255.255.255 10.1.1.3 VIPARANGE DEFINE 255.255.255.255 10.1.1.4 VIPADEFINE 255.255.255.255 10.1.1.1 VIPADISTRIBUTE DEFINE 10.1.1.1 PORT 446 448 DESTIP ALL ENDVIPADYNAMIC - z/OS LPAR2: Backup sysplex distributor 1
-
PORT 446 TCP DB2A SHAREPORT 448 TCP DB2A SHAREPORT 5001 TCP DB2A 446 TCP DB2B SHAREPORT 448 TCP DB2B SHAREPORT 5002 TCP DB2B 446 TCP DB2C 448 TCP DB2C 5003 TCP DB2C VIPADYNAMIC VIPARANGE DEFINE 255.255.255.255 10.1.1.2 VIPARANGE DEFINE 255.255.255.255 10.1.1.3 VIPARANGE DEFINE 255.255.255.255 10.1.1.4 VIPABACKUP 2 10.1.1.1 VIPADISTRIBUTE DEFINE 10.1.1.1 PORT 446 448 DESTIP ALL ENDVIPADYNAMIC - z/OS LPAR3: Backup sysplex distributor 2
-
PORT 446 TCP DB2A SHAREPORT 448 TCP DB2A SHAREPORT 5001 TCP DB2A 446 TCP DB2B SHAREPORT 448 TCP DB2B SHAREPORT 5002 TCP DB2B 446 TCP DB2C 448 TCP DB2C 5003 TCP DB2C VIPADYNAMIC VIPARANGE DEFINE 255.255.255.255 10.1.1.2 VIPARANGE DEFINE 255.255.255.255 10.1.1.3 VIPARANGE DEFINE 255.255.255.255 10.1.1.4 VIPABACKUP 1 10.1.1.1 VIPADISTRIBUTE DEFINE 10.1.1.1 PORT 446 448 DESTIP ALL ENDVIPADYNAMIC
