xref: /freebsd/sbin/ifconfig/ifconfig.8 (revision 0f686c0fc92db8f73ae30ff339e708fc6d66bf4e)
18fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
68fae3551SRodney W. Grimes.\" are met:
78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
88fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
108fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
118fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
128fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
138fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
148fae3551SRodney W. Grimes.\"    without specific prior written permission.
158fae3551SRodney W. Grimes.\"
168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
198fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
268fae3551SRodney W. Grimes.\" SUCH DAMAGE.
278fae3551SRodney W. Grimes.\"
280761cb29SGarrett Wollman.\"     From: @(#)ifconfig.8	8.3 (Berkeley) 1/5/94
297f3dea24SPeter Wemm.\" $FreeBSD$
308fae3551SRodney W. Grimes.\"
310f686c0fSPyun YongHyeon.Dd February 20, 2010
328fae3551SRodney W. Grimes.Dt IFCONFIG 8
33b09b4efbSRuslan Ermilov.Os
348fae3551SRodney W. Grimes.Sh NAME
358fae3551SRodney W. Grimes.Nm ifconfig
368fae3551SRodney W. Grimes.Nd configure network interface parameters
378fae3551SRodney W. Grimes.Sh SYNOPSIS
387c7fb079SRuslan Ermilov.Nm
39abc3361aSArchie Cobbs.Op Fl L
40b7eb47e2SRobert Watson.Op Fl k
41ca299b1fSPoul-Henning Kamp.Op Fl m
42a389ab00SAndrew Thompson.Op Fl n
43abc3361aSArchie Cobbs.Ar interface
443e61dca0SBrooks Davis.Op Cm create
45abc3361aSArchie Cobbs.Op Ar address_family
468fae3551SRodney W. Grimes.Oo
47eb2a1701SDima Dorfman.Ar address
488fae3551SRodney W. Grimes.Op Ar dest_address
498fae3551SRodney W. Grimes.Oc
508fae3551SRodney W. Grimes.Op Ar parameters
517c7fb079SRuslan Ermilov.Nm
523e61dca0SBrooks Davis.Ar interface
533e61dca0SBrooks Davis.Cm destroy
543e61dca0SBrooks Davis.Nm
55b5436146SPeter Wemm.Fl a
56abc3361aSArchie Cobbs.Op Fl L
57b5436146SPeter Wemm.Op Fl d
58ca299b1fSPoul-Henning Kamp.Op Fl m
59b5436146SPeter Wemm.Op Fl u
605faf8dcbSSam Leffler.Op Fl v
61e333b944SPhilippe Charnier.Op Ar address_family
627c7fb079SRuslan Ermilov.Nm
63b5436146SPeter Wemm.Fl l
64b5436146SPeter Wemm.Op Fl d
65b5436146SPeter Wemm.Op Fl u
66e333b944SPhilippe Charnier.Op Ar address_family
677c7fb079SRuslan Ermilov.Nm
68abc3361aSArchie Cobbs.Op Fl L
69abc3361aSArchie Cobbs.Op Fl d
70b7eb47e2SRobert Watson.Op Fl k
71ca299b1fSPoul-Henning Kamp.Op Fl m
72abc3361aSArchie Cobbs.Op Fl u
735faf8dcbSSam Leffler.Op Fl v
743e61dca0SBrooks Davis.Op Fl C
750dad3f0eSMax Laier.Nm
760dad3f0eSMax Laier.Op Fl g Ar groupname
778fae3551SRodney W. Grimes.Sh DESCRIPTION
78e1205e80SPhilippe CharnierThe
79e1205e80SPhilippe Charnier.Nm
80e1205e80SPhilippe Charnierutility is used to assign an address
818fae3551SRodney W. Grimesto a network interface and/or configure
828fae3551SRodney W. Grimesnetwork interface parameters.
83e1205e80SPhilippe CharnierThe
84e1205e80SPhilippe Charnier.Nm
85e1205e80SPhilippe Charnierutility must be used at boot time to define the network address
868fae3551SRodney W. Grimesof each interface present on a machine; it may also be used at
878fae3551SRodney W. Grimesa later time to redefine an interface's address
888fae3551SRodney W. Grimesor other operating parameters.
898fae3551SRodney W. Grimes.Pp
90e333b944SPhilippe CharnierThe following options are available:
91e333b944SPhilippe Charnier.Bl -tag -width indent
92e333b944SPhilippe Charnier.It Ar address
938fae3551SRodney W. GrimesFor the
94e333b944SPhilippe Charnier.Tn DARPA Ns -Internet
958fae3551SRodney W. Grimesfamily,
968fae3551SRodney W. Grimesthe address is either a host name present in the host name data
978fae3551SRodney W. Grimesbase,
988fae3551SRodney W. Grimes.Xr hosts 5 ,
998fae3551SRodney W. Grimesor a
1008fae3551SRodney W. Grimes.Tn DARPA
1018fae3551SRodney W. GrimesInternet address expressed in the Internet standard
1028fae3551SRodney W. Grimes.Dq dot notation .
10312813062SJesper Skriver.Pp
10412813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the
10512813062SJesper Skriverslash notation) to include the netmask.
10612813062SJesper SkriverThat is, one can specify an address like
10719fe4826SRuslan Ermilov.Li 192.168.0.1/16 .
1089f1741caSRuslan Ermilov.Pp
1094f1fb109SGiorgos KeramidasFor the
1109f1741caSRuslan Ermilov.Dq inet6
1119f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash
1129f1741caSRuslan Ermilovnotation, like
1139f1741caSRuslan Ermilov.Li ::1/128 .
1149f1741caSRuslan ErmilovSee the
1159f1741caSRuslan Ermilov.Cm prefixlen
1169f1741caSRuslan Ermilovparameter below for more information.
117cbc17e71SGarrett Wollman.\" For the Xerox Network Systems(tm) family,
118cbc17e71SGarrett Wollman.\" addresses are
119cbc17e71SGarrett Wollman.\" .Ar net:a.b.c.d.e.f ,
120cbc17e71SGarrett Wollman.\" where
121cbc17e71SGarrett Wollman.\" .Ar net
122cbc17e71SGarrett Wollman.\" is the assigned network number (in decimal),
123cbc17e71SGarrett Wollman.\" and each of the six bytes of the host number,
124cbc17e71SGarrett Wollman.\" .Ar a
125cbc17e71SGarrett Wollman.\" through
126cbc17e71SGarrett Wollman.\" .Ar f ,
127cbc17e71SGarrett Wollman.\" are specified in hexadecimal.
128b80875bcSDima Dorfman.\" The host number may be omitted on IEEE 802 protocol
129b80875bcSDima Dorfman.\" (Ethernet, FDDI, and Token Ring) interfaces,
130cbc17e71SGarrett Wollman.\" which use the hardware physical address,
131cbc17e71SGarrett Wollman.\" and on interfaces other than the first.
1320761cb29SGarrett Wollman.\" For the
1330761cb29SGarrett Wollman.\" .Tn ISO
1340761cb29SGarrett Wollman.\" family, addresses are specified as a long hexadecimal string,
135b09b4efbSRuslan Ermilov.\" as in the Xerox family.
136b09b4efbSRuslan Ermilov.\" However, two consecutive dots imply a zero
1370761cb29SGarrett Wollman.\" byte, and the dots are optional, if the user wishes to (carefully)
1380761cb29SGarrett Wollman.\" count out long strings of digits in network byte order.
1391876df83SRuslan Ermilov.Pp
1401876df83SRuslan ErmilovThe link-level
1411876df83SRuslan Ermilov.Pq Dq link
1421876df83SRuslan Ermilovaddress
1431876df83SRuslan Ermilovis specified as a series of colon-separated hex digits.
1441876df83SRuslan ErmilovThis can be used to
1459806e231SRuslan Ermilove.g.\& set a new MAC address on an ethernet interface, though the
1461876df83SRuslan Ermilovmechanism used is not ethernet-specific.
1471876df83SRuslan ErmilovIf the interface is already
1481876df83SRuslan Ermilovup when this option is used, it will be briefly brought down and
1491876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive
1501876df83SRuslan Ermilovfilter in the underlying ethernet hardware is properly reprogrammed.
1518fae3551SRodney W. Grimes.It Ar address_family
152e333b944SPhilippe CharnierSpecify the
153b09b4efbSRuslan Ermilovaddress family
1548fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters.
1558fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols
156e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended.
1578fae3551SRodney W. GrimesThe address or protocol families currently
1588fae3551SRodney W. Grimessupported are
159e05f2836SJulian Elischer.Dq inet ,
160cfa1ca9dSYoshinobu Inoue.Dq inet6 ,
161e05f2836SJulian Elischer.Dq atalk ,
1621876df83SRuslan Ermilov.Dq ipx ,
1630761cb29SGarrett Wollman.\" .Dq iso ,
1648fae3551SRodney W. Grimesand
1651876df83SRuslan Ermilov.Dq link .
166cbc17e71SGarrett Wollman.\" and
167cbc17e71SGarrett Wollman.\" .Dq ns .
168d29a2061SDima DorfmanThe default is
169d29a2061SDima Dorfman.Dq inet .
1701876df83SRuslan Ermilov.Dq ether
1711876df83SRuslan Ermilovand
1721876df83SRuslan Ermilov.Dq lladdr
1731876df83SRuslan Ermilovare synonyms for
1741876df83SRuslan Ermilov.Dq link .
175e333b944SPhilippe Charnier.It Ar dest_address
176e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end
177e333b944SPhilippe Charnierof a point to point link.
178e333b944SPhilippe Charnier.It Ar interface
179e333b944SPhilippe CharnierThis
1808fae3551SRodney W. Grimesparameter is a string of the form
1818fae3551SRodney W. Grimes.Dq name unit ,
1828fae3551SRodney W. Grimesfor example,
183b09b4efbSRuslan Ermilov.Dq Li ed0 .
1840dad3f0eSMax Laier.It Ar groupname
1850dad3f0eSMax LaierList the interfaces in the given group.
1868fae3551SRodney W. Grimes.El
1878fae3551SRodney W. Grimes.Pp
1888fae3551SRodney W. GrimesThe following parameters may be set with
1897c7fb079SRuslan Ermilov.Nm :
190e333b944SPhilippe Charnier.Bl -tag -width indent
191d6d1cb48SRobert Watson.It Cm add
192d0353b83SRuslan ErmilovAnother name for the
193d0353b83SRuslan Ermilov.Cm alias
194d0353b83SRuslan Ermilovparameter.
195d0353b83SRuslan ErmilovIntroduced for compatibility
196b09b4efbSRuslan Ermilovwith
197b09b4efbSRuslan Ermilov.Bsx .
1988fae3551SRodney W. Grimes.It Cm alias
1998fae3551SRodney W. GrimesEstablish an additional network address for this interface.
2008fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and
2018fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface.
20299aa831bSChris CostelloIf the address is on the same subnet as the first network address
203aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given.
204aaa34889SBrian SomersUsually
205b09b4efbSRuslan Ermilov.Li 0xffffffff
206aaa34889SBrian Somersis most appropriate.
207fac3d981SDavid E. O'Brien.It Fl alias
208fac3d981SDavid E. O'BrienRemove the network address specified.
209fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it
210fac3d981SDavid E. O'Brienwas no longer needed.
211fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect
212fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will
213fac3d981SDavid E. O'Brienallow you to respecify the host portion.
214cfa1ca9dSYoshinobu Inoue.It Cm anycast
215b09b4efbSRuslan Ermilov(Inet6 only.)
216cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address.
217cfa1ca9dSYoshinobu InoueBased on the current specification,
218cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses.
219cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing
220cfa1ca9dSYoshinobu InoueIPv6 packets.
2218fae3551SRodney W. Grimes.It Cm arp
222b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol
223b09b4efbSRuslan Ermilov.Pq Xr arp 4
224b09b4efbSRuslan Ermilovin mapping
2258fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default).
2268fae3551SRodney W. GrimesThis is currently implemented for mapping between
2278fae3551SRodney W. Grimes.Tn DARPA
2288fae3551SRodney W. GrimesInternet
229b80875bcSDima Dorfmanaddresses and
230b80875bcSDima Dorfman.Tn IEEE
231b80875bcSDima Dorfman802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses).
2328fae3551SRodney W. Grimes.It Fl arp
233b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol
234b09b4efbSRuslan Ermilov.Pq Xr arp 4 .
235deb62e28SRuslan Ermilov.It Cm staticarp
236deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
237deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses,
238deb62e28SRuslan Ermilovand will never send any requests.
239deb62e28SRuslan Ermilov.It Fl staticarp
240deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
241deb62e28SRuslan Ermilovthe host will perform normally,
242deb62e28SRuslan Ermilovsending out requests and listening for replies.
2438fae3551SRodney W. Grimes.It Cm broadcast
244b09b4efbSRuslan Ermilov(Inet only.)
2458fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the
2468fae3551SRodney W. Grimesnetwork.
2478fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's.
2488fae3551SRodney W. Grimes.It Cm debug
2498fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on
2508fae3551SRodney W. Grimesextra console error logging.
2518fae3551SRodney W. Grimes.It Fl debug
2528fae3551SRodney W. GrimesDisable driver dependent debugging code.
253ffb079beSMaxim Sobolev.It Cm promisc
254ffb079beSMaxim SobolevPut interface into permanently promiscuous mode.
255ffb079beSMaxim Sobolev.It Fl promisc
256ffb079beSMaxim SobolevDisable permanently promiscuous mode.
2578fae3551SRodney W. Grimes.It Cm delete
258d0353b83SRuslan ErmilovAnother name for the
259d0353b83SRuslan Ermilov.Fl alias
260d0353b83SRuslan Ermilovparameter.
261215940b3SXin LI.It Cm description Ar value , Cm descr Ar value
262215940b3SXin LISpecify a description of the interface.
263215940b3SXin LIThis can be used to label interfaces in situations where they may
264215940b3SXin LIotherwise be difficult to distinguish.
265215940b3SXin LI.It Cm -description , Cm -descr
266215940b3SXin LIClear the interface description.
2678fae3551SRodney W. Grimes.It Cm down
268d0353b83SRuslan ErmilovMark an interface
269d0353b83SRuslan Ermilov.Dq down .
270d0353b83SRuslan ErmilovWhen an interface is marked
271d0353b83SRuslan Ermilov.Dq down ,
272d0353b83SRuslan Ermilovthe system will not attempt to
2738fae3551SRodney W. Grimestransmit messages through that interface.
2748fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well.
2758fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface.
2760dad3f0eSMax Laier.It Cm group Ar group-name
2770dad3f0eSMax LaierAssign the interface to a
2780dad3f0eSMax Laier.Dq group .
2790dad3f0eSMax LaierAny interface can be in multiple groups.
2800dad3f0eSMax Laier.Pp
2810dad3f0eSMax LaierCloned interfaces are members of their interface family group by default.
2820dad3f0eSMax LaierFor example, a PPP interface such as
2830dad3f0eSMax Laier.Em ppp0
2840dad3f0eSMax Laieris a member of the PPP interface family group,
2850dad3f0eSMax Laier.Em ppp .
2860dad3f0eSMax Laier.\" The interface(s) the default route(s) point to are members of the
2870dad3f0eSMax Laier.\" .Em egress
2880dad3f0eSMax Laier.\" interface group.
2890dad3f0eSMax Laier.It Cm -group Ar group-name
2900dad3f0eSMax LaierRemove the interface from the given
2910dad3f0eSMax Laier.Dq group .
292331a2db8SHajimu UMEMOTO.It Cm eui64
293331a2db8SHajimu UMEMOTO(Inet6 only.)
294331a2db8SHajimu UMEMOTOFill interface index
295a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address)
296331a2db8SHajimu UMEMOTOautomatically.
29781511867STim J. Robbins.It Cm ipdst
29881511867STim J. RobbinsThis is used to specify an Internet host who is willing to receive
29981511867STim J. RobbinsIP packets encapsulating IPX packets bound for a remote network.
30081511867STim J. RobbinsAn apparent point to point link is constructed, and
30181511867STim J. Robbinsthe address specified will be taken as the IPX address and network
30281511867STim J. Robbinsof the destination.
30376b4b15fSChris Costello.It Cm maclabel Ar label
30476b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel,
30576b4b15fSChris Costelloset the MAC label to
30676b4b15fSChris Costello.Ar label .
30776b4b15fSChris Costello.\" (see
30876b4b15fSChris Costello.\" .Xr maclabel 7 ) .
309b5436146SPeter Wemm.It Cm media Ar type
310920de530SPeter WemmIf the driver supports the media selection system, set the media type
311920de530SPeter Wemmof the interface to
312b5436146SPeter Wemm.Ar type .
313b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several
314b09b4efbSRuslan Ermilovdifferent physical media connectors.
3154e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet
316b5436146SPeter Wemminterface might support the use of either
317b5436146SPeter Wemm.Tn AUI
318b09b4efbSRuslan Ermilovor twisted pair connectors.
319b09b4efbSRuslan ErmilovSetting the media type to
3204e9e907dSRuslan Ermilov.Cm 10base5/AUI
321b5436146SPeter Wemmwould change the currently active connector to the AUI port.
322b5436146SPeter WemmSetting it to
3234e9e907dSRuslan Ermilov.Cm 10baseT/UTP
324b09b4efbSRuslan Ermilovwould activate twisted pair.
325b09b4efbSRuslan ErmilovRefer to the interfaces' driver
326920de530SPeter Wemmspecific documentation or man page for a complete list of the
327920de530SPeter Wemmavailable types.
328b5436146SPeter Wemm.It Cm mediaopt Ar opts
329920de530SPeter WemmIf the driver supports the media selection system, set the specified
330920de530SPeter Wemmmedia options on the interface.
331b09b4efbSRuslan ErmilovThe
332b09b4efbSRuslan Ermilov.Ar opts
333b09b4efbSRuslan Ermilovargument
334b5436146SPeter Wemmis a comma delimited list of options to apply to the interface.
335b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete
336b5436146SPeter Wemmlist of available options.
337b5436146SPeter Wemm.It Fl mediaopt Ar opts
338920de530SPeter WemmIf the driver supports the media selection system, disable the
339920de530SPeter Wemmspecified media options on the interface.
340e519b1a5SSam Leffler.It Cm mode Ar mode
341e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified
342e519b1a5SSam Leffleroperating mode on the interface to
343e519b1a5SSam Leffler.Ar mode .
344e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes
345eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a
3464e9e907dSRuslan Ermilov.Pq Cm 11a ,
347eb9a85caSRuslan Ermilov802.11b
3484e9e907dSRuslan Ermilov.Pq Cm 11b ,
349eb9a85caSRuslan Ermilovand 802.11g
3504e9e907dSRuslan Ermilov.Pq Cm 11g
351e519b1a5SSam Leffleroperating modes.
35211139493SMarius Strobl.It Cm inst Ar minst , Cm instance Ar minst
35311139493SMarius StroblSet the media instance to
35411139493SMarius Strobl.Ar minst .
35511139493SMarius StroblThis is useful for devices which have multiple physical layer interfaces
35611139493SMarius Strobl.Pq PHYs .
35797bebf0aSBrooks Davis.It Cm name Ar name
35897bebf0aSBrooks DavisSet the interface name to
35997bebf0aSBrooks Davis.Ar name .
3608fbad60dSRuslan Ermilov.It Cm rxcsum , txcsum
3618fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
3628fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface.
3638fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently
3648fbad60dSRuslan Ermilovof each other, so setting one may also set the other.
3658fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably
3668fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers.
36721414470SRuslan Ermilov.It Fl rxcsum , txcsum
3688fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
3698fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface.
3708fbad60dSRuslan ErmilovThese settings may not always be independent of each other.
371d7097da4SAndre Oppermann.It Cm tso
372d7097da4SAndre OppermannIf the driver supports
373d7097da4SAndre Oppermann.Xr tcp 4
374d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface.
375d7097da4SAndre OppermannSome drivers may not be able to support TSO for
376d7097da4SAndre Oppermann.Xr ip 4
377d7097da4SAndre Oppermannand
378d7097da4SAndre Oppermann.Xr ip6 4
379d7097da4SAndre Oppermannpackets, so they may enable only one of them.
380d7097da4SAndre Oppermann.It Fl tso
381d7097da4SAndre OppermannIf the driver supports
382d7097da4SAndre Oppermann.Xr tcp 4
383d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface.
384d7097da4SAndre OppermannIt will always disable TSO for
385d7097da4SAndre Oppermann.Xr ip 4
386d7097da4SAndre Oppermannand
387d7097da4SAndre Oppermann.Xr ip6 4 .
388a6575bfcSAndre Oppermann.It Cm lro
389a6575bfcSAndre OppermannIf the driver supports
390a6575bfcSAndre Oppermann.Xr tcp 4
391a6575bfcSAndre Oppermannlarge receive offloading, enable LRO on the interface.
392a6575bfcSAndre Oppermann.It Fl lro
393a6575bfcSAndre OppermannIf the driver supports
394a6575bfcSAndre Oppermann.Xr tcp 4
395a6575bfcSAndre Oppermannlarge receive offloading, disable LRO on the interface.
396de0abf19SSam Leffler.It Cm wol , wol_ucast , wol_mcast , wol_magic
397de0abf19SSam LefflerEnable Wake On Lan (WOL) support, if available.
398de0abf19SSam LefflerWOL is a facility whereby a machine in a low power state may be woken
399de0abf19SSam Lefflerin response to a received packet.
400de0abf19SSam LefflerThere are three types of packets that may wake a system:
401de0abf19SSam Lefflerucast (directed solely to the machine's mac address),
402de0abf19SSam Lefflermcast (directed to a broadcast or multicast address),
403de0abf19SSam Leffleror
404de0abf19SSam Lefflermagic (unicast or multicast frames with a ``magic contents'').
405de0abf19SSam LefflerNot all devices support WOL, those that do indicate the mechanisms
406de0abf19SSam Lefflerthey support in their capabilities.
407de0abf19SSam Leffler.Cm wol
408de0abf19SSam Leffleris a synonym for enabling all available WOL mechanisms.
409de0abf19SSam LefflerTo disable WOL use
410de0abf19SSam Leffler.Fl wol .
4110f686c0fSPyun YongHyeon.It Cm vlanmtu , vlanhwtag, vlanhwfilter, vlanhwtso
412163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable
4130f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware,
4140f686c0fSPyun YongHyeonframe filtering in hardware, or TSO on VLAN,
415163653e8SYaroslav Tykhiyrespectively.
416163653e8SYaroslav TykhiyNote that this must be issued on a physical interface associated with
417163653e8SYaroslav Tykhiy.Xr vlan 4 ,
418163653e8SYaroslav Tykhiynot on a
419163653e8SYaroslav Tykhiy.Xr vlan 4
420163653e8SYaroslav Tykhiyinterface itself.
4210f686c0fSPyun YongHyeon.It Fl vlanmtu , vlanhwtag, vlanhwfilter, vlanhwtso
422163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable
4230f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware,
4240f686c0fSPyun YongHyeonframe filtering in hardware, or TSO on VLAN,
425163653e8SYaroslav Tykhiyrespectively.
4265061de23SJamie Gritton.It Cm vnet Ar jail
4275061de23SJamie GrittonMove the interface to the
4285061de23SJamie Gritton.Xr jail 8 ,
4295061de23SJamie Grittonspecified by name or JID.
4305061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear
4315061de23SJamie Grittonfrom the current environment and become visible to the jail.
4325061de23SJamie Gritton.It Fl vnet Ar jail
4335061de23SJamie GrittonReclaim the interface from the
4345061de23SJamie Gritton.Xr jail 8 ,
4355061de23SJamie Grittonspecified by name or JID.
4365061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear
4375061de23SJamie Grittonfrom the jail, and become visible to the current network environment.
4383a3b019aSRuslan Ermilov.It Cm polling
4391f8f09b0SGleb SmirnoffTurn on
4403a3b019aSRuslan Ermilov.Xr polling 4
4411f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports
4421f8f09b0SGleb Smirnoffthis mode.
4433a3b019aSRuslan Ermilov.It Fl polling
4441f8f09b0SGleb SmirnoffTurn off
4453a3b019aSRuslan Ermilov.Xr polling 4
4461f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface.
4473e61dca0SBrooks Davis.It Cm create
4483e61dca0SBrooks DavisCreate the specified network pseudo-device.
4493e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new
4503e61dca0SBrooks Davisdevice with an arbitrary unit number.
451525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is
45297bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed
45397bebf0aSBrooks Davisin the same
45497bebf0aSBrooks Davis.Nm
45597bebf0aSBrooks Davisinvocation.
4563e61dca0SBrooks Davis.It Cm destroy
4573e61dca0SBrooks DavisDestroy the specified network pseudo-device.
4583e61dca0SBrooks Davis.It Cm plumb
4593e61dca0SBrooks DavisAnother name for the
460b8a7fd3fSYaroslav Tykhiy.Cm create
4613e61dca0SBrooks Davisparameter.
462b09b4efbSRuslan ErmilovIncluded for
463b09b4efbSRuslan Ermilov.Tn Solaris
464b09b4efbSRuslan Ermilovcompatibility.
4653e61dca0SBrooks Davis.It Cm unplumb
4663e61dca0SBrooks DavisAnother name for the
467b8a7fd3fSYaroslav Tykhiy.Cm destroy
4683e61dca0SBrooks Davisparameter.
469b09b4efbSRuslan ErmilovIncluded for
470b09b4efbSRuslan Ermilov.Tn Solaris
471b09b4efbSRuslan Ermilovcompatibility.
4728fae3551SRodney W. Grimes.It Cm metric Ar n
4738fae3551SRodney W. GrimesSet the routing metric of the interface to
4748fae3551SRodney W. Grimes.Ar n ,
4758fae3551SRodney W. Grimesdefault 0.
4768fae3551SRodney W. GrimesThe routing metric is used by the routing protocol
4778fae3551SRodney W. Grimes.Pq Xr routed 8 .
4788fae3551SRodney W. GrimesHigher metrics have the effect of making a route
47909a66bdaSJens Schweikhardtless favorable; metrics are counted as additional hops
4808fae3551SRodney W. Grimesto the destination network or host.
4814db32b03SDavid Greenman.It Cm mtu Ar n
4824db32b03SDavid GreenmanSet the maximum transmission unit of the interface to
4834db32b03SDavid Greenman.Ar n ,
4844db32b03SDavid Greenmandefault is interface specific.
485b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an
4864db32b03SDavid Greenmaninterface.
487b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have
4884db32b03SDavid Greenmanrange restrictions.
4898fae3551SRodney W. Grimes.It Cm netmask Ar mask
490b09b4efbSRuslan Ermilov.\" (Inet and ISO.)
491b09b4efbSRuslan Ermilov(Inet only.)
4928fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing
4938fae3551SRodney W. Grimesnetworks into sub-networks.
4948fae3551SRodney W. GrimesThe mask includes the network part of the local address
4958fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address.
4968fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number
497b09b4efbSRuslan Ermilovwith a leading
498b09b4efbSRuslan Ermilov.Ql 0x ,
499b09b4efbSRuslan Ermilovwith a dot-notation Internet address,
5008fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table
5018fae3551SRodney W. Grimes.Xr networks 5 .
5028fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address
5038fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts,
5048fae3551SRodney W. Grimesand 0's for the host part.
5058fae3551SRodney W. GrimesThe mask should contain at least the standard network portion,
5068fae3551SRodney W. Grimesand the subnet field should be contiguous with the network
5078fae3551SRodney W. Grimesportion.
50812813062SJesper Skriver.Pp
50912813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address.
51012813062SJesper SkriverSee the
51112813062SJesper Skriver.Ar address
51212813062SJesper Skriveroption above for more information.
513cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len
514b09b4efbSRuslan Ermilov(Inet6 only.)
515cfa1ca9dSYoshinobu InoueSpecify that
516cfa1ca9dSYoshinobu Inoue.Ar len
517cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks.
518cfa1ca9dSYoshinobu InoueThe
519cfa1ca9dSYoshinobu Inoue.Ar len
520cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128.
521cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule.
522bfc03b18SStephen McKayIf the parameter is omitted, 64 is used.
5239f1741caSRuslan Ermilov.Pp
5249f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address.
5259f1741caSRuslan ErmilovSee the
5269f1741caSRuslan Ermilov.Ar address
5279f1741caSRuslan Ermilovoption above for more information.
52849830e2aSSheldon Hearn.\" see
5298fae3551SRodney W. Grimes.\" Xr eon 5 .
5300761cb29SGarrett Wollman.\" .It Cm nsellength Ar n
5310761cb29SGarrett Wollman.\" .Pf ( Tn ISO
5320761cb29SGarrett Wollman.\" only)
5330761cb29SGarrett Wollman.\" This specifies a trailing number of bytes for a received
5340761cb29SGarrett Wollman.\" .Tn NSAP
5350761cb29SGarrett Wollman.\" used for local identification, the remaining leading part of which is
5360761cb29SGarrett Wollman.\" taken to be the
5370761cb29SGarrett Wollman.\" .Tn NET
5380761cb29SGarrett Wollman.\" (Network Entity Title).
5390761cb29SGarrett Wollman.\" The default value is 1, which is conformant to US
5400761cb29SGarrett Wollman.\" .Tn GOSIP .
5410761cb29SGarrett Wollman.\" When an ISO address is set in an ifconfig command,
5420761cb29SGarrett Wollman.\" it is really the
5430761cb29SGarrett Wollman.\" .Tn NSAP
5440761cb29SGarrett Wollman.\" which is being specified.
5450761cb29SGarrett Wollman.\" For example, in
5460761cb29SGarrett Wollman.\" .Tn US GOSIP ,
5470761cb29SGarrett Wollman.\" 20 hex digits should be
5480761cb29SGarrett Wollman.\" specified in the
5490761cb29SGarrett Wollman.\" .Tn ISO NSAP
5500761cb29SGarrett Wollman.\" to be assigned to the interface.
5510761cb29SGarrett Wollman.\" There is some evidence that a number different from 1 may be useful
5520761cb29SGarrett Wollman.\" for
5530761cb29SGarrett Wollman.\" .Tn AFI
5540761cb29SGarrett Wollman.\" 37 type addresses.
555b112c02bSBen Smithurst.It Cm range Ar netrange
55691badbbeSJulian ElischerUnder appletalk, set the interface to respond to a
55723dafeacSBen Smithurst.Ar netrange
55823dafeacSBen Smithurstof the form
55923dafeacSBen Smithurst.Ar startnet Ns - Ns Ar endnet .
560ef8f7ac9SSheldon HearnAppletalk uses this scheme instead of
561e333b944SPhilippe Charniernetmasks though
562f050f700SMike Pritchard.Fx
563e333b944SPhilippe Charnierimplements it internally as a set of netmasks.
564d6d1cb48SRobert Watson.It Cm remove
565d0353b83SRuslan ErmilovAnother name for the
566d0353b83SRuslan Ermilov.Fl alias
567d0353b83SRuslan Ermilovparameter.
568d0353b83SRuslan ErmilovIntroduced for compatibility
569b09b4efbSRuslan Ermilovwith
570b09b4efbSRuslan Ermilov.Bsx .
57191badbbeSJulian Elischer.It Cm phase
57291badbbeSJulian ElischerThe argument following this specifies the version (phase) of the
573ef8f7ac9SSheldon HearnAppletalk network attached to the interface.
574ef8f7ac9SSheldon HearnValues of 1 or 2 are permitted.
575b09b4efbSRuslan Ermilov.Sm off
576b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2
577b09b4efbSRuslan Ermilov.Sm on
5788fae3551SRodney W. GrimesEnable special processing of the link level of the interface.
5798fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however,
580ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation.
581ef8f7ac9SSheldon HearnAn example
582b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type
583b09b4efbSRuslan Ermilovfor some Ethernet cards.
584b09b4efbSRuslan ErmilovRefer to the man page for the specific driver
585b5436146SPeter Wemmfor more information.
586b09b4efbSRuslan Ermilov.Sm off
587b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2
588b09b4efbSRuslan Ermilov.Sm on
5898fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface.
590afbe3a0fSPoul-Henning Kamp.It Cm monitor
591afbe3a0fSPoul-Henning KampPut the interface in monitor mode.
5923706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after
593afbe3a0fSPoul-Henning Kamp.Xr bpf 4
594afbe3a0fSPoul-Henning Kampprocessing.
595afbe3a0fSPoul-Henning Kamp.It Fl monitor
596afbe3a0fSPoul-Henning KampTake the interface out of monitor mode.
5978fae3551SRodney W. Grimes.It Cm up
598e333b944SPhilippe CharnierMark an interface
599e333b944SPhilippe Charnier.Dq up .
600e333b944SPhilippe CharnierThis may be used to enable an interface after an
601b09b4efbSRuslan Ermilov.Dq Nm Cm down .
6028fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface.
6038fae3551SRodney W. GrimesIf the interface was reset when previously marked down,
6048fae3551SRodney W. Grimesthe hardware will be re-initialized.
6055faf8dcbSSam Leffler.El
6065faf8dcbSSam Leffler.Pp
6072e77c5abSHiroki SatoThe following parameters are for ICMPv6 Neightbor Discovery Protocol.
6082e77c5abSHiroki SatoNote that the address family keyword
6092e77c5abSHiroki Sato.Dq Li inet6
6102e77c5abSHiroki Satois needed for them:
611a283298cSHiroki Sato.Bl -tag -width indent
612a283298cSHiroki Sato.It Cm accept_rtadv
613a283298cSHiroki SatoSet a flag to enable accepting ICMPv6 Router Advertisement messages.
614a283298cSHiroki Sato.It Cm -accept_rtadv
615a283298cSHiroki SatoClear a flag
616a283298cSHiroki Sato.Cm accept_rtadv .
617a283298cSHiroki Sato.It Cm auto_linklocal
618a283298cSHiroki SatoSet a flag to perform automatic link-local address configuration when
619a283298cSHiroki Satothe interface becomes avalilable.
620a283298cSHiroki Sato.It Cm -auto_linklocal
621a283298cSHiroki SatoClear a flag
622a283298cSHiroki Sato.Cm auto_linklocal .
623a283298cSHiroki Sato.It Cm defaultif
624a283298cSHiroki SatoSet the specified interface as the default route when there is no
625a283298cSHiroki Satodefault router.
626a283298cSHiroki Sato.It Cm -defaultif
627a283298cSHiroki SatoClear a flag
628a283298cSHiroki Sato.Cm defaultif .
629a283298cSHiroki Sato.It Cm ifdisabled
630a283298cSHiroki SatoSet a flag to disable all of IPv6 network communications on the
6312e77c5abSHiroki Satospecified interface.  Note that if there are already configured IPv6
6322e77c5abSHiroki Satoaddresses on that interface, all of them are marked as
6332e77c5abSHiroki Sato.Dq tentative
6342e77c5abSHiroki Satoand DAD will be performed when this flag is cleared.
635a283298cSHiroki Sato.It Cm -ifdisabled
636a283298cSHiroki SatoClear a flag
637a283298cSHiroki Sato.Cm ifdisabled .
638a283298cSHiroki SatoWhen this flag is cleared and
639a283298cSHiroki Sato.Cm auto_linklocal
640a283298cSHiroki Satoflag is enabled, automatic configuration of a link-local address is
641a283298cSHiroki Satoperformed.
642a283298cSHiroki Sato.It Cm nud
643a283298cSHiroki SatoSet a flag to enable Neighbor Unreachability Detection.
644a283298cSHiroki Sato.It Cm -nud
645a283298cSHiroki SatoClear a flag
646a283298cSHiroki Sato.Cm nud .
647a283298cSHiroki Sato.It Cm prefer_source
648a283298cSHiroki SatoSet a flag to prefer addesses on the interface as candidates of the
649a283298cSHiroki Satosource address for outgoing packets.
650a283298cSHiroki Sato.It Cm -prefer_source
651a283298cSHiroki SatoClear a flag
652a283298cSHiroki Sato.Cm prefer_source .
653a283298cSHiroki Sato.El
654a283298cSHiroki Sato.Pp
655b032f27cSSam LefflerThe following parameters are specific to cloning
656b032f27cSSam LefflerIEEE 802.11 wireless interfaces with the
657b032f27cSSam Leffler.Cm create
658b032f27cSSam Lefflerrequest:
6595faf8dcbSSam Leffler.Bl -tag -width indent
660b032f27cSSam Leffler.It Cm wlandev Ar device
661b032f27cSSam LefflerUse
662b032f27cSSam Leffler.Ar device
663b032f27cSSam Leffleras the parent for the cloned device.
664b032f27cSSam Leffler.It Cm wlanmode Ar mode
665b032f27cSSam LefflerSpecify the operating mode for this cloned device.
666b032f27cSSam Leffler.Ar mode
667b032f27cSSam Leffleris one of
668b032f27cSSam Leffler.Cm sta ,
669b032f27cSSam Leffler.Cm ahdemo
670b032f27cSSam Leffler(or
671b032f27cSSam Leffler.Cm adhoc-demo ),
672b032f27cSSam Leffler.Cm ibss ,
673b032f27cSSam Leffler(or
674b032f27cSSam Leffler.Cm adhoc ),
675b032f27cSSam Leffler.Cm ap ,
676b032f27cSSam Leffler(or
677b032f27cSSam Leffler.Cm hostap ),
678b032f27cSSam Leffler.Cm wds ,
67910ad9a77SSam Leffler.Cm tdma ,
68059aa14a9SRui Paulo.Cm mesh ,
681b032f27cSSam Lefflerand
682b032f27cSSam Leffler.Cm monitor .
683b032f27cSSam LefflerThe operating mode of a cloned interface cannot be changed.
68410ad9a77SSam LefflerThe
68510ad9a77SSam Leffler.Cm tdma
68610ad9a77SSam Lefflermode is actually implemented as an
68710ad9a77SSam Leffler.Cm adhoc-demo
68810ad9a77SSam Lefflerinterface with special properties.
689b032f27cSSam Leffler.It Cm wlanbssid Ar bssid
690b032f27cSSam LefflerThe 802.11 mac address to use for the bssid.
691b032f27cSSam LefflerThis must be specified at create time for a legacy
692b032f27cSSam Leffler.Cm wds
693b032f27cSSam Lefflerdevice.
694b032f27cSSam Leffler.It Cm wlanaddr Ar address
695b032f27cSSam LefflerThe local mac address.
696b032f27cSSam LefflerIf this is not specified then a mac address will automatically be assigned
697b032f27cSSam Lefflerto the cloned device.
698b032f27cSSam LefflerTypically this address is the same as the address of the parent device
699b032f27cSSam Lefflerbut if the
700b032f27cSSam Leffler.Cm bssid
701b032f27cSSam Lefflerparameter is specified then the driver will craft a unique address for
702b032f27cSSam Lefflerthe device (if supported).
703b032f27cSSam Leffler.It Cm wdslegacy
704b032f27cSSam LefflerMark a
705b032f27cSSam Leffler.Cm wds
706b032f27cSSam Lefflerdevice as operating in ``legacy mode''.
707b032f27cSSam LefflerLegacy
708b032f27cSSam Leffler.Cm wds
709b032f27cSSam Lefflerdevices have a fixed peer relationship and do not, for example, roam
710b032f27cSSam Lefflerif their peer stops communicating.
711b032f27cSSam LefflerFor completeness a Dynamic WDS (DWDS) interface may marked as
712b032f27cSSam Leffler.Fl wdslegacy .
713b032f27cSSam Leffler.It Cm bssid
714b032f27cSSam LefflerRequest a unique local mac address for the cloned device.
715b032f27cSSam LefflerThis is only possible if the device supports multiple mac addresses.
716b032f27cSSam LefflerTo force use of the parent's mac address use
717b032f27cSSam Leffler.Fl bssid .
718b032f27cSSam Leffler.It Cm beacons
719b032f27cSSam LefflerMark the cloned interface as depending on hardware support to
720b032f27cSSam Lefflertrack received beacons.
721b032f27cSSam LefflerTo have beacons tracked in software use
722b032f27cSSam Leffler.Fl beacons .
723b032f27cSSam LefflerFor
724b032f27cSSam Leffler.Cm hostap
725b032f27cSSam Lefflermode
726b032f27cSSam Leffler.Fl beacons
727b032f27cSSam Lefflercan also be used to indicate no beacons should
728b032f27cSSam Lefflerbe transmitted; this can be useful when creating a WDS configuration but
729b032f27cSSam Leffler.Cm wds
730b032f27cSSam Lefflerinterfaces can only be created as companions to an access point.
731b032f27cSSam Leffler.El
732b032f27cSSam Leffler.Pp
733b032f27cSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces
734b032f27cSSam Lefflercloned with a
735b032f27cSSam Leffler.Cm create
736b032f27cSSam Leffleroperation:
737b032f27cSSam Leffler.Bl -tag -width indent
738b032f27cSSam Leffler.It Cm ampdu
739b032f27cSSam LefflerEnable sending and receiving AMPDU frames when using 802.11n (default).
740b032f27cSSam LefflerThe 802.11n specification states a compliant station must be capable
741b032f27cSSam Lefflerof receiving AMPDU frames but transmision is optional.
742b032f27cSSam LefflerUse
743b032f27cSSam Leffler.Fl ampdu
744b032f27cSSam Lefflerto disable all use of AMPDU with 802.11n.
745b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use
746b032f27cSSam Leffler.Cm ampdutx
747b032f27cSSam Lefflerand
748b032f27cSSam Leffler.Cm ampdurx
749b032f27cSSam Lefflerto control use of AMPDU in one direction.
750b032f27cSSam Leffler.It Cm ampdudensity Ar density
751b032f27cSSam LefflerSet the AMPDU density parameter used when operating with 802.11n.
752b032f27cSSam LefflerThis parameter controls the inter-packet gap for AMPDU frames.
753b032f27cSSam LefflerThe sending device normally controls this setting but a receiving station
754b032f27cSSam Lefflermay request wider gaps.
755b032f27cSSam LefflerLegal values for
756b032f27cSSam Leffler.Ar density
757b032f27cSSam Lefflerare 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds).
758b032f27cSSam LefflerA value of
759b032f27cSSam Leffler.Cm -
760b032f27cSSam Leffleris treated the same as 0.
761b032f27cSSam Leffler.It Cm ampdulimit Ar limit
762b032f27cSSam LefflerSet the limit on packet size for receiving AMPDU frames when operating
763b032f27cSSam Lefflerwith 802.11n.
764b032f27cSSam LefflerLegal values for
765b032f27cSSam Leffler.Ar limit
766b032f27cSSam Lefflerare 8192, 16384, 32768, and 65536 but one can also specify
767b032f27cSSam Lefflerjust the unique prefix: 8, 16, 32, 64.
768b032f27cSSam LefflerNote the sender may limit the size of AMPDU frames to be less
769b032f27cSSam Lefflerthan the maximum specified by the receiving station.
770b032f27cSSam Leffler.It Cm amsdu
771b032f27cSSam LefflerEnable sending and receiving AMSDU frames when using 802.11n.
772b032f27cSSam LefflerBy default AMSDU is received but not transmitted.
773b032f27cSSam LefflerUse
774b032f27cSSam Leffler.Fl amsdu
775b032f27cSSam Lefflerto disable all use of AMSDU with 802.11n.
776b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use
777b032f27cSSam Leffler.Cm amsdutx
778b032f27cSSam Lefflerand
779b032f27cSSam Leffler.Cm amsdurx
780b032f27cSSam Lefflerto control use of AMSDU in one direction.
781b032f27cSSam Leffler.It Cm amsdulimit Ar limit
782b032f27cSSam LefflerSet the limit on packet size for sending and receiving AMSDU frames
783b032f27cSSam Lefflerwhen operating with 802.11n.
784b032f27cSSam LefflerLegal values for
785b032f27cSSam Leffler.Ar limit
786b032f27cSSam Lefflerare 7935 and 3839 (bytes).
787b032f27cSSam LefflerNote the sender may limit the size of AMSDU frames to be less
788b032f27cSSam Lefflerthan the maximum specified by the receiving station.
789b032f27cSSam LefflerNote also that devices are not required to support the 7935 limit,
790b032f27cSSam Leffleronly 3839 is required by the specification and the larger value
791b032f27cSSam Lefflermay require more memory to be dedicated to support functionality
792b032f27cSSam Lefflerthat is rarely used.
7935faf8dcbSSam Leffler.It Cm apbridge
79421414470SRuslan ErmilovWhen operating as an access point, pass packets between
7955faf8dcbSSam Lefflerwireless clients directly (default).
7965faf8dcbSSam LefflerTo instead let them pass up through the
79721414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use
79821414470SRuslan Ermilov.Fl apbridge .
7995faf8dcbSSam LefflerDisabling the internal bridging
8005faf8dcbSSam Leffleris useful when traffic is to be processed with
8015faf8dcbSSam Lefflerpacket filtering.
802419d8080SPoul-Henning Kamp.It Cm authmode Ar mode
8035faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode.
804b032f27cSSam LefflerNot all adapters support all modes.
805b09b4efbSRuslan ErmilovThe set of
806419d8080SPoul-Henning Kampvalid modes is
8074e9e907dSRuslan Ermilov.Cm none , open , shared
80821414470SRuslan Ermilov(shared key),
8094e9e907dSRuslan Ermilov.Cm 8021x
81021414470SRuslan Ermilov(IEEE 802.1x),
811aeffcba3SSam Lefflerand
8124e9e907dSRuslan Ermilov.Cm wpa
81321414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i).
8145faf8dcbSSam LefflerThe
8154e9e907dSRuslan Ermilov.Cm 8021x
816419d8080SPoul-Henning Kampand
8174e9e907dSRuslan Ermilov.Cm wpa
818aeffcba3SSam Lefflermodes are only useful when using an authentication service
8195faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when
8205faf8dcbSSam Leffleroperating as an access point).
821419d8080SPoul-Henning KampModes are case insensitive.
822fdef6accSSam Leffler.It Cm bgscan
823fdef6accSSam LefflerEnable background scanning when operating as a station.
824fdef6accSSam LefflerBackground scanning is a technique whereby a station associated to
825fdef6accSSam Leffleran access point will temporarily leave the channel to scan for
826fdef6accSSam Lefflerneighboring stations.
827fdef6accSSam LefflerThis allows a station to maintain a cache of nearby access points
828d592cd38SSam Lefflerso that roaming between access points can be done without
829fdef6accSSam Lefflera lengthy scan operation.
830fdef6accSSam LefflerBackground scanning is done only when a station is not busy and
831fdef6accSSam Lefflerany outbound traffic will cancel a scan operation.
832fdef6accSSam LefflerBackground scanning should never cause packets to be lost though
833fdef6accSSam Lefflerthere may be some small latency if outbound traffic interrupts a
834fdef6accSSam Lefflerscan operation.
835fdef6accSSam LefflerBy default background scanning is enabled if the device is capable.
836fdef6accSSam LefflerTo disable background scanning, use
837fdef6accSSam Leffler.Fl bgscan .
838fdef6accSSam LefflerBackground scanning is controlled by the
839fdef6accSSam Leffler.Cm bgscanidle
840fdef6accSSam Lefflerand
841fdef6accSSam Leffler.Cm bgscanintvl
842fdef6accSSam Lefflerparameters.
843fdef6accSSam LefflerBackground scanning must be enabled for roaming; this is an artifact
844fdef6accSSam Lefflerof the current implementation and may not be required in the future.
845fdef6accSSam Leffler.It Cm bgscanidle Ar idletime
846fdef6accSSam LefflerSet the minimum time a station must be idle (not transmitting or
847fdef6accSSam Lefflerreceiving frames) before a background scan is initiated.
848fdef6accSSam LefflerThe
849fdef6accSSam Leffler.Ar idletime
850fdef6accSSam Lefflerparameter is specified in milliseconds.
851fdef6accSSam LefflerBy default a station must be idle at least 250 milliseconds before
852fdef6accSSam Lefflera background scan is initiated.
853fdef6accSSam LefflerThe idle time may not be set to less than 100 milliseconds.
854fdef6accSSam Leffler.It Cm bgscanintvl Ar interval
855fdef6accSSam LefflerSet the interval at which background scanning is attempted.
856fdef6accSSam LefflerThe
857fdef6accSSam Leffler.Ar interval
858fdef6accSSam Lefflerparameter is specified in seconds.
859d592cd38SSam LefflerBy default a background scan is considered every 300 seconds (5 minutes).
860fdef6accSSam LefflerThe
861fdef6accSSam Leffler.Ar interval
862fdef6accSSam Lefflermay not be set to less than 15 seconds.
863aeffcba3SSam Leffler.It Cm bintval Ar interval
864aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in
865aeffcba3SSam Lefflerad-hoc or ap mode.
866aeffcba3SSam LefflerThe
867aeffcba3SSam Leffler.Ar interval
8688f3591a5SSam Lefflerparameter is specified in TU's (1024 usecs).
869aeffcba3SSam LefflerBy default beacon frames are transmitted every 100 TU's.
870d7ccef33SSam Leffler.It Cm bmissthreshold Ar count
871d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station
8728266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point).
873d7ccef33SSam LefflerThe
874d7ccef33SSam Leffler.Ar count
8758266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the
8768266d476SRuslan Ermilovupper bound may be reduced according to device capabilities.
877d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but
878d7ccef33SSam Lefflerthis may be overridden by the device driver.
879d7ccef33SSam LefflerAnother name for the
880d7ccef33SSam Leffler.Cm bmissthreshold
881d7ccef33SSam Lefflerparameter is
882d7ccef33SSam Leffler.Cm bmiss .
8835faf8dcbSSam Leffler.It Cm bssid Ar address
8845faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating
8855faf8dcbSSam Leffleras a station in a BSS network.
8865faf8dcbSSam LefflerThis overrides any automatic selection done by the system.
88721414470SRuslan ErmilovTo disable a previously selected access point, supply
8884e9e907dSRuslan Ermilov.Cm any , none ,
8895faf8dcbSSam Leffleror
8904e9e907dSRuslan Ermilov.Cm -
8915faf8dcbSSam Lefflerfor the address.
89209a66bdaSJens SchweikhardtThis option is useful when more than one access point uses the same SSID.
8935faf8dcbSSam LefflerAnother name for the
8945faf8dcbSSam Leffler.Cm bssid
8955faf8dcbSSam Lefflerparameter is
8965faf8dcbSSam Leffler.Cm ap .
89729d58c71SSam Leffler.It Cm burst
89829d58c71SSam LefflerEnable packet bursting.
89929d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless
90029d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe
90129d58c71SSam Lefflerspacing is reduced.
90229d58c71SSam LefflerThis technique can significantly increase throughput by reducing
90329d58c71SSam Lefflertransmission overhead.
90429d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification
90529d58c71SSam Lefflerand some devices that do not support QoS may still be capable.
90629d58c71SSam LefflerBy default packet bursting is enabled if a device is capable
90729d58c71SSam Lefflerof doing it.
90829d58c71SSam LefflerTo disable packet bursting, use
90929d58c71SSam Leffler.Fl burst .
9105faf8dcbSSam Leffler.It Cm chanlist Ar channels
9115faf8dcbSSam LefflerSet the desired channels to use when scanning for access
9125faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied
9135faf8dcbSSam Lefflerchannels when operating as an access point.
9145faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with
91521414470SRuslan Ermiloveach element in the list representing either a single channel number or a range
9165faf8dcbSSam Lefflerof the form
9175faf8dcbSSam Leffler.Dq Li a-b .
9185faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible
9195faf8dcbSSam Leffleraccording to the operating characteristics of the device.
9205faf8dcbSSam Leffler.It Cm channel Ar number
9215faf8dcbSSam LefflerSet a single desired channel.
9225faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available
9235faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for.
9245faf8dcbSSam LefflerSetting
9255faf8dcbSSam Lefflerthe channel to
9264a5184dcSSam Leffler.Li any ,
9275faf8dcbSSam Leffleror
9284e9e907dSRuslan Ermilov.Cm -
9294a5184dcSSam Lefflerwill clear any desired channel and, if the device is marked up,
9304a5184dcSSam Lefflerforce a scan for a channel to operate on.
9315faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified
9325faf8dcbSSam Lefflerinstead of the channel number.
9338f3591a5SSam Leffler.Pp
9348f3591a5SSam LefflerWhen there are several ways to use a channel the channel
9358f3591a5SSam Lefflernumber/frequency may be appended with attributes to clarify.
9368f3591a5SSam LefflerFor example, if a device is capable of operating on channel 6
9378f3591a5SSam Lefflerwith 802.11n and 802.11g then one can specify that g-only use
9388f3591a5SSam Lefflershould be used by specifying ``6:g''.
9398f3591a5SSam LefflerSimilarly the channel width can be specified by appending it
9408f3591a5SSam Lefflerwith ``/''; e.g. ``6/40'' specifies a 40MHz wide channel,
9418f3591a5SSam LefflerThese attributes can be combined as in: ``6:ht/40''.
9428f3591a5SSam LefflerThe full set of flags specified following a `:'' are:
9438f3591a5SSam Leffler.Cm a
9448f3591a5SSam Leffler(802.11a),
9458f3591a5SSam Leffler.Cm b
9468f3591a5SSam Leffler(802.11b),
9478f3591a5SSam Leffler.Cm d
9488f3591a5SSam Leffler(Atheros Dynamic Turbo mode),
9498f3591a5SSam Leffler.Cm g
9508f3591a5SSam Leffler(802.11g),
9518f3591a5SSam Leffler.Cm h
9528f3591a5SSam Leffleror
9538f3591a5SSam Leffler.Cm n
9548f3591a5SSam Leffler(802.11n aka HT),
9558f3591a5SSam Leffler.Cm s
9568f3591a5SSam Leffler(Atheros Static Turbo mode),
9578f3591a5SSam Lefflerand
9588f3591a5SSam Leffler.Cm t
959fdef6accSSam Leffler(Atheros Dynamic Turbo mode, or appended to ``st'' and ``dt'').
9608f3591a5SSam LefflerThe full set of channel widths following a '/' are:
9618f3591a5SSam Leffler.Cm 5
9628f3591a5SSam Leffler(5MHz aka quarter-rate channel),
9638f3591a5SSam Leffler.Cm 10
9648f3591a5SSam Leffler(10MHz aka half-rate channel),
9658f3591a5SSam Leffler.Cm 20
9668f3591a5SSam Leffler(20MHz mostly for use in specifying ht20),
9678f3591a5SSam Lefflerand
9688f3591a5SSam Leffler.Cm 40
9698f3591a5SSam Leffler(40MHz mostly for use in specifying ht40),
9708f3591a5SSam LefflerIn addition,
9718f3591a5SSam Lefflera 40MHz HT channel specification may include the location
9728f3591a5SSam Lefflerof the extension channel by appending ``+'' or ``-'' for above and below,
9738f3591a5SSam Lefflerrespectively; e.g. ``2437:ht/40+'' specifies 40MHz wide HT operation
9748f3591a5SSam Lefflerwith the center channel at frequency 2437 and the extension channel above.
975b032f27cSSam Leffler.It Cm country Ar name
976b032f27cSSam LefflerSet the country code to use in calculating the regulatory constraints
977b032f27cSSam Lefflerfor operation.
978b032f27cSSam LefflerIn particular the set of available channels, how the wireless device
979b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that
980b032f27cSSam Lefflercan be used on a channel are defined by this setting.
981b032f27cSSam LefflerCountry/Region codes are specified as a 2-character abbreviation
982b032f27cSSam Lefflerdefined by ISO 3166 or using a longer, but possibly ambiguous, spelling;
983b032f27cSSam Lefflere.g. "ES" and "Spain".
984b032f27cSSam LefflerThe set of country codes are taken from /etc/regdomain.xml and can also
985b032f27cSSam Lefflerbe viewed with the ``list countries'' request.
986b032f27cSSam LefflerNote that not all devices support changing the country code from a default
987b032f27cSSam Lefflersetting; typically stored in EEPROM.
988b032f27cSSam LefflerSee also
989b032f27cSSam Leffler.Cm regdomain ,
990b032f27cSSam Leffler.Cm indoor ,
991b032f27cSSam Leffler.Cm outdoor ,
992b032f27cSSam Lefflerand
993b032f27cSSam Leffler.Cm anywhere .
994b032f27cSSam Leffler.It Cm dfs
995b032f27cSSam LefflerEnable Dynamic Frequency Selection (DFS) as specified in 802.11h.
996b032f27cSSam LefflerDFS embodies several facilities including detection of overlapping
997b032f27cSSam Lefflerradar signals, dynamic transmit power control, and channel selection
998b032f27cSSam Leffleraccording to a least-congested criteria.
999b032f27cSSam LefflerDFS support is mandatory for some 5Ghz frequencies in certain
1000b032f27cSSam Lefflerlocales (e.g. ETSI).
1001b032f27cSSam LefflerBy default DFS is enabled according to the regulatory definitions
1002b032f27cSSam Lefflerspecified in /etc/regdomain.xml and the curent country code, regdomain,
1003b032f27cSSam Lefflerand channel.
1004b032f27cSSam LefflerNote the underlying device (and driver) must support radar detection
1005b032f27cSSam Lefflerfor full DFS support to work.
1006b032f27cSSam LefflerTo be fully compliant with the local regulatory agency frequencies that
1007b032f27cSSam Lefflerrequire DFS should not be used unless it is fully supported.
1008b032f27cSSam LefflerUse
1009b032f27cSSam Leffler.Fl dfs
1010b032f27cSSam Lefflerto disable this functionality for testing.
1011b032f27cSSam Leffler.It Cm dotd
1012b032f27cSSam LefflerEnable support for the 802.11d specification (default).
1013b032f27cSSam LefflerWhen this support is enabled in station mode, beacon frames that advertise
1014b032f27cSSam Lefflera country code different than the currently configured country code will
1015b032f27cSSam Lefflercause an event to be dispatched to user applications.
1016b032f27cSSam LefflerThis event can be used by the station to adopt that country code and
1017b032f27cSSam Leffleroperate according to the associated regulatory constraints.
1018b032f27cSSam LefflerWhen operating as an access point with 802.11d enabled the beacon and
1019b032f27cSSam Lefflerprobe response frames transmitted will advertise the current regulatory
1020b032f27cSSam Lefflerdomain settings.
1021b032f27cSSam LefflerTo disable 802.11d use
1022b032f27cSSam Leffler.Fl dotd .
1023fdef6accSSam Leffler.It Cm doth
1024b032f27cSSam LefflerEnable 802.11h support including spectrum management.
1025b032f27cSSam LefflerWhen 802.11h is enabled beacon and probe response frames will have
1026b032f27cSSam Lefflerthe SpectrumMgt bit set in the capabilities field and
1027b032f27cSSam Lefflercountry and power constraint information elements will be present.
1028b032f27cSSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA)
1029b032f27cSSam Lefflerwhich are a mechanism to coordinate channel changes by an access point.
1030fdef6accSSam LefflerBy default 802.11h is enabled if the device is capable.
1031fdef6accSSam LefflerTo disable 802.11h use
1032fdef6accSSam Leffler.Fl doth .
10334e0a8f0dSSam Leffler.It Cm deftxkey Ar index
10344e0a8f0dSSam LefflerSet the default key to use for transmission.
10354e0a8f0dSSam LefflerTypically this is only set when using WEP encryption.
10365ce09a9eSSam LefflerNote that you must set a default transmit key
10375ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic.
10384e0a8f0dSSam LefflerThe
10394e0a8f0dSSam Leffler.Cm weptxkey
10404e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility.
1041aeffcba3SSam Leffler.It Cm dtimperiod Ar period
1042aeffcba3SSam LefflerSet the
1043aeffcba3SSam LefflerDTIM
1044aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when
1045aeffcba3SSam Leffleroperating in ap mode.
1046aeffcba3SSam LefflerThe
1047aeffcba3SSam Leffler.Ar period
1048aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM
1049aeffcba3SSam Lefflerand must be in the range 1 to 15.
10504e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon).
1051fdef6accSSam Leffler.It Cm dturbo
1052fdef6accSSam LefflerEnable the use of Atheros Dynamic Turbo mode when communicating with
1053fdef6accSSam Leffleranother Dynamic Turbo-capable station.
1054fdef6accSSam LefflerDynamic Turbo mode is an Atheros-specific mechanism by which
1055fdef6accSSam Lefflerstations switch between normal 802.11 operation and a ``boosted''
1056fdef6accSSam Lefflermode in which a 40MHz wide channel is used for communication.
1057fdef6accSSam LefflerStations using Dynamic Turbo mode operate boosted only when the
1058fdef6accSSam Lefflerchannel is free of non-dturbo stations; when a non-dturbo station
1059fdef6accSSam Leffleris identified on the channel all stations will automatically drop
1060fdef6accSSam Lefflerback to normal operation.
1061fdef6accSSam LefflerBy default, Dynamic Turbo mode is not enabled, even if the device is capable.
1062fdef6accSSam LefflerNote that turbo mode (dynamic or static) is only allowed on some
1063fdef6accSSam Lefflerchannels depending on the regulatory constraints; use the
1064fdef6accSSam Leffler.Cm list chan
1065fdef6accSSam Lefflercommand to identify the channels where turbo mode may be used.
1066fdef6accSSam LefflerTo disable Dynamic Turbo mode use
1067fdef6accSSam Leffler.Fl dturbo .
1068b032f27cSSam Leffler.It Cm dwds
1069b032f27cSSam LefflerEnable Dynamic WDS (DWDS) support.
1070b032f27cSSam LefflerDWDS is a facility by which 4-address traffic can be carried between
1071b032f27cSSam Lefflerstations operating in infrastructure mode.
1072b032f27cSSam LefflerA station first associates to an access point and authenticates using
1073b032f27cSSam Lefflernormal procedures (e.g. WPA).
1074b032f27cSSam LefflerThen 4-address frames are passed to carry traffic for stations
1075b032f27cSSam Leffleroperating on either side of the wireless link.
1076b032f27cSSam LefflerDWDS extends the normal WDS mechanism by leveraging existing security
1077b032f27cSSam Lefflerprotocols and eliminating static binding.
1078b032f27cSSam Leffler.Pp
1079b032f27cSSam LefflerWhen DWDS is enabled on an access point 4-address frames received from
1080b032f27cSSam Leffleran authorized station will generate a ``DWDS discovery'' event to user
1081b032f27cSSam Lefflerapplications.
1082b032f27cSSam LefflerThis event should be used to create a WDS interface that is bound
1083b032f27cSSam Lefflerto the remote station (and usually plumbed into a bridge).
1084b032f27cSSam LefflerOnce the WDS interface is up and running 4-address traffic then logically
1085b032f27cSSam Lefflerflows through that interface.
1086b032f27cSSam Leffler.Pp
1087b032f27cSSam LefflerWhen DWDS is enabled on a station, traffic with a destination address
1088b032f27cSSam Lefflerdifferent from the peer station are encapsulated in a 4-address frame
1089b032f27cSSam Lefflerand transmitted to the peer.
1090b032f27cSSam LefflerAll 4-address traffic uses the security information of the stations
1091b032f27cSSam Leffler(e.g. cryptographic keys).
1092b032f27cSSam LefflerA station is associated using 802.11n facilities may transport
1093b032f27cSSam Leffler4-address traffic using these same mechanisms; this depends on available
1094b032f27cSSam Lefflerresources and capabilities of the device.
1095b032f27cSSam LefflerThe DWDS implementation guards against layer 2 routing loops of
1096b032f27cSSam Lefflermulticast traffic.
1097fdef6accSSam Leffler.It Cm ff
1098d592cd38SSam LefflerEnable the use of Atheros Fast Frames when communicating with
1099fdef6accSSam Leffleranother Fast Frames-capable station.
1100fdef6accSSam LefflerFast Frames are an encapsulation technique by which two 802.3
1101fdef6accSSam Lefflerframes are transmitted in a single 802.11 frame.
1102fdef6accSSam LefflerThis can noticeably improve throughput but requires that the
1103fdef6accSSam Lefflerreceiving station understand how to decapsulate the frame.
1104fdef6accSSam LefflerFast frame use is negotiated using the Atheros 802.11 vendor-specific
1105fdef6accSSam Lefflerprotocol extension so enabling use is safe when communicating with
1106fdef6accSSam Lefflernon-Atheros devices.
1107fdef6accSSam LefflerBy default, use of fast frames is enabled if the device is capable.
1108fdef6accSSam LefflerTo explicitly disable fast frames, use
1109fdef6accSSam Leffler.Fl ff .
1110b032f27cSSam Leffler.It Cm fragthreshold Ar length
1111b032f27cSSam LefflerSet the threshold for which transmitted frames are broken into fragments.
1112b032f27cSSam LefflerThe
1113b032f27cSSam Leffler.Ar length
1114b032f27cSSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346.
1115b032f27cSSam LefflerSetting
1116b032f27cSSam Leffler.Ar length
1117b032f27cSSam Lefflerto
1118b032f27cSSam Leffler.Li 2346 ,
1119b032f27cSSam Leffler.Cm any ,
1120b032f27cSSam Leffleror
1121b032f27cSSam Leffler.Cm -
1122b032f27cSSam Lefflerdisables transmit fragmentation.
1123b032f27cSSam LefflerNot all adapters honor the fragmentation threshold.
1124b032f27cSSam Leffler.It Cm hidessid
1125b032f27cSSam LefflerWhen operating as an access point, do not broadcast the SSID
1126b032f27cSSam Lefflerin beacon frames or respond to probe request frames unless
1127b032f27cSSam Lefflerthey are directed to the ap (i.e., they include the ap's SSID).
1128b032f27cSSam LefflerBy default, the SSID is included in beacon frames and
1129b032f27cSSam Lefflerundirected probe request frames are answered.
1130b032f27cSSam LefflerTo re-enable the broadcast of the SSID etc., use
1131b032f27cSSam Leffler.Fl hidessid .
1132b032f27cSSam Leffler.It Cm ht
1133b032f27cSSam LefflerEnable use of High Throughput (HT) when using 802.11n (default).
1134b032f27cSSam LefflerThe 802.11n specification includes mechanisms for operation
1135b032f27cSSam Leffleron 20MHz and 40MHz wide channels using different signalling mechanisms
1136b032f27cSSam Lefflerthan specified in 802.11b, 802.11g, and 802.11a.
1137b032f27cSSam LefflerStations negotiate use of these facilities, termed HT20 and HT40,
1138b032f27cSSam Lefflerwhen they associate.
1139b032f27cSSam LefflerTo disable all use of 802.11n use
1140b032f27cSSam Leffler.Fl ht .
1141b032f27cSSam LefflerTo disable use of HT20 (e.g. to force only HT40 use) use
1142b032f27cSSam Leffler.Fl ht20 .
1143b032f27cSSam LefflerTo disable use of HT40 use
1144b032f27cSSam Leffler.Fl ht40 .
1145b032f27cSSam Leffler.Pp
1146b032f27cSSam LefflerHT configuration is used to ``auto promote'' operation
1147b032f27cSSam Lefflerwhen several choices are available.
1148b032f27cSSam LefflerFor example, if a station associates to an 11n-capable access point
1149b032f27cSSam Lefflerit controls whether the station uses legacy operation, HT20, or HT40.
1150b032f27cSSam LefflerWhen an 11n-capable device is setup as an access point and
1151b032f27cSSam LefflerAuto Channel Selection is used to locate a channel to operate on,
1152b032f27cSSam LefflerHT configuration controls whether legacy, HT20, or HT40 operation is setup
1153b032f27cSSam Leffleron the selected channel.
1154b032f27cSSam LefflerIf a fixed channel is specified for a station then HT configuration can
1155b032f27cSSam Lefflerbe given as part of the channel specification; e.g. 6:ht/20 to setup
1156b032f27cSSam LefflerHT20 operation on channel 6.
1157b032f27cSSam Leffler.It Cm htcompat
1158b032f27cSSam LefflerEnable use of compatibility support for pre-802.11n devices (default).
1159b032f27cSSam LefflerThe 802.11n protocol specification went through several incompatible iterations.
1160b032f27cSSam LefflerSome vendors implemented 11n support to older specifications that
1161b032f27cSSam Lefflerwill not interoperate with a purely 11n-compliant station.
1162b032f27cSSam LefflerIn particular the information elements included in management frames
1163b032f27cSSam Lefflerfor old devices are different.
1164b032f27cSSam LefflerWhen compatibility support is enabled both standard and compatible data
1165b032f27cSSam Lefflerwill be provided.
1166b032f27cSSam LefflerStations that associate using the compatiblity mechanisms are flagged
1167b032f27cSSam Lefflerin ``list sta''.
1168b032f27cSSam LefflerTo disable compatiblity support use
1169b032f27cSSam Leffler.Fl htcompat .
1170b032f27cSSam Leffler.It Cm htprotmode Ar technique
1171b032f27cSSam LefflerFor interfaces operating in 802.11n, use the specified
1172b032f27cSSam Leffler.Ar technique
1173b032f27cSSam Lefflerfor protecting HT frames in a mixed legacy/HT network.
1174b032f27cSSam LefflerThe set of valid techniques is
1175b032f27cSSam Leffler.Cm off ,
1176b032f27cSSam Lefflerand
1177b032f27cSSam Leffler.Cm rts
1178b032f27cSSam Leffler(RTS/CTS, default).
1179b032f27cSSam LefflerTechnique names are case insensitive.
1180b032f27cSSam Leffler.It Cm inact
1181b032f27cSSam LefflerEnable inactivity processing for stations associated to an
1182b032f27cSSam Leffleraccess point (default).
1183b032f27cSSam LefflerWhen operating as an access point the 802.11 layer monitors
1184b032f27cSSam Lefflerthe activity of each associated station.
1185b032f27cSSam LefflerWhen a station is inactive for 5 minutes it will send several
1186b032f27cSSam Leffler``probe frames'' to see if the station is still present.
1187b032f27cSSam LefflerIf no response is received then the station is deauthenticated.
1188b032f27cSSam LefflerApplications that prefer to handle this work can disable this
1189b032f27cSSam Lefflerfacility by using
1190b032f27cSSam Leffler.Fl inact .
1191b032f27cSSam Leffler.It Cm indoor
1192b032f27cSSam LefflerSet the location to use in calculating regulatory constraints.
1193b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames
1194b032f27cSSam Lefflerwhen 802.11d is enabled with
1195b032f27cSSam Leffler.Cm dotd .
1196b032f27cSSam LefflerSee also
1197b032f27cSSam Leffler.Cm outdoor ,
1198b032f27cSSam Leffler.Cm anywhere ,
1199b032f27cSSam Leffler.Cm country ,
1200b032f27cSSam Lefflerand
1201b032f27cSSam Leffler.Cm regdomain .
12024e9e907dSRuslan Ermilov.It Cm list active
1203aeffcba3SSam LefflerDisplay the list of channels available for use taking into account
1204aeffcba3SSam Lefflerany restrictions set with the
12054e9e907dSRuslan Ermilov.Cm chanlist
1206451486b5SSam Lefflerdirective.
1207451486b5SSam LefflerSee the description of
1208451486b5SSam Leffler.Cm list chan
1209451486b5SSam Lefflerfor more information.
12104e9e907dSRuslan Ermilov.It Cm list caps
1211aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating
1212aeffcba3SSam Lefflermodes supported.
12134e9e907dSRuslan Ermilov.It Cm list chan
1214aeffcba3SSam LefflerDisplay the list of channels available for use.
1215451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent
1216451486b5SSam Lefflerfrequency, and usage modes.
1217451486b5SSam LefflerChannels identified as
1218451486b5SSam Leffler.Ql 11g
1219451486b5SSam Lefflerare also usable in
1220451486b5SSam Leffler.Ql 11b
1221451486b5SSam Lefflermode.
1222451486b5SSam LefflerChannels identified as
1223451486b5SSam Leffler.Ql 11a Turbo
1224451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode
12258266d476SRuslan Ermilov(specified with
12268266d476SRuslan Ermilov. Cm mediaopt turbo ) .
1227451486b5SSam LefflerChannels marked with a
1228451486b5SSam Leffler.Ql *
1229451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned.
1230451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until
1231451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication;
1232451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating
1233451486b5SSam Leffleron the channel.
12344e9e907dSRuslan Ermilov.Cm list freq
1235aeffcba3SSam Leffleris another way of requesting this information.
1236d592cd38SSam LefflerBy default a compacted list of channels is displayed; if the
1237d592cd38SSam Leffler.Fl v
1238d592cd38SSam Leffleroption is specified then all channels are shown.
1239b032f27cSSam Leffler.It Cm list countries
1240b032f27cSSam LefflerDisplay the set of country codes and regulatory domains that can be
1241b032f27cSSam Lefflerused in regulatory configuration.
12424e9e907dSRuslan Ermilov.It Cm list mac
124329f0e929SSam LefflerDisplay the current MAC Access Control List state.
124429f0e929SSam LefflerEach address is prefixed with a character that indicates the
124529f0e929SSam Lefflercurrent policy applied to it:
12464e9e907dSRuslan Ermilov.Ql +
124729f0e929SSam Lefflerindicates the address is allowed access,
12484e9e907dSRuslan Ermilov.Ql -
124929f0e929SSam Lefflerindicates the address is denied access,
12504e9e907dSRuslan Ermilov.Ql *
125129f0e929SSam Lefflerindicates the address is present but the current policy open
12524e9e907dSRuslan Ermilov(so the ACL is not consulted).
125359aa14a9SRui Paulo.It Cm list mesh
125459aa14a9SRui PauloDisplays the mesh routing table, used for forwarding packets on a mesh
125559aa14a9SRui Paulonetwork.
1256b032f27cSSam Leffler.It Cm list regdomain
1257b032f27cSSam LefflerDisplay the current regulatory settings including the available channels
1258b032f27cSSam Lefflerand transmit power caps.
1259b032f27cSSam Leffler.It Cm list roam
1260b032f27cSSam LefflerDisplay the parameters that govern roaming operation.
1261b032f27cSSam Leffler.It Cm list txparam
1262b032f27cSSam LefflerDisplay the parameters that govern transmit operation.
1263b032f27cSSam Leffler.It Cm list txpower
1264b032f27cSSam LefflerDisplay the transmit power caps for each channel.
12654e9e907dSRuslan Ermilov.It Cm list scan
1266aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors
1267aeffcba3SSam Lefflerlocated in the vicinity.
1268b032f27cSSam LefflerThis information may be updated automatically by the adapter
1269b032f27cSSam Lefflerwith a
12704e9e907dSRuslan Ermilov.Cm scan
1271fdef6accSSam Lefflerrequest or through background scanning.
1272b032f27cSSam LefflerDepending on the capabilities of the stations the following
1273b032f27cSSam Lefflerflags can be included in the output:
1274b032f27cSSam Leffler.Bl -tag -width 3n
1275b032f27cSSam Leffler.It Li A
1276b032f27cSSam LefflerAuthorized.
1277b032f27cSSam LefflerIndicates that the station is permitted to send/receive data frames.
1278b032f27cSSam Leffler.It Li E
1279b032f27cSSam LefflerExtended Rate Phy (ERP).
1280b032f27cSSam LefflerIndicates that the station is operating in an 802.11g network
1281b032f27cSSam Lefflerusing extended transmit rates.
1282b032f27cSSam Leffler.It Li H
1283b032f27cSSam LefflerHigh Throughput (HT).
1284b032f27cSSam LefflerIndicates that the station is using HT transmit rates.
1285b032f27cSSam LefflerIf a `+' follows immediately after then the station associated
1286b032f27cSSam Lefflerusing deprecated mechanisms supported only when
1287b032f27cSSam Leffler.Cm htcompat
1288b032f27cSSam Leffleris enabled.
1289b032f27cSSam Leffler.It Li P
1290b032f27cSSam LefflerPower Save.
1291b032f27cSSam LefflerIndicates that the station is operating in power save mode.
1292b032f27cSSam Leffler.It Li Q
1293b032f27cSSam LefflerQuality of Service (QoS).
1294b032f27cSSam LefflerIndicates that the station is using QoS encapsulation for
1295b032f27cSSam Lefflerdata frame.
1296b032f27cSSam LefflerQoS encapsulation is enabled only when WME mode is enabled.
1297b032f27cSSam Leffler.It Li T
1298b032f27cSSam LefflerTransitional Security Network (TSN).
1299b032f27cSSam LefflerIndicates that the station associated using TSN; see also
1300b032f27cSSam Leffler.Cm tsn
1301b032f27cSSam Lefflerbelow.
1302b032f27cSSam Leffler.It Li W
1303b032f27cSSam LefflerWi-Fi Protected Setup (WPS).
1304b032f27cSSam LefflerIndicates that the station associated using WPS.
1305b032f27cSSam Leffler.El
1306b032f27cSSam Leffler.Pp
1307b032f27cSSam LefflerBy default interesting information elements captured from the neighboring
1308b032f27cSSam Lefflerstations are displayed at the end of each row.
1309b032f27cSSam LefflerPossible elements include:
1310b032f27cSSam Leffler.Cm WME
1311b032f27cSSam Leffler(station supports WME),
1312b032f27cSSam Leffler.Cm WPA
1313b032f27cSSam Leffler(station supports WPA),
1314ed8b5a93SSam Leffler.Cm WPS
1315ed8b5a93SSam Leffler(station supports WPS),
1316b032f27cSSam Leffler.Cm RSN
1317b032f27cSSam Leffler(station supports 802.11i/RSN),
1318b032f27cSSam Leffler.Cm HTCAP
1319b032f27cSSam Leffler(station supports 802.11n/HT communication),
1320b032f27cSSam Leffler.Cm ATH
1321116c00fbSMaxim Konovalov(station supports Atheros protocol extensions),
1322b032f27cSSam Leffler.Cm VEN
1323b032f27cSSam Leffler(station supports unknown vendor-specific extensions).
1324b032f27cSSam LefflerIf the
1325b032f27cSSam Leffler.Fl v
1326b032f27cSSam Lefflerflag is used all the information elements and their
1327b032f27cSSam Lefflercontents will be shown.
13284f1fb109SGiorgos KeramidasSpecifying the
1329b032f27cSSam Leffler.Fl v
1330b032f27cSSam Lefflerflag also enables display of long SSIDs.
13314f1fb109SGiorgos KeramidasThe
13324e9e907dSRuslan Ermilov.Cm list ap
13334f1fb109SGiorgos Keramidascommand is another way of requesting this information.
13344e9e907dSRuslan Ermilov.It Cm list sta
1335aeffcba3SSam LefflerWhen operating as an access point display the stations that are
1336aeffcba3SSam Lefflercurrently associated.
1337aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as
1338aeffcba3SSam Lefflerneighbors in the IBSS.
133959aa14a9SRui PauloWhen operating in mesh mode display stations identified as
134059aa14a9SRui Pauloneighbors in the MBSS.
1341fdef6accSSam LefflerWhen operating in station mode display the access point.
134297d7b28eSSam LefflerCapabilities advertised by the stations are described under
134397d7b28eSSam Lefflerthe
134497d7b28eSSam Leffler.Cm scan
134597d7b28eSSam Lefflerrequest.
134697d7b28eSSam LefflerDepending on the capabilities of the stations the following
134797d7b28eSSam Lefflerflags can be included in the output:
134897d7b28eSSam Leffler.Bl -tag -width 3n
134997d7b28eSSam Leffler.It Li A
135097d7b28eSSam LefflerAuthorized.
135197d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames.
135297d7b28eSSam Leffler.It Li E
135397d7b28eSSam LefflerExtended Rate Phy (ERP).
135497d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network
135597d7b28eSSam Lefflerusing extended transmit rates.
1356fdef6accSSam Leffler.It Li H
1357fdef6accSSam LefflerHigh Throughput (HT).
1358b032f27cSSam LefflerIndicates that the station is using HT transmit rates.
1359b032f27cSSam LefflerIf a `+' follows immediately after then the station associated
1360b032f27cSSam Lefflerusing deprecated mechanisms supported only when
1361b032f27cSSam Leffler.Cm htcompat
1362b032f27cSSam Leffleris enabled.
136397d7b28eSSam Leffler.It Li P
136497d7b28eSSam LefflerPower Save.
136597d7b28eSSam LefflerIndicates that the station is operating in power save mode.
136697d7b28eSSam Leffler.It Li Q
136797d7b28eSSam LefflerQuality of Service (QoS).
136897d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for
136997d7b28eSSam Lefflerdata frame.
137097d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled.
1371b032f27cSSam Leffler.It Li T
1372b032f27cSSam LefflerTransitional Security Network (TSN).
1373b032f27cSSam LefflerIndicates that the station associated using TSN; see also
1374b032f27cSSam Leffler.Cm tsn
1375b032f27cSSam Lefflerbelow.
1376b032f27cSSam Leffler.It Li W
1377b032f27cSSam LefflerWi-Fi Protected Setup (WPS).
1378b032f27cSSam LefflerIndicates that the station associated using WPS.
137997d7b28eSSam Leffler.El
1380d592cd38SSam Leffler.Pp
1381d592cd38SSam LefflerBy default information elements received from associated stations
1382d592cd38SSam Lefflerare displayed in a short form; the
1383d592cd38SSam Leffler.Fl v
1384116c00fbSMaxim Konovalovflag causes this information to be displayed symbolically.
13854e9e907dSRuslan Ermilov.It Cm list wme
138687a8e294SSam LefflerDisplay the current channel parameters to use when operating in WME mode.
138787a8e294SSam LefflerIf the
138887a8e294SSam Leffler.Fl v
138987a8e294SSam Leffleroption is specified then both channel and BSS parameters are displayed
139087a8e294SSam Lefflerfor each AC (first channel, then BSS).
1391aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be
1392aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful
1393aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled.
1394aeffcba3SSam LefflerSee the description of the
13954e9e907dSRuslan Ermilov.Cm wme
1396aeffcba3SSam Lefflerdirective for information on the various parameters.
1397b032f27cSSam Leffler.It Cm maxretry Ar count
1398b032f27cSSam LefflerSet the maximum number of tries to use in sending unicast frames.
1399b032f27cSSam LefflerThe default setting is 6 but drivers may override this with a value
1400b032f27cSSam Lefflerthey choose.
1401439b4702SSam Leffler.It Cm mcastrate Ar rate
1402439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames.
14038266d476SRuslan ErmilovRates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s.
1404439b4702SSam LefflerThis rate should be valid for the current operating conditions;
1405439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an
1406439b4702SSam Lefflerappropriate rate.
1407b032f27cSSam Leffler.It Cm mgtrate Ar rate
1408b032f27cSSam LefflerSet the rate for transmitting management and/or control frames.
1409b032f27cSSam LefflerRates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s.
1410b032f27cSSam Leffler.It Cm outdoor
1411b032f27cSSam LefflerSet the location to use in calculating regulatory constraints.
1412b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames
1413b032f27cSSam Lefflerwhen 802.11d is enabled with
1414b032f27cSSam Leffler.Cm dotd .
1415b032f27cSSam LefflerSee also
1416b032f27cSSam Leffler.Cm anywhere ,
1417b032f27cSSam Leffler.Cm country ,
1418b032f27cSSam Leffler.Cm indoor ,
1419b032f27cSSam Lefflerand
1420b032f27cSSam Leffler.Cm regdomain .
1421419d8080SPoul-Henning Kamp.It Cm powersave
14225faf8dcbSSam LefflerEnable powersave operation.
142321414470SRuslan ErmilovWhen operating as a client, the station will conserve power by
14245faf8dcbSSam Lefflerperiodically turning off the radio and listening for
14255faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting.
14265faf8dcbSSam LefflerThe station must then retrieve the packets.
1427fdef6accSSam LefflerNot all devices support power save operation as a client.
1428fdef6accSSam LefflerThe 802.11 specification requires that all access points support
1429fdef6accSSam Lefflerpower save but some drivers do not.
14305faf8dcbSSam LefflerUse
14315faf8dcbSSam Leffler.Fl powersave
1432fdef6accSSam Lefflerto disable powersave operation when operating as a client.
1433419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep
14348f3591a5SSam LefflerSet the desired max powersave sleep time in TU's (1024 usecs).
14358f3591a5SSam LefflerBy default the max powersave sleep time is 100 TU's.
1436a6b03f42SSam Leffler.It Cm protmode Ar technique
14375faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified
1438d04b5dfeSRuslan Ermilov.Ar technique
1439d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network.
1440a6b03f42SSam LefflerThe set of valid techniques is
14414e9e907dSRuslan Ermilov.Cm off , cts
1442a6b03f42SSam Leffler(CTS to self),
1443a6b03f42SSam Lefflerand
14444e9e907dSRuslan Ermilov.Cm rtscts
1445a6b03f42SSam Leffler(RTS/CTS).
1446a6b03f42SSam LefflerTechnique names are case insensitive.
1447fdef6accSSam LefflerNot all devices support
1448fdef6accSSam Leffler.Cm cts
1449fdef6accSSam Leffleras a protection technique.
1450fa56f745SSam Leffler.It Cm pureg
1451fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only
1452fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not
1453fa56f745SSam Lefflerpermitted to associate).
1454fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use
1455fa56f745SSam Leffler.Fl pureg .
1456b032f27cSSam Leffler.It Cm puren
1457b032f27cSSam LefflerWhen operating as an access point in 802.11n mode allow only
1458b032f27cSSam LefflerHT-capable stations to associate (legacy stations are not
1459b032f27cSSam Lefflerpermitted to associate).
1460b032f27cSSam LefflerTo allow both HT and legacy stations to associate, use
1461b032f27cSSam Leffler.Fl puren .
1462b032f27cSSam Leffler.It Cm regdomain Ar sku
1463b032f27cSSam LefflerSet the regulatory domain to use in calculating the regulatory constraints
1464b032f27cSSam Lefflerfor operation.
1465b032f27cSSam LefflerIn particular the set of available channels, how the wireless device
1466b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that
1467b032f27cSSam Lefflercan be used on a channel are defined by this setting.
1468b032f27cSSam LefflerRegdomain codes (SKU's) are taken from /etc/regdomain.xml and can also
1469b032f27cSSam Lefflerbe viewed with the ``list countries'' request.
1470b032f27cSSam LefflerNote that not all devices support changing the regdomain from a default
1471b032f27cSSam Lefflersetting; typically stored in EEPROM.
1472b032f27cSSam LefflerSee also
1473b032f27cSSam Leffler.Cm country ,
1474b032f27cSSam Leffler.Cm indoor ,
1475b032f27cSSam Leffler.Cm outdoor ,
1476b032f27cSSam Lefflerand
1477b032f27cSSam Leffler.Cm anywhere .
147851947cb6SSam Leffler.It Cm rifs
147951947cb6SSam LefflerEnable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n
148051947cb6SSam Leffleron an HT channel.
148151947cb6SSam LefflerNote that RIFS must be supported by both the station and access point
148251947cb6SSam Lefflerfor it to be used.
148351947cb6SSam LefflerTo disable RIFS use
148451947cb6SSam Leffler.Fl rifs .
1485b032f27cSSam Leffler.It Cm roam:rate Ar rate
1486b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS.
1487b032f27cSSam LefflerThe
1488b032f27cSSam Leffler.Ar rate
1489b032f27cSSam Lefflerparameter specifies the transmit rate in megabits
1490b032f27cSSam Lefflerat which roaming should be considered.
1491b032f27cSSam LefflerIf the current transmit rate drops below this setting and background scanning
1492b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is
1493b032f27cSSam Leffleravailable and switch over to it.
1494b032f27cSSam LefflerThe current scan cache contents are used if they are considered
1495b032f27cSSam Lefflervalid according to the
1496b032f27cSSam Leffler.Cm scanvalid
1497b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before
1498b032f27cSSam Lefflerany selection occurs.
1499b032f27cSSam LefflerEach channel type has a separate rate threshold; the default values are:
1500b032f27cSSam Leffler12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng).
1501b032f27cSSam Leffler.It Cm roam:rssi Ar rssi
1502b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS.
1503b032f27cSSam LefflerThe
1504b032f27cSSam Leffler.Ar rssi
1505b032f27cSSam Lefflerparameter specifies the receive signal strength in dBm units
1506b032f27cSSam Lefflerat which roaming should be considered.
1507b032f27cSSam LefflerIf the current rssi drops below this setting and background scanning
1508b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is
1509b032f27cSSam Leffleravailable and switch over to it.
1510b032f27cSSam LefflerThe current scan cache contents are used if they are considered
1511b032f27cSSam Lefflervalid according to the
1512b032f27cSSam Leffler.Cm scanvalid
1513b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before
1514b032f27cSSam Lefflerany selection occurs.
1515b3c97464SRui PauloEach channel type has a separate rssi threshold; the default values are
1516b032f27cSSam Lefflerall 7 dBm.
15175faf8dcbSSam Leffler.It Cm roaming Ar mode
15185faf8dcbSSam LefflerWhen operating as a station, control how the system will
15195faf8dcbSSam Lefflerbehave when communication with the current access point
15205faf8dcbSSam Leffleris broken.
152121414470SRuslan ErmilovThe
152221414470SRuslan Ermilov.Ar mode
152321414470SRuslan Ermilovargument may be one of
15244e9e907dSRuslan Ermilov.Cm device
15255faf8dcbSSam Leffler(leave it to the hardware device to decide),
15264e9e907dSRuslan Ermilov.Cm auto
152721414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate),
15284e9e907dSRuslan Ermilov.Cm manual
15295faf8dcbSSam Leffler(do nothing until explicitly instructed).
153021414470SRuslan ErmilovBy default, the device is left to handle this if it is
153121414470SRuslan Ermilovcapable; otherwise, the operating system will automatically
15325faf8dcbSSam Lefflerattempt to reestablish communication.
1533fdef6accSSam LefflerManual mode is used by applications such as
1534fdef6accSSam Leffler.Xr wpa_supplicant 8
1535fdef6accSSam Lefflerthat want to control the selection of an access point.
1536a6b03f42SSam Leffler.It Cm rtsthreshold Ar length
15375faf8dcbSSam LefflerSet the threshold for which
1538a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an
1539a6b03f42SSam LefflerRTS
1540a6b03f42SSam Lefflercontrol frame.
1541d04b5dfeSRuslan ErmilovThe
1542d04b5dfeSRuslan Ermilov.Ar length
1543d04b5dfeSRuslan Ermilovargument
1544aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346.
1545aeffcba3SSam LefflerSetting
1546aeffcba3SSam Leffler.Ar length
1547aeffcba3SSam Lefflerto
15484e9e907dSRuslan Ermilov.Li 2346 ,
15494e9e907dSRuslan Ermilov.Cm any ,
1550aeffcba3SSam Leffleror
15514e9e907dSRuslan Ermilov.Cm -
1552aeffcba3SSam Lefflerdisables transmission of RTS frames.
1553b032f27cSSam LefflerNot all adapters support setting the RTS threshold.
15545faf8dcbSSam Leffler.It Cm scan
1555aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and
1556aeffcba3SSam Lefflerdisplay all stations found.
1557aeffcba3SSam LefflerOnly the super-user can initiate a scan.
1558b032f27cSSam LefflerSee
1559b032f27cSSam Leffler.Cm list scan
1560b032f27cSSam Lefflerfor information on the display.
1561b032f27cSSam LefflerBy default a background scan is done; otherwise a foreground
1562b032f27cSSam Lefflerscan is done and the station may roam to a different access point.
1563aeffcba3SSam LefflerThe
15644e9e907dSRuslan Ermilov.Cm list scan
1565aeffcba3SSam Lefflerrequest can be used to show recent scan results without
1566aeffcba3SSam Lefflerinitiating a new scan.
1567fdef6accSSam Leffler.It Cm scanvalid Ar threshold
1568fdef6accSSam LefflerSet the maximum time the scan cache contents are considered valid;
1569fdef6accSSam Leffleri.e. will be used without first triggering a scan operation to
1570fdef6accSSam Lefflerrefresh the data.
1571fdef6accSSam LefflerThe
1572fdef6accSSam Leffler.Ar threshold
1573fdef6accSSam Lefflerparameter is specified in seconds and defaults to 60 seconds.
1574fdef6accSSam LefflerThe minimum setting for
1575fdef6accSSam Leffler.Ar threshold
1576fdef6accSSam Leffleris 10 seconds.
1577fdef6accSSam LefflerOne should take care setting this threshold; if it is set too low
1578fdef6accSSam Lefflerthen attempts to roam to another access point may trigger unnecessary
1579fdef6accSSam Lefflerbackground scan operations.
1580b032f27cSSam Leffler.It Cm shortgi
1581b032f27cSSam LefflerEnable use of Short Guard Interval when operating in 802.11n
1582b032f27cSSam Leffleron an HT channel.
1583b032f27cSSam LefflerNB: this currently enables Short GI on both HT40 and HT20 channels.
1584b032f27cSSam LefflerTo disable Short GI use
1585b032f27cSSam Leffler.Fl shortgi .
158651947cb6SSam Leffler.It Cm smps
158751947cb6SSam LefflerEnable use of Static Spatial Multiplexing Power Save (SMPS)
158851947cb6SSam Lefflerwhen operating in 802.11n.
158951947cb6SSam LefflerA station operating with Static SMPS maintains only a single
159051947cb6SSam Lefflerreceive chain active (this can significantly reduce power consumption).
159151947cb6SSam LefflerTo disable SMPS use
159251947cb6SSam Leffler.Fl smps .
159351947cb6SSam Leffler.It Cm smpsdyn
159451947cb6SSam LefflerEnable use of Dynamic Spatial Multiplexing Power Save (SMPS)
159551947cb6SSam Lefflerwhen operating in 802.11n.
159651947cb6SSam LefflerA station operating with Dynamic SMPS maintains only a single
159751947cb6SSam Lefflerreceive chain active but switches to multiple receive chains when it
159851947cb6SSam Lefflerreceives an RTS frame (this can significantly reduce power consumption).
159951947cb6SSam LefflerNote that stations cannot distinguish between RTS/CTS intended to
160051947cb6SSam Lefflerenable multiple receive chains and those used for other purposes.
160151947cb6SSam LefflerTo disable SMPS use
160251947cb6SSam Leffler.Fl smps .
1603b032f27cSSam Leffler.It Cm ssid Ar ssid
1604b032f27cSSam LefflerSet the desired Service Set Identifier (aka network name).
1605b032f27cSSam LefflerThe SSID is a string up to 32 characters
1606b032f27cSSam Lefflerin length and may be specified as either a normal string or in
1607b032f27cSSam Lefflerhexadecimal when preceded by
1608b032f27cSSam Leffler.Ql 0x .
1609b032f27cSSam LefflerAdditionally, the SSID may be cleared by setting it to
1610b032f27cSSam Leffler.Ql - .
161110ad9a77SSam Leffler.It Cm tdmaslot Ar slot
161210ad9a77SSam LefflerWhen operating with TDMA, use the specified
161310ad9a77SSam Leffler.Ar slot
161410ad9a77SSam Lefflerconfiguration.
161510ad9a77SSam LefflerThe
161610ad9a77SSam Leffler.Ar slot
161710ad9a77SSam Leffleris a number between 0 and the maximum number of slots in the BSS.
161810ad9a77SSam LefflerNote that a station configured as slot 0 is a master and
161910ad9a77SSam Lefflerwill broadcast beacon frames advertising the BSS;
162010ad9a77SSam Lefflerstations configured to use other slots will always
162110ad9a77SSam Lefflerscan to locate a master before they ever transmit.
162210ad9a77SSam LefflerBy default
162310ad9a77SSam Leffler.Cm tdmaslot
162410ad9a77SSam Leffleris set to 1.
162510ad9a77SSam Leffler.It Cm tdmaslotcnt Ar cnt
162610ad9a77SSam LefflerWhen operating with TDMA, setup a BSS with
162710ad9a77SSam Leffler.Ar cnt
162810ad9a77SSam Lefflerslots.
162910ad9a77SSam LefflerThe slot count may be at most 8.
163010ad9a77SSam LefflerThe current implementation is only tested with two stations
163110ad9a77SSam Leffler(i.e. point to point applications).
163210ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0;
163310ad9a77SSam Lefflerother stations adopt this setting from the BSS they join.
163410ad9a77SSam LefflerBy default
163510ad9a77SSam Leffler.Cm tdmaslotcnt
163610ad9a77SSam Leffleris set to 2.
163710ad9a77SSam Leffler.It Cm tdmaslotlen Ar len
163810ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that each station has a slot
163910ad9a77SSam Leffler.Ar len
164010ad9a77SSam Lefflermicroseconds long.
164110ad9a77SSam LefflerThe slot length must be at least 150 microseconds (1/8 TU)
164210ad9a77SSam Lefflerand no more than 65 milliseconds.
164310ad9a77SSam LefflerNote that setting too small a slot length may result in poor channel
164410ad9a77SSam Lefflerbandwidth utilization due to factors such as timer granularity and
164510ad9a77SSam Lefflerguard time.
164610ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0;
164710ad9a77SSam Lefflerother stations adopt this setting from the BSS they join.
164810ad9a77SSam LefflerBy default
164910ad9a77SSam Leffler.Cm tdmaslotlen
165010ad9a77SSam Leffleris set to 10 milliseconds.
165110ad9a77SSam Leffler.It Cm tdmabintval Ar intval
165210ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that beacons are transmitted every
165310ad9a77SSam Leffler.Ar intval
165410ad9a77SSam Lefflersuperframes to synchronize the TDMA slot timing.
165510ad9a77SSam LefflerA superframe is defined as the number of slots times the slot length; e.g.
165610ad9a77SSam Lefflera BSS with two slots of 10 milliseconds has a 20 millisecond superframe.
165710ad9a77SSam LefflerThe beacon interval may not be zero.
165810ad9a77SSam LefflerA lower setting of
165910ad9a77SSam Leffler.Cm tdmabintval
166010ad9a77SSam Lefflercauses the timers to be resynchronized more often; this can be help if
166110ad9a77SSam Lefflersignificant timer drift is observed.
166210ad9a77SSam LefflerBy default
166310ad9a77SSam Leffler.Cm tdmabintval
166410ad9a77SSam Leffleris set to 5.
1665b032f27cSSam Leffler.It Cm tsn
1666b032f27cSSam LefflerWhen operating as an access point with WPA/802.11i allow legacy
1667b032f27cSSam Lefflerstations to associate using static key WEP and open authentication.
1668b032f27cSSam LefflerTo disallow legacy station use of WEP, use
1669b032f27cSSam Leffler.Fl tsn .
1670a6b03f42SSam Leffler.It Cm txpower Ar power
16715faf8dcbSSam LefflerSet the power used to transmit frames.
1672d04b5dfeSRuslan ErmilovThe
1673d04b5dfeSRuslan Ermilov.Ar power
1674d592cd38SSam Lefflerargument is specified in .5 dBm units.
1675a6b03f42SSam LefflerOut of range values are truncated.
1676a6b03f42SSam LefflerTypically only a few discreet power settings are available and
1677a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value.
1678b032f27cSSam LefflerNot all adapters support changing the transmit power.
1679b032f27cSSam Leffler.It Cm ucastrate Ar rate
1680b032f27cSSam LefflerSet a fixed rate for transmitting unicast frames.
1681b032f27cSSam LefflerRates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s.
1682b032f27cSSam LefflerThis rate should be valid for the current operating conditions;
1683b032f27cSSam Lefflerif an invalid rate is specified drivers are free to chose an
1684b032f27cSSam Lefflerappropriate rate.
1685419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode
16865faf8dcbSSam LefflerSet the desired WEP mode.
1687b032f27cSSam LefflerNot all adapters support all modes.
1688b09b4efbSRuslan ErmilovThe set of valid modes is
16894e9e907dSRuslan Ermilov.Cm off , on ,
1690419d8080SPoul-Henning Kampand
16914e9e907dSRuslan Ermilov.Cm mixed .
1692d04b5dfeSRuslan ErmilovThe
16934e9e907dSRuslan Ermilov.Cm mixed
1694419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access
1695b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic.
1696b032f27cSSam LefflerOn these adapters,
16974e9e907dSRuslan Ermilov.Cm on
1698b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections.
1699b032f27cSSam LefflerOn other adapters,
17004e9e907dSRuslan Ermilov.Cm on
1701419d8080SPoul-Henning Kampis generally another name for
17024e9e907dSRuslan Ermilov.Cm mixed .
1703419d8080SPoul-Henning KampModes are case insensitive.
1704419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index
17055faf8dcbSSam LefflerSet the WEP key to be used for transmission.
17064e0a8f0dSSam LefflerThis is the same as setting the default transmission key with
17074e0a8f0dSSam Leffler.Cm deftxkey .
1708b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
17095faf8dcbSSam LefflerSet the selected WEP key.
1710b09b4efbSRuslan ErmilovIf an
1711419d8080SPoul-Henning Kamp.Ar index
1712b09b4efbSRuslan Ermilovis not given, key 1 is set.
1713b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13
1714419d8080SPoul-Henning Kampcharacters (40 or 104 bits) depending of the local network and the
1715b09b4efbSRuslan Ermilovcapabilities of the adaptor.
1716b09b4efbSRuslan ErmilovIt may be specified either as a plain
1717e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by
1718b09b4efbSRuslan Ermilov.Ql 0x .
1719d8f2e345SWarner LoshFor maximum portability, hex keys are recommended;
1720d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific.
17213706a3a8SRuslan ErmilovIn particular, the
17223706a3a8SRuslan Ermilov.Tn Windows
17233706a3a8SRuslan Ermilovdrivers do this mapping differently to
1724a61d9c47SRuslan Ermilov.Fx .
1725419d8080SPoul-Henning KampA key may be cleared by setting it to
1726b09b4efbSRuslan Ermilov.Ql - .
1727b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys.
1728b032f27cSSam LefflerSome adapters support more than four keys.
1729b09b4efbSRuslan ErmilovIf that is the case, then the first four keys
1730419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor
1731419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM.
17325ce09a9eSSam Leffler.Pp
17335ce09a9eSSam LefflerNote that you must set a default transmit key with
17345ce09a9eSSam Leffler.Cm deftxkey
17355ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic.
17365faf8dcbSSam Leffler.It Cm wme
1737aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available,
17385faf8dcbSSam Lefflerfor the specified interface.
17395faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the
17405faf8dcbSSam Lefflerefficient communication of realtime and multimedia data.
174121414470SRuslan ErmilovTo disable WME support, use
17425faf8dcbSSam Leffler.Fl wme .
1743b032f27cSSam LefflerAnother name for this parameter is
1744b032f27cSSam Leffler.Cm wmm .
1745aeffcba3SSam Leffler.Pp
1746aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use.
1747aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and
1748aeffcba3SSam Lefflersplit into those that are used by a station when acting
1749aeffcba3SSam Leffleras an access point and those for client stations in the BSS.
1750aeffcba3SSam LefflerThe latter are received from the access point and may not be changed
1751aeffcba3SSam Leffler(at the station).
1752aeffcba3SSam LefflerThe following Access Categories are recognized:
1753aeffcba3SSam Leffler.Pp
17544e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact
1755aeffcba3SSam Leffler.It Cm AC_BE
17564e9e907dSRuslan Ermilov(or
17574e9e907dSRuslan Ermilov.Cm BE )
17584e9e907dSRuslan Ermilovbest effort delivery,
1759aeffcba3SSam Leffler.It Cm AC_BK
17604e9e907dSRuslan Ermilov(or
17614e9e907dSRuslan Ermilov.Cm BK )
17624e9e907dSRuslan Ermilovbackground traffic,
1763aeffcba3SSam Leffler.It Cm AC_VI
17644e9e907dSRuslan Ermilov(or
17654e9e907dSRuslan Ermilov.Cm VI )
17664e9e907dSRuslan Ermilovvideo traffic,
1767aeffcba3SSam Leffler.It Cm AC_VO
17684e9e907dSRuslan Ermilov(or
17694e9e907dSRuslan Ermilov.Cm VO )
17704e9e907dSRuslan Ermilovvoice traffic.
17715faf8dcbSSam Leffler.El
17725faf8dcbSSam Leffler.Pp
1773aeffcba3SSam LefflerAC parameters are case-insensitive.
1774aeffcba3SSam LefflerTraffic classification is done in the operating system using the
1775aeffcba3SSam Lefflervlan priority associated with data frames or the
1776aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames.
17774e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the
1778aeffcba3SSam LefflerBest Effort (BE) category.
1779aeffcba3SSam Leffler.Bl -tag -width indent
1780aeffcba3SSam Leffler.It Cm ack Ar ac
1781aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station;
1782aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station
1783aeffcba3SSam Lefflerrequire an ACK response from the receiving station.
1784aeffcba3SSam LefflerTo disable waiting for an ACK use
1785aeffcba3SSam Leffler.Fl ack .
1786aeffcba3SSam LefflerThis parameter is applied only to the local station.
1787aeffcba3SSam Leffler.It Cm acm Ar ac
1788aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism
1789aeffcba3SSam Lefflerfor transmissions by the local station.
1790aeffcba3SSam LefflerTo disable the ACM use
1791aeffcba3SSam Leffler.Fl acm .
1792aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1793aeffcba3SSam Lefflerthe setting received from the access point.
1794aeffcba3SSam LefflerNB: ACM is not supported right now.
1795aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count
1796aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS)
1797aeffcba3SSam Lefflerchannel access parameter to use for transmissions
1798aeffcba3SSam Lefflerby the local station.
1799aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1800aeffcba3SSam Lefflerthe setting received from the access point.
1801aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count
1802aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions
1803aeffcba3SSam Lefflerby the local station.
1804aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1805aeffcba3SSam Lefflerthe setting received from the access point.
1806aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count
1807aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions
1808aeffcba3SSam Lefflerby the local station.
1809aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1810aeffcba3SSam Lefflerthe setting received from the access point.
1811aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit
1812aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter
1813aeffcba3SSam Lefflerto use for transmissions by the local station.
1814aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station
1815aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium.
1816aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1817aeffcba3SSam Lefflerthe setting received from the access point.
1818aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count
1819aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS.
1820aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1821aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count
1822aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS.
1823aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1824aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count
1825aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS.
1826aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1827aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit
1828aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS.
1829aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1830aeffcba3SSam Leffler.El
1831b032f27cSSam Leffler.It Cm wps
1832b032f27cSSam LefflerEnable Wireless Privacy Subscriber support.
1833b032f27cSSam LefflerNote that WPS support requires a WPS-capable supplicant.
1834b032f27cSSam LefflerTo disable this function use
1835b032f27cSSam Leffler.Fl wps .
1836aeffcba3SSam Leffler.El
1837aeffcba3SSam Leffler.Pp
1838aeffcba3SSam LefflerThe following parameters support an optional access control list
1839b032f27cSSam Lefflerfeature available with some adapters when operating in ap mode; see
1840aeffcba3SSam Leffler.Xr wlan_acl 4 .
1841aeffcba3SSam LefflerThis facility allows an access point to accept/deny association
1842aeffcba3SSam Lefflerrequests based on the MAC address of the station.
1843aeffcba3SSam LefflerNote that this feature does not significantly enhance security
1844aeffcba3SSam Leffleras MAC address spoofing is easy to do.
1845aeffcba3SSam Leffler.Bl -tag -width indent
1846aeffcba3SSam Leffler.It Cm mac:add Ar address
1847aeffcba3SSam LefflerAdd the specified MAC address to the database.
1848aeffcba3SSam LefflerDepending on the policy setting association requests from the
1849aeffcba3SSam Lefflerspecified station will be allowed or denied.
1850aeffcba3SSam Leffler.It Cm mac:allow
1851aeffcba3SSam LefflerSet the ACL policy to permit association only by
1852aeffcba3SSam Lefflerstations registered in the database.
1853e70fcb23SSam Leffler.It Cm mac:del Ar address
1854aeffcba3SSam LefflerDelete the specified MAC address from the database.
1855aeffcba3SSam Leffler.It Cm mac:deny
1856aeffcba3SSam LefflerSet the ACL policy to deny association only by
1857aeffcba3SSam Lefflerstations registered in the database.
1858e70fcb23SSam Leffler.It Cm mac:kick Ar address
185929f0e929SSam LefflerForce the specified station to be deauthenticated.
186029f0e929SSam LefflerThis typically is done to block a station after updating the
186129f0e929SSam Leffleraddress database.
1862aeffcba3SSam Leffler.It Cm mac:open
1863aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate.
1864aeffcba3SSam Leffler.It Cm mac:flush
1865aeffcba3SSam LefflerDelete all entries in the database.
1866b032f27cSSam Leffler.It Cm mac:radius
1867b032f27cSSam LefflerSet the ACL policy to permit association only by
1868b032f27cSSam Lefflerstations approved by a RADIUS server.
1869b032f27cSSam LefflerNote that this feature requires the
1870b032f27cSSam Leffler.Xr hostapd 8
1871b032f27cSSam Lefflerprogram be configured to do the right thing
1872b032f27cSSam Leffleras it handles the RADIUS processing
1873b032f27cSSam Leffler(and marks stations as authorized).
1874aeffcba3SSam Leffler.El
1875aeffcba3SSam Leffler.Pp
187659aa14a9SRui PauloThe following parameters are related to a wireless interface operating in mesh
187759aa14a9SRui Paulomode:
187859aa14a9SRui Paulo.Bl -tag -width indent
187959aa14a9SRui Paulo.It Cm meshid Ar meshid
188059aa14a9SRui PauloSet the desired Mesh Identifier.
188159aa14a9SRui PauloThe Mesh ID is a string up to 32 characters in length.
188259aa14a9SRui PauloA mesh interface must have a Mesh Identifier specified
188359aa14a9SRui Pauloto reach an operational state.
188459aa14a9SRui Paulo.It Cm meshttl Ar ttl
188559aa14a9SRui PauloSet the desired ``time to live'' for mesh forwarded packets;
188659aa14a9SRui Paulothis is the number of hops a packet may be forwarded before
188759aa14a9SRui Pauloit is discarded.
188859aa14a9SRui PauloThe default setting for
188959aa14a9SRui Paulo.Cm meshttl
189059aa14a9SRui Paulois 31.
189159aa14a9SRui Paulo.It Cm meshpeering
189259aa14a9SRui PauloEnable or disable peering with neighbor mesh stations.
189359aa14a9SRui PauloStations must peer before any data packets can be exchanged.
189459aa14a9SRui PauloBy default
189559aa14a9SRui Paulo.Cm meshpeering
189659aa14a9SRui Paulois enabled.
189759aa14a9SRui Paulo.It Cm meshforward
189859aa14a9SRui PauloEnable or disable forwarding packets by a mesh interface.
189959aa14a9SRui PauloBy default
190059aa14a9SRui Paulo.Cm meshforward
190159aa14a9SRui Paulois enabled.
190259aa14a9SRui Paulo.It Cm meshmetric Ar protocol
190359aa14a9SRui PauloSet the specified
190459aa14a9SRui Paulo.Ar protocol
190559aa14a9SRui Pauloas the link metric protocol used on a mesh network.
190659aa14a9SRui PauloThe default protocol is called
190759aa14a9SRui Paulo.Ar AIRTIME .
190859aa14a9SRui PauloThe mesh interface will restart after changing this setting.
190959aa14a9SRui Paulo.It Cm meshpath Ar protocol
191059aa14a9SRui PauloSet the specified
191159aa14a9SRui Paulo.Ar protocol
191259aa14a9SRui Pauloas the path selection protocol used on a mesh network.
191359aa14a9SRui PauloThe only available protocol at the moment is called
191459aa14a9SRui Paulo.Ar HWMP
191559aa14a9SRui Paulo(Hybrid Wireless Mesh Protocol).
191659aa14a9SRui PauloThe mesh interface will restart after changing this setting.
191759aa14a9SRui Paulo.It Cm hwmprootmode Ar mode
191859aa14a9SRui PauloStations on a mesh network can operate as ``root nodes.''
191959aa14a9SRui PauloRoot nodes try to find paths to all mesh nodes and advertise themselves
192059aa14a9SRui Pauloregularly.
192159aa14a9SRui PauloWhen there is a root mesh node on a network, other mesh nodes can setup
192259aa14a9SRui Paulopaths between themselves faster because they can use the root node
192359aa14a9SRui Pauloto find the destination.
192459aa14a9SRui PauloThis path may not be the best, but on-demand
192559aa14a9SRui Paulorouting will eventually find the best path.
192659aa14a9SRui PauloThe following modes are recognized:
192759aa14a9SRui Paulo.Pp
192859aa14a9SRui Paulo.Bl -tag -width ".Cm PROACTIVE" -compact
192959aa14a9SRui Paulo.It Cm DISABLED
193059aa14a9SRui PauloDisable root mode.
193159aa14a9SRui Paulo.It Cm NORMAL
193259aa14a9SRui PauloSend broadcast path requests every two seconds.
193359aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to
193459aa14a9SRui Paulodiscover a path to us.
193559aa14a9SRui Paulo.It Cm PROACTIVE
193659aa14a9SRui PauloSend broadcast path requests every two seconds and every node must reply with
193759aa14a9SRui Paulowith a path reply even if it already has a path to this root mesh station,
193859aa14a9SRui Paulo.It Cm RANN
193959aa14a9SRui PauloSend broadcast root annoucement (RANN) frames.
194059aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to
194159aa14a9SRui Paulodiscover a path to us.
194259aa14a9SRui Paulo.El
194359aa14a9SRui PauloBy default
194459aa14a9SRui Paulo.Cm hwmprootmode
194559aa14a9SRui Paulois set to
194659aa14a9SRui Paulo.Ar DISABLED .
194759aa14a9SRui Paulo.It Cm hwmpmaxhops Ar cnt
194859aa14a9SRui PauloSet the maximum number of hops allowed in an HMWP path to
194959aa14a9SRui Paulo.Ar cnt .
195059aa14a9SRui PauloThe default setting for
195159aa14a9SRui Paulo.Cm hwmpmaxhops
195259aa14a9SRui Paulois 31.
195359aa14a9SRui Paulo.El
195459aa14a9SRui Paulo.Pp
1955aeffcba3SSam LefflerThe following parameters are for compatibility with other systems:
19565faf8dcbSSam Leffler.Bl -tag -width indent
19575faf8dcbSSam Leffler.It Cm nwid Ar ssid
19585faf8dcbSSam LefflerAnother name for the
19595faf8dcbSSam Leffler.Cm ssid
19605faf8dcbSSam Lefflerparameter.
19615faf8dcbSSam LefflerIncluded for
19625faf8dcbSSam Leffler.Nx
19635faf8dcbSSam Lefflercompatibility.
1964b032f27cSSam Leffler.It Cm stationname Ar name
1965b032f27cSSam LefflerSet the name of this station.
1966b032f27cSSam LefflerThe station name is not part of the IEEE 802.11
1967b032f27cSSam Lefflerprotocol though some interfaces support it.
1968b032f27cSSam LefflerAs such it only
1969b032f27cSSam Lefflerseems to be meaningful to identical or virtually identical equipment.
1970b032f27cSSam LefflerSetting the station name is identical in syntax to setting the SSID.
1971b032f27cSSam LefflerOne can also use
1972b032f27cSSam Leffler.Cm station
1973b032f27cSSam Lefflerfor
19745faf8dcbSSam Leffler.Bsx
19755faf8dcbSSam Lefflercompatibility.
1976419d8080SPoul-Henning Kamp.It Cm wep
1977419d8080SPoul-Henning KampAnother way of saying
1978b09b4efbSRuslan Ermilov.Cm wepmode on .
1979b09b4efbSRuslan ErmilovIncluded for
1980b09b4efbSRuslan Ermilov.Bsx
1981b09b4efbSRuslan Ermilovcompatibility.
1982b09b4efbSRuslan Ermilov.It Fl wep
1983419d8080SPoul-Henning KampAnother way of saying
1984b09b4efbSRuslan Ermilov.Cm wepmode off .
1985b09b4efbSRuslan ErmilovIncluded for
1986b09b4efbSRuslan Ermilov.Bsx
1987b09b4efbSRuslan Ermilovcompatibility.
1988419d8080SPoul-Henning Kamp.It Cm nwkey key
1989419d8080SPoul-Henning KampAnother way of saying:
1990b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
1991b09b4efbSRuslan ErmilovIncluded for
1992b09b4efbSRuslan Ermilov.Nx
1993b09b4efbSRuslan Ermilovcompatibility.
1994b09b4efbSRuslan Ermilov.It Cm nwkey Xo
1995b09b4efbSRuslan Ermilov.Sm off
1996b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4
1997b09b4efbSRuslan Ermilov.Sm on
1998b09b4efbSRuslan Ermilov.Xc
1999419d8080SPoul-Henning KampAnother way of saying
2000b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
2001b09b4efbSRuslan ErmilovIncluded for
2002b09b4efbSRuslan Ermilov.Nx
2003b09b4efbSRuslan Ermilovcompatibility.
2004b09b4efbSRuslan Ermilov.It Fl nwkey
2005419d8080SPoul-Henning KampAnother way of saying
2006b09b4efbSRuslan Ermilov.Cm wepmode off .
2007b09b4efbSRuslan ErmilovIncluded for
2008b09b4efbSRuslan Ermilov.Nx
2009b09b4efbSRuslan Ermilovcompatibility.
20108fae3551SRodney W. Grimes.El
20118fae3551SRodney W. Grimes.Pp
20127afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces:
20137afc53b8SAndrew Thompson.Bl -tag -width indent
20147afc53b8SAndrew Thompson.It Cm addm Ar interface
20157afc53b8SAndrew ThompsonAdd the interface named by
20167afc53b8SAndrew Thompson.Ar interface
20177afc53b8SAndrew Thompsonas a member of the bridge.
20187afc53b8SAndrew ThompsonThe interface is put into promiscuous mode
20197afc53b8SAndrew Thompsonso that it can receive every packet sent on the network.
20207afc53b8SAndrew Thompson.It Cm deletem Ar interface
20217afc53b8SAndrew ThompsonRemove the interface named by
20227afc53b8SAndrew Thompson.Ar interface
20237afc53b8SAndrew Thompsonfrom the bridge.
20247afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when
20257afc53b8SAndrew Thompsonit is removed from the bridge.
20267afc53b8SAndrew Thompson.It Cm maxaddr Ar size
20277afc53b8SAndrew ThompsonSet the size of the bridge address cache to
20287afc53b8SAndrew Thompson.Ar size .
20297afc53b8SAndrew ThompsonThe default is 100 entries.
20307afc53b8SAndrew Thompson.It Cm timeout Ar seconds
20317afc53b8SAndrew ThompsonSet the timeout of address cache entries to
20327afc53b8SAndrew Thompson.Ar seconds
20337afc53b8SAndrew Thompsonseconds.
20347afc53b8SAndrew ThompsonIf
20357afc53b8SAndrew Thompson.Ar seconds
20367afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired.
20377afc53b8SAndrew ThompsonThe default is 240 seconds.
2038db7d6dc1SAndrew Thompson.It Cm addr
2039db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge.
2040db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address
2041db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to
2042db7d6dc1SAndrew Thompson.Ar interface-name .
2043db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the
2044db7d6dc1SAndrew Thompsonaddress is seen on a different interface.
20457afc53b8SAndrew Thompson.It Cm deladdr Ar address
20467afc53b8SAndrew ThompsonDelete
20477afc53b8SAndrew Thompson.Ar address
20487afc53b8SAndrew Thompsonfrom the address cache.
20497afc53b8SAndrew Thompson.It Cm flush
20507afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache.
20517afc53b8SAndrew Thompson.It Cm flushall
20527afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache.
20537afc53b8SAndrew Thompson.It Cm discover Ar interface
20547afc53b8SAndrew ThompsonMark an interface as a
20557afc53b8SAndrew Thompson.Dq discovering
20567afc53b8SAndrew Thompsoninterface.
20577afc53b8SAndrew ThompsonWhen the bridge has no address cache entry
20587afc53b8SAndrew Thompson(either dynamic or static)
20597afc53b8SAndrew Thompsonfor the destination address of a packet,
20607afc53b8SAndrew Thompsonthe bridge will forward the packet to all
20617afc53b8SAndrew Thompsonmember interfaces marked as
20627afc53b8SAndrew Thompson.Dq discovering .
20637afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
20647afc53b8SAndrew Thompson.It Cm -discover Ar interface
20657afc53b8SAndrew ThompsonClear the
20667afc53b8SAndrew Thompson.Dq discovering
20677afc53b8SAndrew Thompsonattribute on a member interface.
20687afc53b8SAndrew ThompsonFor packets without the
20697afc53b8SAndrew Thompson.Dq discovering
20707afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast
20717afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address
20727afc53b8SAndrew Thompsonis known to be on the interface's segment.
20737afc53b8SAndrew Thompson.It Cm learn Ar interface
20747afc53b8SAndrew ThompsonMark an interface as a
20757afc53b8SAndrew Thompson.Dq learning
20767afc53b8SAndrew Thompsoninterface.
20777afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source
20787afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a
20797afc53b8SAndrew Thompsondestination address on the interface's segment.
20807afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
20817afc53b8SAndrew Thompson.It Cm -learn Ar interface
20827afc53b8SAndrew ThompsonClear the
20837afc53b8SAndrew Thompson.Dq learning
20847afc53b8SAndrew Thompsonattribute on a member interface.
20853df7fad0SAndrew Thompson.It Cm sticky Ar interface
20863df7fad0SAndrew ThompsonMark an interface as a
20873df7fad0SAndrew Thompson.Dq sticky
20883df7fad0SAndrew Thompsoninterface.
20893df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into
20903df7fad0SAndrew Thompsonthe cache.
20913df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the
20923df7fad0SAndrew Thompsonaddress is seen on a different interface.
20933df7fad0SAndrew Thompson.It Cm -sticky Ar interface
20943df7fad0SAndrew ThompsonClear the
20953df7fad0SAndrew Thompson.Dq sticky
20963df7fad0SAndrew Thompsonattribute on a member interface.
209785ce7297SAndrew Thompson.It Cm private Ar interface
209885ce7297SAndrew ThompsonMark an interface as a
209985ce7297SAndrew Thompson.Dq private
210085ce7297SAndrew Thompsoninterface.
210185ce7297SAndrew ThompsonA private interface does not forward any traffic to any other port that is also
210285ce7297SAndrew Thompsona private interface.
210385ce7297SAndrew Thompson.It Cm -private Ar interface
210485ce7297SAndrew ThompsonClear the
210585ce7297SAndrew Thompson.Dq private
210685ce7297SAndrew Thompsonattribute on a member interface.
210791f6764eSAndrew Thompson.It Cm span Ar interface
210891f6764eSAndrew ThompsonAdd the interface named by
210991f6764eSAndrew Thompson.Ar interface
211091f6764eSAndrew Thompsonas a span port on the bridge.
211191f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge.
211291f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on
211391f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge.
211491f6764eSAndrew Thompson.It Cm -span Ar interface
211591f6764eSAndrew ThompsonDelete the interface named by
211691f6764eSAndrew Thompson.Ar interface
211791f6764eSAndrew Thompsonfrom the list of span ports of the bridge.
21187afc53b8SAndrew Thompson.It Cm stp Ar interface
21197afc53b8SAndrew ThompsonEnable Spanning Tree protocol on
21207afc53b8SAndrew Thompson.Ar interface .
21217afc53b8SAndrew ThompsonThe
21227afc53b8SAndrew Thompson.Xr if_bridge 4
21237afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP).
21247afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology.
21257afc53b8SAndrew Thompson.It Cm -stp Ar interface
21267afc53b8SAndrew ThompsonDisable Spanning Tree protocol on
21277afc53b8SAndrew Thompson.Ar interface .
21287afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
21293fab7669SAndrew Thompson.It Cm edge Ar interface
21303fab7669SAndrew ThompsonSet
21313fab7669SAndrew Thompson.Ar interface
21323fab7669SAndrew Thompsonas an edge port.
21333fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging
21343fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding.
21353fab7669SAndrew Thompson.It Cm -edge Ar interface
21363fab7669SAndrew ThompsonDisable edge status on
21373fab7669SAndrew Thompson.Ar interface .
21383fab7669SAndrew Thompson.It Cm autoedge Ar interface
21393fab7669SAndrew ThompsonAllow
21403fab7669SAndrew Thompson.Ar interface
21413fab7669SAndrew Thompsonto automatically detect edge status.
21423fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge.
21433fab7669SAndrew Thompson.It Cm -autoedge Ar interface
21443fab7669SAndrew ThompsonDisable automatic edge status on
21453fab7669SAndrew Thompson.Ar interface .
214678709605SAndrew Thompson.It Cm ptp Ar interface
2147153f9b00SAndrew ThompsonSet the
2148153f9b00SAndrew Thompson.Ar interface
2149153f9b00SAndrew Thompsonas a point to point link.
2150153f9b00SAndrew ThompsonThis is required for straight transitions to forwarding and
2151153f9b00SAndrew Thompsonshould be enabled on a direct link to another RSTP capable switch.
215278709605SAndrew Thompson.It Cm -ptp Ar interface
2153153f9b00SAndrew ThompsonDisable point to point link status on
2154153f9b00SAndrew Thompson.Ar interface .
2155153f9b00SAndrew ThompsonThis should be disabled for a half duplex link and for an interface
2156153f9b00SAndrew Thompsonconnected to a shared network segment,
2157153f9b00SAndrew Thompsonlike a hub or a wireless network.
215878709605SAndrew Thompson.It Cm autoptp Ar interface
2159153f9b00SAndrew ThompsonAutomatically detect the point to point status on
2160153f9b00SAndrew Thompson.Ar interface
2161153f9b00SAndrew Thompsonby checking the full duplex link status.
2162153f9b00SAndrew ThompsonThis is the default for interfaces added to the bridge.
216378709605SAndrew Thompson.It Cm -autoptp Ar interface
2164153f9b00SAndrew ThompsonDisable automatic point to point link detection on
2165153f9b00SAndrew Thompson.Ar interface .
21667afc53b8SAndrew Thompson.It Cm maxage Ar seconds
21677afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid.
21687afc53b8SAndrew ThompsonThe default is 20 seconds.
21693fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds.
21707afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds
21717afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding
21727afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled.
21737afc53b8SAndrew ThompsonThe default is 15 seconds.
21743fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds.
21757afc53b8SAndrew Thompson.It Cm hellotime Ar seconds
21767afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol
21777afc53b8SAndrew Thompsonconfiguration messages.
21783fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode.
21797afc53b8SAndrew ThompsonThe default is 2 seconds.
21803fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds.
21817afc53b8SAndrew Thompson.It Cm priority Ar value
21827afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree.
21837afc53b8SAndrew ThompsonThe default is 32768.
21843fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440.
218599469fe2SAndrew Thompson.It Cm proto Ar value
21863fab7669SAndrew ThompsonSet the Spanning Tree protocol.
21873fab7669SAndrew ThompsonThe default is rstp.
21883fab7669SAndrew ThompsonThe available options are stp and rstp.
21891dfd31abSAndrew Thompson.It Cm holdcnt Ar value
21903fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree.
21913fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited.
21923fab7669SAndrew ThompsonThe default is 6.
21933fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10.
21947afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value
21957afc53b8SAndrew ThompsonSet the Spanning Tree priority of
21967afc53b8SAndrew Thompson.Ar interface
21977afc53b8SAndrew Thompsonto
21987afc53b8SAndrew Thompson.Ar value .
21997afc53b8SAndrew ThompsonThe default is 128.
22003fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240.
22017afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value
22027afc53b8SAndrew ThompsonSet the Spanning Tree path cost of
22037afc53b8SAndrew Thompson.Ar interface
22047afc53b8SAndrew Thompsonto
22057afc53b8SAndrew Thompson.Ar value .
22063fab7669SAndrew ThompsonThe default is calculated from the link speed.
22073fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the
22083fab7669SAndrew Thompsoncost to 0.
22093fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000.
22105f33ec7bSAndrew Thompson.It Cm ifmaxaddr Ar interface Ar size
22115f33ec7bSAndrew ThompsonSet the maximum number of hosts allowed from an interface, packets with unknown
22125f33ec7bSAndrew Thompsonsource addresses are dropped until an existing host cache entry expires or is
22135f33ec7bSAndrew Thompsonremoved.
22145f33ec7bSAndrew ThompsonSet to 0 to disable.
22157afc53b8SAndrew Thompson.El
22167afc53b8SAndrew Thompson.Pp
221718242d3bSAndrew ThompsonThe following parameters are specific to lagg interfaces:
22187b62d98bSAndrew Thompson.Bl -tag -width indent
221918242d3bSAndrew Thompson.It Cm laggport Ar interface
22207b62d98bSAndrew ThompsonAdd the interface named by
22217b62d98bSAndrew Thompson.Ar interface
222218242d3bSAndrew Thompsonas a port of the aggregation interface.
222318242d3bSAndrew Thompson.It Cm -laggport Ar interface
22247b62d98bSAndrew ThompsonRemove the interface named by
22257b62d98bSAndrew Thompson.Ar interface
222618242d3bSAndrew Thompsonfrom the aggregation interface.
222718242d3bSAndrew Thompson.It Cm laggproto Ar proto
222818242d3bSAndrew ThompsonSet the aggregation protocol.
22297b62d98bSAndrew ThompsonThe default is failover.
22307b62d98bSAndrew ThompsonThe available options are failover, fec, lacp, loadbalance, roundrobin and
22317b62d98bSAndrew Thompsonnone.
22327b62d98bSAndrew Thompson.El
22337b62d98bSAndrew Thompson.Pp
2234163653e8SYaroslav TykhiyThe following parameters are specific to IP tunnel interfaces,
2235163653e8SYaroslav Tykhiy.Xr gif 4 :
2236163653e8SYaroslav Tykhiy.Bl -tag -width indent
2237163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr
2238163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel
2239163653e8SYaroslav Tykhiyinterfaces.
2240163653e8SYaroslav TykhiyThe arguments
2241163653e8SYaroslav Tykhiy.Ar src_addr
2242163653e8SYaroslav Tykhiyand
2243163653e8SYaroslav Tykhiy.Ar dest_addr
2244163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating
2245163653e8SYaroslav TykhiyIPv4/IPv6 header.
22469e241c5eSYaroslav Tykhiy.It Fl tunnel
2247163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel
2248163653e8SYaroslav Tykhiyinterfaces previously configured with
2249163653e8SYaroslav Tykhiy.Cm tunnel .
22509e241c5eSYaroslav Tykhiy.It Cm deletetunnel
22519e241c5eSYaroslav TykhiyAnother name for the
22529e241c5eSYaroslav Tykhiy.Fl tunnel
22539e241c5eSYaroslav Tykhiyparameter.
22546dcd0ad8SHiroki Sato.It Cm accept_rev_ethip_ver
22556dcd0ad8SHiroki SatoSet a flag to acccept both correct EtherIP packets and ones
22566dcd0ad8SHiroki Satowith reversed version field.  Enabled by default.
22576dcd0ad8SHiroki SatoThis is for backward compatibility with
22586dcd0ad8SHiroki Sato.Fx 6.1 ,
22596dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1.
22606dcd0ad8SHiroki Sato.It Cm -accept_rev_ethip_ver
22616dcd0ad8SHiroki SatoClear a flag
22626dcd0ad8SHiroki Sato.Cm accept_rev_ethip_ver .
22636dcd0ad8SHiroki Sato.It Cm send_rev_ethip_ver
22646dcd0ad8SHiroki SatoSet a flag to send EtherIP packets with reversed version
22656dcd0ad8SHiroki Satofield intentionally.  Disabled by default.
22666dcd0ad8SHiroki SatoThis is for backward compatibility with
22676dcd0ad8SHiroki Sato.Fx 6.1 ,
22686dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1.
22696dcd0ad8SHiroki Sato.It Cm -send_rev_ethip_ver
22706dcd0ad8SHiroki SatoClear a flag
22716dcd0ad8SHiroki Sato.Cm send_rev_ethip_ver .
2272163653e8SYaroslav Tykhiy.El
2273163653e8SYaroslav Tykhiy.Pp
2274131c55bcSAndrew ThompsonThe following parameters are specific to GRE tunnel interfaces,
2275131c55bcSAndrew Thompson.Xr gre 4 :
2276131c55bcSAndrew Thompson.Bl -tag -width indent
2277131c55bcSAndrew Thompson.It Cm grekey Ar key
2278131c55bcSAndrew ThompsonConfigure the GRE key to be used for outgoing packets.
2279131c55bcSAndrew ThompsonNote that
2280131c55bcSAndrew Thompson.Xr gre 4 will always accept GRE packets with invalid or absent keys.
2281131c55bcSAndrew ThompsonThis command will result in a four byte MTU reduction on the interface.
2282131c55bcSAndrew Thompson.El
2283131c55bcSAndrew Thompson.Pp
2284163653e8SYaroslav TykhiyThe following parameters are specific to
2285ced42c6cSCeri Davies.Xr pfsync 4
2286ced42c6cSCeri Daviesinterfaces:
2287ced42c6cSCeri Davies.Bl -tag -width indent
2288ced42c6cSCeri Davies.It Cm maxupd Ar n
2289ced42c6cSCeri DaviesSet the maximum number of updates for a single state which
2290ced42c6cSCeri Daviescan be collapsed into one.
2291ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128.
2292ced42c6cSCeri Davies.El
2293ced42c6cSCeri Davies.Pp
2294ced42c6cSCeri DaviesThe following parameters are specific to
2295163653e8SYaroslav Tykhiy.Xr vlan 4
2296163653e8SYaroslav Tykhiyinterfaces:
2297163653e8SYaroslav Tykhiy.Bl -tag -width indent
2298163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag
2299163653e8SYaroslav TykhiySet the VLAN tag value to
2300163653e8SYaroslav Tykhiy.Ar vlan_tag .
2301163653e8SYaroslav TykhiyThis value is a 16-bit number which is used to create an 802.1Q
2302163653e8SYaroslav TykhiyVLAN header for packets sent from the
2303163653e8SYaroslav Tykhiy.Xr vlan 4
2304163653e8SYaroslav Tykhiyinterface.
2305163653e8SYaroslav TykhiyNote that
2306163653e8SYaroslav Tykhiy.Cm vlan
2307163653e8SYaroslav Tykhiyand
2308163653e8SYaroslav Tykhiy.Cm vlandev
2309163653e8SYaroslav Tykhiymust both be set at the same time.
2310163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface
2311163653e8SYaroslav TykhiyAssociate the physical interface
2312163653e8SYaroslav Tykhiy.Ar iface
2313163653e8SYaroslav Tykhiywith a
2314163653e8SYaroslav Tykhiy.Xr vlan 4
2315163653e8SYaroslav Tykhiyinterface.
2316163653e8SYaroslav TykhiyPackets transmitted through the
2317163653e8SYaroslav Tykhiy.Xr vlan 4
2318163653e8SYaroslav Tykhiyinterface will be
2319163653e8SYaroslav Tykhiydiverted to the specified physical interface
2320163653e8SYaroslav Tykhiy.Ar iface
2321163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation.
2322163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received
2323163653e8SYaroslav Tykhiyby the parent interface with the correct VLAN tag will be diverted to
2324163653e8SYaroslav Tykhiythe associated
2325163653e8SYaroslav Tykhiy.Xr vlan 4
2326163653e8SYaroslav Tykhiypseudo-interface.
2327163653e8SYaroslav TykhiyThe
2328163653e8SYaroslav Tykhiy.Xr vlan 4
2329163653e8SYaroslav Tykhiyinterface is assigned a
2330163653e8SYaroslav Tykhiycopy of the parent interface's flags and the parent's ethernet address.
2331163653e8SYaroslav TykhiyThe
2332163653e8SYaroslav Tykhiy.Cm vlandev
2333163653e8SYaroslav Tykhiyand
2334163653e8SYaroslav Tykhiy.Cm vlan
2335163653e8SYaroslav Tykhiymust both be set at the same time.
2336163653e8SYaroslav TykhiyIf the
2337163653e8SYaroslav Tykhiy.Xr vlan 4
2338163653e8SYaroslav Tykhiyinterface already has
2339163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail.
2340163653e8SYaroslav TykhiyTo
2341163653e8SYaroslav Tykhiychange the association to another physical interface, the existing
2342163653e8SYaroslav Tykhiyassociation must be cleared first.
2343163653e8SYaroslav Tykhiy.Pp
2344163653e8SYaroslav TykhiyNote: if the hardware tagging capability
2345163653e8SYaroslav Tykhiyis set on the parent interface, the
2346163653e8SYaroslav Tykhiy.Xr vlan 4
2347163653e8SYaroslav Tykhiypseudo
2348163653e8SYaroslav Tykhiyinterface's behavior changes:
2349163653e8SYaroslav Tykhiythe
2350163653e8SYaroslav Tykhiy.Xr vlan 4
2351163653e8SYaroslav Tykhiyinterface recognizes that the
2352163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its
2353163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from
2354163653e8SYaroslav Tykhiythe parent unaltered.
2355b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface
2356163653e8SYaroslav TykhiyIf the driver is a
2357163653e8SYaroslav Tykhiy.Xr vlan 4
2358b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it.
2359163653e8SYaroslav TykhiyThis breaks the link between the
2360163653e8SYaroslav Tykhiy.Xr vlan 4
2361163653e8SYaroslav Tykhiyinterface and its parent,
2362163653e8SYaroslav Tykhiyclears its VLAN tag, flags and its link address and shuts the interface down.
2363b0dcc11cSYaroslav TykhiyThe
2364b0dcc11cSYaroslav Tykhiy.Ar iface
2365b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated.
2366163653e8SYaroslav Tykhiy.El
2367163653e8SYaroslav Tykhiy.Pp
2368556c9a4cSJesus R. CamouThe following parameters are specific to
2369556c9a4cSJesus R. Camou.Xr carp 4
2370556c9a4cSJesus R. Camouinterfaces:
2371556c9a4cSJesus R. Camou.Bl -tag -width indent
2372556c9a4cSJesus R. Camou.It Cm advbase Ar seconds
2373556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds.
2374556c9a4cSJesus R. CamouThe acceptable values are 1 to 255.
2375556c9a4cSJesus R. CamouThe default value is 1.
2376556c9a4cSJesus R. Camou.\" The default value is
2377556c9a4cSJesus R. Camou.\" .Dv CARP_DFLTINTV .
2378556c9a4cSJesus R. Camou.It Cm advskew Ar interval
2379556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to
2380556c9a4cSJesus R. Camoumake one host advertise slower than another host.
2381556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds.
2382556c9a4cSJesus R. CamouThe acceptable values are 1 to 254.
2383556c9a4cSJesus R. CamouThe default value is 0.
2384556c9a4cSJesus R. Camou.It Cm pass Ar phrase
2385556c9a4cSJesus R. CamouSet the authentication key to
2386556c9a4cSJesus R. Camou.Ar phrase .
2387556c9a4cSJesus R. Camou.It Cm vhid Ar n
2388556c9a4cSJesus R. CamouSet the virtual host ID.
2389556c9a4cSJesus R. CamouThis is a required setting.
2390556c9a4cSJesus R. CamouAcceptable values are 1 to 255.
2391556c9a4cSJesus R. Camou.El
2392556c9a4cSJesus R. Camou.Pp
2393e1205e80SPhilippe CharnierThe
2394e1205e80SPhilippe Charnier.Nm
2395e1205e80SPhilippe Charnierutility displays the current configuration for a network interface
23968fae3551SRodney W. Grimeswhen no optional parameters are supplied.
23978fae3551SRodney W. GrimesIf a protocol family is specified,
2398e333b944SPhilippe Charnier.Nm
2399e333b944SPhilippe Charnierwill report only the details specific to that protocol family.
2400b5436146SPeter Wemm.Pp
2401ca299b1fSPoul-Henning KampIf the
2402ca299b1fSPoul-Henning Kamp.Fl m
2403b09b4efbSRuslan Ermilovflag is passed before an interface name,
2404b09b4efbSRuslan Ermilov.Nm
2405fc281403SRuslan Ermilovwill display the capability list and all
2406ca299b1fSPoul-Henning Kampof the supported media for the specified interface.
2407cfa1ca9dSYoshinobu InoueIf
2408cfa1ca9dSYoshinobu Inoue.Fl L
2409b112c02bSBen Smithurstflag is supplied, address lifetime is displayed for IPv6 addresses,
2410cfa1ca9dSYoshinobu Inoueas time offset string.
2411cfa1ca9dSYoshinobu Inoue.Pp
2412b5436146SPeter WemmOptionally, the
2413b5436146SPeter Wemm.Fl a
2414b09b4efbSRuslan Ermilovflag may be used instead of an interface name.
2415b09b4efbSRuslan ErmilovThis flag instructs
2416b5436146SPeter Wemm.Nm
2417b5436146SPeter Wemmto display information about all interfaces in the system.
2418e333b944SPhilippe CharnierThe
2419b5436146SPeter Wemm.Fl d
2420e333b944SPhilippe Charnierflag limits this to interfaces that are down, and
2421b5436146SPeter Wemm.Fl u
2422b5436146SPeter Wemmlimits this to interfaces that are up.
2423abc3361aSArchie CobbsWhen no arguments are given,
2424abc3361aSArchie Cobbs.Fl a
2425abc3361aSArchie Cobbsis implied.
2426b5436146SPeter Wemm.Pp
2427b5436146SPeter WemmThe
2428b5436146SPeter Wemm.Fl l
2429b5436146SPeter Wemmflag may be used to list all available interfaces on the system, with
2430b09b4efbSRuslan Ermilovno other additional information.
2431b09b4efbSRuslan ErmilovUse of this flag is mutually exclusive
2432b5436146SPeter Wemmwith all other flags and commands, except for
2433b5436146SPeter Wemm.Fl d
2434b5436146SPeter Wemm(only list interfaces that are down)
2435b5436146SPeter Wemmand
2436b5436146SPeter Wemm.Fl u
2437b5436146SPeter Wemm(only list interfaces that are up).
24388fae3551SRodney W. Grimes.Pp
24393e61dca0SBrooks DavisThe
24405faf8dcbSSam Leffler.Fl v
24415faf8dcbSSam Lefflerflag may be used to get more verbose status for an interface.
24425faf8dcbSSam Leffler.Pp
24435faf8dcbSSam LefflerThe
24443e61dca0SBrooks Davis.Fl C
24453e61dca0SBrooks Davisflag may be used to list all of the interface cloners available on
24463e61dca0SBrooks Davisthe system, with no additional information.
24473e61dca0SBrooks DavisUse of this flag is mutually exclusive with all other flags and commands.
24483e61dca0SBrooks Davis.Pp
2449b7eb47e2SRobert WatsonThe
2450b7eb47e2SRobert Watson.Fl k
2451b7eb47e2SRobert Watsonflag causes keying information for the interface, if available, to be
2452b7eb47e2SRobert Watsonprinted.
2453b7eb47e2SRobert WatsonFor example, the values of 802.11 WEP keys will be printed, if accessible to
2454b7eb47e2SRobert Watsonthe current user.
2455b7eb47e2SRobert WatsonThis information is not printed by default, as it may be considered
2456b7eb47e2SRobert Watsonsensitive.
2457b7eb47e2SRobert Watson.Pp
2458a389ab00SAndrew ThompsonIf the network interface driver is not present in the kernel then
2459a389ab00SAndrew Thompson.Nm
2460a389ab00SAndrew Thompsonwill attempt to load it.
2461a389ab00SAndrew ThompsonThe
2462a389ab00SAndrew Thompson.Fl n
2463a389ab00SAndrew Thompsonflag disables this behavior.
2464a389ab00SAndrew Thompson.Pp
24658fae3551SRodney W. GrimesOnly the super-user may modify the configuration of a network interface.
2466920de530SPeter Wemm.Sh NOTES
2467920de530SPeter WemmThe media selection system is relatively new and only some drivers support
2468920de530SPeter Wemmit (or have need for it).
24699bad5f37SBruce M Simpson.Sh EXAMPLES
24709bad5f37SBruce M SimpsonAssign the IPv4 address
24719bb9973cSBruce M Simpson.Li 192.0.2.10 ,
24729bad5f37SBruce M Simpsonwith a network mask of
24739bad5f37SBruce M Simpson.Li 255.255.255.0 ,
24749bad5f37SBruce M Simpsonto the interface
24759bad5f37SBruce M Simpson.Li fxp0 :
24769bb9973cSBruce M Simpson.Dl # ifconfig fxp0 inet 192.0.2.10 netmask 255.255.255.0
24779bad5f37SBruce M Simpson.Pp
24789bb9973cSBruce M SimpsonAdd the IPv4 address
24799bb9973cSBruce M Simpson.Li 192.0.2.45 ,
24809bad5f37SBruce M Simpsonwith the CIDR network prefix
24819bb9973cSBruce M Simpson.Li /28 ,
24829bad5f37SBruce M Simpsonto the interface
24839bb9973cSBruce M Simpson.Li ed0 ,
24849bb9973cSBruce M Simpsonusing
24859bb9973cSBruce M Simpson.Cm add
24869bb9973cSBruce M Simpsonas a synonym for the canonical form of the option
24879bb9973cSBruce M Simpson.Cm alias :
24889bb9973cSBruce M Simpson.Dl # ifconfig ed0 inet 192.0.2.45/28 add
24899bad5f37SBruce M Simpson.Pp
24909bb9973cSBruce M SimpsonRemove the IPv4 address
24919bb9973cSBruce M Simpson.Li 192.0.2.45
24929bb9973cSBruce M Simpsonfrom the interface
24939bb9973cSBruce M Simpson.Li ed0 :
24949bb9973cSBruce M Simpson.Dl # ifconfig ed0 inet 192.0.2.45 -alias
24959bb9973cSBruce M Simpson.Pp
2496a283298cSHiroki SatoEnable IPv6 functionality of the interface:
2497a283298cSHiroki Sato.Dl # ifconfig em0 inet6 -ifdisabled
2498a283298cSHiroki Sato.Pp
24999bb9973cSBruce M SimpsonAdd the IPv6 address
25009bb9973cSBruce M Simpson.Li 2001:DB8:DBDB::123/48
25019bad5f37SBruce M Simpsonto the interface
25029bad5f37SBruce M Simpson.Li em0 :
25039bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias
25049bb9973cSBruce M SimpsonNote that lower case hexadecimal IPv6 addresses are acceptable.
25059bad5f37SBruce M Simpson.Pp
25069bad5f37SBruce M SimpsonRemove the IPv6 address added in the above example,
25079bad5f37SBruce M Simpsonusing the
25089bad5f37SBruce M Simpson.Li /
25099bb9973cSBruce M Simpsoncharacter as shorthand for the network prefix,
25109bb9973cSBruce M Simpsonand using
25119bb9973cSBruce M Simpson.Cm delete
25129bb9973cSBruce M Simpsonas a synonym for the canonical form of the option
25139bb9973cSBruce M Simpson.Fl alias :
25149bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete
25159bad5f37SBruce M Simpson.Pp
25169bad5f37SBruce M SimpsonConfigure the interface
25179bad5f37SBruce M Simpson.Li xl0 ,
25189bad5f37SBruce M Simpsonto use 100baseTX, full duplex Ethernet media options:
25199bad5f37SBruce M Simpson.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex
25209bad5f37SBruce M Simpson.Pp
2521215940b3SXin LILabel the em0 interface as an uplink:
2522215940b3SXin LI.Pp
2523215940b3SXin LI.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&"
2524215940b3SXin LI.Pp
25259bad5f37SBruce M SimpsonCreate the software network interface
25269bad5f37SBruce M Simpson.Li gif1 :
25279bad5f37SBruce M Simpson.Dl # ifconfig gif1 create
25289bad5f37SBruce M Simpson.Pp
25299bad5f37SBruce M SimpsonDestroy the software network interface
25309bad5f37SBruce M Simpson.Li gif1 :
25319bad5f37SBruce M Simpson.Dl # ifconfig gif1 destroy
25328fae3551SRodney W. Grimes.Sh DIAGNOSTICS
253320d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the
25348fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and
25358fae3551SRodney W. Grimestried to alter an interface's configuration.
25368fae3551SRodney W. Grimes.Sh SEE ALSO
25378fae3551SRodney W. Grimes.Xr netstat 1 ,
25384029efa5SChristian Brueffer.Xr carp 4 ,
25396dcd0ad8SHiroki Sato.Xr gif 4 ,
25408fae3551SRodney W. Grimes.Xr netintro 4 ,
2541ced42c6cSCeri Davies.Xr pfsync 4 ,
25424029efa5SChristian Brueffer.Xr polling 4 ,
2543588e78c5SYaroslav Tykhiy.Xr vlan 4 ,
2544b09b4efbSRuslan Ermilov.\" .Xr eon 5 ,
25458fae3551SRodney W. Grimes.Xr rc 8 ,
25464b32efacSBruce M Simpson.Xr routed 8 ,
25475061de23SJamie Gritton.Xr jail 8 ,
25484b32efacSBruce M Simpson.Xr sysctl 8
25498fae3551SRodney W. Grimes.Sh HISTORY
25508fae3551SRodney W. GrimesThe
25518fae3551SRodney W. Grimes.Nm
2552e1205e80SPhilippe Charnierutility appeared in
25538fae3551SRodney W. Grimes.Bx 4.2 .
25546087df9eSRuslan Ermilov.Sh BUGS
25556087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each
25566087df9eSRuslan Ermilovinterface configured for IPv6.
25576087df9eSRuslan ErmilovNormally, such an address is automatically configured by the
2558a283298cSHiroki Satokernel on each interface added to the system or enabled; this behavior may
2559a283298cSHiroki Satobe disabled by setting per-interface flag
2560a283298cSHiroki Sato.Cm -auto_linklocal .
2561a283298cSHiroki SatoThe default value of this flag is 1 and can be disabled by using the sysctl
2562a283298cSHiroki SatoMIB variable
2563a283298cSHiroki Sato.Va net.inet6.ip6.auto_linklocal .
25646087df9eSRuslan Ermilov.Pp
2565a283298cSHiroki SatoDo not configure IPv6 addresses with no link-local address by using
2566a283298cSHiroki Sato.Nm .
2567a283298cSHiroki SatoIt can result in unexpected behaviors of the kernel.
2568