162306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/name_assign_type 262306a36Sopenharmony_ciDate: July 2014 362306a36Sopenharmony_ciKernelVersion: 3.17 462306a36Sopenharmony_ciContact: netdev@vger.kernel.org 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci Indicates the name assignment type. Possible values are: 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci == ========================================================== 962306a36Sopenharmony_ci 1 enumerated by the kernel, possibly in an unpredictable way 1062306a36Sopenharmony_ci 2 predictably named by the kernel 1162306a36Sopenharmony_ci 3 named by userspace 1262306a36Sopenharmony_ci 4 renamed 1362306a36Sopenharmony_ci == ========================================================== 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/addr_assign_type 1662306a36Sopenharmony_ciDate: July 2010 1762306a36Sopenharmony_ciKernelVersion: 3.2 1862306a36Sopenharmony_ciContact: netdev@vger.kernel.org 1962306a36Sopenharmony_ciDescription: 2062306a36Sopenharmony_ci Indicates the address assignment type. Possible values are: 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci == ============================= 2362306a36Sopenharmony_ci 0 permanent address 2462306a36Sopenharmony_ci 1 randomly generated 2562306a36Sopenharmony_ci 2 stolen from another device 2662306a36Sopenharmony_ci 3 set using dev_set_mac_address 2762306a36Sopenharmony_ci == ============================= 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/addr_len 3062306a36Sopenharmony_ciDate: April 2005 3162306a36Sopenharmony_ciKernelVersion: 2.6.12 3262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 3362306a36Sopenharmony_ciDescription: 3462306a36Sopenharmony_ci Indicates the hardware address size in bytes. 3562306a36Sopenharmony_ci Values vary based on the lower-level protocol used by the 3662306a36Sopenharmony_ci interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See 3762306a36Sopenharmony_ci include/uapi/linux/if_*.h for actual values. 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/address 4062306a36Sopenharmony_ciDate: April 2005 4162306a36Sopenharmony_ciKernelVersion: 2.6.12 4262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 4362306a36Sopenharmony_ciDescription: 4462306a36Sopenharmony_ci Hardware address currently assigned to this interface. 4562306a36Sopenharmony_ci Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC 4662306a36Sopenharmony_ci address. 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ciWhat: /sys/class/net/<bridge iface>/bridge/group_fwd_mask 4962306a36Sopenharmony_ciDate: January 2012 5062306a36Sopenharmony_ciKernelVersion: 3.2 5162306a36Sopenharmony_ciContact: netdev@vger.kernel.org 5262306a36Sopenharmony_ciDescription: 5362306a36Sopenharmony_ci Bitmask to allow forwarding of link local frames with address 5462306a36Sopenharmony_ci 01-80-C2-00-00-0X on a bridge device. Only values that set bits 5562306a36Sopenharmony_ci not matching BR_GROUPFWD_RESTRICTED in net/bridge/br_private.h 5662306a36Sopenharmony_ci allowed. 5762306a36Sopenharmony_ci Default value 0 does not forward any link local frames. 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci Restricted bits: 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci == ======================================================== 6262306a36Sopenharmony_ci 0 01-80-C2-00-00-00 Bridge Group Address used for STP 6362306a36Sopenharmony_ci 1 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE 6462306a36Sopenharmony_ci 2 01-80-C2-00-00-02 (Link Aggregation) 802.3ad 6562306a36Sopenharmony_ci == ======================================================== 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ci Any values not setting these bits can be used. Take special 6862306a36Sopenharmony_ci care when forwarding control frames e.g. 802.1X-PAE or LLDP. 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/broadcast 7162306a36Sopenharmony_ciDate: April 2005 7262306a36Sopenharmony_ciKernelVersion: 2.6.12 7362306a36Sopenharmony_ciContact: netdev@vger.kernel.org 7462306a36Sopenharmony_ciDescription: 7562306a36Sopenharmony_ci Hardware broadcast address for this interface. Format is a 7662306a36Sopenharmony_ci string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC 7762306a36Sopenharmony_ci address. 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/carrier 8062306a36Sopenharmony_ciDate: April 2005 8162306a36Sopenharmony_ciKernelVersion: 2.6.12 8262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 8362306a36Sopenharmony_ciDescription: 8462306a36Sopenharmony_ci Indicates the current physical link state of the interface. 8562306a36Sopenharmony_ci Possible values are: 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci == ===================== 8862306a36Sopenharmony_ci 0 physical link is down 8962306a36Sopenharmony_ci 1 physical link is up 9062306a36Sopenharmony_ci == ===================== 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci Note: some special devices, e.g: bonding and team drivers will 9362306a36Sopenharmony_ci allow this attribute to be written to force a link state for 9462306a36Sopenharmony_ci operating correctly and designating another fallback interface. 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/dev_id 9762306a36Sopenharmony_ciDate: April 2008 9862306a36Sopenharmony_ciKernelVersion: 2.6.26 9962306a36Sopenharmony_ciContact: netdev@vger.kernel.org 10062306a36Sopenharmony_ciDescription: 10162306a36Sopenharmony_ci Indicates the device unique identifier. Format is an hexadecimal 10262306a36Sopenharmony_ci value. This is used to disambiguate interfaces which might be 10362306a36Sopenharmony_ci stacked (e.g: VLAN interfaces) but still have the same MAC 10462306a36Sopenharmony_ci address as their parent device. 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/dev_port 10762306a36Sopenharmony_ciDate: February 2014 10862306a36Sopenharmony_ciKernelVersion: 3.15 10962306a36Sopenharmony_ciContact: netdev@vger.kernel.org 11062306a36Sopenharmony_ciDescription: 11162306a36Sopenharmony_ci Indicates the port number of this network device, formatted 11262306a36Sopenharmony_ci as a decimal value. Some NICs have multiple independent ports 11362306a36Sopenharmony_ci on the same PCI bus, device and function. This attribute allows 11462306a36Sopenharmony_ci userspace to distinguish the respective interfaces. 11562306a36Sopenharmony_ci 11662306a36Sopenharmony_ci Note: some device drivers started to use 'dev_id' for this 11762306a36Sopenharmony_ci purpose since long before 3.15 and have not adopted the new 11862306a36Sopenharmony_ci attribute ever since. To query the port number, some tools look 11962306a36Sopenharmony_ci exclusively at 'dev_port', while others only consult 'dev_id'. 12062306a36Sopenharmony_ci If a network device has multiple client adapter ports as 12162306a36Sopenharmony_ci described in the previous paragraph and does not set this 12262306a36Sopenharmony_ci attribute to its port number, it's a kernel bug. 12362306a36Sopenharmony_ci 12462306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/dormant 12562306a36Sopenharmony_ciDate: March 2006 12662306a36Sopenharmony_ciKernelVersion: 2.6.17 12762306a36Sopenharmony_ciContact: netdev@vger.kernel.org 12862306a36Sopenharmony_ciDescription: 12962306a36Sopenharmony_ci Indicates whether the interface is in dormant state. Possible 13062306a36Sopenharmony_ci values are: 13162306a36Sopenharmony_ci 0: interface is not dormant 13262306a36Sopenharmony_ci 1: interface is dormant 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci This attribute can be used by supplicant software to signal that 13562306a36Sopenharmony_ci the device is not usable unless some supplicant-based 13662306a36Sopenharmony_ci authentication is performed (e.g: 802.1x). 'link_mode' attribute 13762306a36Sopenharmony_ci will also reflect the dormant state. 13862306a36Sopenharmony_ci 13962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/testing 14062306a36Sopenharmony_ciDate: April 2002 14162306a36Sopenharmony_ciKernelVersion: 5.8 14262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 14362306a36Sopenharmony_ciDescription: 14462306a36Sopenharmony_ci Indicates whether the interface is under test. Possible 14562306a36Sopenharmony_ci values are: 14662306a36Sopenharmony_ci 14762306a36Sopenharmony_ci == ============================= 14862306a36Sopenharmony_ci 0 interface is not being tested 14962306a36Sopenharmony_ci 1 interface is being tested 15062306a36Sopenharmony_ci == ============================= 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ci When an interface is under test, it cannot be expected 15362306a36Sopenharmony_ci to pass packets as normal. 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/duplex 15662306a36Sopenharmony_ciDate: October 2009 15762306a36Sopenharmony_ciKernelVersion: 2.6.33 15862306a36Sopenharmony_ciContact: netdev@vger.kernel.org 15962306a36Sopenharmony_ciDescription: 16062306a36Sopenharmony_ci Indicates the interface latest or current duplex value. Possible 16162306a36Sopenharmony_ci values are: 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ci ==== =========== 16462306a36Sopenharmony_ci half half duplex 16562306a36Sopenharmony_ci full full duplex 16662306a36Sopenharmony_ci ==== =========== 16762306a36Sopenharmony_ci 16862306a36Sopenharmony_ci Note: This attribute is only valid for interfaces that implement 16962306a36Sopenharmony_ci the ethtool get_link_ksettings method (mostly Ethernet). 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/flags 17262306a36Sopenharmony_ciDate: April 2005 17362306a36Sopenharmony_ciKernelVersion: 2.6.12 17462306a36Sopenharmony_ciContact: netdev@vger.kernel.org 17562306a36Sopenharmony_ciDescription: 17662306a36Sopenharmony_ci Indicates the interface flags as a bitmask in hexadecimal. See 17762306a36Sopenharmony_ci include/uapi/linux/if.h for a list of all possible values and 17862306a36Sopenharmony_ci the flags semantics. 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/ifalias 18162306a36Sopenharmony_ciDate: September 2008 18262306a36Sopenharmony_ciKernelVersion: 2.6.28 18362306a36Sopenharmony_ciContact: netdev@vger.kernel.org 18462306a36Sopenharmony_ciDescription: 18562306a36Sopenharmony_ci Indicates/stores an interface alias name as a string. This can 18662306a36Sopenharmony_ci be used for system management purposes. 18762306a36Sopenharmony_ci 18862306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/ifindex 18962306a36Sopenharmony_ciDate: April 2005 19062306a36Sopenharmony_ciKernelVersion: 2.6.12 19162306a36Sopenharmony_ciContact: netdev@vger.kernel.org 19262306a36Sopenharmony_ciDescription: 19362306a36Sopenharmony_ci Indicates the system-wide interface unique index identifier as a 19462306a36Sopenharmony_ci decimal number. This attribute is used for mapping an interface 19562306a36Sopenharmony_ci identifier to an interface name. It is used throughout the 19662306a36Sopenharmony_ci networking stack for specifying the interface specific 19762306a36Sopenharmony_ci requests/events. 19862306a36Sopenharmony_ci 19962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/iflink 20062306a36Sopenharmony_ciDate: April 2005 20162306a36Sopenharmony_ciKernelVersion: 2.6.12 20262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 20362306a36Sopenharmony_ciDescription: 20462306a36Sopenharmony_ci Indicates the system-wide interface unique index identifier a 20562306a36Sopenharmony_ci the interface is linked to. Format is decimal. This attribute is 20662306a36Sopenharmony_ci used to resolve interfaces chaining, linking and stacking. 20762306a36Sopenharmony_ci Physical interfaces have the same 'ifindex' and 'iflink' values. 20862306a36Sopenharmony_ci 20962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/link_mode 21062306a36Sopenharmony_ciDate: March 2006 21162306a36Sopenharmony_ciKernelVersion: 2.6.17 21262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 21362306a36Sopenharmony_ciDescription: 21462306a36Sopenharmony_ci Indicates the interface link mode, as a decimal number. This 21562306a36Sopenharmony_ci attribute should be used in conjunction with 'dormant' attribute 21662306a36Sopenharmony_ci to determine the interface usability. Possible values: 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci == ================= 21962306a36Sopenharmony_ci 0 default link mode 22062306a36Sopenharmony_ci 1 dormant link mode 22162306a36Sopenharmony_ci == ================= 22262306a36Sopenharmony_ci 22362306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/mtu 22462306a36Sopenharmony_ciDate: April 2005 22562306a36Sopenharmony_ciKernelVersion: 2.6.12 22662306a36Sopenharmony_ciContact: netdev@vger.kernel.org 22762306a36Sopenharmony_ciDescription: 22862306a36Sopenharmony_ci Indicates the interface currently configured MTU value, in 22962306a36Sopenharmony_ci bytes, and in decimal format. Specific values depends on the 23062306a36Sopenharmony_ci lower-level interface protocol used. Ethernet devices will show 23162306a36Sopenharmony_ci a 'mtu' attribute value of 1500 unless changed. 23262306a36Sopenharmony_ci 23362306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/netdev_group 23462306a36Sopenharmony_ciDate: January 2011 23562306a36Sopenharmony_ciKernelVersion: 2.6.39 23662306a36Sopenharmony_ciContact: netdev@vger.kernel.org 23762306a36Sopenharmony_ciDescription: 23862306a36Sopenharmony_ci Indicates the interface network device group, as a decimal 23962306a36Sopenharmony_ci integer. Default value is 0 which corresponds to the initial 24062306a36Sopenharmony_ci network devices group. The group can be changed to affect 24162306a36Sopenharmony_ci routing decisions (see: net/ipv4/fib_rules and 24262306a36Sopenharmony_ci net/ipv6/fib6_rules.c). 24362306a36Sopenharmony_ci 24462306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/operstate 24562306a36Sopenharmony_ciDate: March 2006 24662306a36Sopenharmony_ciKernelVersion: 2.6.17 24762306a36Sopenharmony_ciContact: netdev@vger.kernel.org 24862306a36Sopenharmony_ciDescription: 24962306a36Sopenharmony_ci Indicates the interface RFC2863 operational state as a string. 25062306a36Sopenharmony_ci 25162306a36Sopenharmony_ci Possible values are: 25262306a36Sopenharmony_ci 25362306a36Sopenharmony_ci "unknown", "notpresent", "down", "lowerlayerdown", "testing", 25462306a36Sopenharmony_ci "dormant", "up". 25562306a36Sopenharmony_ci 25662306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/phys_port_id 25762306a36Sopenharmony_ciDate: July 2013 25862306a36Sopenharmony_ciKernelVersion: 3.12 25962306a36Sopenharmony_ciContact: netdev@vger.kernel.org 26062306a36Sopenharmony_ciDescription: 26162306a36Sopenharmony_ci Indicates the interface unique physical port identifier within 26262306a36Sopenharmony_ci the NIC, as a string. 26362306a36Sopenharmony_ci 26462306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/phys_port_name 26562306a36Sopenharmony_ciDate: March 2015 26662306a36Sopenharmony_ciKernelVersion: 4.0 26762306a36Sopenharmony_ciContact: netdev@vger.kernel.org 26862306a36Sopenharmony_ciDescription: 26962306a36Sopenharmony_ci Indicates the interface physical port name within the NIC, 27062306a36Sopenharmony_ci as a string. 27162306a36Sopenharmony_ci 27262306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/speed 27362306a36Sopenharmony_ciDate: October 2009 27462306a36Sopenharmony_ciKernelVersion: 2.6.33 27562306a36Sopenharmony_ciContact: netdev@vger.kernel.org 27662306a36Sopenharmony_ciDescription: 27762306a36Sopenharmony_ci Indicates the interface latest or current speed value. Value is 27862306a36Sopenharmony_ci an integer representing the link speed in Mbits/sec. 27962306a36Sopenharmony_ci 28062306a36Sopenharmony_ci Note: this attribute is only valid for interfaces that implement 28162306a36Sopenharmony_ci the ethtool get_link_ksettings method (mostly Ethernet). 28262306a36Sopenharmony_ci 28362306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/tx_queue_len 28462306a36Sopenharmony_ciDate: April 2005 28562306a36Sopenharmony_ciKernelVersion: 2.6.12 28662306a36Sopenharmony_ciContact: netdev@vger.kernel.org 28762306a36Sopenharmony_ciDescription: 28862306a36Sopenharmony_ci Indicates the interface transmit queue len in number of packets, 28962306a36Sopenharmony_ci as an integer value. Value depend on the type of interface, 29062306a36Sopenharmony_ci Ethernet network adapters have a default value of 1000 unless 29162306a36Sopenharmony_ci configured otherwise 29262306a36Sopenharmony_ci 29362306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/type 29462306a36Sopenharmony_ciDate: April 2005 29562306a36Sopenharmony_ciKernelVersion: 2.6.12 29662306a36Sopenharmony_ciContact: netdev@vger.kernel.org 29762306a36Sopenharmony_ciDescription: 29862306a36Sopenharmony_ci Indicates the interface protocol type as a decimal value. See 29962306a36Sopenharmony_ci include/uapi/linux/if_arp.h for all possible values. 30062306a36Sopenharmony_ci 30162306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/phys_switch_id 30262306a36Sopenharmony_ciDate: November 2014 30362306a36Sopenharmony_ciKernelVersion: 3.19 30462306a36Sopenharmony_ciContact: netdev@vger.kernel.org 30562306a36Sopenharmony_ciDescription: 30662306a36Sopenharmony_ci Indicates the unique physical switch identifier of a switch this 30762306a36Sopenharmony_ci port belongs to, as a string. 30862306a36Sopenharmony_ci 30962306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/phydev 31062306a36Sopenharmony_ciDate: May 2017 31162306a36Sopenharmony_ciKernelVersion: 4.13 31262306a36Sopenharmony_ciContact: netdev@vger.kernel.org 31362306a36Sopenharmony_ciDescription: 31462306a36Sopenharmony_ci Symbolic link to the PHY device this network device is attached 31562306a36Sopenharmony_ci to. 31662306a36Sopenharmony_ci 31762306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/carrier_changes 31862306a36Sopenharmony_ciDate: Mar 2014 31962306a36Sopenharmony_ciKernelVersion: 3.15 32062306a36Sopenharmony_ciContact: netdev@vger.kernel.org 32162306a36Sopenharmony_ciDescription: 32262306a36Sopenharmony_ci 32-bit unsigned integer counting the number of times the link has 32362306a36Sopenharmony_ci seen a change from UP to DOWN and vice versa 32462306a36Sopenharmony_ci 32562306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/carrier_up_count 32662306a36Sopenharmony_ciDate: Jan 2018 32762306a36Sopenharmony_ciKernelVersion: 4.16 32862306a36Sopenharmony_ciContact: netdev@vger.kernel.org 32962306a36Sopenharmony_ciDescription: 33062306a36Sopenharmony_ci 32-bit unsigned integer counting the number of times the link has 33162306a36Sopenharmony_ci been up 33262306a36Sopenharmony_ci 33362306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/carrier_down_count 33462306a36Sopenharmony_ciDate: Jan 2018 33562306a36Sopenharmony_ciKernelVersion: 4.16 33662306a36Sopenharmony_ciContact: netdev@vger.kernel.org 33762306a36Sopenharmony_ciDescription: 33862306a36Sopenharmony_ci 32-bit unsigned integer counting the number of times the link has 33962306a36Sopenharmony_ci been down 34062306a36Sopenharmony_ci 34162306a36Sopenharmony_ciWhat: /sys/class/net/<iface>/threaded 34262306a36Sopenharmony_ciDate: Jan 2021 34362306a36Sopenharmony_ciKernelVersion: 5.12 34462306a36Sopenharmony_ciContact: netdev@vger.kernel.org 34562306a36Sopenharmony_ciDescription: 34662306a36Sopenharmony_ci Boolean value to control the threaded mode per device. User could 34762306a36Sopenharmony_ci set this value to enable/disable threaded mode for all napi 34862306a36Sopenharmony_ci belonging to this device, without the need to do device up/down. 34962306a36Sopenharmony_ci 35062306a36Sopenharmony_ci Possible values: 35162306a36Sopenharmony_ci == ================================== 35262306a36Sopenharmony_ci 0 threaded mode disabled for this dev 35362306a36Sopenharmony_ci 1 threaded mode enabled for this dev 35462306a36Sopenharmony_ci == ================================== 355