1 What: /sys/class/net/<iface>/name_assign_type
4 Contact: netdev@vger.kernel.org
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
12 What: /sys/class/net/<iface>/addr_assign_type
15 Contact: netdev@vger.kernel.org
17 Indicates the address assignment type. Possible values are:
20 2: stolen from another device
21 3: set using dev_set_mac_address
23 What: /sys/class/net/<iface>/addr_len
26 Contact: netdev@vger.kernel.org
28 Indicates the hardware address size in bytes.
29 Values vary based on the lower-level protocol used by the
30 interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See
31 include/uapi/linux/if_*.h for actual values.
33 What: /sys/class/net/<iface>/address
36 Contact: netdev@vger.kernel.org
38 Hardware address currently assigned to this interface.
39 Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC
42 What: /sys/class/net/<iface>/broadcast
45 Contact: netdev@vger.kernel.org
47 Hardware broadcast address for this interface. Format is a
48 string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
51 What: /sys/class/net/<iface>/carrier
54 Contact: netdev@vger.kernel.org
56 Indicates the current physical link state of the interface.
58 0: physical link is down
59 1: physical link is up
61 Note: some special devices, e.g: bonding and team drivers will
62 allow this attribute to be written to force a link state for
63 operating correctly and designating another fallback interface.
65 What: /sys/class/net/<iface>/dev_id
68 Contact: netdev@vger.kernel.org
70 Indicates the device unique identifier. Format is an hexadecimal
71 value. This is used to disambiguate interfaces which might be
72 stacked (e.g: VLAN interfaces) but still have the same MAC
73 address as their parent device.
75 What: /sys/class/net/<iface>/dormant
78 Contact: netdev@vger.kernel.org
80 Indicates whether the interface is in dormant state. Possible
82 0: interface is not dormant
83 1: interface is dormant
85 This attribute can be used by supplicant software to signal that
86 the device is not usable unless some supplicant-based
87 authentication is performed (e.g: 802.1x). 'link_mode' attribute
88 will also reflect the dormant state.
90 What: /sys/clas/net/<iface>/duplex
93 Contact: netdev@vger.kernel.org
95 Indicates the interface latest or current duplex value. Possible
100 Note: This attribute is only valid for interfaces that implement
101 the ethtool get_settings method (mostly Ethernet).
103 What: /sys/class/net/<iface>/flags
105 KernelVersion: 2.6.12
106 Contact: netdev@vger.kernel.org
108 Indicates the interface flags as a bitmask in hexadecimal. See
109 include/uapi/linux/if.h for a list of all possible values and
112 What: /sys/class/net/<iface>/ifalias
114 KernelVersion: 2.6.28
115 Contact: netdev@vger.kernel.org
117 Indicates/stores an interface alias name as a string. This can
118 be used for system management purposes.
120 What: /sys/class/net/<iface>/ifindex
122 KernelVersion: 2.6.12
123 Contact: netdev@vger.kernel.org
125 Indicates the system-wide interface unique index identifier as a
126 decimal number. This attribute is used for mapping an interface
127 identifier to an interface name. It is used throughout the
128 networking stack for specifying the interface specific
131 What: /sys/class/net/<iface>/iflink
133 KernelVersion: 2.6.12
134 Contact: netdev@vger.kernel.org
136 Indicates the system-wide interface unique index identifier a
137 the interface is linked to. Format is decimal. This attribute is
138 used to resolve interfaces chaining, linking and stacking.
139 Physical interfaces have the same 'ifindex' and 'iflink' values.
141 What: /sys/class/net/<iface>/link_mode
143 KernelVersion: 2.6.17
144 Contact: netdev@vger.kernel.org
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:
152 What: /sys/class/net/<iface>/mtu
154 KernelVersion: 2.6.12
155 Contact: netdev@vger.kernel.org
157 Indicates the interface currently configured MTU value, in
158 bytes, and in decimal format. Specific values depends on the
159 lower-level interface protocol used. Ethernet devices will show
160 a 'mtu' attribute value of 1500 unless changed.
162 What: /sys/class/net/<iface>/netdev_group
164 KernelVersion: 2.6.39
165 Contact: netdev@vger.kernel.org
167 Indicates the interface network device group, as a decimal
168 integer. Default value is 0 which corresponds to the initial
169 network devices group. The group can be changed to affect
170 routing decisions (see: net/ipv4/fib_rules and
171 net/ipv6/fib6_rules.c).
173 What: /sys/class/net/<iface>/operstate
175 KernelVersion: 2.6.17
176 Contact: netdev@vger.kernel.org
178 Indicates the interface RFC2863 operational state as a string.
180 "unknown", "notpresent", "down", "lowerlayerdown", "testing",
183 What: /sys/class/net/<iface>/phys_port_id
186 Contact: netdev@vger.kernel.org
188 Indicates the interface unique physical port identifier within
189 the NIC, as a string.
191 What: /sys/class/net/<iface>/speed
193 KernelVersion: 2.6.33
194 Contact: netdev@vger.kernel.org
196 Indicates the interface latest or current speed value. Value is
197 an integer representing the link speed in Mbits/sec.
199 Note: this attribute is only valid for interfaces that implement
200 the ethtool get_settings method (mostly Ethernet ).
202 What: /sys/class/net/<iface>/tx_queue_len
204 KernelVersion: 2.6.12
205 Contact: netdev@vger.kernel.org
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
212 What: /sys/class/net/<iface>/type
214 KernelVersion: 2.6.12
215 Contact: netdev@vger.kernel.org
217 Indicates the interface protocol type as a decimal value. See
218 include/uapi/linux/if_arp.h for all possible values.
220 What: /sys/class/net/<iface>/phys_switch_id
223 Contact: netdev@vger.kernel.org
225 Indicates the unique physical switch identifier of a switch this
226 port belongs to, as a string.