1 What: /sys/class/net/<iface>/name_as 1 What: /sys/class/net/<iface>/name_assign_type 2 Date: July 2014 2 Date: July 2014 3 KernelVersion: 3.17 3 KernelVersion: 3.17 4 Contact: netdev@vger.kernel.org 4 Contact: netdev@vger.kernel.org 5 Description: 5 Description: 6 Indicates the name assignment 6 Indicates the name assignment type. Possible values are: 7 !! 7 1: enumerated by the kernel, possibly in an unpredictable way 8 == =========================== !! 8 2: predictably named by the kernel 9 1 enumerated by the kernel, p !! 9 3: named by userspace 10 2 predictably named by the ke !! 10 4: renamed 11 3 named by userspace << 12 4 renamed << 13 == =========================== << 14 11 15 What: /sys/class/net/<iface>/addr_as 12 What: /sys/class/net/<iface>/addr_assign_type 16 Date: July 2010 13 Date: July 2010 17 KernelVersion: 3.2 14 KernelVersion: 3.2 18 Contact: netdev@vger.kernel.org 15 Contact: netdev@vger.kernel.org 19 Description: 16 Description: 20 Indicates the address assignme 17 Indicates the address assignment type. Possible values are: 21 !! 18 0: permanent address 22 == =========================== !! 19 1: randomly generated 23 0 permanent address !! 20 2: stolen from another device 24 1 randomly generated !! 21 3: set using dev_set_mac_address 25 2 stolen from another device << 26 3 set using dev_set_mac_addre << 27 == =========================== << 28 22 29 What: /sys/class/net/<iface>/addr_le 23 What: /sys/class/net/<iface>/addr_len 30 Date: April 2005 24 Date: April 2005 31 KernelVersion: 2.6.12 25 KernelVersion: 2.6.12 32 Contact: netdev@vger.kernel.org 26 Contact: netdev@vger.kernel.org 33 Description: 27 Description: 34 Indicates the hardware address 28 Indicates the hardware address size in bytes. 35 Values vary based on the lower 29 Values vary based on the lower-level protocol used by the 36 interface (Ethernet, FDDI, ATM 30 interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See 37 include/uapi/linux/if_*.h for 31 include/uapi/linux/if_*.h for actual values. 38 32 39 What: /sys/class/net/<iface>/address 33 What: /sys/class/net/<iface>/address 40 Date: April 2005 34 Date: April 2005 41 KernelVersion: 2.6.12 35 KernelVersion: 2.6.12 42 Contact: netdev@vger.kernel.org 36 Contact: netdev@vger.kernel.org 43 Description: 37 Description: 44 Hardware address currently ass 38 Hardware address currently assigned to this interface. 45 Format is a string, e.g: 00:11 39 Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC 46 address. 40 address. 47 41 48 What: /sys/class/net/<bridge iface>/ 42 What: /sys/class/net/<bridge iface>/bridge/group_fwd_mask 49 Date: January 2012 43 Date: January 2012 50 KernelVersion: 3.2 44 KernelVersion: 3.2 51 Contact: netdev@vger.kernel.org 45 Contact: netdev@vger.kernel.org 52 Description: 46 Description: 53 Bitmask to allow forwarding of 47 Bitmask to allow forwarding of link local frames with address 54 01-80-C2-00-00-0X on a bridge 48 01-80-C2-00-00-0X on a bridge device. Only values that set bits 55 not matching BR_GROUPFWD_RESTR 49 not matching BR_GROUPFWD_RESTRICTED in net/bridge/br_private.h 56 allowed. 50 allowed. 57 Default value 0 does not forwa 51 Default value 0 does not forward any link local frames. 58 52 59 Restricted bits: 53 Restricted bits: 60 !! 54 0: 01-80-C2-00-00-00 Bridge Group Address used for STP 61 == =========================== !! 55 1: 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE 62 0 01-80-C2-00-00-00 Bridge Gr !! 56 2: 01-80-C2-00-00-02 (Link Aggregation) 802.3ad 63 1 01-80-C2-00-00-01 (MAC Cont << 64 2 01-80-C2-00-00-02 (Link Agg << 65 == =========================== << 66 57 67 Any values not setting these b 58 Any values not setting these bits can be used. Take special 68 care when forwarding control f 59 care when forwarding control frames e.g. 802.1X-PAE or LLDP. 69 60 70 What: /sys/class/net/<iface>/broadca 61 What: /sys/class/net/<iface>/broadcast 71 Date: April 2005 62 Date: April 2005 72 KernelVersion: 2.6.12 63 KernelVersion: 2.6.12 73 Contact: netdev@vger.kernel.org 64 Contact: netdev@vger.kernel.org 74 Description: 65 Description: 75 Hardware broadcast address for 66 Hardware broadcast address for this interface. Format is a 76 string, e.g: ff:ff:ff:ff:ff:ff 67 string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC 77 address. 68 address. 78 69 79 What: /sys/class/net/<iface>/carrier 70 What: /sys/class/net/<iface>/carrier 80 Date: April 2005 71 Date: April 2005 81 KernelVersion: 2.6.12 72 KernelVersion: 2.6.12 82 Contact: netdev@vger.kernel.org 73 Contact: netdev@vger.kernel.org 83 Description: 74 Description: 84 Indicates the current physical 75 Indicates the current physical link state of the interface. 85 Possible values are: !! 76 Posssible values are: 86 !! 77 0: physical link is down 87 == ===================== !! 78 1: physical link is up 88 0 physical link is down << 89 1 physical link is up << 90 == ===================== << 91 79 92 Note: some special devices, e. 80 Note: some special devices, e.g: bonding and team drivers will 93 allow this attribute to be wri 81 allow this attribute to be written to force a link state for 94 operating correctly and design 82 operating correctly and designating another fallback interface. 95 83 96 What: /sys/class/net/<iface>/dev_id 84 What: /sys/class/net/<iface>/dev_id 97 Date: April 2008 85 Date: April 2008 98 KernelVersion: 2.6.26 86 KernelVersion: 2.6.26 99 Contact: netdev@vger.kernel.org 87 Contact: netdev@vger.kernel.org 100 Description: 88 Description: 101 Indicates the device unique id 89 Indicates the device unique identifier. Format is an hexadecimal 102 value. This is used to disambi 90 value. This is used to disambiguate interfaces which might be 103 stacked (e.g: VLAN interfaces) 91 stacked (e.g: VLAN interfaces) but still have the same MAC 104 address as their parent device 92 address as their parent device. 105 93 106 What: /sys/class/net/<iface>/dev_por 94 What: /sys/class/net/<iface>/dev_port 107 Date: February 2014 95 Date: February 2014 108 KernelVersion: 3.15 96 KernelVersion: 3.15 109 Contact: netdev@vger.kernel.org 97 Contact: netdev@vger.kernel.org 110 Description: 98 Description: 111 Indicates the port number of t 99 Indicates the port number of this network device, formatted 112 as a decimal value. Some NICs 100 as a decimal value. Some NICs have multiple independent ports 113 on the same PCI bus, device an 101 on the same PCI bus, device and function. This attribute allows 114 userspace to distinguish the r 102 userspace to distinguish the respective interfaces. 115 103 116 Note: some device drivers star 104 Note: some device drivers started to use 'dev_id' for this 117 purpose since long before 3.15 105 purpose since long before 3.15 and have not adopted the new 118 attribute ever since. To query 106 attribute ever since. To query the port number, some tools look 119 exclusively at 'dev_port', whi 107 exclusively at 'dev_port', while others only consult 'dev_id'. 120 If a network device has multip 108 If a network device has multiple client adapter ports as 121 described in the previous para 109 described in the previous paragraph and does not set this 122 attribute to its port number, 110 attribute to its port number, it's a kernel bug. 123 111 124 What: /sys/class/net/<iface>/dormant 112 What: /sys/class/net/<iface>/dormant 125 Date: March 2006 113 Date: March 2006 126 KernelVersion: 2.6.17 114 KernelVersion: 2.6.17 127 Contact: netdev@vger.kernel.org 115 Contact: netdev@vger.kernel.org 128 Description: 116 Description: 129 Indicates whether the interfac 117 Indicates whether the interface is in dormant state. Possible 130 values are: 118 values are: 131 0: interface is not dormant 119 0: interface is not dormant 132 1: interface is dormant 120 1: interface is dormant 133 121 134 This attribute can be used by 122 This attribute can be used by supplicant software to signal that 135 the device is not usable unles 123 the device is not usable unless some supplicant-based 136 authentication is performed (e 124 authentication is performed (e.g: 802.1x). 'link_mode' attribute 137 will also reflect the dormant 125 will also reflect the dormant state. 138 126 139 What: /sys/class/net/<iface>/testing 127 What: /sys/class/net/<iface>/testing 140 Date: April 2002 128 Date: April 2002 141 KernelVersion: 5.8 129 KernelVersion: 5.8 142 Contact: netdev@vger.kernel.org 130 Contact: netdev@vger.kernel.org 143 Description: 131 Description: 144 Indicates whether the interfac 132 Indicates whether the interface is under test. Possible 145 values are: 133 values are: 146 !! 134 0: interface is not being tested 147 == =========================== !! 135 1: interface is being tested 148 0 interface is not being test << 149 1 interface is being tested << 150 == =========================== << 151 136 152 When an interface is under tes 137 When an interface is under test, it cannot be expected 153 to pass packets as normal. 138 to pass packets as normal. 154 139 155 What: /sys/class/net/<iface>/duplex !! 140 What: /sys/clas/net/<iface>/duplex 156 Date: October 2009 141 Date: October 2009 157 KernelVersion: 2.6.33 142 KernelVersion: 2.6.33 158 Contact: netdev@vger.kernel.org 143 Contact: netdev@vger.kernel.org 159 Description: 144 Description: 160 Indicates the interface latest 145 Indicates the interface latest or current duplex value. Possible 161 values are: 146 values are: 162 !! 147 half: half duplex 163 ==== =========== !! 148 full: full duplex 164 half half duplex << 165 full full duplex << 166 ==== =========== << 167 149 168 Note: This attribute is only v 150 Note: This attribute is only valid for interfaces that implement 169 the ethtool get_link_ksettings 151 the ethtool get_link_ksettings method (mostly Ethernet). 170 152 171 What: /sys/class/net/<iface>/flags 153 What: /sys/class/net/<iface>/flags 172 Date: April 2005 154 Date: April 2005 173 KernelVersion: 2.6.12 155 KernelVersion: 2.6.12 174 Contact: netdev@vger.kernel.org 156 Contact: netdev@vger.kernel.org 175 Description: 157 Description: 176 Indicates the interface flags 158 Indicates the interface flags as a bitmask in hexadecimal. See 177 include/uapi/linux/if.h for a 159 include/uapi/linux/if.h for a list of all possible values and 178 the flags semantics. 160 the flags semantics. 179 161 180 What: /sys/class/net/<iface>/ifalias 162 What: /sys/class/net/<iface>/ifalias 181 Date: September 2008 163 Date: September 2008 182 KernelVersion: 2.6.28 164 KernelVersion: 2.6.28 183 Contact: netdev@vger.kernel.org 165 Contact: netdev@vger.kernel.org 184 Description: 166 Description: 185 Indicates/stores an interface 167 Indicates/stores an interface alias name as a string. This can 186 be used for system management 168 be used for system management purposes. 187 169 188 What: /sys/class/net/<iface>/ifindex 170 What: /sys/class/net/<iface>/ifindex 189 Date: April 2005 171 Date: April 2005 190 KernelVersion: 2.6.12 172 KernelVersion: 2.6.12 191 Contact: netdev@vger.kernel.org 173 Contact: netdev@vger.kernel.org 192 Description: 174 Description: 193 Indicates the system-wide inte 175 Indicates the system-wide interface unique index identifier as a 194 decimal number. This attribute 176 decimal number. This attribute is used for mapping an interface 195 identifier to an interface nam 177 identifier to an interface name. It is used throughout the 196 networking stack for specifyin 178 networking stack for specifying the interface specific 197 requests/events. 179 requests/events. 198 180 199 What: /sys/class/net/<iface>/iflink 181 What: /sys/class/net/<iface>/iflink 200 Date: April 2005 182 Date: April 2005 201 KernelVersion: 2.6.12 183 KernelVersion: 2.6.12 202 Contact: netdev@vger.kernel.org 184 Contact: netdev@vger.kernel.org 203 Description: 185 Description: 204 Indicates the system-wide inte 186 Indicates the system-wide interface unique index identifier a 205 the interface is linked to. Fo 187 the interface is linked to. Format is decimal. This attribute is 206 used to resolve interfaces cha 188 used to resolve interfaces chaining, linking and stacking. 207 Physical interfaces have the s 189 Physical interfaces have the same 'ifindex' and 'iflink' values. 208 190 209 What: /sys/class/net/<iface>/link_mo 191 What: /sys/class/net/<iface>/link_mode 210 Date: March 2006 192 Date: March 2006 211 KernelVersion: 2.6.17 193 KernelVersion: 2.6.17 212 Contact: netdev@vger.kernel.org 194 Contact: netdev@vger.kernel.org 213 Description: 195 Description: 214 Indicates the interface link m 196 Indicates the interface link mode, as a decimal number. This 215 attribute should be used in co 197 attribute should be used in conjunction with 'dormant' attribute 216 to determine the interface usa 198 to determine the interface usability. Possible values: 217 !! 199 0: default link mode 218 == ================= !! 200 1: dormant link mode 219 0 default link mode << 220 1 dormant link mode << 221 == ================= << 222 201 223 What: /sys/class/net/<iface>/mtu 202 What: /sys/class/net/<iface>/mtu 224 Date: April 2005 203 Date: April 2005 225 KernelVersion: 2.6.12 204 KernelVersion: 2.6.12 226 Contact: netdev@vger.kernel.org 205 Contact: netdev@vger.kernel.org 227 Description: 206 Description: 228 Indicates the interface curren 207 Indicates the interface currently configured MTU value, in 229 bytes, and in decimal format. 208 bytes, and in decimal format. Specific values depends on the 230 lower-level interface protocol 209 lower-level interface protocol used. Ethernet devices will show 231 a 'mtu' attribute value of 150 210 a 'mtu' attribute value of 1500 unless changed. 232 211 233 What: /sys/class/net/<iface>/netdev_ 212 What: /sys/class/net/<iface>/netdev_group 234 Date: January 2011 213 Date: January 2011 235 KernelVersion: 2.6.39 214 KernelVersion: 2.6.39 236 Contact: netdev@vger.kernel.org 215 Contact: netdev@vger.kernel.org 237 Description: 216 Description: 238 Indicates the interface networ 217 Indicates the interface network device group, as a decimal 239 integer. Default value is 0 wh 218 integer. Default value is 0 which corresponds to the initial 240 network devices group. The gro 219 network devices group. The group can be changed to affect 241 routing decisions (see: net/ip 220 routing decisions (see: net/ipv4/fib_rules and 242 net/ipv6/fib6_rules.c). 221 net/ipv6/fib6_rules.c). 243 222 244 What: /sys/class/net/<iface>/opersta 223 What: /sys/class/net/<iface>/operstate 245 Date: March 2006 224 Date: March 2006 246 KernelVersion: 2.6.17 225 KernelVersion: 2.6.17 247 Contact: netdev@vger.kernel.org 226 Contact: netdev@vger.kernel.org 248 Description: 227 Description: 249 Indicates the interface RFC286 228 Indicates the interface RFC2863 operational state as a string. 250 << 251 Possible values are: 229 Possible values are: 252 << 253 "unknown", "notpresent", "down 230 "unknown", "notpresent", "down", "lowerlayerdown", "testing", 254 "dormant", "up". 231 "dormant", "up". 255 232 256 What: /sys/class/net/<iface>/phys_po 233 What: /sys/class/net/<iface>/phys_port_id 257 Date: July 2013 234 Date: July 2013 258 KernelVersion: 3.12 235 KernelVersion: 3.12 259 Contact: netdev@vger.kernel.org 236 Contact: netdev@vger.kernel.org 260 Description: 237 Description: 261 Indicates the interface unique 238 Indicates the interface unique physical port identifier within 262 the NIC, as a string. 239 the NIC, as a string. 263 240 264 What: /sys/class/net/<iface>/phys_po 241 What: /sys/class/net/<iface>/phys_port_name 265 Date: March 2015 242 Date: March 2015 266 KernelVersion: 4.0 243 KernelVersion: 4.0 267 Contact: netdev@vger.kernel.org 244 Contact: netdev@vger.kernel.org 268 Description: 245 Description: 269 Indicates the interface physic 246 Indicates the interface physical port name within the NIC, 270 as a string. 247 as a string. 271 248 272 What: /sys/class/net/<iface>/speed 249 What: /sys/class/net/<iface>/speed 273 Date: October 2009 250 Date: October 2009 274 KernelVersion: 2.6.33 251 KernelVersion: 2.6.33 275 Contact: netdev@vger.kernel.org 252 Contact: netdev@vger.kernel.org 276 Description: 253 Description: 277 Indicates the interface latest 254 Indicates the interface latest or current speed value. Value is 278 an integer representing the li 255 an integer representing the link speed in Mbits/sec. 279 256 280 Note: this attribute is only v 257 Note: this attribute is only valid for interfaces that implement 281 the ethtool get_link_ksettings 258 the ethtool get_link_ksettings method (mostly Ethernet). 282 259 283 What: /sys/class/net/<iface>/tx_queu 260 What: /sys/class/net/<iface>/tx_queue_len 284 Date: April 2005 261 Date: April 2005 285 KernelVersion: 2.6.12 262 KernelVersion: 2.6.12 286 Contact: netdev@vger.kernel.org 263 Contact: netdev@vger.kernel.org 287 Description: 264 Description: 288 Indicates the interface transm 265 Indicates the interface transmit queue len in number of packets, 289 as an integer value. Value dep 266 as an integer value. Value depend on the type of interface, 290 Ethernet network adapters have 267 Ethernet network adapters have a default value of 1000 unless 291 configured otherwise 268 configured otherwise 292 269 293 What: /sys/class/net/<iface>/type 270 What: /sys/class/net/<iface>/type 294 Date: April 2005 271 Date: April 2005 295 KernelVersion: 2.6.12 272 KernelVersion: 2.6.12 296 Contact: netdev@vger.kernel.org 273 Contact: netdev@vger.kernel.org 297 Description: 274 Description: 298 Indicates the interface protoc 275 Indicates the interface protocol type as a decimal value. See 299 include/uapi/linux/if_arp.h fo 276 include/uapi/linux/if_arp.h for all possible values. 300 277 301 What: /sys/class/net/<iface>/phys_sw 278 What: /sys/class/net/<iface>/phys_switch_id 302 Date: November 2014 279 Date: November 2014 303 KernelVersion: 3.19 280 KernelVersion: 3.19 304 Contact: netdev@vger.kernel.org 281 Contact: netdev@vger.kernel.org 305 Description: 282 Description: 306 Indicates the unique physical 283 Indicates the unique physical switch identifier of a switch this 307 port belongs to, as a string. 284 port belongs to, as a string. 308 285 309 What: /sys/class/net/<iface>/phydev 286 What: /sys/class/net/<iface>/phydev 310 Date: May 2017 287 Date: May 2017 311 KernelVersion: 4.13 288 KernelVersion: 4.13 312 Contact: netdev@vger.kernel.org 289 Contact: netdev@vger.kernel.org 313 Description: 290 Description: 314 Symbolic link to the PHY devic 291 Symbolic link to the PHY device this network device is attached 315 to. 292 to. 316 293 317 What: /sys/class/net/<iface>/carrier 294 What: /sys/class/net/<iface>/carrier_changes 318 Date: Mar 2014 295 Date: Mar 2014 319 KernelVersion: 3.15 296 KernelVersion: 3.15 320 Contact: netdev@vger.kernel.org 297 Contact: netdev@vger.kernel.org 321 Description: 298 Description: 322 32-bit unsigned integer counti 299 32-bit unsigned integer counting the number of times the link has 323 seen a change from UP to DOWN 300 seen a change from UP to DOWN and vice versa 324 301 325 What: /sys/class/net/<iface>/carrier 302 What: /sys/class/net/<iface>/carrier_up_count 326 Date: Jan 2018 303 Date: Jan 2018 327 KernelVersion: 4.16 304 KernelVersion: 4.16 328 Contact: netdev@vger.kernel.org 305 Contact: netdev@vger.kernel.org 329 Description: 306 Description: 330 32-bit unsigned integer counti 307 32-bit unsigned integer counting the number of times the link has 331 been up 308 been up 332 309 333 What: /sys/class/net/<iface>/carrier 310 What: /sys/class/net/<iface>/carrier_down_count 334 Date: Jan 2018 311 Date: Jan 2018 335 KernelVersion: 4.16 312 KernelVersion: 4.16 336 Contact: netdev@vger.kernel.org 313 Contact: netdev@vger.kernel.org 337 Description: 314 Description: 338 32-bit unsigned integer counti 315 32-bit unsigned integer counting the number of times the link has 339 been down 316 been down 340 << 341 What: /sys/class/net/<iface>/threade << 342 Date: Jan 2021 << 343 KernelVersion: 5.12 << 344 Contact: netdev@vger.kernel.org << 345 Description: << 346 Boolean value to control the t << 347 set this value to enable/disab << 348 belonging to this device, with << 349 << 350 Possible values: << 351 == =========================== << 352 0 threaded mode disabled for << 353 1 threaded mode enabled for t << 354 == =========================== <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.