setStaticHostConfig

public void setStaticHostConfig(String iface, String ipAddress, int prefixLength, String gatewayAddress, List<String> dnsServers)

Applies the given IP configuration.

Parameters

iface

- interface on which to set the config

ipAddress

- numeric ip address to be applied, for example: 192.168.0.5

prefixLength

- prefix length for the address (subnet size)

gatewayAddress

- numeric address or hostname for the gateway

dnsServers

- numeric address or hostname for dns servers to be used

Throws

if operation fails