---
title: append_local_ip_info
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmpr_42_0082.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmpr_42_0082.html
indexId: a3e5eeaf5a392fa02178a20e6f546522ff2c736001be0ffcdcf433329d3a80ba70
---
# append_local_ip_info

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

添加本地集群IP信息。


#### 函数原型

```
append_local_ip_info(self, ip: Union[str, int], port: int)
```


#### 参数说明

| 参数名称 | 数据类型 | 取值说明 |
| --- | --- | --- |
| ip | Union[str, int] | 本地集群Device卡IP。 |
| port | int | 本地集群Device卡端口。 |


#### 调用示例

```
llm_cluster = LLMClusterInfo()
llm_cluster.append_local_ip_info("1.1.1.1", 10000)
```


#### 返回值

正常情况下无返回值。

参数错误可能抛出TypeError或ValueError。


#### 约束说明

无
