1 What: /sys/class/net/<iface>/name_assign_type
4 Contact: netdev@vger.kernel.org
6 Indicates the name assignment type. Possible values are:
8 == ==========================================================
9 1 enumerated by the kernel, possibly in an unpredictable way
10 2 predictably named by the kernel
13 == ==========================================================
15 What: /sys/class/net/<iface>/addr_assign_type
18 Contact: netdev@vger.kernel.org
20 Indicates the address assignment type. Possible values are:
22 == =============================
25 2 stolen from another device
26 3 set using dev_set_mac_address
27 == =============================
29 What: /sys/class/net/<iface>/addr_len
32 Contact: netdev@vger.kernel.org
34 Indicates the hardware address size in bytes.
35 Values vary based on the lower-level protocol used by the
36 interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See
37 include/uapi/linux/if_*.h for actual values.
39 What: /sys/class/net/<iface>/address
42 Contact: netdev@vger.kernel.org
44 Hardware address currently assigned to this interface.
45 Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC
48 What: /sys/class/net/<bridge iface>/bridge/group_fwd_mask
51 Contact: netdev@vger.kernel.org
53 Bitmask to allow forwarding of link local frames with address
54 01-80-C2-00-00-0X on a bridge device. Only values that set bits
55 not matching BR_GROUPFWD_RESTRICTED in net/bridge/br_private.h
57 Default value 0 does not forward any link local frames.
61 == ========================================================
62 0 01-80-C2-00-00-00 Bridge Group Address used for STP
63 1 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE
64 2 01-80-C2-00-00-02 (Link Aggregation) 802.3ad
65 == ========================================================
67 Any values not setting these bits can be used. Take special
68 care when forwarding control frames e.g. 802.1X-PAE or LLDP.
70 What: /sys/class/net/<iface>/broadcast
73 Contact: netdev@vger.kernel.org
75 Hardware broadcast address for this interface. Format is a
76 string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
79 What: /sys/class/net/<iface>/carrier
82 Contact: netdev@vger.kernel.org
84 Indicates the current physical link state of the interface.
87 == =====================
88 0 physical link is down
90 == =====================
92 Note: some special devices, e.g: bonding and team drivers will
93 allow this attribute to be written to force a link state for
94 operating correctly and designating another fallback interface.
96 What: /sys/class/net/<iface>/dev_id
99 Contact: netdev@vger.kernel.org
101 Indicates the device unique identifier. Format is an hexadecimal
102 value. This is used to disambiguate interfaces which might be
103 stacked (e.g: VLAN interfaces) but still have the same MAC
104 address as their parent device.
106 What: /sys/class/net/<iface>/dev_port
109 Contact: netdev@vger.kernel.org
111 Indicates the port number of this network device, formatted
112 as a decimal value. Some NICs have multiple independent ports
113 on the same PCI bus, device and function. This attribute allows
114 userspace to distinguish the respective interfaces.
116 Note: some device drivers started to use 'dev_id' for this
117 purpose since long before 3.15 and have not adopted the new
118 attribute ever since. To query the port number, some tools look
119 exclusively at 'dev_port', while others only consult 'dev_id'.
120 If a network device has multiple client adapter ports as
121 described in the previous paragraph and does not set this
122 attribute to its port number, it's a kernel bug.
124 What: /sys/class/net/<iface>/dormant
126 KernelVersion: 2.6.17
127 Contact: netdev@vger.kernel.org
129 Indicates whether the interface is in dormant state. Possible
131 0: interface is not dormant
132 1: interface is dormant
134 This attribute can be used by supplicant software to signal that
135 the device is not usable unless some supplicant-based
136 authentication is performed (e.g: 802.1x). 'link_mode' attribute
137 will also reflect the dormant state.
139 What: /sys/class/net/<iface>/testing
142 Contact: netdev@vger.kernel.org
144 Indicates whether the interface is under test. Possible
147 == =============================
148 0 interface is not being tested
149 1 interface is being tested
150 == =============================
152 When an interface is under test, it cannot be expected
153 to pass packets as normal.
155 What: /sys/class/net/<iface>/duplex
157 KernelVersion: 2.6.33
158 Contact: netdev@vger.kernel.org
160 Indicates the interface latest or current duplex value. Possible
168 Note: This attribute is only valid for interfaces that implement
169 the ethtool get_link_ksettings method (mostly Ethernet).
171 What: /sys/class/net/<iface>/flags
173 KernelVersion: 2.6.12
174 Contact: netdev@vger.kernel.org
176 Indicates the interface flags as a bitmask in hexadecimal. See
177 include/uapi/linux/if.h for a list of all possible values and
180 What: /sys/class/net/<iface>/ifalias
182 KernelVersion: 2.6.28
183 Contact: netdev@vger.kernel.org
185 Indicates/stores an interface alias name as a string. This can
186 be used for system management purposes.
188 What: /sys/class/net/<iface>/ifindex
190 KernelVersion: 2.6.12
191 Contact: netdev@vger.kernel.org
193 Indicates the system-wide interface unique index identifier as a
194 decimal number. This attribute is used for mapping an interface
195 identifier to an interface name. It is used throughout the
196 networking stack for specifying the interface specific
199 What: /sys/class/net/<iface>/iflink
201 KernelVersion: 2.6.12
202 Contact: netdev@vger.kernel.org
204 Indicates the system-wide interface unique index identifier a
205 the interface is linked to. Format is decimal. This attribute is
206 used to resolve interfaces chaining, linking and stacking.
207 Physical interfaces have the same 'ifindex' and 'iflink' values.
209 What: /sys/class/net/<iface>/link_mode
211 KernelVersion: 2.6.17
212 Contact: netdev@vger.kernel.org
214 Indicates the interface link mode, as a decimal number. This
215 attribute should be used in conjunction with 'dormant' attribute
216 to determine the interface usability. Possible values:
223 What: /sys/class/net/<iface>/mtu
225 KernelVersion: 2.6.12
226 Contact: netdev@vger.kernel.org
228 Indicates the interface currently configured MTU value, in
229 bytes, and in decimal format. Specific values depends on the
230 lower-level interface protocol used. Ethernet devices will show
231 a 'mtu' attribute value of 1500 unless changed.
233 What: /sys/class/net/<iface>/netdev_group
235 KernelVersion: 2.6.39
236 Contact: netdev@vger.kernel.org
238 Indicates the interface network device group, as a decimal
239 integer. Default value is 0 which corresponds to the initial
240 network devices group. The group can be changed to affect
241 routing decisions (see: net/ipv4/fib_rules and
242 net/ipv6/fib6_rules.c).
244 What: /sys/class/net/<iface>/operstate
246 KernelVersion: 2.6.17
247 Contact: netdev@vger.kernel.org
249 Indicates the interface RFC2863 operational state as a string.
253 "unknown", "notpresent", "down", "lowerlayerdown", "testing",
256 What: /sys/class/net/<iface>/phys_port_id
259 Contact: netdev@vger.kernel.org
261 Indicates the interface unique physical port identifier within
262 the NIC, as a string.
264 What: /sys/class/net/<iface>/phys_port_name
267 Contact: netdev@vger.kernel.org
269 Indicates the interface physical port name within the NIC,
272 What: /sys/class/net/<iface>/speed
274 KernelVersion: 2.6.33
275 Contact: netdev@vger.kernel.org
277 Indicates the interface latest or current speed value. Value is
278 an integer representing the link speed in Mbits/sec.
280 Note: this attribute is only valid for interfaces that implement
281 the ethtool get_link_ksettings method (mostly Ethernet).
283 What: /sys/class/net/<iface>/tx_queue_len
285 KernelVersion: 2.6.12
286 Contact: netdev@vger.kernel.org
288 Indicates the interface transmit queue len in number of packets,
289 as an integer value. Value depend on the type of interface,
290 Ethernet network adapters have a default value of 1000 unless
293 What: /sys/class/net/<iface>/type
295 KernelVersion: 2.6.12
296 Contact: netdev@vger.kernel.org
298 Indicates the interface protocol type as a decimal value. See
299 include/uapi/linux/if_arp.h for all possible values.
301 What: /sys/class/net/<iface>/phys_switch_id
304 Contact: netdev@vger.kernel.org
306 Indicates the unique physical switch identifier of a switch this
307 port belongs to, as a string.
309 What: /sys/class/net/<iface>/phydev
312 Contact: netdev@vger.kernel.org
314 Symbolic link to the PHY device this network device is attached
317 What: /sys/class/net/<iface>/carrier_changes
320 Contact: netdev@vger.kernel.org
322 32-bit unsigned integer counting the number of times the link has
323 seen a change from UP to DOWN and vice versa
325 What: /sys/class/net/<iface>/carrier_up_count
328 Contact: netdev@vger.kernel.org
330 32-bit unsigned integer counting the number of times the link has
333 What: /sys/class/net/<iface>/carrier_down_count
336 Contact: netdev@vger.kernel.org
338 32-bit unsigned integer counting the number of times the link has