1685343fcSTom GundersenWhat: /sys/class/net/<iface>/name_assign_type 2685343fcSTom GundersenDate: July 2014 3685343fcSTom GundersenKernelVersion: 3.17 4685343fcSTom GundersenContact: netdev@vger.kernel.org 5685343fcSTom GundersenDescription: 6685343fcSTom Gundersen Indicates the name assignment type. Possible values are: 7685343fcSTom Gundersen 1: enumerated by the kernel, possibly in an unpredictable way 8685343fcSTom Gundersen 2: predictably named by the kernel 9685343fcSTom Gundersen 3: named by userspace 10685343fcSTom Gundersen 4: renamed 11685343fcSTom Gundersen 1239f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/addr_assign_type 1339f1a2f0SFlorian FainelliDate: July 2010 1439f1a2f0SFlorian FainelliKernelVersion: 3.2 1539f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 1639f1a2f0SFlorian FainelliDescription: 1739f1a2f0SFlorian Fainelli Indicates the address assignment type. Possible values are: 1839f1a2f0SFlorian Fainelli 0: permanent address 1939f1a2f0SFlorian Fainelli 1: randomly generated 2039f1a2f0SFlorian Fainelli 2: stolen from another device 2139f1a2f0SFlorian Fainelli 3: set using dev_set_mac_address 2239f1a2f0SFlorian Fainelli 2339f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/addr_len 2439f1a2f0SFlorian FainelliDate: April 2005 2539f1a2f0SFlorian FainelliKernelVersion: 2.6.12 2639f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 2739f1a2f0SFlorian FainelliDescription: 2839f1a2f0SFlorian Fainelli Indicates the hardware address size in bytes. 2939f1a2f0SFlorian Fainelli Values vary based on the lower-level protocol used by the 3039f1a2f0SFlorian Fainelli interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See 3139f1a2f0SFlorian Fainelli include/uapi/linux/if_*.h for actual values. 3239f1a2f0SFlorian Fainelli 3339f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/address 3439f1a2f0SFlorian FainelliDate: April 2005 3539f1a2f0SFlorian FainelliKernelVersion: 2.6.12 3639f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 3739f1a2f0SFlorian FainelliDescription: 3839f1a2f0SFlorian Fainelli Hardware address currently assigned to this interface. 3939f1a2f0SFlorian Fainelli Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC 4039f1a2f0SFlorian Fainelli address. 4139f1a2f0SFlorian Fainelli 4239f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/broadcast 4339f1a2f0SFlorian FainelliDate: April 2005 4439f1a2f0SFlorian FainelliKernelVersion: 2.6.12 4539f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 4639f1a2f0SFlorian FainelliDescription: 4739f1a2f0SFlorian Fainelli Hardware broadcast address for this interface. Format is a 4839f1a2f0SFlorian Fainelli string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC 4939f1a2f0SFlorian Fainelli address. 5039f1a2f0SFlorian Fainelli 5139f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/carrier 5239f1a2f0SFlorian FainelliDate: April 2005 5339f1a2f0SFlorian FainelliKernelVersion: 2.6.12 5439f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 5539f1a2f0SFlorian FainelliDescription: 5639f1a2f0SFlorian Fainelli Indicates the current physical link state of the interface. 5739f1a2f0SFlorian Fainelli Posssible values are: 5839f1a2f0SFlorian Fainelli 0: physical link is down 5939f1a2f0SFlorian Fainelli 1: physical link is up 6039f1a2f0SFlorian Fainelli 6139f1a2f0SFlorian Fainelli Note: some special devices, e.g: bonding and team drivers will 6239f1a2f0SFlorian Fainelli allow this attribute to be written to force a link state for 6339f1a2f0SFlorian Fainelli operating correctly and designating another fallback interface. 6439f1a2f0SFlorian Fainelli 6539f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/dev_id 6639f1a2f0SFlorian FainelliDate: April 2008 6739f1a2f0SFlorian FainelliKernelVersion: 2.6.26 6839f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 6939f1a2f0SFlorian FainelliDescription: 7039f1a2f0SFlorian Fainelli Indicates the device unique identifier. Format is an hexadecimal 7139f1a2f0SFlorian Fainelli value. This is used to disambiguate interfaces which might be 7239f1a2f0SFlorian Fainelli stacked (e.g: VLAN interfaces) but still have the same MAC 7339f1a2f0SFlorian Fainelli address as their parent device. 7439f1a2f0SFlorian Fainelli 7539f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/dormant 7639f1a2f0SFlorian FainelliDate: March 2006 7739f1a2f0SFlorian FainelliKernelVersion: 2.6.17 7839f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 7939f1a2f0SFlorian FainelliDescription: 8039f1a2f0SFlorian Fainelli Indicates whether the interface is in dormant state. Possible 8139f1a2f0SFlorian Fainelli values are: 8239f1a2f0SFlorian Fainelli 0: interface is not dormant 8339f1a2f0SFlorian Fainelli 1: interface is dormant 8439f1a2f0SFlorian Fainelli 8539f1a2f0SFlorian Fainelli This attribute can be used by supplicant software to signal that 8639f1a2f0SFlorian Fainelli the device is not usable unless some supplicant-based 8739f1a2f0SFlorian Fainelli authentication is performed (e.g: 802.1x). 'link_mode' attribute 8839f1a2f0SFlorian Fainelli will also reflect the dormant state. 8939f1a2f0SFlorian Fainelli 9039f1a2f0SFlorian FainelliWhat: /sys/clas/net/<iface>/duplex 9139f1a2f0SFlorian FainelliDate: October 2009 9239f1a2f0SFlorian FainelliKernelVersion: 2.6.33 9339f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 9439f1a2f0SFlorian FainelliDescription: 9539f1a2f0SFlorian Fainelli Indicates the interface latest or current duplex value. Possible 9639f1a2f0SFlorian Fainelli values are: 9739f1a2f0SFlorian Fainelli half: half duplex 9839f1a2f0SFlorian Fainelli full: full duplex 9939f1a2f0SFlorian Fainelli 10039f1a2f0SFlorian Fainelli Note: This attribute is only valid for interfaces that implement 10139f1a2f0SFlorian Fainelli the ethtool get_settings method (mostly Ethernet). 10239f1a2f0SFlorian Fainelli 10339f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/flags 10439f1a2f0SFlorian FainelliDate: April 2005 10539f1a2f0SFlorian FainelliKernelVersion: 2.6.12 10639f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 10739f1a2f0SFlorian FainelliDescription: 10839f1a2f0SFlorian Fainelli Indicates the interface flags as a bitmask in hexadecimal. See 10939f1a2f0SFlorian Fainelli include/uapi/linux/if.h for a list of all possible values and 11039f1a2f0SFlorian Fainelli the flags semantics. 11139f1a2f0SFlorian Fainelli 11239f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/ifalias 11339f1a2f0SFlorian FainelliDate: September 2008 11439f1a2f0SFlorian FainelliKernelVersion: 2.6.28 11539f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 11639f1a2f0SFlorian FainelliDescription: 11739f1a2f0SFlorian Fainelli Indicates/stores an interface alias name as a string. This can 11839f1a2f0SFlorian Fainelli be used for system management purposes. 11939f1a2f0SFlorian Fainelli 12039f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/ifindex 12139f1a2f0SFlorian FainelliDate: April 2005 12239f1a2f0SFlorian FainelliKernelVersion: 2.6.12 12339f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 12439f1a2f0SFlorian FainelliDescription: 12539f1a2f0SFlorian Fainelli Indicates the system-wide interface unique index identifier as a 12639f1a2f0SFlorian Fainelli decimal number. This attribute is used for mapping an interface 12739f1a2f0SFlorian Fainelli identifier to an interface name. It is used throughout the 12839f1a2f0SFlorian Fainelli networking stack for specifying the interface specific 12939f1a2f0SFlorian Fainelli requests/events. 13039f1a2f0SFlorian Fainelli 13139f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/iflink 13239f1a2f0SFlorian FainelliDate: April 2005 13339f1a2f0SFlorian FainelliKernelVersion: 2.6.12 13439f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 13539f1a2f0SFlorian FainelliDescription: 13639f1a2f0SFlorian Fainelli Indicates the system-wide interface unique index identifier a 13739f1a2f0SFlorian Fainelli the interface is linked to. Format is decimal. This attribute is 13839f1a2f0SFlorian Fainelli used to resolve interfaces chaining, linking and stacking. 13939f1a2f0SFlorian Fainelli Physical interfaces have the same 'ifindex' and 'iflink' values. 14039f1a2f0SFlorian Fainelli 14139f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/link_mode 14239f1a2f0SFlorian FainelliDate: March 2006 14339f1a2f0SFlorian FainelliKernelVersion: 2.6.17 14439f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 14539f1a2f0SFlorian FainelliDescription: 14639f1a2f0SFlorian Fainelli Indicates the interface link mode, as a decimal number. This 14739f1a2f0SFlorian Fainelli attribute should be used in conjunction with 'dormant' attribute 14839f1a2f0SFlorian Fainelli to determine the interface usability. Possible values: 14939f1a2f0SFlorian Fainelli 0: default link mode 15039f1a2f0SFlorian Fainelli 1: dormant link mode 15139f1a2f0SFlorian Fainelli 15239f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/mtu 15339f1a2f0SFlorian FainelliDate: April 2005 15439f1a2f0SFlorian FainelliKernelVersion: 2.6.12 15539f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 15639f1a2f0SFlorian FainelliDescription: 15739f1a2f0SFlorian Fainelli Indicates the interface currently configured MTU value, in 15839f1a2f0SFlorian Fainelli bytes, and in decimal format. Specific values depends on the 15939f1a2f0SFlorian Fainelli lower-level interface protocol used. Ethernet devices will show 16039f1a2f0SFlorian Fainelli a 'mtu' attribute value of 1500 unless changed. 16139f1a2f0SFlorian Fainelli 1621578ea3aSJunien FridrickWhat: /sys/class/net/<iface>/netdev_group 16339f1a2f0SFlorian FainelliDate: January 2011 16439f1a2f0SFlorian FainelliKernelVersion: 2.6.39 16539f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 16639f1a2f0SFlorian FainelliDescription: 16739f1a2f0SFlorian Fainelli Indicates the interface network device group, as a decimal 16839f1a2f0SFlorian Fainelli integer. Default value is 0 which corresponds to the initial 16939f1a2f0SFlorian Fainelli network devices group. The group can be changed to affect 17039f1a2f0SFlorian Fainelli routing decisions (see: net/ipv4/fib_rules and 17139f1a2f0SFlorian Fainelli net/ipv6/fib6_rules.c). 17239f1a2f0SFlorian Fainelli 17339f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/operstate 17439f1a2f0SFlorian FainelliDate: March 2006 17539f1a2f0SFlorian FainelliKernelVersion: 2.6.17 17639f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 17739f1a2f0SFlorian FainelliDescription: 17839f1a2f0SFlorian Fainelli Indicates the interface RFC2863 operational state as a string. 17939f1a2f0SFlorian Fainelli Possible values are: 18039f1a2f0SFlorian Fainelli "unknown", "notpresent", "down", "lowerlayerdown", "testing", 18139f1a2f0SFlorian Fainelli "dormant", "up". 18239f1a2f0SFlorian Fainelli 18379499bcaSFlorian FainelliWhat: /sys/class/net/<iface>/phys_port_id 18479499bcaSFlorian FainelliDate: July 2013 18579499bcaSFlorian FainelliKernelVersion: 3.12 18679499bcaSFlorian FainelliContact: netdev@vger.kernel.org 18779499bcaSFlorian FainelliDescription: 18879499bcaSFlorian Fainelli Indicates the interface unique physical port identifier within 18979499bcaSFlorian Fainelli the NIC, as a string. 19079499bcaSFlorian Fainelli 191db24a904SDavid AhernWhat: /sys/class/net/<iface>/phys_port_name 192db24a904SDavid AhernDate: March 2015 193db24a904SDavid AhernKernelVersion: 4.0 194db24a904SDavid AhernContact: netdev@vger.kernel.org 195db24a904SDavid AhernDescription: 196db24a904SDavid Ahern Indicates the interface physical port name within the NIC, 197db24a904SDavid Ahern as a string. 198db24a904SDavid Ahern 19939f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/speed 20039f1a2f0SFlorian FainelliDate: October 2009 20139f1a2f0SFlorian FainelliKernelVersion: 2.6.33 20239f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 20339f1a2f0SFlorian FainelliDescription: 20439f1a2f0SFlorian Fainelli Indicates the interface latest or current speed value. Value is 20539f1a2f0SFlorian Fainelli an integer representing the link speed in Mbits/sec. 20639f1a2f0SFlorian Fainelli 20739f1a2f0SFlorian Fainelli Note: this attribute is only valid for interfaces that implement 20839f1a2f0SFlorian Fainelli the ethtool get_settings method (mostly Ethernet ). 20939f1a2f0SFlorian Fainelli 21039f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/tx_queue_len 21139f1a2f0SFlorian FainelliDate: April 2005 21239f1a2f0SFlorian FainelliKernelVersion: 2.6.12 21339f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 21439f1a2f0SFlorian FainelliDescription: 21539f1a2f0SFlorian Fainelli Indicates the interface transmit queue len in number of packets, 21639f1a2f0SFlorian Fainelli as an integer value. Value depend on the type of interface, 21739f1a2f0SFlorian Fainelli Ethernet network adapters have a default value of 1000 unless 21839f1a2f0SFlorian Fainelli configured otherwise 21939f1a2f0SFlorian Fainelli 22039f1a2f0SFlorian FainelliWhat: /sys/class/net/<iface>/type 22139f1a2f0SFlorian FainelliDate: April 2005 22239f1a2f0SFlorian FainelliKernelVersion: 2.6.12 22339f1a2f0SFlorian FainelliContact: netdev@vger.kernel.org 22439f1a2f0SFlorian FainelliDescription: 22539f1a2f0SFlorian Fainelli Indicates the interface protocol type as a decimal value. See 22639f1a2f0SFlorian Fainelli include/uapi/linux/if_arp.h for all possible values. 227aecbe01eSJiri Pirko 228aecbe01eSJiri PirkoWhat: /sys/class/net/<iface>/phys_switch_id 229aecbe01eSJiri PirkoDate: November 2014 230aecbe01eSJiri PirkoKernelVersion: 3.19 231aecbe01eSJiri PirkoContact: netdev@vger.kernel.org 232aecbe01eSJiri PirkoDescription: 233aecbe01eSJiri Pirko Indicates the unique physical switch identifier of a switch this 234aecbe01eSJiri Pirko port belongs to, as a string. 235