Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ArcherC7:~# ubus call network.interface dump
- {
- "interface": [
- {
- "interface": "cfg0c4d8f",
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "uptime": 66165,
- "l3_device": "br-lan",
- "proto": "static",
- "device": "br-lan",
- "updated": [
- "addresses"
- ],
- "metric": 0,
- "delegation": true,
- "ipv4-address": [
- {
- "address": "192.168.1.11",
- "mask": 24
- }
- ],
- "ipv6-address": [
- ],
- "ipv6-prefix": [
- ],
- "ipv6-prefix-assignment": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ],
- "inactive": {
- "ipv4-address": [
- ],
- "ipv6-address": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ]
- },
- "data": {
- }
- },
- {
- "interface": "lan",
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "uptime": 66165,
- "l3_device": "br-lan",
- "proto": "static",
- "device": "br-lan",
- "updated": [
- "addresses"
- ],
- "metric": 0,
- "delegation": true,
- "ipv4-address": [
- {
- "address": "192.168.1.1",
- "mask": 24
- }
- ],
- "ipv6-address": [
- ],
- "ipv6-prefix": [
- ],
- "ipv6-prefix-assignment": [
- {
- "address": "fd8d:b5d0:1059::",
- "mask": 60
- }
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ],
- "inactive": {
- "ipv4-address": [
- ],
- "ipv6-address": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ]
- },
- "data": {
- }
- },
- {
- "interface": "loopback",
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "uptime": 66165,
- "l3_device": "lo",
- "proto": "static",
- "device": "lo",
- "updated": [
- "addresses"
- ],
- "metric": 0,
- "delegation": true,
- "ipv4-address": [
- {
- "address": "127.0.0.1",
- "mask": 8
- }
- ],
- "ipv6-address": [
- ],
- "ipv6-prefix": [
- ],
- "ipv6-prefix-assignment": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ],
- "inactive": {
- "ipv4-address": [
- ],
- "ipv6-address": [
- ],
- "route": [
- ],
- "dns-server": [
- ],
- "dns-search": [
- ]
- },
- "data": {
- }
- },
- {
- "interface": "wan",
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "uptime": 3953,
- "l3_device": "eth0",
- "proto": "dhcp",
- "device": "eth0",
- "metric": 0,
- "delegation": false,
- "ipv4-address": [
- {
- "address": "***.***.***.***",
- "mask": 27
- }
- ],
- "ipv6-address": [
- ],
- "ipv6-prefix": [
- ],
- "ipv6-prefix-assignment": [
- ],
- "route": [
- {
- "target": "0.0.0.0",
- "mask": 0,
- "nexthop": "***.***.***.***",
- "source": "***.***.***.***\/32"
- }
- ],
- "dns-server": [
- "8.8.8.8",
- "8.8.4.4"
- ],
- "dns-search": [
- ],
- "inactive": {
- "ipv4-address": [
- ],
- "ipv6-address": [
- ],
- "route": [
- ],
- "dns-server": [
- "***.***.***.***",
- "***.***.***.***"
- ],
- "dns-search": [
- "****.***"
- ]
- },
- "data": {
- }
- }
- ]
- }
- root@ArcherC7:~# ubus call network.device status
- {
- "br-lan": {
- "external": false,
- "present": true,
- "type": "Bridge",
- "up": true,
- "carrier": true,
- "bridge-members": [
- "eth1",
- "wlan0",
- "wlan1"
- ],
- "macaddr": "c4:6e:1f:b8:62:1e",
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 187602355,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 2657319,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 8,
- "tx_aborted_errors": 0,
- "tx_packets": 3646634,
- "rx_errors": 0,
- "tx_bytes": 3437603590,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "eth0": {
- "external": false,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "link-advertising": [
- "1000F"
- ],
- "link-supported": [
- "1000F"
- ],
- "speed": "1000F",
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 3285525081,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 2223741,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 1188317,
- "rx_errors": 0,
- "tx_bytes": 92874443,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "eth1": {
- "external": false,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "ipv6": false,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 4276878848,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 7444329,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 3,
- "tx_aborted_errors": 0,
- "tx_packets": 4682531,
- "rx_errors": 0,
- "tx_bytes": 3369302337,
- "tx_window_errors": 0,
- "rx_fifo_errors": 4,
- "tx_carrier_errors": 0
- }
- },
- "lo": {
- "external": false,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 33776157,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 496533,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 496533,
- "rx_errors": 0,
- "tx_bytes": 33776157,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "wlan0": {
- "external": true,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "ipv6": false,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 262241546,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 2506396,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 3813612,
- "rx_errors": 0,
- "tx_bytes": 3273561720,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "wlan1": {
- "external": true,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "ipv6": false,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 104755398,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 1381586,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 4024312,
- "rx_errors": 0,
- "tx_bytes": 1399960463,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement