Configuring a storage NIC (eth1)

If you are using a second NIC for storage, you can SSH in to the management node or use the vCenter console and run a curl command to set up the network for eth1.

Before you begin

Steps

  1. Open an SSH or vCenter console.
  2. Replace the values in the following command template (represented by $ ) for each of the required parameters for eth0 and eth1:
    Note: The cluster object in the following template is optional and can be used for management node host name renaming. The - -insecure and the -k options should not be used in production environments.
    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"
    }
    '
  3. Run the command.