sysfs-class-net 6.8 KB

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