# ucloud 添加负载均衡报文转发配置

ucloud环境添加 报文转发型 负载均衡，需要把 外部访问的 外网IP 添加在后端真实服务节点上, CentOS 环境配置如下：

注意：如果是CentOS 8.x 需要先安装 network-scripts

```
yum install network-scripts:
```

```
VIP=101.36.118.34

cat > /etc/sysconfig/network-scripts/ifcfg-lo:1 <<EOF
DEVICE=lo:1
IPADDR=$VIP
NETMASK=255.255.255.255
EOF

ifup lo:1
```

参考： <https://docs.ucloud.cn/ulb/guide/realserver/editrealserver>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liujinye.gitbook.io/openshift-docs/load-balance/ucloud-tian-jia-fu-zai-jun-heng-bao-wen-zhuan-fa-pei-zhi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
