You can use the SetNetworkConfig method to set the network configuration for a node. To display the current network settings for a node, run the GetNetworkConfig API method.
This method has the following input parameter:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
network | An object containing node network settings to modify. You only need to add the fields you want changed to this method as attributes in this parameter. | network (all interfaces) | None | No |
This method has the following return value:
Name | Description | Type |
---|---|---|
network | The new and current network configuration for the node. | network (all interfaces) |
Requests for this method are similar to the following example:
{ "method": "SetNetworkConfig", "params": { "network": { "Bond10G": { "bond-mode": "ALB" }, "Bond1G": { "netmask": "255.255.224.0" }, "eth0": { "method": "bond" }, "lo": { "method": "loopback" } } } }