curl -u $mnode_user_name:$mnode_password --insecure -X POST \
https://$mnode_IP:442/json-rpc/10.0 \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d ' {
Ê "params": {
Ê "network": {
Ê "$eth1": {
Ê "#default" : false,
Ê "address" : "$storage_IP",
Ê "auto" : true,
Ê "family" : "inet",
Ê "method" : "static",
Ê "mtu" : "9000",
Ê "netmask" : "$subnet_mask",
Ê "status" : "Up"
Ê }
Ê },
Ê "cluster": {
Ê "name": "$mnode_host_name"
Ê }
Ê },
Ê "method": "SetConfig"
}
'
Configure a storage Network Interface Controller (NIC) for a tagged network interface
Steps
1. Open an SSH or vCenter console.
2. Replace the values in the following command template and run the command:
Values are represented by $ for each of the required parameters for your new storage
network interface. The cluster object in the following template is required and can be
used for management node host name renaming. --insecure or -k options should not
be used in production environments.