|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
| __construct ($name) | |
| getDeviceName () | |
| exists () | |
| getIP () | |
| getIP6 () | |
| getPrefix () | |
| getPrefix6 () | |
| getNetmask () | |
| getNetmask6 () | |
| getMask () | |
| getMask6 () | |
| getMAC () | |
| getMTU () | |
| getGateway () | |
| getGateway6 () | |
| getState () | |
| getLink () | |
| getStatistics () | |
| getOperState () | |
| getDuplex () | |
| getSpeed () | |
| getCarrier () | |
| isVlan () | |
| getVlanId () | |
Public Attributes | |
| ipv4cidr | |
Protected Attributes | |
| $name = "" | |
| $ip = null | |
| $ethtool = null | |
| $regex | |
This class provides a simple interface to handle Linux network interfaces.
| OMV\System\Net\NetworkInterface::__construct | ( | $name | ) |
Constructor
| name | The network interface name, e.g. eth0, ethx, ... |
| OMV\System\Net\NetworkInterface::exists | ( | ) |
Check whether the network interface exists.
| OMV\System\Net\NetworkInterface::getCarrier | ( | ) |
Get the network interface physical link state.
| OMV\System\Net\NetworkInterface::getDeviceName | ( | ) |
Get the network interface name, e.g. eth0 or ethx.
| OMV\System\Net\NetworkInterface::getDuplex | ( | ) |
Get the network interface duplex value.
| OMV\System\Net\NetworkInterface::getGateway | ( | ) |
Get the network interface IPv4 default gateway.
| OMV\System\Net\NetworkInterface::getGateway6 | ( | ) |
Get the network interface IPv6 default gateway.
| OMV\System\Net\NetworkInterface::getIP | ( | ) |
Get the network interface IPv4 address.
| OMV\System\Net\NetworkInterface::getIP6 | ( | ) |
Get the network interface IPv6 address.
| OMV\System\Net\NetworkInterface::getLink | ( | ) |
Get the network interface link state.
| OMV\System\Net\NetworkInterface::getMAC | ( | ) |
Get the network interface MAC address.
| OMV\System\Net\NetworkInterface::getMask | ( | ) |
| OMV\System\Net\NetworkInterface::getMask6 | ( | ) |
| OMV\System\Net\NetworkInterface::getMTU | ( | ) |
Get the network interface MTU.
| OMV\System\Net\NetworkInterface::getNetmask | ( | ) |
Get the network interface IPv4 netmask.
| OMV\System\Net\NetworkInterface::getNetmask6 | ( | ) |
Get the network interface IPv6 mask/prefix length.
| OMV\System\Net\NetworkInterface::getOperState | ( | ) |
Get the network interface operation state.
| OMV\System\Net\NetworkInterface::getPrefix | ( | ) |
Get the network interface IPv4 prefix length.
| OMV\System\Net\NetworkInterface::getPrefix6 | ( | ) |
Get the network interface IPv6 prefix length.
| OMV\System\Net\NetworkInterface::getSpeed | ( | ) |
Get the network interface speed value.
| OMV\System\Net\NetworkInterface::getState | ( | ) |
Get the network interface state.
| OMV\System\Net\NetworkInterface::getStatistics | ( | ) |
Get the network interface statistics.
| OMV\System\Net\NetworkInterface::getVlanId | ( | ) |
Get VLAN ID of the network interface.
| OMV\System\Net\NetworkInterface::isVlan | ( | ) |
Check if the network interface is a VLAN (802.1q) device.
|
protected |
| OMV\System\Net\NetworkInterface::ipv4cidr |
1.8.13