> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/linha-android/ethernet/lamyethernetmanager.md).

# LamyEthernetManager

LamyEthernetManager pode configurar o parâmetro e obter as informações da NIC local. O nome da NIC do dispositivo normalmente é eth0 ou eth1. Obtenha o nome da lista de redes disponíveis através do porta.

```java
/**
* Get the active NIC name, such as {eth0，eth1}
*
* @return Exception put back to null
*/
public String[] getAvailableInterfaceName();

/**
* Check that if the designated NIC is activated
*
* param ifaceName NIC name
*@return True The NIC is activated, and false is not activated.
*/
public boolean isAvailable(String ifaceName);

/**
* Check that if the designated NIC is connected
*
* @param ifaceName NIC name
* @return True The NIC is connected to the network.
*/
public boolean isConnected(String ifaceName);

/**
* Set the designated NIC configuration
*
* @param ifaceName NIC name
5.2 Network Configuration
LamyIpConfiguration The configurations of the storage NIC include parameter configuration,
dhcp and static setting mode.
* @param config Configuration information
* @return true is configured successfully. False failed to be configured.
*/
public boolean setIpConfiguration(String ifaceName, LamyIpConfiguration config);

/**
* Get the designated NIC configuration
*
* @param ifaceName NIC name
* @return null Failed to get
*/
public LamyIpConfiguration getIpConfiguration(String ifaceName);

/**
* Get the network information of the NIC
*
* @param ifaceName NIC name
* @return null Failed to Call
*/
public LamyNetworkInfo getNetworkInfo(String ifaceName);

/**
* Get the MAC address of the NIC
* @param ifaceName NIC name
* @return null Failed to get.
*/
public String getMacAddress(String ifaceName);

```

### LamyIpConfiguration

LamyIpConfiguration The configurations of the storage NIC include parameter configuration, dhcp and static setting mode.

```java
public enum LamyIpMode {
/**
* Configure the IP address using dhcp.
*/
DHCP,
/**
* Manually configure the IP address.
*/
STATIC,
}
/**
* Get configuration parameter in static mode.
* @return Return configuration parameters in STATIC mode
*/
public LamyStaticIpConfiguration getLamyStaticIpConfiguration();

/**
* Set configuration parameter in static mode,
* @param lamyStaticIpConfiguration Parameter in STATIC mode. You can
configure null in other modes.
*/
public void setLamyStaticIpConfiguration(LamyStaticIpConfiguration
lamyStaticIpConfiguration);

/**
* Get the configuration mode. STATIC or DHCP.
* @return STATIC or DHCP
*/
public LamyIpMode getIpMode();

/**
* Set the configuration mode. STATIC or DHCP.
* @param mLamyIpMode STATIC or DHCP
*/
public void setIpMode(LamyIpMode mLamyIpMode)

```

### Configuration Parameters in Static Mode

```java
/**
* IP address
*/
public String ipAddress;

/**
* Gateway address
*/
public String gateway;

/**
* Subnet mask
*/
public String maskAdress;

/**
* DNS server
*/
public List<String> dnsServers = new ArrayList<>();

```

### Broadcast for the Local Network Status

```java
/**
* NIC link status
*/
public static final String ACTION_LINK_STATE_CHANGE =
"com.lamy.sdk.net.ethernet.link_state_change";

/**
* Notifications for the local network connection status. There will be
broadcast if the
* local NIC is configured successfully. The status does not refer to the
network
* connection status of the system.
*/
public static final String ACTION_CONNECT_CHANGE =
"com.lamy.sdk.net.ethernet.connect_change";

/**
* NIC name
*/
public static final String EXTRA_INTERFACE ="iface_name";

/**
* Only ACTION_CONNECT_CHANGE broadcast will have the connection status.
*/
public static final String EXTRA_CONNECT ="connect";

/**
* Only ACTION_LINK_STATE_CHANGE broadcast will have the NIC link status.
*/
public static final String EXTRA_LINK_STATE ="link_state";

/**
* After the connection. Only ACTION_CONNECT_CHANGE broadcast will have Up After
the
* network connection status.
*/
public static final String EXTRA_NET_INFO ="net_info";

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/linha-android/ethernet/lamyethernetmanager.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
