1 What: /sys/class/net/<iface>/addr_assign_type
4 Contact: netdev@vger.kernel.org
6 Indicates the address assignment type. Possible values are:
9 2: stolen from another device
10 3: set using dev_set_mac_address
12 What: /sys/class/net/<iface>/addr_len
15 Contact: netdev@vger.kernel.org
17 Indicates the hardware address size in bytes.
18 Values vary based on the lower-level protocol used by the
19 interface (Ethernet, FDDI, ATM, IEEE 802.15.4...). See
20 include/uapi/linux/if_*.h for actual values.
22 What: /sys/class/net/<iface>/address
25 Contact: netdev@vger.kernel.org
27 Hardware address currently assigned to this interface.
28 Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC
31 What: /sys/class/net/<iface>/broadcast
34 Contact: netdev@vger.kernel.org
36 Hardware broadcast address for this interface. Format is a
37 string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC
40 What: /sys/class/net/<iface>/carrier
43 Contact: netdev@vger.kernel.org
45 Indicates the current physical link state of the interface.
47 0: physical link is down
48 1: physical link is up
50 Note: some special devices, e.g: bonding and team drivers will
51 allow this attribute to be written to force a link state for
52 operating correctly and designating another fallback interface.
54 What: /sys/class/net/<iface>/dev_id
57 Contact: netdev@vger.kernel.org
59 Indicates the device unique identifier. Format is an hexadecimal
60 value. This is used to disambiguate interfaces which might be
61 stacked (e.g: VLAN interfaces) but still have the same MAC
62 address as their parent device.
64 What: /sys/class/net/<iface>/dormant
67 Contact: netdev@vger.kernel.org
69 Indicates whether the interface is in dormant state. Possible
71 0: interface is not dormant
72 1: interface is dormant
74 This attribute can be used by supplicant software to signal that
75 the device is not usable unless some supplicant-based
76 authentication is performed (e.g: 802.1x). 'link_mode' attribute
77 will also reflect the dormant state.
79 What: /sys/clas/net/<iface>/duplex
82 Contact: netdev@vger.kernel.org
84 Indicates the interface latest or current duplex value. Possible
89 Note: This attribute is only valid for interfaces that implement
90 the ethtool get_settings method (mostly Ethernet).
92 What: /sys/class/net/<iface>/flags
95 Contact: netdev@vger.kernel.org
97 Indicates the interface flags as a bitmask in hexadecimal. See
98 include/uapi/linux/if.h for a list of all possible values and
101 What: /sys/class/net/<iface>/ifalias
103 KernelVersion: 2.6.28
104 Contact: netdev@vger.kernel.org
106 Indicates/stores an interface alias name as a string. This can
107 be used for system management purposes.
109 What: /sys/class/net/<iface>/ifindex
111 KernelVersion: 2.6.12
112 Contact: netdev@vger.kernel.org
114 Indicates the system-wide interface unique index identifier as a
115 decimal number. This attribute is used for mapping an interface
116 identifier to an interface name. It is used throughout the
117 networking stack for specifying the interface specific
120 What: /sys/class/net/<iface>/iflink
122 KernelVersion: 2.6.12
123 Contact: netdev@vger.kernel.org
125 Indicates the system-wide interface unique index identifier a
126 the interface is linked to. Format is decimal. This attribute is
127 used to resolve interfaces chaining, linking and stacking.
128 Physical interfaces have the same 'ifindex' and 'iflink' values.
130 What: /sys/class/net/<iface>/link_mode
132 KernelVersion: 2.6.17
133 Contact: netdev@vger.kernel.org
135 Indicates the interface link mode, as a decimal number. This
136 attribute should be used in conjunction with 'dormant' attribute
137 to determine the interface usability. Possible values:
141 What: /sys/class/net/<iface>/mtu
143 KernelVersion: 2.6.12
144 Contact: netdev@vger.kernel.org
146 Indicates the interface currently configured MTU value, in
147 bytes, and in decimal format. Specific values depends on the
148 lower-level interface protocol used. Ethernet devices will show
149 a 'mtu' attribute value of 1500 unless changed.
151 What: /sys/calss/net/<iface>/netdev_group
153 KernelVersion: 2.6.39
154 Contact: netdev@vger.kernel.org
156 Indicates the interface network device group, as a decimal
157 integer. Default value is 0 which corresponds to the initial
158 network devices group. The group can be changed to affect
159 routing decisions (see: net/ipv4/fib_rules and
160 net/ipv6/fib6_rules.c).
162 What: /sys/class/net/<iface>/operstate
164 KernelVersion: 2.6.17
165 Contact: netdev@vger.kernel.org
167 Indicates the interface RFC2863 operational state as a string.
169 "unknown", "notpresent", "down", "lowerlayerdown", "testing",
172 What: /sys/class/net/<iface>/speed
174 KernelVersion: 2.6.33
175 Contact: netdev@vger.kernel.org
177 Indicates the interface latest or current speed value. Value is
178 an integer representing the link speed in Mbits/sec.
180 Note: this attribute is only valid for interfaces that implement
181 the ethtool get_settings method (mostly Ethernet ).
183 What: /sys/class/net/<iface>/tx_queue_len
185 KernelVersion: 2.6.12
186 Contact: netdev@vger.kernel.org
188 Indicates the interface transmit queue len in number of packets,
189 as an integer value. Value depend on the type of interface,
190 Ethernet network adapters have a default value of 1000 unless
193 What: /sys/class/net/<iface>/type
195 KernelVersion: 2.6.12
196 Contact: netdev@vger.kernel.org
198 Indicates the interface protocol type as a decimal value. See
199 include/uapi/linux/if_arp.h for all possible values.