1 .\" $NetBSD: ifmedia.4,v 1.28 2008/04/30 13:10:54 martin Exp $
3 .\" Copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004
4 .\" The NetBSD Foundation, Inc.
5 .\" All rights reserved.
7 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
9 .\" NASA Ames Research Center.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
20 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 .\" POSSIBILITY OF SUCH DAMAGE.
37 .Nd network interface media settings
45 interface provides a consistent method for querying and setting
46 network interface media and media options. The media is typically
51 There are currently four link types supported by
53 .Bl -tag -offset indent -width IFM_IEEE80211 -compact
61 IEEE802.11 Wireless LAN
64 The following sections describe the possible media settings for each
65 link type. Not all of these are supported by every device; refer to
66 your device's manual page for more information.
68 The lists below provide the possible names of each media type or option.
69 The first name in the list is the canonical name of the media type or
70 option. Additional names are acceptable aliases for the media type or
72 .Sh COMMON MEDIA TYPES AND OPTIONS
73 The following media types are shared by all link types:
74 .Bl -tag -offset indent -width IFM_MANUAL -compact
76 Autoselect the best media. [autoselect, auto]
78 Jumper or switch on device selects media. [manual]
80 Deselect all media. [none]
83 The following media options are shared by all link types:
84 .Bl -tag -offset indent -width IFM_FLAG0
86 Place the device into full-duplex mode. This option only has meaning
87 if the device is normally not full-duplex. [full-duplex, fdx]
89 Place the device into half-duplex mode. This option only has meaning
90 if the device is normally not half-duplex. [half-duplex, hdx]
92 Hardware flow control support. [flowcontrol, flow]
94 Driver-defined flag. [flag0]
96 Driver-defined flag. [flag1]
98 Driver-defined flag. [flag2]
100 Place the device into hardware loopback mode. [loopback, hw-loopback, loop]
102 .Sh MEDIA TYPES AND OPTIONS FOR ETHERNET
103 The following media types are defined for Ethernet:
104 .Bl -tag -offset indent -width IFM_1000_FX
106 HomePNA 1.0, 1Mb/s. [HomePNA1, HPNA1]
108 10BASE-T, 10Mb/s over unshielded twisted pair, RJ45 connector. [10baseT,
111 10BASE2, 10Mb/s over coaxial cable, BNC connector, also called Thinnet.
112 [10base2, BNC, 10BNC]
114 10BASE5, 10Mb/s over 15-wire cables, DB15 connector, also called AUI.
115 [10base5, AUI, 10AUI]
117 10BASE-STP, 10Mb/s over shielded twisted pair, DB9 connector. [10baseSTP,
120 10BASE-FL, 10Mb/s over fiber optic cables. [10baseFL, FL, 10FL]
122 100BASE-TX, 100Mb/s over unshielded twisted pair, RJ45 connector. [100baseTX,
125 100BASE-FX, 100Mb/s over fiber optic cables. [100baseFX, 100FX]
127 100BASE-T4, 100Mb/s over 4-wire (category 3) unshielded twisted pair, RJ45
128 connector. [100baseT4, 100T4]
130 100BASE-T2. [100baseT2, 100T2]
132 100VG-AnyLAN. [100baseVG, 100VG]
134 1000BASE-SX, 1Gb/s over multi-mode fiber optic cables. (short waves)
137 1000BASE-LX, 1Gb/s over single-mode fiber optic cables. (long waves)
140 1000BASE-CX, 1Gb/s over shielded twisted pair. (twinax)
143 1000BASE-T, 1Gb/s over category 5 unshielded twisted pair, 802.3ab, RJ45
147 10GBASE-LR, 10Gb/s over single-mode fiber optic cables. [10GbaseLR, 10GLR]
150 The following media option is defined for Ethernet:
151 .Bl -tag -offset indent -width IFM_ETH_TXPAUSE
152 .It Dv IFM_ETH_MASTER
153 Configure a 1000BASE-T PHY as the clock master for a 1000BASE-T link.
154 This option has no effect
155 .Pq shows current status only
158 .It Dv IFM_ETH_TXPAUSE
159 Configure the device to send PAUSE
162 This option has no effect
163 .Pq shows current status only
166 .It Dv IFM_ETH_RXPAUSE
167 Configure the device to receive PAUSE
170 This option has no effect
171 .Pq shows current status only
175 .Sh MEDIA TYPES AND OPTIONS FOR TOKEN RING
176 The following media types are defined for Token Ring:
177 .Bl -tag -offset indent -width IFM_TOK_UTP16
179 4Mb/s, shielded twisted pair, DB9 connector. [DB9/4Mbit, 4STP]
181 16Mb/s, shielded twisted pair, DB9 connector. [DB9/16Mbit, 16STP]
183 4Mb/s, unshielded twisted pair, RJ45 connector. [UTP/4Mbit, 4UTP]
185 16Mb/s, unshielded twisted pair, RJ45 connector. [UTP/16Mbit, 16UTP]
188 The following media options are defined for Token Ring:
189 .Bl -tag -offset indent -width IFM_TOK_SRCRT
191 Early token release. [EarlyTokenRelease, ETR]
193 Enable source routing features. [SourceRouting, SRCRT]
195 All routes vs. single route broadcast. [AllRoutes, ALLR]
197 .Sh MEDIA TYPES AND OPTIONS FOR FDDI
198 The following media types are defined for FDDI:
199 .Bl -tag -offset indent -width IFM_FDDI_SMF -compact
201 Single-mode fiber. [Single-mode, SMF]
203 Multi-mode fiber. [Multi-mode, MMF]
205 Unshielded twisted pair, RJ45 connector. [UTP, CDDI]
208 The following media options are defined for FDDI:
209 .Bl -tag -offset indent -width IFM_FDDI_DA
211 Dual-attached station vs. Single-attached station. [dual-attach, das]
213 .Sh MEDIA TYPES AND OPTIONS FOR IEEE802.11 WIRELESS LAN
214 The following media types are defined for IEEE802.11 Wireless LAN:
215 .Bl -tag -offset indent -width IFM_IEEE80211_OFDM12 -compact
216 .It Dv IFM_IEEE80211_FH1
217 Frequency Hopping 1Mbps. [FH1]
218 .It Dv IFM_IEEE80211_FH2
219 Frequency Hopping 2Mbps. [FH2]
220 .It Dv IFM_IEEE80211_DS1
221 Direct Sequence 1Mbps. [DS1]
222 .It Dv IFM_IEEE80211_DS2
223 Direct Sequence 2Mbps. [DS2]
224 .It Dv IFM_IEEE80211_DS5
225 Direct Sequence 5Mbps. [DS5]
226 .It Dv IFM_IEEE80211_DS11
227 Direct Sequence 11Mbps. [DS11]
228 .It Dv IFM_IEEE80211_DS22
229 Direct Sequence 22Mbps. [DS22]
230 .It Dv IFM_IEEE80211_OFDM6
231 Orthogonal Frequency Division Multiplexing 6Mbps. [OFDM6]
232 .It Dv IFM_IEEE80211_OFDM9
233 Orthogonal Frequency Division Multiplexing 9Mbps. [OFDM9]
234 .It Dv IFM_IEEE80211_OFDM12
235 Orthogonal Frequency Division Multiplexing 12Mbps. [OFDM12]
236 .It Dv IFM_IEEE80211_OFDM18
237 Orthogonal Frequency Division Multiplexing 18Mbps. [OFDM18]
238 .It Dv IFM_IEEE80211_OFDM24
239 Orthogonal Frequency Division Multiplexing 24Mbps. [OFDM24]
240 .It Dv IFM_IEEE80211_OFDM36
241 Orthogonal Frequency Division Multiplexing 36Mbps. [OFDM36]
242 .It Dv IFM_IEEE80211_OFDM48
243 Orthogonal Frequency Division Multiplexing 48Mbps. [OFDM48]
244 .It Dv IFM_IEEE80211_OFDM54
245 Orthogonal Frequency Division Multiplexing 54Mbps. [OFDM54]
246 .It Dv IFM_IEEE80211_OFDM72
247 Orthogonal Frequency Division Multiplexing 72Mbps. [OFDM72]
250 The following media options are defined for IEEE802.11 Wireless LAN:
251 .Bl -tag -offset indent -width IFM_IEEE80211_MONITOR
252 .It Dv IFM_IEEE80211_ADHOC
253 Ad-hoc (IBSS) mode. [adhoc, ibss]
255 In some drivers, it may be used with the
257 [flag0] media option to specify non-standard ad-hoc demo mode.
258 .It Dv IFM_IEEE80211_HOSTAP
259 Access Point mode [hostap]
260 .It Dv IFM_IEEE80211_MONITOR
261 Monitor mode [monitor]
262 .It Dv IFM_IEEE80211_TURBO
271 interface first appeared in
273 The implementation that appeared in
275 was written by Jonathan Stone and Jason R. Thorpe to be compatible with
276 the BSDI API. It has since gone through several revisions which have
277 extended the API while maintaining backwards compatibility with the
281 .Sy IEEE802.11 Wireless LAN
282 link type was added in