2017-9-6-luci Analysis

Posted nicephil

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2017-9-6-luci Analysis相关的知识,希望对你有一定的参考价值。

2017-9-6-luci Analysis

modules

  • luci.model.uci

  • luci.model.network

  • luci.util

  • luci.cbi

  • luci.template

  • ubus call network.interface.wan status


  1. "up": true
  2. "pending": false
  3. "available": true
  4. "autostart": true
  5. "uptime": 67646
  6. "l3_device": "pppoe-wan"
  7. "proto": "pppoe"
  8. "device": "eth0.2"
  9. "updated": [ 
  10. "addresses"
  11. "routes" 
  12. ], 
  13. "metric": 0
  14. "delegation": true
  15. "ipv4-address": [ 

  16. "address": "10.104.60.163"
  17. "mask": 32 

  18. ], 
  19. "ipv6-address": [ 
  20.  
  21. ], 
  22. "ipv6-prefix": [ 
  23.  
  24. ], 
  25. "ipv6-prefix-assignment": [ 
  26.  
  27. ], 
  28. "route": [ 

  29. "target": "0.0.0.0"
  30. "mask": 0
  31. "nexthop": "10.104.0.1"
  32. "source": "0.0.0.0\\/0" 

  33. ], 
  34. "dns-server": [ 
  35. "211.140.13.188"
  36. "211.140.188.188" 
  37. ], 
  38. "dns-search": [ 
  39.  
  40. ], 
  41. "inactive": { 
  42. "ipv4-address": [ 
  43.  
  44. ], 
  45. "ipv6-address": [ 
  46.  
  47. ], 
  48. "route": [ 
  49.  
  50. ], 
  51. "dns-server": [ 
  52.  
  53. ], 
  54. "dns-search": [ 
  55.  

  56. }, 
  57. "data": { 
  58.  


  59.  
  • ubus call network.device status
  1.  

  2. "br-lan": { 
  3. "external": false
  4. "present": true
  5. "type": "Bridge"
  6. "up": true
  7. "carrier": true
  8. "bridge-members": [ 
  9. "eth0.1"
  10. "ra0" 
  11. ], 
  12. "mtu": 1500
  13. "macaddr": "54:36:9b:1c:27:47"
  14. "txqueuelen": 0
  15. "ipv6": true
  16. "statistics": { 
  17. "collisions": 0
  18. "rx_frame_errors": 0
  19. "tx_compressed": 0
  20. "multicast": 0
  21. "rx_length_errors": 0
  22. "tx_dropped": 0
  23. "rx_bytes": 479772195
  24. "rx_missed_errors": 0
  25. "tx_errors": 0
  26. "rx_compressed": 0
  27. "rx_over_errors": 0
  28. "tx_fifo_errors": 0
  29. "rx_crc_errors": 0
  30. "rx_packets": 1481931
  31. "tx_heartbeat_errors": 0
  32. "rx_dropped": 0
  33. "tx_aborted_errors": 0
  34. "tx_packets": 1976848
  35. "rx_errors": 0
  36. "tx_bytes": 2241546625
  37. "tx_window_errors": 0
  38. "rx_fifo_errors": 0
  39. "tx_carrier_errors": 0 

  40. }, 
  41. "eth0": { 
  42. "external": false
  43. "present": true
  44. "type": "Network device"
  45. "up": true
  46. "carrier": true
  47. "mtu": 1500
  48. "macaddr": "54:36:9b:1c:27:47"
  49. "txqueuelen": 1000
  50. "ipv6": true
  51. "statistics": { 
  52. "collisions": 0
  53. "rx_frame_errors": 0
  54. "tx_compressed": 0
  55. "multicast": 0
  56. "rx_length_errors": 0
  57. "tx_dropped": 0
  58. "rx_bytes": 2598313278
  59. "rx_missed_errors": 0
  60. "tx_errors": 0
  61. "rx_compressed": 0
  62. "rx_over_errors": 0
  63. "tx_fifo_errors": 0
  64. "rx_crc_errors": 0
  65. "rx_packets": 2998486
  66. "tx_heartbeat_errors": 0
  67. "rx_dropped": 0
  68. "tx_aborted_errors": 0
  69. "tx_packets": 2593532
  70. "rx_errors": 0
  71. "tx_bytes": 1846900606
  72. "tx_window_errors": 0
  73. "rx_fifo_errors": 0
  74. "tx_carrier_errors": 0 

  75. }, 
  76. "lo": { 
  77. "external": false
  78. "present": true
  79. "type": "Network device"
  80. "up": true
  81. "carrier": true
  82. "mtu": 65536
  83. "macaddr": "00:00:00:00:00:00"
  84. "txqueuelen": 0
  85. "ipv6": true
  86. "statistics": { 
  87. (c)2006-2024 SYSTEM All Rights Reserved IT常识