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
42*784b58a3SBernhard ThalerWhat:		/sys/class/net/<bridge iface>/bridge/group_fwd_mask
43*784b58a3SBernhard ThalerDate:		January 2012
44*784b58a3SBernhard ThalerKernelVersion:	3.2
45*784b58a3SBernhard ThalerContact:	netdev@vger.kernel.org
46*784b58a3SBernhard ThalerDescription:
47*784b58a3SBernhard Thaler		Bitmask to allow forwarding of link local frames with address
48*784b58a3SBernhard Thaler		01-80-C2-00-00-0X on a bridge device. Only values that set bits
49*784b58a3SBernhard Thaler		not matching BR_GROUPFWD_RESTRICTED in net/bridge/br_private.h
50*784b58a3SBernhard Thaler		allowed.
51*784b58a3SBernhard Thaler		Default value 0 does not forward any link local frames.
52*784b58a3SBernhard Thaler
53*784b58a3SBernhard Thaler		Restricted bits:
54*784b58a3SBernhard Thaler		0: 01-80-C2-00-00-00 Bridge Group Address used for STP
55*784b58a3SBernhard Thaler		1: 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE
56*784b58a3SBernhard Thaler		2: 01-80-C2-00-00-02 (Link Aggregation) 802.3ad
57*784b58a3SBernhard Thaler
58*784b58a3SBernhard Thaler		Any values not setting these bits can be used. Take special
59*784b58a3SBernhard Thaler		care when forwarding control frames e.g. 802.1X-PAE or LLDP.
60*784b58a3SBernhard Thaler
6139f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/broadcast
6239f1a2f0SFlorian FainelliDate:		April 2005
6339f1a2f0SFlorian FainelliKernelVersion:	2.6.12
6439f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
6539f1a2f0SFlorian FainelliDescription:
6639f1a2f0SFlorian Fainelli		Hardware broadcast address for this interface. Format is a
6739f1a2f0SFlorian Fainelli		string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
6839f1a2f0SFlorian Fainelli		address.
6939f1a2f0SFlorian Fainelli
7039f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/carrier
7139f1a2f0SFlorian FainelliDate:		April 2005
7239f1a2f0SFlorian FainelliKernelVersion:	2.6.12
7339f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
7439f1a2f0SFlorian FainelliDescription:
7539f1a2f0SFlorian Fainelli		Indicates the current physical link state of the interface.
7639f1a2f0SFlorian Fainelli		Posssible values are:
7739f1a2f0SFlorian Fainelli		0: physical link is down
7839f1a2f0SFlorian Fainelli		1: physical link is up
7939f1a2f0SFlorian Fainelli
8039f1a2f0SFlorian Fainelli		Note: some special devices, e.g: bonding and team drivers will
8139f1a2f0SFlorian Fainelli		allow this attribute to be written to force a link state for
8239f1a2f0SFlorian Fainelli		operating correctly and designating another fallback interface.
8339f1a2f0SFlorian Fainelli
8439f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/dev_id
8539f1a2f0SFlorian FainelliDate:		April 2008
8639f1a2f0SFlorian FainelliKernelVersion:	2.6.26
8739f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
8839f1a2f0SFlorian FainelliDescription:
8939f1a2f0SFlorian Fainelli		Indicates the device unique identifier. Format is an hexadecimal
9039f1a2f0SFlorian Fainelli		value. This is used to disambiguate interfaces which might be
9139f1a2f0SFlorian Fainelli		stacked (e.g: VLAN interfaces) but still have the same MAC
9239f1a2f0SFlorian Fainelli		address as their parent device.
9339f1a2f0SFlorian Fainelli
9439f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/dormant
9539f1a2f0SFlorian FainelliDate:		March 2006
9639f1a2f0SFlorian FainelliKernelVersion:	2.6.17
9739f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
9839f1a2f0SFlorian FainelliDescription:
9939f1a2f0SFlorian Fainelli		Indicates whether the interface is in dormant state. Possible
10039f1a2f0SFlorian Fainelli		values are:
10139f1a2f0SFlorian Fainelli		0: interface is not dormant
10239f1a2f0SFlorian Fainelli		1: interface is dormant
10339f1a2f0SFlorian Fainelli
10439f1a2f0SFlorian Fainelli		This attribute can be used by supplicant software to signal that
10539f1a2f0SFlorian Fainelli		the device is not usable unless some supplicant-based
10639f1a2f0SFlorian Fainelli		authentication is performed (e.g: 802.1x). 'link_mode' attribute
10739f1a2f0SFlorian Fainelli		will also reflect the dormant state.
10839f1a2f0SFlorian Fainelli
10939f1a2f0SFlorian FainelliWhat:		/sys/clas/net/<iface>/duplex
11039f1a2f0SFlorian FainelliDate:		October 2009
11139f1a2f0SFlorian FainelliKernelVersion:	2.6.33
11239f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
11339f1a2f0SFlorian FainelliDescription:
11439f1a2f0SFlorian Fainelli		Indicates the interface latest or current duplex value. Possible
11539f1a2f0SFlorian Fainelli		values are:
11639f1a2f0SFlorian Fainelli		half: half duplex
11739f1a2f0SFlorian Fainelli		full: full duplex
11839f1a2f0SFlorian Fainelli
11939f1a2f0SFlorian Fainelli		Note: This attribute is only valid for interfaces that implement
12039f1a2f0SFlorian Fainelli		the ethtool get_settings method (mostly Ethernet).
12139f1a2f0SFlorian Fainelli
12239f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/flags
12339f1a2f0SFlorian FainelliDate:		April 2005
12439f1a2f0SFlorian FainelliKernelVersion:	2.6.12
12539f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
12639f1a2f0SFlorian FainelliDescription:
12739f1a2f0SFlorian Fainelli		Indicates the interface flags as a bitmask in hexadecimal. See
12839f1a2f0SFlorian Fainelli		include/uapi/linux/if.h for a list of all possible values and
12939f1a2f0SFlorian Fainelli		the flags semantics.
13039f1a2f0SFlorian Fainelli
13139f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/ifalias
13239f1a2f0SFlorian FainelliDate:		September 2008
13339f1a2f0SFlorian FainelliKernelVersion:	2.6.28
13439f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
13539f1a2f0SFlorian FainelliDescription:
13639f1a2f0SFlorian Fainelli		Indicates/stores an interface alias name as a string. This can
13739f1a2f0SFlorian Fainelli		be used for system management purposes.
13839f1a2f0SFlorian Fainelli
13939f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/ifindex
14039f1a2f0SFlorian FainelliDate:		April 2005
14139f1a2f0SFlorian FainelliKernelVersion:	2.6.12
14239f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
14339f1a2f0SFlorian FainelliDescription:
14439f1a2f0SFlorian Fainelli		Indicates the system-wide interface unique index identifier as a
14539f1a2f0SFlorian Fainelli		decimal number. This attribute is used for mapping an interface
14639f1a2f0SFlorian Fainelli		identifier to an interface name. It is used throughout the
14739f1a2f0SFlorian Fainelli		networking stack for specifying the interface specific
14839f1a2f0SFlorian Fainelli		requests/events.
14939f1a2f0SFlorian Fainelli
15039f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/iflink
15139f1a2f0SFlorian FainelliDate:		April 2005
15239f1a2f0SFlorian FainelliKernelVersion:	2.6.12
15339f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
15439f1a2f0SFlorian FainelliDescription:
15539f1a2f0SFlorian Fainelli		Indicates the system-wide interface unique index identifier a
15639f1a2f0SFlorian Fainelli		the interface is linked to. Format is decimal. This attribute is
15739f1a2f0SFlorian Fainelli		used to resolve interfaces chaining, linking and stacking.
15839f1a2f0SFlorian Fainelli		Physical interfaces have the same 'ifindex' and 'iflink' values.
15939f1a2f0SFlorian Fainelli
16039f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/link_mode
16139f1a2f0SFlorian FainelliDate:		March 2006
16239f1a2f0SFlorian FainelliKernelVersion:	2.6.17
16339f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
16439f1a2f0SFlorian FainelliDescription:
16539f1a2f0SFlorian Fainelli		Indicates the interface link mode, as a decimal number. This
16639f1a2f0SFlorian Fainelli		attribute should be used in conjunction with 'dormant' attribute
16739f1a2f0SFlorian Fainelli		to determine the interface usability. Possible values:
16839f1a2f0SFlorian Fainelli		0: default link mode
16939f1a2f0SFlorian Fainelli		1: dormant link mode
17039f1a2f0SFlorian Fainelli
17139f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/mtu
17239f1a2f0SFlorian FainelliDate:		April 2005
17339f1a2f0SFlorian FainelliKernelVersion:	2.6.12
17439f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
17539f1a2f0SFlorian FainelliDescription:
17639f1a2f0SFlorian Fainelli		Indicates the interface currently configured MTU value, in
17739f1a2f0SFlorian Fainelli		bytes, and in decimal format. Specific values depends on the
17839f1a2f0SFlorian Fainelli		lower-level interface protocol used. Ethernet devices will show
17939f1a2f0SFlorian Fainelli		a 'mtu' attribute value of 1500 unless changed.
18039f1a2f0SFlorian Fainelli
1811578ea3aSJunien FridrickWhat:		/sys/class/net/<iface>/netdev_group
18239f1a2f0SFlorian FainelliDate:		January 2011
18339f1a2f0SFlorian FainelliKernelVersion:	2.6.39
18439f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
18539f1a2f0SFlorian FainelliDescription:
18639f1a2f0SFlorian Fainelli		Indicates the interface network device group, as a decimal
18739f1a2f0SFlorian Fainelli		integer. Default value is 0 which corresponds to the initial
18839f1a2f0SFlorian Fainelli		network devices group. The group can be changed to affect
18939f1a2f0SFlorian Fainelli		routing decisions (see: net/ipv4/fib_rules and
19039f1a2f0SFlorian Fainelli		net/ipv6/fib6_rules.c).
19139f1a2f0SFlorian Fainelli
19239f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/operstate
19339f1a2f0SFlorian FainelliDate:		March 2006
19439f1a2f0SFlorian FainelliKernelVersion:	2.6.17
19539f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
19639f1a2f0SFlorian FainelliDescription:
19739f1a2f0SFlorian Fainelli		Indicates the interface RFC2863 operational state as a string.
19839f1a2f0SFlorian Fainelli		Possible values are:
19939f1a2f0SFlorian Fainelli		"unknown", "notpresent", "down", "lowerlayerdown", "testing",
20039f1a2f0SFlorian Fainelli		"dormant", "up".
20139f1a2f0SFlorian Fainelli
20279499bcaSFlorian FainelliWhat:		/sys/class/net/<iface>/phys_port_id
20379499bcaSFlorian FainelliDate:		July 2013
20479499bcaSFlorian FainelliKernelVersion:	3.12
20579499bcaSFlorian FainelliContact:	netdev@vger.kernel.org
20679499bcaSFlorian FainelliDescription:
20779499bcaSFlorian Fainelli		Indicates the interface unique physical port identifier within
20879499bcaSFlorian Fainelli		the NIC, as a string.
20979499bcaSFlorian Fainelli
210db24a904SDavid AhernWhat:		/sys/class/net/<iface>/phys_port_name
211db24a904SDavid AhernDate:		March 2015
212db24a904SDavid AhernKernelVersion:	4.0
213db24a904SDavid AhernContact:	netdev@vger.kernel.org
214db24a904SDavid AhernDescription:
215db24a904SDavid Ahern		Indicates the interface physical port name within the NIC,
216db24a904SDavid Ahern		as a string.
217db24a904SDavid Ahern
21839f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/speed
21939f1a2f0SFlorian FainelliDate:		October 2009
22039f1a2f0SFlorian FainelliKernelVersion:	2.6.33
22139f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
22239f1a2f0SFlorian FainelliDescription:
22339f1a2f0SFlorian Fainelli		Indicates the interface latest or current speed value. Value is
22439f1a2f0SFlorian Fainelli		an integer representing the link speed in Mbits/sec.
22539f1a2f0SFlorian Fainelli
22639f1a2f0SFlorian Fainelli		Note: this attribute is only valid for interfaces that implement
22739f1a2f0SFlorian Fainelli		the ethtool get_settings method (mostly Ethernet ).
22839f1a2f0SFlorian Fainelli
22939f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/tx_queue_len
23039f1a2f0SFlorian FainelliDate:		April 2005
23139f1a2f0SFlorian FainelliKernelVersion:	2.6.12
23239f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
23339f1a2f0SFlorian FainelliDescription:
23439f1a2f0SFlorian Fainelli		Indicates the interface transmit queue len in number of packets,
23539f1a2f0SFlorian Fainelli		as an integer value. Value depend on the type of interface,
23639f1a2f0SFlorian Fainelli		Ethernet network adapters have a default value of 1000 unless
23739f1a2f0SFlorian Fainelli		configured otherwise
23839f1a2f0SFlorian Fainelli
23939f1a2f0SFlorian FainelliWhat:		/sys/class/net/<iface>/type
24039f1a2f0SFlorian FainelliDate:		April 2005
24139f1a2f0SFlorian FainelliKernelVersion:	2.6.12
24239f1a2f0SFlorian FainelliContact:	netdev@vger.kernel.org
24339f1a2f0SFlorian FainelliDescription:
24439f1a2f0SFlorian Fainelli		Indicates the interface protocol type as a decimal value. See
24539f1a2f0SFlorian Fainelli		include/uapi/linux/if_arp.h for all possible values.
246aecbe01eSJiri Pirko
247aecbe01eSJiri PirkoWhat:		/sys/class/net/<iface>/phys_switch_id
248aecbe01eSJiri PirkoDate:		November 2014
249aecbe01eSJiri PirkoKernelVersion:	3.19
250aecbe01eSJiri PirkoContact:	netdev@vger.kernel.org
251aecbe01eSJiri PirkoDescription:
252aecbe01eSJiri Pirko		Indicates the unique physical switch identifier of a switch this
253aecbe01eSJiri Pirko		port belongs to, as a string.
254