sysfs-class-net 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. What: /sys/class/net/<iface>/addr_assign_type
  2. Date: July 2010
  3. KernelVersion: 3.2
  4. Contact: netdev@vger.kernel.org
  5. Description:
  6. Indicates the address assignment type. Possible values are:
  7. 0: permanent address
  8. 1: randomly generated
  9. 2: stolen from another device
  10. 3: set using dev_set_mac_address
  11. What: /sys/class/net/<iface>/addr_len
  12. Date: April 2005
  13. KernelVersion: 2.6.12
  14. Contact: netdev@vger.kernel.org
  15. Description:
  16. Indicates the hardware address size in bytes.
  17. Values vary based on the lower-level protocol used by the
  18. interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See
  19. include/uapi/linux/if_*.h for actual values.
  20. What: /sys/class/net/<iface>/address
  21. Date: April 2005
  22. KernelVersion: 2.6.12
  23. Contact: netdev@vger.kernel.org
  24. Description:
  25. Hardware address currently assigned to this interface.
  26. Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC
  27. address.
  28. What: /sys/class/net/<iface>/broadcast
  29. Date: April 2005
  30. KernelVersion: 2.6.12
  31. Contact: netdev@vger.kernel.org
  32. Description:
  33. Hardware broadcast address for this interface. Format is a
  34. string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
  35. address.
  36. What: /sys/class/net/<iface>/carrier
  37. Date: April 2005
  38. KernelVersion: 2.6.12
  39. Contact: netdev@vger.kernel.org
  40. Description:
  41. Indicates the current physical link state of the interface.
  42. Posssible values are:
  43. 0: physical link is down
  44. 1: physical link is up
  45. Note: some special devices, e.g: bonding and team drivers will
  46. allow this attribute to be written to force a link state for
  47. operating correctly and designating another fallback interface.
  48. What: /sys/class/net/<iface>/dev_id
  49. Date: April 2008
  50. KernelVersion: 2.6.26
  51. Contact: netdev@vger.kernel.org
  52. Description:
  53. Indicates the device unique identifier. Format is an hexadecimal
  54. value. This is used to disambiguate interfaces which might be
  55. stacked (e.g: VLAN interfaces) but still have the same MAC
  56. address as their parent device.
  57. What: /sys/class/net/<iface>/dormant
  58. Date: March 2006
  59. KernelVersion: 2.6.17
  60. Contact: netdev@vger.kernel.org
  61. Description:
  62. Indicates whether the interface is in dormant state. Possible
  63. values are:
  64. 0: interface is not dormant
  65. 1: interface is dormant
  66. This attribute can be used by supplicant software to signal that
  67. the device is not usable unless some supplicant-based
  68. authentication is performed (e.g: 802.1x). 'link_mode' attribute
  69. will also reflect the dormant state.
  70. What: /sys/clas/net/<iface>/duplex
  71. Date: October 2009
  72. KernelVersion: 2.6.33
  73. Contact: netdev@vger.kernel.org
  74. Description:
  75. Indicates the interface latest or current duplex value. Possible
  76. values are:
  77. half: half duplex
  78. full: full duplex
  79. Note: This attribute is only valid for interfaces that implement
  80. the ethtool get_settings method (mostly Ethernet).
  81. What: /sys/class/net/<iface>/flags
  82. Date: April 2005
  83. KernelVersion: 2.6.12
  84. Contact: netdev@vger.kernel.org
  85. Description:
  86. Indicates the interface flags as a bitmask in hexadecimal. See
  87. include/uapi/linux/if.h for a list of all possible values and
  88. the flags semantics.
  89. What: /sys/class/net/<iface>/ifalias
  90. Date: September 2008
  91. KernelVersion: 2.6.28
  92. Contact: netdev@vger.kernel.org
  93. Description:
  94. Indicates/stores an interface alias name as a string. This can
  95. be used for system management purposes.
  96. What: /sys/class/net/<iface>/ifindex
  97. Date: April 2005
  98. KernelVersion: 2.6.12
  99. Contact: netdev@vger.kernel.org
  100. Description:
  101. Indicates the system-wide interface unique index identifier as a
  102. decimal number. This attribute is used for mapping an interface
  103. identifier to an interface name. It is used throughout the
  104. networking stack for specifying the interface specific
  105. requests/events.
  106. What: /sys/class/net/<iface>/iflink
  107. Date: April 2005
  108. KernelVersion: 2.6.12
  109. Contact: netdev@vger.kernel.org
  110. Description:
  111. Indicates the system-wide interface unique index identifier a
  112. the interface is linked to. Format is decimal. This attribute is
  113. used to resolve interfaces chaining, linking and stacking.
  114. Physical interfaces have the same 'ifindex' and 'iflink' values.
  115. What: /sys/class/net/<iface>/link_mode
  116. Date: March 2006
  117. KernelVersion: 2.6.17
  118. Contact: netdev@vger.kernel.org
  119. Description:
  120. Indicates the interface link mode, as a decimal number. This
  121. attribute should be used in conjunction with 'dormant' attribute
  122. to determine the interface usability. Possible values:
  123. 0: default link mode
  124. 1: dormant link mode
  125. What: /sys/class/net/<iface>/mtu
  126. Date: April 2005
  127. KernelVersion: 2.6.12
  128. Contact: netdev@vger.kernel.org
  129. Description:
  130. Indicates the interface currently configured MTU value, in
  131. bytes, and in decimal format. Specific values depends on the
  132. lower-level interface protocol used. Ethernet devices will show
  133. a 'mtu' attribute value of 1500 unless changed.
  134. What: /sys/calss/net/<iface>/netdev_group
  135. Date: January 2011
  136. KernelVersion: 2.6.39
  137. Contact: netdev@vger.kernel.org
  138. Description:
  139. Indicates the interface network device group, as a decimal
  140. integer. Default value is 0 which corresponds to the initial
  141. network devices group. The group can be changed to affect
  142. routing decisions (see: net/ipv4/fib_rules and
  143. net/ipv6/fib6_rules.c).
  144. What: /sys/class/net/<iface>/operstate
  145. Date: March 2006
  146. KernelVersion: 2.6.17
  147. Contact: netdev@vger.kernel.org
  148. Description:
  149. Indicates the interface RFC2863 operational state as a string.
  150. Possible values are:
  151. "unknown", "notpresent", "down", "lowerlayerdown", "testing",
  152. "dormant", "up".
  153. What: /sys/class/net/<iface>/speed
  154. Date: October 2009
  155. KernelVersion: 2.6.33
  156. Contact: netdev@vger.kernel.org
  157. Description:
  158. Indicates the interface latest or current speed value. Value is
  159. an integer representing the link speed in Mbits/sec.
  160. Note: this attribute is only valid for interfaces that implement
  161. the ethtool get_settings method (mostly Ethernet ).
  162. What: /sys/class/net/<iface>/tx_queue_len
  163. Date: April 2005
  164. KernelVersion: 2.6.12
  165. Contact: netdev@vger.kernel.org
  166. Description:
  167. Indicates the interface transmit queue len in number of packets,
  168. as an integer value. Value depend on the type of interface,
  169. Ethernet network adapters have a default value of 1000 unless
  170. configured otherwise
  171. What: /sys/class/net/<iface>/type
  172. Date: April 2005
  173. KernelVersion: 2.6.12
  174. Contact: netdev@vger.kernel.org
  175. Description:
  176. Indicates the interface protocol type as a decimal value. See
  177. include/uapi/linux/if_arp.h for all possible values.