更新时间:2024-09-04
功能简介
训练场景需要配置高性能参数网络用于训练时各个节点之间的训练数据同步,单节点训练场景或推理场景不需要,两节点及以上训练场景需配置此网络,同时需要对应的交换机支持
推荐使用LLD一键配置,手段配置参数过于负载
操作步骤
思路:晟腾的高性能网卡是每台节点固定有8张(npu网卡),只需按规范的命令配置tags标签、ip、掩码和网关即可
- 使用管理IP通过xshell工具登录后台(root/adminsangfornetwork 端口:22345)
- 配置npu0网卡
agent-ctl patch-pnic-properties npu0 --ip 10.22.1.1 --netmask 255.255.255.0 --gateway 10.22.1.254 --tags Parameter
- # 配置npu1网卡
agent-ctl patch-pnic-properties npu1 --ip 10.22.1.2 --netmask 255.255.255.0 --gateway 10.22.1.254 --tags Parameter
...
- # 配置npu7网卡
agent-ctl patch-pnic-properties npu7 --ip 10.22.1.8 --netmask 255.255.255.0 --gateway 10.22.1.254 --tags Parameter
- # 配置npu8网卡
agent-ctl patch-pnic-properties npu8 --ip 10.22.1.9 --netmask 255.255.255.0 --gateway 10.22.1.254 --tags Parameter
字段名 |
含义 |
description |
网口描述 |
enabled |
是否启用,当前不生效,预留字段 |
gateway |
网关地址 |
ip |
ip地址 |
members |
成员口名称,使用逗号隔开 |
mode |
聚合模式,-h可以看到有哪些模式 RoundRobin|ActiveBackup|LoadBalanceL2|LoadBalanceL3|LoadBalanceL4|LacpL2|LacpL3|LacpL4 |
mtu |
网口MTU |
netmask |
掩码地址 |
tags |
网口功能标签,使用逗号隔开,可以同时有多个标签 Management,Underlay,Storage,Parameter |