如果您要使用第二个 NIC 来提供存储,则可以通过 SSH 连接到管理节点或使用 vCenter 控制台并运行 curl 命令来为 eth1 设置网络。
开始之前
- 您知道 eth0 的配置详细信息。
- 您的集群版本正在运行 NetApp Element 软件 11.3 或更高版本。
- 您已部署管理节点 11.3 或更高版本。
步骤
- 打开 SSH 或 vCenter 控制台。
- 替换以下命令模板中为 eth0 和 eth1 所需的每个参数提供的值(以 $ 表示):
注:以下模板中的 cluster 对象是可选的,可用于管理节点主机重命名。- -insecure 和 -k 选项不应在生产环境中使用。
curl -u $mnode-username:$mnode-password --insecure -X POST \
https://$mnode_management_IP:442/json-rpc/10.0 \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d ' {
"params": {
"network": {
"eth0": {
"address": "$eth0_ip_mnode_management_IP",
"dns-nameservers": "$dns_ip_or_hostname",
"netmask": "$eth0_net_mask",
"gateway": "$gateway_IP",
"gatewayV6": ""
},
"eth1": {
"address": "$eth1_ip",
"netmask": "$eth1_netmask",
"status": "Up",
"method": "static",
"mtu": "9000"
}
},
"cluster": {
"name": "$desired_mNode_vm_hostname"
}
},
"method": "SetConfig"
}
'
- 运行此命令。