HCCL_SOCKET_FAMILY

Description

Sets the IP protocol used by the communication NIC. The options are as follows:
  • AF_INET: The IPv4 protocol is used.
  • AF_INET6: The IPv6 protocol is used.

By default, IPv4 is used.

This environment variable can be used in the following scenarios:
  • IP protocol used by the root communication NIC on the host during HCCL initialization.

    In this scenario, HCCL_SOCKET_FAMILY must be used together with HCCL_SOCKET_IFNAME. When HCCL obtains the host IP address by specifying the NIC name, HCCL_SOCKET_FAMILY is used to specify the socket communication IP protocol of the NIC.

  • IP protocol version used by the communication NIC on the device during HCCL initialization.

    In this scenario, if the IP protocol specified by the environment variable does not match the obtained NIC information, use the NIC information in the actual environment.

    For example, if the environment variable specifies the IPv6 protocol but only the IPv4 NIC exists on the device, the IPv4 NIC is used.

Example

export HCCL_SOCKET_FAMILY=AF_INET       #IPv4
export HCCL_SOCKET_FAMILY=AF_INET6      #IPv6

Restrictions

None

Applicability

Atlas Training Series Product