/network/if-info

Use the interface to obtain network card information.

Request Mode

POST /api/network/if-info

Response Body

{
    "device-name": "USB Fusion yxy1",
    "net": [
        {
            "enable": true,
            "iface": "eth0",
            "type": 0,
            "use-dhcp": true,
            "ipaddr": "10.10.12.166",
            "netmask": "255.255.240.0",
            "gateway": "10.10.0.1",
            "mac": "84:85:86:87:88:2e",
            "link-speed": 1000,
            "link-state": 2,
            "tx-speed-kbps": 0,
            "rx-speed-kbps": 107
        },
        {
            "enable": true,
            "iface": "wlan0",
            "type": 1,
            "mode": 1,
            "ssid": "USB-Fusion_yx_5G",
            "use-dhcp": true,
            "ipaddr": "192.168.67.1",
            "netmask": "255.255.255.0",
            "gateway": "",
            "mac": "10:2c:6b:fd:9b:78",
            "link-speed": -1,
            "link-state": 2,
            "tx-speed-kbps": 3,
            "rx-speed-kbps": 0
        },
        {
            "enable": true,
            "iface": "usb0",
            "type": 3,
            "use-dhcp": true,
            "ipaddr": "192.168.66.1",
            "netmask": "255.255.255.0",
            "gateway": "192.168.66.1",
            "mac": "8e:40:df:be:7c:fa",
            "link-speed": 480,
            "link-state": 2,
            "tx-speed-kbps": 0,
            "rx-speed-kbps": 0
        }
    ],
    "status": 0
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
device-name The device name
net[i].enable Whether the network card service is enabled
net[i].iface The network card name
net[i].type The network card type
0: Ethernet
1: WiFi
2: 4G module
3: USB
net[i].mode The working mode of WiFi
When net[i].type == 1 exists,
0: STA mode
1: AP mode
net[i].ssid The WIFI ssid
net[i].reboot-require WiFi reboots and takes effect.
net[i].use-dhcp True: use DHCP to get the IP
False: use the static network configuration
net[i].ipaddr The IP address
net[i].netmask The subnet mask
net[i].ipv6addr The IPv6 address
net[i].gateway The gateway address
net[i].mac The MAC address
net[i].link-speed The link speed
10: 10Mbps, 100: 100Mbps, 1000: 1Gbps, 2500: 2.5Gbps, 10000: 10Gbps
The speed supported by USB
12: full-speed, 480: high-speed, 5000: super-speed-5g, 10000: super-speed-10g
net[i].link-state The link state
0: down
1: disconnected
2: connected
net[i].vendor The vendor of the 4G module
net[i].product The product information of the 4G module
net[i].tx-speed-kbps The sending speed (Kbps)
net[i]. rx-speed-kbps The receiving speed (Kbps)

results matching ""

    No results matching ""