| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NETIF_DNS |
static java.lang.String |
NETIF_GATEWAY |
static java.lang.String |
NETIF_IP |
static java.lang.String |
NETIF_NAME |
static java.lang.String |
NETIF_NAME_PROPERTY |
static java.lang.String |
NETIF_NETMASK |
| Constructor and Description |
|---|
EthernetNetInit() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
void |
startNetworkInterface(java.lang.String interfaceName,
java.lang.String staticIP,
java.lang.String netmask,
java.lang.String gateway,
java.lang.String dns)
Start the network interface.
|
public static final java.lang.String NETIF_NAME_PROPERTY
public static final java.lang.String NETIF_NAME
public static final java.lang.String NETIF_IP
public static final java.lang.String NETIF_NETMASK
public static final java.lang.String NETIF_GATEWAY
public static final java.lang.String NETIF_DNS
public void initialize()
throws java.io.IOException
initialize in interface INetInitjava.io.IOExceptionpublic void startNetworkInterface(java.lang.String interfaceName,
java.lang.String staticIP,
java.lang.String netmask,
java.lang.String gateway,
java.lang.String dns)
throws java.io.IOException
interfaceName - the name of the network interface to start.staticIP - the static IP address to be used by the network interface. If null, dhcp configuration
will be used to get an IP address.netmask - the netmask to be used if staticIP if set.gateway - the gateway to be used if staticIP if set.dns - the dns ip to be used.java.io.IOException - if an error occurs.