Using IP Addresses
The DataDirect Connect for ODBC Wire Protocol drivers support Internet Protocol (IP) addresses in IPv4 and IPv6 format. IPv6 addresses are only supported when connecting to certain database versions, as shown in Table 2-1.
If your network supports named servers, the server name specified in the data source can resolve to an IPv4 or IPv6 address.
In the following connection string example, the IP address for the DB2 server is specified in IPv6 format:
DRIVER=DataDirect DB2 Wire Protocol; IpAddress=2001:DB8:0000:0000:8:800:200C:417A;PORT=5179; DB=DB2ACCT;UID=JOHN;PWD=XYZZYYouIn addition to the normal IPv6 format, the DataDirect Connect for ODBC drivers support IPv6 alternative formats for compressed and IPv4/IPv6 combination addresses. For example, the following connection string specifies the server using IPv6 format, but uses the compressed syntax for strings of zero bits:
DRIVER=DataDirect DB2 Wire Protocol; IpAddress=2001:DB8:0:0:8:800:200C:417A;PORT=5179; DB=DB2ACCT;UID=JOHN;PWD=XYZZYYouSimilarly, the following connection string specifies the server using a combination of IPv4 and IPv6:
DRIVER=DataDirect DB2 Wire Protocol; IpAddress=2001:DB8:0:0:8:800:123.456.78.90;PORT=5179; DB=DB2ACCT;UID=JOHN;PWD=XYZZYYouFor complete information about IPv6 formats, go to the following URL: