set Static Host Config
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
ip Address
- numeric ip address to be applied, for example: 192.168.0.5
prefix Length
- prefix length for the address (subnet size)
gateway Address
- numeric address or hostname for the gateway
dns Servers
- numeric address or hostname for dns servers to be used
Throws
if operation fails