sysfs-class-net 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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/<bridge iface>/bridge/group_fwd_mask
  39. Date: January 2012
  40. KernelVersion: 3.2
  41. Contact: netdev@vger.kernel.org
  42. Description:
  43. Bitmask to allow forwarding of link local frames with address
  44. 01-80-C2-00-00-0X on a bridge device. Only values that set bits
  45. not matching BR_GROUPFWD_RESTRICTED in net/bridge/br_private.h
  46. allowed.
  47. Default value 0 does not forward any link local frames.
  48. Restricted bits:
  49. 0: 01-80-C2-00-00-00 Bridge Group Address used for STP
  50. 1: 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE
  51. 2: 01-80-C2-00-00-02 (Link Aggregation) 802.3ad
  52. Any values not setting these bits can be used. Take special
  53. care when forwarding control frames e.g. 802.1X-PAE or LLDP.
  54. What: /sys/class/net/<iface>/broadcast
  55. Date: April 2005
  56. KernelVersion: 2.6.12
  57. Contact: netdev@vger.kernel.org
  58. Description:
  59. Hardware broadcast address for this interface. Format is a
  60. string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
  61. address.
  62. What: /sys/class/net/<iface>/carrier
  63. Date: April 2005
  64. KernelVersion: 2.6.12
  65. Contact: netdev@vger.kernel.org
  66. Description:
  67. Indicates the current physical link state of the interface.
  68. Posssible values are:
  69. 0: physical link is down
  70. 1: physical link is up
  71. Note: some special devices, e.g: bonding and team drivers will
  72. allow this attribute to be written to force a link state for
  73. operating correctly and designating another fallback interface.
  74. What: /sys/class/net/<iface>/dev_id
  75. Date: April 2008
  76. KernelVersion: 2.6.26
  77. Contact: netdev@vger.kernel.org
  78. Description:
  79. Indicates the device unique identifier. Format is an hexadecimal
  80. value. This is used to disambiguate interfaces which might be
  81. stacked (e.g: VLAN interfaces) but still have the same MAC
  82. address as their parent device.
  83. What: /sys/class/net/<iface>/dormant
  84. Date: March 2006
  85. KernelVersion: 2.6.17
  86. Contact: netdev@vger.kernel.org
  87. Description:
  88. Indicates whether the interface is in dormant state. Possible
  89. values are:
  90. 0: interface is not dormant
  91. 1: interface is dormant
  92. This attribute can be used by supplicant software to signal that
  93. the device is not usable unless some supplicant-based
  94. authentication is performed (e.g: 802.1x). 'link_mode' attribute
  95. will also reflect the dormant state.
  96. What: /sys/clas/net/<iface>/duplex
  97. Date: October 2009
  98. KernelVersion: 2.6.33
  99. Contact: netdev@vger.kernel.org
  100. Description:
  101. Indicates the interface latest or current duplex value. Possible
  102. values are:
  103. half: half duplex
  104. full: full duplex
  105. Note: This attribute is only valid for interfaces that implement
  106. the ethtool get_settings method (mostly Ethernet).
  107. What: /sys/class/net/<iface>/flags
  108. Date: April 2005
  109. KernelVersion: 2.6.12
  110. Contact: netdev@vger.kernel.org
  111. Description:
  112. Indicates the interface flags as a bitmask in hexadecimal. See
  113. include/uapi/linux/if.h for a list of all possible values and
  114. the flags semantics.
  115. What: /sys/class/net/<iface>/ifalias
  116. Date: September 2008
  117. KernelVersion: 2.6.28
  118. Contact: netdev@vger.kernel.org
  119. Description:
  120. Indicates/stores an interface alias name as a string. This can
  121. be used for system management purposes.
  122. What: /sys/class/net/<iface>/ifindex
  123. Date: April 2005
  124. KernelVersion: 2.6.12
  125. Contact: netdev@vger.kernel.org
  126. Description:
  127. Indicates the system-wide interface unique index identifier as a
  128. decimal number. This attribute is used for mapping an interface
  129. identifier to an interface name. It is used throughout the
  130. networking stack for specifying the interface specific
  131. requests/events.
  132. What: /sys/class/net/<iface>/iflink
  133. Date: April 2005
  134. KernelVersion: 2.6.12
  135. Contact: netdev@vger.kernel.org
  136. Description:
  137. Indicates the system-wide interface unique index identifier a
  138. the interface is linked to. Format is decimal. This attribute is
  139. used to resolve interfaces chaining, linking and stacking.
  140. Physical interfaces have the same 'ifindex' and 'iflink' values.
  141. What: /sys/class/net/<iface>/link_mode
  142. Date: March 2006
  143. KernelVersion: 2.6.17
  144. Contact: netdev@vger.kernel.org
  145. Description:
  146. Indicates the interface link mode, as a decimal number. This
  147. attribute should be used in conjunction with 'dormant' attribute
  148. to determine the interface usability. Possible values:
  149. 0: default link mode
  150. 1: dormant link mode
  151. What: /sys/class/net/<iface>/mtu
  152. Date: April 2005
  153. KernelVersion: 2.6.12
  154. Contact: netdev@vger.kernel.org
  155. Description:
  156. Indicates the interface currently configured MTU value, in
  157. bytes, and in decimal format. Specific values depends on the
  158. lower-level interface protocol used. Ethernet devices will show
  159. a 'mtu' attribute value of 1500 unless changed.
  160. What: /sys/class/net/<iface>/netdev_group
  161. Date: January 2011
  162. KernelVersion: 2.6.39
  163. Contact: netdev@vger.kernel.org
  164. Description:
  165. Indicates the interface network device group, as a decimal
  166. integer. Default value is 0 which corresponds to the initial
  167. network devices group. The group can be changed to affect
  168. routing decisions (see: net/ipv4/fib_rules and
  169. net/ipv6/fib6_rules.c).
  170. What: /sys/class/net/<iface>/operstate
  171. Date: March 2006
  172. KernelVersion: 2.6.17
  173. Contact: netdev@vger.kernel.org
  174. Description:
  175. Indicates the interface RFC2863 operational state as a string.
  176. Possible values are:
  177. "unknown", "notpresent", "down", "lowerlayerdown", "testing",
  178. "dormant", "up".
  179. What: /sys/class/net/<iface>/phys_port_id
  180. Date: July 2013
  181. KernelVersion: 3.12
  182. Contact: netdev@vger.kernel.org
  183. Description:
  184. Indicates the interface unique physical port identifier within
  185. the NIC, as a string.
  186. What: /sys/class/net/<iface>/phys_port_name
  187. Date: March 2015
  188. KernelVersion: 4.0
  189. Contact: netdev@vger.kernel.org
  190. Description:
  191. Indicates the interface physical port name within the NIC,
  192. as a string.
  193. What: /sys/class/net/<iface>/speed
  194. Date: October 2009
  195. KernelVersion: 2.6.33
  196. Contact: netdev@vger.kernel.org
  197. Description:
  198. Indicates the interface latest or current speed value. Value is
  199. an integer representing the link speed in Mbits/sec.
  200. Note: this attribute is only valid for interfaces that implement
  201. the ethtool get_settings method (mostly Ethernet ).
  202. What: /sys/class/net/<iface>/tx_queue_len
  203. Date: April 2005
  204. KernelVersion: 2.6.12
  205. Contact: netdev@vger.kernel.org
  206. Description:
  207. Indicates the interface transmit queue len in number of packets,
  208. as an integer value. Value depend on the type of interface,
  209. Ethernet network adapters have a default value of 1000 unless
  210. configured otherwise
  211. What: /sys/class/net/<iface>/type
  212. Date: April 2005
  213. KernelVersion: 2.6.12
  214. Contact: netdev@vger.kernel.org
  215. Description:
  216. Indicates the interface protocol type as a decimal value. See
  217. include/uapi/linux/if_arp.h for all possible values.
  218. What: /sys/class/net/<iface>/phys_switch_id
  219. Date: November 2014
  220. KernelVersion: 3.19
  221. Contact: netdev@vger.kernel.org
  222. Description:
  223. Indicates the unique physical switch identifier of a switch this
  224. port belongs to, as a string.