如果您要使用第二个 NIC 来提供存储,则可以通过 SSH 连接到管理节点或使用 vCenter 控制台并运行 curl 命令来为 eth1 设置网络。
curl -u [mnode-username]:[mnode-password] --insecure -X POST \ https://[mnode's 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's 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" } '