Previous Topic Next topic Print topic


Configuring TCP/IP Software for the PC

Restriction: This topic applies to Windows environments only.

Use the following procedure to configure the TCP/IP software for XDB Link. Use your values from the TCP Host/Service worksheet to complete these steps.

To configure TCP/IP perform the following steps:

  1. Install a TCP/IP protocol. If a TCP/IP protocol is already installed (for example, Microsoft TCP/IP), ensure that it is enabled.
  2. Make a backup copy of the HOSTS and SERVICES files (under Windows 95, these files are called HOSTS.SAM and SERVICES.SAM).
    If you a running under... Look for these files in...
    Windows NT C:\WinNT\SYSTEM32\DRIVERS\ETC
    Windows 95 or 98 C:\WINDOWS
  3. Add the following line to the HOSTS file:
    IPAddress IPName

    where:

    • IPAddress specifies the TCP/IP address of the host system. Use the value in J1 of the TCP Host/Service worksheet.
    • IPName is a name that you assign to this address. Type IPName in uppercase letters. Lowercase characters will cause problems under certain circumstances. Use the value in J2 of the TCP Host/Service Worksheet.

    For example: 204.17.148.230 LUDB2

    Note:

    If this is the last line in the HOSTS file, type a carriage return at the end of the line.

  4. Edit the SERVICES file by adding the following line:
    ServiceName Port/tcp

    where:

    ServiceName specifies a name that represents the port number on the host system. (You will use this name when you configure XDB Link in a later step.) Type the ServiceName in uppercase letters. Lowercase characters will cause problems under certain circumstances.

    Port specifies the dedicated TCP/IP port assigned to the XDB Link Host Option on the host system. Use the value in J4 of the TCP Host/Service worksheet.

    For example:

    XDBSRV 5170/tcp
    Note:

    If this is the last line in the SERVICES file, type a carriage return at the end of the line.

When connecting to DB2 with native TCP/IP:

Previous Topic Next topic Print topic