Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2015
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. root@ArcherC7:~# ubus call network.interface dump
  2. {
  3. "interface": [
  4. {
  5. "interface": "cfg0c4d8f",
  6. "up": true,
  7. "pending": false,
  8. "available": true,
  9. "autostart": true,
  10. "uptime": 66165,
  11. "l3_device": "br-lan",
  12. "proto": "static",
  13. "device": "br-lan",
  14. "updated": [
  15. "addresses"
  16. ],
  17. "metric": 0,
  18. "delegation": true,
  19. "ipv4-address": [
  20. {
  21. "address": "192.168.1.11",
  22. "mask": 24
  23. }
  24. ],
  25. "ipv6-address": [
  26.  
  27. ],
  28. "ipv6-prefix": [
  29.  
  30. ],
  31. "ipv6-prefix-assignment": [
  32.  
  33. ],
  34. "route": [
  35.  
  36. ],
  37. "dns-server": [
  38.  
  39. ],
  40. "dns-search": [
  41.  
  42. ],
  43. "inactive": {
  44. "ipv4-address": [
  45.  
  46. ],
  47. "ipv6-address": [
  48.  
  49. ],
  50. "route": [
  51.  
  52. ],
  53. "dns-server": [
  54.  
  55. ],
  56. "dns-search": [
  57.  
  58. ]
  59. },
  60. "data": {
  61.  
  62. }
  63. },
  64. {
  65. "interface": "lan",
  66. "up": true,
  67. "pending": false,
  68. "available": true,
  69. "autostart": true,
  70. "uptime": 66165,
  71. "l3_device": "br-lan",
  72. "proto": "static",
  73. "device": "br-lan",
  74. "updated": [
  75. "addresses"
  76. ],
  77. "metric": 0,
  78. "delegation": true,
  79. "ipv4-address": [
  80. {
  81. "address": "192.168.1.1",
  82. "mask": 24
  83. }
  84. ],
  85. "ipv6-address": [
  86.  
  87. ],
  88. "ipv6-prefix": [
  89.  
  90. ],
  91. "ipv6-prefix-assignment": [
  92. {
  93. "address": "fd8d:b5d0:1059::",
  94. "mask": 60
  95. }
  96. ],
  97. "route": [
  98.  
  99. ],
  100. "dns-server": [
  101.  
  102. ],
  103. "dns-search": [
  104.  
  105. ],
  106. "inactive": {
  107. "ipv4-address": [
  108.  
  109. ],
  110. "ipv6-address": [
  111.  
  112. ],
  113. "route": [
  114.  
  115. ],
  116. "dns-server": [
  117.  
  118. ],
  119. "dns-search": [
  120.  
  121. ]
  122. },
  123. "data": {
  124.  
  125. }
  126. },
  127. {
  128. "interface": "loopback",
  129. "up": true,
  130. "pending": false,
  131. "available": true,
  132. "autostart": true,
  133. "uptime": 66165,
  134. "l3_device": "lo",
  135. "proto": "static",
  136. "device": "lo",
  137. "updated": [
  138. "addresses"
  139. ],
  140. "metric": 0,
  141. "delegation": true,
  142. "ipv4-address": [
  143. {
  144. "address": "127.0.0.1",
  145. "mask": 8
  146. }
  147. ],
  148. "ipv6-address": [
  149.  
  150. ],
  151. "ipv6-prefix": [
  152.  
  153. ],
  154. "ipv6-prefix-assignment": [
  155.  
  156. ],
  157. "route": [
  158.  
  159. ],
  160. "dns-server": [
  161.  
  162. ],
  163. "dns-search": [
  164.  
  165. ],
  166. "inactive": {
  167. "ipv4-address": [
  168.  
  169. ],
  170. "ipv6-address": [
  171.  
  172. ],
  173. "route": [
  174.  
  175. ],
  176. "dns-server": [
  177.  
  178. ],
  179. "dns-search": [
  180.  
  181. ]
  182. },
  183. "data": {
  184.  
  185. }
  186. },
  187. {
  188. "interface": "wan",
  189. "up": true,
  190. "pending": false,
  191. "available": true,
  192. "autostart": true,
  193. "uptime": 3953,
  194. "l3_device": "eth0",
  195. "proto": "dhcp",
  196. "device": "eth0",
  197. "metric": 0,
  198. "delegation": false,
  199. "ipv4-address": [
  200. {
  201. "address": "***.***.***.***",
  202. "mask": 27
  203. }
  204. ],
  205. "ipv6-address": [
  206.  
  207. ],
  208. "ipv6-prefix": [
  209.  
  210. ],
  211. "ipv6-prefix-assignment": [
  212.  
  213. ],
  214. "route": [
  215. {
  216. "target": "0.0.0.0",
  217. "mask": 0,
  218. "nexthop": "***.***.***.***",
  219. "source": "***.***.***.***\/32"
  220. }
  221. ],
  222. "dns-server": [
  223. "8.8.8.8",
  224. "8.8.4.4"
  225. ],
  226. "dns-search": [
  227.  
  228. ],
  229. "inactive": {
  230. "ipv4-address": [
  231.  
  232. ],
  233. "ipv6-address": [
  234.  
  235. ],
  236. "route": [
  237.  
  238. ],
  239. "dns-server": [
  240. "***.***.***.***",
  241. "***.***.***.***"
  242. ],
  243. "dns-search": [
  244. "****.***"
  245. ]
  246. },
  247. "data": {
  248.  
  249. }
  250. }
  251. ]
  252. }
  253. root@ArcherC7:~# ubus call network.device status
  254. {
  255. "br-lan": {
  256. "external": false,
  257. "present": true,
  258. "type": "Bridge",
  259. "up": true,
  260. "carrier": true,
  261. "bridge-members": [
  262. "eth1",
  263. "wlan0",
  264. "wlan1"
  265. ],
  266. "macaddr": "c4:6e:1f:b8:62:1e",
  267. "statistics": {
  268. "collisions": 0,
  269. "rx_frame_errors": 0,
  270. "tx_compressed": 0,
  271. "multicast": 0,
  272. "rx_length_errors": 0,
  273. "tx_dropped": 0,
  274. "rx_bytes": 187602355,
  275. "rx_missed_errors": 0,
  276. "tx_errors": 0,
  277. "rx_compressed": 0,
  278. "rx_over_errors": 0,
  279. "tx_fifo_errors": 0,
  280. "rx_crc_errors": 0,
  281. "rx_packets": 2657319,
  282. "tx_heartbeat_errors": 0,
  283. "rx_dropped": 8,
  284. "tx_aborted_errors": 0,
  285. "tx_packets": 3646634,
  286. "rx_errors": 0,
  287. "tx_bytes": 3437603590,
  288. "tx_window_errors": 0,
  289. "rx_fifo_errors": 0,
  290. "tx_carrier_errors": 0
  291. }
  292. },
  293. "eth0": {
  294. "external": false,
  295. "present": true,
  296. "type": "Network device",
  297. "up": true,
  298. "carrier": true,
  299. "link-advertising": [
  300. "1000F"
  301. ],
  302. "link-supported": [
  303. "1000F"
  304. ],
  305. "speed": "1000F",
  306. "statistics": {
  307. "collisions": 0,
  308. "rx_frame_errors": 0,
  309. "tx_compressed": 0,
  310. "multicast": 0,
  311. "rx_length_errors": 0,
  312. "tx_dropped": 0,
  313. "rx_bytes": 3285525081,
  314. "rx_missed_errors": 0,
  315. "tx_errors": 0,
  316. "rx_compressed": 0,
  317. "rx_over_errors": 0,
  318. "tx_fifo_errors": 0,
  319. "rx_crc_errors": 0,
  320. "rx_packets": 2223741,
  321. "tx_heartbeat_errors": 0,
  322. "rx_dropped": 0,
  323. "tx_aborted_errors": 0,
  324. "tx_packets": 1188317,
  325. "rx_errors": 0,
  326. "tx_bytes": 92874443,
  327. "tx_window_errors": 0,
  328. "rx_fifo_errors": 0,
  329. "tx_carrier_errors": 0
  330. }
  331. },
  332. "eth1": {
  333. "external": false,
  334. "present": true,
  335. "type": "Network device",
  336. "up": true,
  337. "carrier": true,
  338. "ipv6": false,
  339. "statistics": {
  340. "collisions": 0,
  341. "rx_frame_errors": 0,
  342. "tx_compressed": 0,
  343. "multicast": 0,
  344. "rx_length_errors": 0,
  345. "tx_dropped": 0,
  346. "rx_bytes": 4276878848,
  347. "rx_missed_errors": 0,
  348. "tx_errors": 0,
  349. "rx_compressed": 0,
  350. "rx_over_errors": 0,
  351. "tx_fifo_errors": 0,
  352. "rx_crc_errors": 0,
  353. "rx_packets": 7444329,
  354. "tx_heartbeat_errors": 0,
  355. "rx_dropped": 3,
  356. "tx_aborted_errors": 0,
  357. "tx_packets": 4682531,
  358. "rx_errors": 0,
  359. "tx_bytes": 3369302337,
  360. "tx_window_errors": 0,
  361. "rx_fifo_errors": 4,
  362. "tx_carrier_errors": 0
  363. }
  364. },
  365. "lo": {
  366. "external": false,
  367. "present": true,
  368. "type": "Network device",
  369. "up": true,
  370. "carrier": true,
  371. "statistics": {
  372. "collisions": 0,
  373. "rx_frame_errors": 0,
  374. "tx_compressed": 0,
  375. "multicast": 0,
  376. "rx_length_errors": 0,
  377. "tx_dropped": 0,
  378. "rx_bytes": 33776157,
  379. "rx_missed_errors": 0,
  380. "tx_errors": 0,
  381. "rx_compressed": 0,
  382. "rx_over_errors": 0,
  383. "tx_fifo_errors": 0,
  384. "rx_crc_errors": 0,
  385. "rx_packets": 496533,
  386. "tx_heartbeat_errors": 0,
  387. "rx_dropped": 0,
  388. "tx_aborted_errors": 0,
  389. "tx_packets": 496533,
  390. "rx_errors": 0,
  391. "tx_bytes": 33776157,
  392. "tx_window_errors": 0,
  393. "rx_fifo_errors": 0,
  394. "tx_carrier_errors": 0
  395. }
  396. },
  397. "wlan0": {
  398. "external": true,
  399. "present": true,
  400. "type": "Network device",
  401. "up": true,
  402. "carrier": true,
  403. "ipv6": false,
  404. "statistics": {
  405. "collisions": 0,
  406. "rx_frame_errors": 0,
  407. "tx_compressed": 0,
  408. "multicast": 0,
  409. "rx_length_errors": 0,
  410. "tx_dropped": 0,
  411. "rx_bytes": 262241546,
  412. "rx_missed_errors": 0,
  413. "tx_errors": 0,
  414. "rx_compressed": 0,
  415. "rx_over_errors": 0,
  416. "tx_fifo_errors": 0,
  417. "rx_crc_errors": 0,
  418. "rx_packets": 2506396,
  419. "tx_heartbeat_errors": 0,
  420. "rx_dropped": 0,
  421. "tx_aborted_errors": 0,
  422. "tx_packets": 3813612,
  423. "rx_errors": 0,
  424. "tx_bytes": 3273561720,
  425. "tx_window_errors": 0,
  426. "rx_fifo_errors": 0,
  427. "tx_carrier_errors": 0
  428. }
  429. },
  430. "wlan1": {
  431. "external": true,
  432. "present": true,
  433. "type": "Network device",
  434. "up": true,
  435. "carrier": true,
  436. "ipv6": false,
  437. "statistics": {
  438. "collisions": 0,
  439. "rx_frame_errors": 0,
  440. "tx_compressed": 0,
  441. "multicast": 0,
  442. "rx_length_errors": 0,
  443. "tx_dropped": 0,
  444. "rx_bytes": 104755398,
  445. "rx_missed_errors": 0,
  446. "tx_errors": 0,
  447. "rx_compressed": 0,
  448. "rx_over_errors": 0,
  449. "tx_fifo_errors": 0,
  450. "rx_crc_errors": 0,
  451. "rx_packets": 1381586,
  452. "tx_heartbeat_errors": 0,
  453. "rx_dropped": 0,
  454. "tx_aborted_errors": 0,
  455. "tx_packets": 4024312,
  456. "rx_errors": 0,
  457. "tx_bytes": 1399960463,
  458. "tx_window_errors": 0,
  459. "rx_fifo_errors": 0,
  460. "tx_carrier_errors": 0
  461. }
  462. }
  463. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement