$arr=getethstat();
  if ($arr['connected']) {
    print("Ethernet is currently connected\r\n");
  } else {
    print("Ethernet is NOT currently connected\r\n");
  print_r($arr);
  }
?>
Typical output for the above example (results vary depending on the status of the connection):
Ethernet is currently connected
[$arr] = Array (
(int) [RX] => 11134469
(int) [TX] => 19102145
(int) [RXPKT] => 536579
(int) [TXPKT] => 174112
(int) [connected] => 1
(string) [ip_address] => 90.0.0.126
(string) [gateway] => 90.0.0.1
(string) [DNS] => 90.0.0.1
) 
====See Also====
[[setethpower()]] - Enable or disable the ethernet controller
[[get3gstat()]] - Get cellular data connection status information