xref: /freebsd/sbin/ifconfig/ifconfig.8 (revision 00c9a6806c9cf3357b62f6708e5acd1ffd166613)
121faf821SPau Amma.\"-
221faf821SPau Amma.\" SPDX-License-Identifier: BSD-3-Clause
321faf821SPau Amma.\"
48fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993
58fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
68fae3551SRodney W. Grimes.\"
78fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
88fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
98fae3551SRodney W. Grimes.\" are met:
108fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
118fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
128fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
138fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
148fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
15fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
168fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
178fae3551SRodney W. Grimes.\"    without specific prior written permission.
188fae3551SRodney W. Grimes.\"
198fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
208fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
218fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
228fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
238fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
248fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
258fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
268fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
278fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
288fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
298fae3551SRodney W. Grimes.\" SUCH DAMAGE.
308fae3551SRodney W. Grimes.\"
3121faf821SPau Amma.Dd June 6, 2024
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
397e49aa86SYan Ka Chiu.Op Fl j Ar jail
40cd201c09SMike Karels.Op Fl DkLmn
4152ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format
42abc3361aSArchie Cobbs.Ar interface
433e61dca0SBrooks Davis.Op Cm create
442cd28d6fSMateusz Piotrowski.Oo
455af3fa9aSBjoern A. Zeeb.Ar address_family
468fae3551SRodney W. Grimes.Oo
47eb2a1701SDima Dorfman.Ar address
488fae3551SRodney W. Grimes.Op Ar dest_address
498fae3551SRodney W. Grimes.Oc
502cd28d6fSMateusz Piotrowski.Oc
518fae3551SRodney W. Grimes.Op Ar parameters
527c7fb079SRuslan Ermilov.Nm
537e49aa86SYan Ka Chiu.Op Fl j Ar jail
543e61dca0SBrooks Davis.Ar interface
553e61dca0SBrooks Davis.Cm destroy
563e61dca0SBrooks Davis.Nm
577e49aa86SYan Ka Chiu.Op Fl j Ar jail
58b5436146SPeter Wemm.Fl a
59cd201c09SMike Karels.Op Fl dDkLmuv
6052ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format
61d1d14f04SMateusz Piotrowski.Op Fl G Ar groupname
62d1d14f04SMateusz Piotrowski.Op Fl g Ar groupname
63e333b944SPhilippe Charnier.Op Ar address_family
647c7fb079SRuslan Ermilov.Nm
65efb4f7fdSMateusz Piotrowski.Fl C
66efb4f7fdSMateusz Piotrowski.Nm
677e49aa86SYan Ka Chiu.Op Fl j Ar jail
68a9475cb3SMateusz Piotrowski.Fl g Ar groupname
69a9475cb3SMateusz Piotrowski.Nm
707e49aa86SYan Ka Chiu.Op Fl j Ar jail
71b5436146SPeter Wemm.Fl l
722e053399SMateusz Piotrowski.Op Fl du
735533c504SMateusz Piotrowski.Op Fl g Ar groupname
74e333b944SPhilippe Charnier.Op Ar address_family
757c7fb079SRuslan Ermilov.Nm
767e49aa86SYan Ka Chiu.Op Fl j Ar jail
77efb4f7fdSMateusz Piotrowski.Op Fl dkLmuv
7852ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format
798fae3551SRodney W. Grimes.Sh DESCRIPTION
80e1205e80SPhilippe CharnierThe
81e1205e80SPhilippe Charnier.Nm
82e1205e80SPhilippe Charnierutility is used to assign an address
838fae3551SRodney W. Grimesto a network interface and/or configure
848fae3551SRodney W. Grimesnetwork interface parameters.
85e1205e80SPhilippe CharnierThe
86e1205e80SPhilippe Charnier.Nm
87e1205e80SPhilippe Charnierutility must be used at boot time to define the network address
888fae3551SRodney W. Grimesof each interface present on a machine; it may also be used at
898fae3551SRodney W. Grimesa later time to redefine an interface's address
908fae3551SRodney W. Grimesor other operating parameters.
918fae3551SRodney W. Grimes.Pp
92e333b944SPhilippe CharnierThe following options are available:
93e333b944SPhilippe Charnier.Bl -tag -width indent
940625c313SMateusz Piotrowski.It Fl a
950625c313SMateusz PiotrowskiDisplay information about all interfaces in the system.
960625c313SMateusz Piotrowski.Pp
970625c313SMateusz PiotrowskiThe
980625c313SMateusz Piotrowski.Fl a
990625c313SMateusz Piotrowskiflag may be used instead of the
1000625c313SMateusz Piotrowski.Ar interface
1010625c313SMateusz Piotrowskiargument.
10259cdaadcSMateusz Piotrowski.It Fl C
10359cdaadcSMateusz PiotrowskiList all the interface cloners available on the system,
10459cdaadcSMateusz Piotrowskiwith no additional information.
10559cdaadcSMateusz PiotrowskiUse of this flag is mutually exclusive with all other flags and commands.
1060625c313SMateusz Piotrowski.It Fl d
1070625c313SMateusz PiotrowskiDisplay only the interfaces that are down.
108cd201c09SMike Karels.It Fl D
109cd201c09SMike KarelsInclude the driver name and unit number of the interface in the output.
110cd201c09SMike KarelsThis is normally the original name of the interface,
111cd201c09SMike Karelseven if it has been renamed; it may differ from the original name
112cd201c09SMike Karelsin some cases, such as
113cd201c09SMike Karels.Xr epair 4 .
114f4f02fa1SMateusz Piotrowski.It Fl f Xo
115f4f02fa1SMateusz Piotrowski.Ar type Ns Cm \&: Ns Ar format Ns
116f4f02fa1SMateusz Piotrowski.Op Cm \&, Ns Ar type Ns Cm \&: Ns Ar format Ar ...
117f4f02fa1SMateusz Piotrowski.Xc
118f4f02fa1SMateusz PiotrowskiControl the output format of
119f4f02fa1SMateusz Piotrowski.Nm .
120f4f02fa1SMateusz PiotrowskiThe format is specified as a comma-separated list of
121f4f02fa1SMateusz Piotrowski.Ar type Ns Cm \&: Ns Ar format
122f4f02fa1SMateusz Piotrowskipairs
123f4f02fa1SMateusz Piotrowski.Po see the
124f4f02fa1SMateusz Piotrowski.Sx EXAMPLES
125f4f02fa1SMateusz Piotrowskisection for more information
126f4f02fa1SMateusz Piotrowski.Pc .
127f4f02fa1SMateusz Piotrowski.Pp
128f4f02fa1SMateusz PiotrowskiThe output format can also be specified via the
129f4f02fa1SMateusz Piotrowski.Ev IFCONFIG_FORMAT
130f4f02fa1SMateusz Piotrowskienvironment variable.
131f4f02fa1SMateusz PiotrowskiThe
132f4f02fa1SMateusz Piotrowski.Fl f
133f4f02fa1SMateusz Piotrowskiflag can be supplied multiple times.
134f4f02fa1SMateusz Piotrowski.Pp
135f4f02fa1SMateusz PiotrowskiThe
136f4f02fa1SMateusz Piotrowski.Ar type Ns s
137f4f02fa1SMateusz Piotrowskiand their associated
138f4f02fa1SMateusz Piotrowski.Ar format
139f4f02fa1SMateusz Piotrowskistrings are:
14039da6db9SMateusz Piotrowski.Pp
141847ef59dSDag-Erling Smørgrav.Bl -tag -width default
142f4f02fa1SMateusz Piotrowski.It Cm addr
143f4f02fa1SMateusz PiotrowskiAdjust the display of inet and inet6 addresses:
14439da6db9SMateusz Piotrowski.Pp
14539da6db9SMateusz Piotrowski.Bl -tag -width default -compact
146f4f02fa1SMateusz Piotrowski.It Cm default
14739da6db9SMateusz PiotrowskiDefault format,
148f4f02fa1SMateusz Piotrowski.Cm numeric
149f4f02fa1SMateusz Piotrowski.It Cm fqdn
15039da6db9SMateusz PiotrowskiFully qualified domain names
151f4f02fa1SMateusz Piotrowski.Pq FQDN
152f4f02fa1SMateusz Piotrowski.It Cm host
15339da6db9SMateusz PiotrowskiUnqualified hostnames
154f4f02fa1SMateusz Piotrowski.It Cm numeric
15539da6db9SMateusz PiotrowskiNumeric format
156f4f02fa1SMateusz Piotrowski.El
157f4f02fa1SMateusz Piotrowski.It Cm ether
158f4f02fa1SMateusz PiotrowskiAdjust the display of link-level ethernet (MAC) addresses:
15939da6db9SMateusz Piotrowski.Pp
16039da6db9SMateusz Piotrowski.Bl -tag -width default -compact
161f4f02fa1SMateusz Piotrowski.It Cm colon
162f4f02fa1SMateusz PiotrowskiSeparate address segments with a colon
163f4f02fa1SMateusz Piotrowski.It Cm dash
164f4f02fa1SMateusz PiotrowskiSeparate address segments with a dash
165d77ca41fSTrond Endrestol.It Cm dotted
166d77ca41fSTrond EndrestolDotted notation, for example:
167d77ca41fSTrond Endrestol.Ql 5254.0015.4a3b
168f4f02fa1SMateusz Piotrowski.It Cm default
16939da6db9SMateusz PiotrowskiDefault format,
170f4f02fa1SMateusz Piotrowski.Cm colon
171f4f02fa1SMateusz Piotrowski.El
172f4f02fa1SMateusz Piotrowski.It Cm inet
173f4f02fa1SMateusz PiotrowskiAdjust the display of inet address subnet masks:
17439da6db9SMateusz Piotrowski.Pp
17539da6db9SMateusz Piotrowski.Bl -tag -width default -compact
176f4f02fa1SMateusz Piotrowski.It Cm cidr
17739da6db9SMateusz PiotrowskiCIDR notation, for example:
17839da6db9SMateusz Piotrowski.Ql 203.0.113.224/26
179f4f02fa1SMateusz Piotrowski.It Cm default
18039da6db9SMateusz PiotrowskiDefault format,
181f4f02fa1SMateusz Piotrowski.Cm hex
182f4f02fa1SMateusz Piotrowski.It Cm dotted
18339da6db9SMateusz PiotrowskiDotted quad notation, for example:
18439da6db9SMateusz Piotrowski.Ql 255.255.255.192
185f4f02fa1SMateusz Piotrowski.It Cm hex
18639da6db9SMateusz PiotrowskiHexadecimal format, for example:
18739da6db9SMateusz Piotrowski.Ql 0xffffffc0
188f4f02fa1SMateusz Piotrowski.El
189f4f02fa1SMateusz Piotrowski.It Cm inet6
190f4f02fa1SMateusz PiotrowskiAdjust the display of inet6 address prefixes (subnet masks):
19139da6db9SMateusz Piotrowski.Pp
19239da6db9SMateusz Piotrowski.Bl -tag -width default -compact
193f4f02fa1SMateusz Piotrowski.It Cm cidr
19439da6db9SMateusz PiotrowskiCIDR notation, for example:
19539da6db9SMateusz Piotrowski.Ql ::1/128
196f4f02fa1SMateusz Piotrowskior
19739da6db9SMateusz Piotrowski.Ql fe80::1%lo0/64
198f4f02fa1SMateusz Piotrowski.It Cm default
19939da6db9SMateusz PiotrowskiDefault format,
200f4f02fa1SMateusz Piotrowski.Cm numeric
20139da6db9SMateusz Piotrowski.It Cm numeric
20239da6db9SMateusz PiotrowskiInteger format, for example:
20339da6db9SMateusz Piotrowski.Ql prefixlen 64
204f4f02fa1SMateusz Piotrowski.El
205f4f02fa1SMateusz Piotrowski.El
206847ef59dSDag-Erling Smørgrav.Pp
207847ef59dSDag-Erling SmørgravIn addition, the following shortcuts are accepted:
208847ef59dSDag-Erling Smørgrav.Bl -tag -width default
209847ef59dSDag-Erling Smørgrav.It Cm default
210847ef59dSDag-Erling SmørgravResets all formats to their default values.
211847ef59dSDag-Erling Smørgrav.It Cm cidr
212847ef59dSDag-Erling SmørgravShortcut notation for
213847ef59dSDag-Erling Smørgrav.Cm inet:cidr,inet6:cidr .
214847ef59dSDag-Erling Smørgrav.El
215847ef59dSDag-Erling Smørgrav.Pp
21678759908SMateusz Piotrowski.It Fl G Ar groupname
21778759908SMateusz PiotrowskiExclude members of the specified
21878759908SMateusz Piotrowski.Ar groupname
21978759908SMateusz Piotrowskifrom the output.
22078759908SMateusz Piotrowski.Pp
22121faf821SPau AmmaOnly one
22278759908SMateusz Piotrowski.Fl G
22321faf821SPau Ammaoption should be specified as later ones override earlier ones.
22478759908SMateusz Piotrowski.Ar groupname
22578759908SMateusz Piotrowskimay contain shell patterns in which case it should be quoted.
22678d4bd87SMateusz Piotrowski.Pp
22778d4bd87SMateusz PiotrowskiSetting
22878d4bd87SMateusz Piotrowski.Ar groupname
22978d4bd87SMateusz Piotrowskito
23078d4bd87SMateusz Piotrowski.Cm all
23178d4bd87SMateusz Piotrowskiselects all interfaces.
23278759908SMateusz Piotrowski.It Fl g Ar groupname
23378759908SMateusz PiotrowskiLimit the output to the members of the specified
23478759908SMateusz Piotrowski.Ar groupname .
23578759908SMateusz Piotrowski.Pp
2364d91c53aSMateusz PiotrowskiIf
2374d91c53aSMateusz Piotrowski.Fl g
2384d91c53aSMateusz Piotrowskiis specified before other significant flags like, e.g.,
2394d91c53aSMateusz Piotrowski.Fl a ,
2404d91c53aSMateusz Piotrowski.Fl l ,
2414d91c53aSMateusz Piotrowskior
2424d91c53aSMateusz Piotrowski.Fl C ,
2434d91c53aSMateusz Piotrowskithen
2444d91c53aSMateusz Piotrowski.Nm
245ccc48995SZhenlei Huanglists names of interfaces belonging to
2464d91c53aSMateusz Piotrowski.Ar groupname .
2474d91c53aSMateusz PiotrowskiAny other flags and arguments are ignored in this case.
2484d91c53aSMateusz Piotrowski.Pp
24921faf821SPau AmmaOnly one
25078759908SMateusz Piotrowski.Fl g
25121faf821SPau Ammaoption should be specified as later ones override earlier ones.
25278759908SMateusz Piotrowski.Ar groupname
25378759908SMateusz Piotrowskimay contain shell patterns in which case it should be quoted.
25478d4bd87SMateusz Piotrowski.Pp
25578d4bd87SMateusz PiotrowskiSetting
25678d4bd87SMateusz Piotrowski.Ar groupname
25778d4bd87SMateusz Piotrowskito
25878d4bd87SMateusz Piotrowski.Cm all
25978d4bd87SMateusz Piotrowskiselects all interfaces.
2607e49aa86SYan Ka Chiu.It Fl j Ar jail
2617e49aa86SYan Ka ChiuPerform the actions inside the
2627e49aa86SYan Ka Chiu.Ar jail .
2637e49aa86SYan Ka Chiu.Pp
2647e49aa86SYan Ka ChiuThe
2657e49aa86SYan Ka Chiu.Cm ifconfig
2667e49aa86SYan Ka Chiuwill first attach to the
2677e49aa86SYan Ka Chiu.Ar jail
2687e49aa86SYan Ka Chiu(by jail id or jail name) before performing the effects.
2697e49aa86SYan Ka Chiu.Pp
2707e49aa86SYan Ka ChiuThis allow network interfaces of
2717e49aa86SYan Ka Chiu.Ar jail
2727e49aa86SYan Ka Chiuto be configured even if the
2737e49aa86SYan Ka Chiu.Cm ifconfig
2747e49aa86SYan Ka Chiubinary is not available in
2757e49aa86SYan Ka Chiu.Ar jail .
2769076f99bSMateusz Piotrowski.It Fl k
2779076f99bSMateusz PiotrowskiPrint keying information for the
2789076f99bSMateusz Piotrowski.Ar interface ,
2799076f99bSMateusz Piotrowskiif available.
2809076f99bSMateusz Piotrowski.Pp
2819076f99bSMateusz PiotrowskiFor example, the values of 802.11 WEP keys and
2829076f99bSMateusz Piotrowski.Xr carp 4
2839076f99bSMateusz Piotrowskipassphrases will be printed, if accessible to the current user.
2849076f99bSMateusz Piotrowski.Pp
2859076f99bSMateusz PiotrowskiThis information is not printed by default, as it may be considered
2869076f99bSMateusz Piotrowskisensitive.
28719c1b75fSMateusz Piotrowski.It Fl L
28819c1b75fSMateusz PiotrowskiDisplay address lifetime for IPv6 addresses as time offset string.
289fe1e3b55SMateusz Piotrowski.It Fl l
290fe1e3b55SMateusz PiotrowskiList all available interfaces on the system,
291fe1e3b55SMateusz Piotrowskiwith no other additional information.
29219c1b75fSMateusz Piotrowski.Pp
293fe1e3b55SMateusz PiotrowskiIf an
294fe1e3b55SMateusz Piotrowski.Ar address_family
295fe1e3b55SMateusz Piotrowskiis specified, only interfaces of that type will be listed.
296ad8cac12SMateusz Piotrowski.Pp
297ad8cac12SMateusz PiotrowskiIf the
298ad8cac12SMateusz Piotrowski.Ar address_family
299ad8cac12SMateusz Piotrowskiis set to
300ad8cac12SMateusz Piotrowski.Cm ether ,
301ad8cac12SMateusz Piotrowskithen
302ad8cac12SMateusz Piotrowski.Fl l
303ad8cac12SMateusz Piotrowskiwill exclude loopback interfaces from the list of Ethernet interfaces.
304ad8cac12SMateusz PiotrowskiThis is a special case, because all the other synonyms of the
305ad8cac12SMateusz Piotrowski.Cm link
306ad8cac12SMateusz Piotrowskiaddress family will include loopback interfaces in the list.
307fe1e3b55SMateusz Piotrowski.Pp
308fe1e3b55SMateusz PiotrowskiUse of this flag is mutually exclusive
309fe1e3b55SMateusz Piotrowskiwith all other flags and commands, except for
310632ea8eaSMateusz Piotrowski.Fl d ,
311632ea8eaSMateusz Piotrowski.Fl g ,
312fe1e3b55SMateusz Piotrowskiand
313fe1e3b55SMateusz Piotrowski.Fl u .
314b56e4224SMateusz Piotrowski.It Fl m
315b56e4224SMateusz PiotrowskiDisplay the capability list and all
316b56e4224SMateusz Piotrowskiof the supported media for the specified interface.
317186a372fSMateusz Piotrowski.It Fl n
318186a372fSMateusz PiotrowskiDisable automatic loading of network interface drivers.
319186a372fSMateusz Piotrowski.Pp
3202567cc41SZhenlei HuangBy default if the network interface driver is not present in the kernel
3212567cc41SZhenlei Huangthen
322186a372fSMateusz Piotrowski.Nm
323186a372fSMateusz Piotrowskiwill attempt to load it.
3240625c313SMateusz Piotrowski.It Fl u
3250625c313SMateusz PiotrowskiDisplay only the interfaces that are up.
32659cdaadcSMateusz Piotrowski.It Fl v
32759cdaadcSMateusz PiotrowskiGet more verbose status for an interface.
328e333b944SPhilippe Charnier.It Ar address
329ccc48995SZhenlei HuangFor the inet family,
3308fae3551SRodney W. Grimesthe address is either a host name present in the host name data
3318fae3551SRodney W. Grimesbase,
3328fae3551SRodney W. Grimes.Xr hosts 5 ,
3332567cc41SZhenlei Huangor an IPv4 address expressed in the Internet standard
3348fae3551SRodney W. Grimes.Dq dot notation .
33512813062SJesper Skriver.Pp
33612813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the
33712813062SJesper Skriverslash notation) to include the netmask.
33812813062SJesper SkriverThat is, one can specify an address like
33919fe4826SRuslan Ermilov.Li 192.168.0.1/16 .
3409f1741caSRuslan Ermilov.Pp
3414f1fb109SGiorgos KeramidasFor the
3423049aac9SMateusz Piotrowski.Cm inet6
3439f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash
3449f1741caSRuslan Ermilovnotation, like
3459f1741caSRuslan Ermilov.Li ::1/128 .
3469f1741caSRuslan ErmilovSee the
3479f1741caSRuslan Ermilov.Cm prefixlen
3489f1741caSRuslan Ermilovparameter below for more information.
3491876df83SRuslan Ermilov.Pp
3501876df83SRuslan ErmilovThe link-level
3513049aac9SMateusz Piotrowski.Pq Cm link
3521876df83SRuslan Ermilovaddress
3531876df83SRuslan Ermilovis specified as a series of colon-separated hex digits.
35496db02f2SAllan JudeThis can be used to, for example,
35596db02f2SAllan Judeset a new MAC address on an Ethernet interface, though the
35696db02f2SAllan Judemechanism used is not Ethernet specific.
3573049aac9SMateusz Piotrowski.Pp
358e700bef2SMarcelo AraujoUse the
3593049aac9SMateusz Piotrowski.Cm random
360e700bef2SMarcelo Araujokeyword to set a randomly generated MAC address.
361e700bef2SMarcelo AraujoA randomly-generated MAC address might be the same as one already in use
362e700bef2SMarcelo Araujoin the network.
363e700bef2SMarcelo AraujoSuch duplications are extremely unlikely.
3643049aac9SMateusz Piotrowski.Pp
3651876df83SRuslan ErmilovIf the interface is already
3663049aac9SMateusz Piotrowskiup when the link-level address is modified,
3673049aac9SMateusz Piotrowskiit will be briefly brought down and
3681876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive
36996db02f2SAllan Judefilter in the underlying Ethernet hardware is properly reprogrammed.
3708fae3551SRodney W. Grimes.It Ar address_family
371e333b944SPhilippe CharnierSpecify the
372b09b4efbSRuslan Ermilovaddress family
3738fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters.
3748fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols
375e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended.
3768fae3551SRodney W. GrimesThe address or protocol families currently
377ad8cac12SMateusz Piotrowskisupported are:
378ad8cac12SMateusz Piotrowski.Bl -tag
379ad8cac12SMateusz Piotrowski.It Cm ether
380ad8cac12SMateusz PiotrowskiSynonymous with
381ad8cac12SMateusz Piotrowski.Cm link
382ad8cac12SMateusz Piotrowski.Po with some exceptions, see
3831d28cd26SAllan Jude.Fl l
384ad8cac12SMateusz Piotrowski.Pc .
385ad8cac12SMateusz Piotrowski.It Cm inet
386ad8cac12SMateusz PiotrowskiDefault, if available.
387ad8cac12SMateusz Piotrowski.It Cm inet6
388ad8cac12SMateusz Piotrowski.It Cm link
389ad8cac12SMateusz PiotrowskiDefault, if
390ad8cac12SMateusz Piotrowski.Cm inet
391ad8cac12SMateusz Piotrowskiis not available.
392ad8cac12SMateusz Piotrowski.It Cm lladdr
393ad8cac12SMateusz PiotrowskiSynonymous with
394ad8cac12SMateusz Piotrowski.Cm link .
395ad8cac12SMateusz Piotrowski.El
396e333b944SPhilippe Charnier.It Ar dest_address
397e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end
398e333b944SPhilippe Charnierof a point to point link.
399e333b944SPhilippe Charnier.It Ar interface
400e333b944SPhilippe CharnierThis
4018fae3551SRodney W. Grimesparameter is a string of the form
4028fae3551SRodney W. Grimes.Dq name unit ,
4038fae3551SRodney W. Grimesfor example,
404ffda6790SBrooks Davis.Dq Li em0 .
4058fae3551SRodney W. Grimes.El
4068fae3551SRodney W. Grimes.Pp
407f15eed7cSMateusz PiotrowskiThe
408f15eed7cSMateusz Piotrowski.Nm
409f15eed7cSMateusz Piotrowskiutility displays the current configuration for a network interface
410f15eed7cSMateusz Piotrowskiwhen no optional parameters are supplied.
411f15eed7cSMateusz PiotrowskiIf a protocol family is specified,
412f15eed7cSMateusz Piotrowski.Nm
413f15eed7cSMateusz Piotrowskiwill report only the details specific to that protocol family.
414f15eed7cSMateusz Piotrowski.Pp
415f15eed7cSMateusz PiotrowskiWhen no arguments are given,
416f15eed7cSMateusz Piotrowski.Fl a
417f15eed7cSMateusz Piotrowskiis implied.
418f15eed7cSMateusz Piotrowski.Pp
419f15eed7cSMateusz PiotrowskiOnly the super-user may modify the configuration of a network interface.
4200e2045b2SMateusz Piotrowski.Sh PARAMETERS
4210e2045b2SMateusz PiotrowskiThe following
4220e2045b2SMateusz Piotrowski.Ar parameter Ns s
4230e2045b2SMateusz Piotrowskimay be set with
4247c7fb079SRuslan Ermilov.Nm :
425e333b944SPhilippe Charnier.Bl -tag -width indent
426d6d1cb48SRobert Watson.It Cm add
427d0353b83SRuslan ErmilovAnother name for the
428d0353b83SRuslan Ermilov.Cm alias
429d0353b83SRuslan Ermilovparameter.
430d0353b83SRuslan ErmilovIntroduced for compatibility
431b09b4efbSRuslan Ermilovwith
432b09b4efbSRuslan Ermilov.Bsx .
4338fae3551SRodney W. Grimes.It Cm alias
4348fae3551SRodney W. GrimesEstablish an additional network address for this interface.
4358fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and
4368fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface.
43799aa831bSChris CostelloIf the address is on the same subnet as the first network address
438aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given.
439aaa34889SBrian SomersUsually
440b09b4efbSRuslan Ermilov.Li 0xffffffff
441aaa34889SBrian Somersis most appropriate.
442fac3d981SDavid E. O'Brien.It Fl alias
443fac3d981SDavid E. O'BrienRemove the network address specified.
444fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it
445fac3d981SDavid E. O'Brienwas no longer needed.
446fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect
447fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will
448fac3d981SDavid E. O'Brienallow you to respecify the host portion.
449cfa1ca9dSYoshinobu Inoue.It Cm anycast
450b09b4efbSRuslan Ermilov(Inet6 only.)
451cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address.
452cfa1ca9dSYoshinobu InoueBased on the current specification,
453cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses.
454cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing
455cfa1ca9dSYoshinobu InoueIPv6 packets.
4568fae3551SRodney W. Grimes.It Cm arp
457b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol
458b09b4efbSRuslan Ermilov.Pq Xr arp 4
459b09b4efbSRuslan Ermilovin mapping
4608fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default).
461ccc48995SZhenlei HuangThis is currently implemented for mapping between Internet Protocol addresses
462030f3ee9SZhenlei Huangand IEEE 802 48-bit MAC addresses (Ethernet addresses).
4638fae3551SRodney W. Grimes.It Fl arp
464b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol
465b09b4efbSRuslan Ermilov.Pq Xr arp 4 .
466deb62e28SRuslan Ermilov.It Cm staticarp
467deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
468deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses,
469deb62e28SRuslan Ermilovand will never send any requests.
470deb62e28SRuslan Ermilov.It Fl staticarp
471deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
472deb62e28SRuslan Ermilovthe host will perform normally,
473deb62e28SRuslan Ermilovsending out requests and listening for replies.
474c9a5c48aSKonrad Sewiłło-Jopek.It Cm stickyarp
4752567cc41SZhenlei HuangEnable the so-called sticky ARP mode for the interface.
476c9a5c48aSKonrad Sewiłło-JopekIf this option is enabled on the given interface, any resolved address is
47742b28f81SDag-Erling Smørgravmarked as a static one and never expires.
47842b28f81SDag-Erling SmørgravThis may be used to increase
479c9a5c48aSKonrad Sewiłło-Jopeksecurity of the network by preventing ARP spoofing or to reduce latency for
480c9a5c48aSKonrad Sewiłło-Jopekhigh-performance Ethernet networks where the time needed for ARP resolution is
48142b28f81SDag-Erling Smørgravtoo high.
48242b28f81SDag-Erling SmørgravPlease note that a similar feature is also provided for bridges.
48342b28f81SDag-Erling SmørgravSee
484c9a5c48aSKonrad Sewiłło-Jopekthe sticky option in the
485c9a5c48aSKonrad Sewiłło-Jopek.Sx Bridge Interface Parameters
48642b28f81SDag-Erling Smørgravsection.
48742b28f81SDag-Erling SmørgravEnabling this
488c9a5c48aSKonrad Sewiłło-Jopekoption may impact techniques which rely on ARP expiration/overwriting feature
489c9a5c48aSKonrad Sewiłło-Jopeksuch as load-balancers or high-availabity solutions such as
490c9a5c48aSKonrad Sewiłło-Jopek.Xr carp 4 .
491c9a5c48aSKonrad Sewiłło-Jopek.It Fl stickyarp
4922567cc41SZhenlei HuangDisable the so-called sticky ARP mode for the interface (default).
493c9a5c48aSKonrad Sewiłło-JopekResolved addresses will expire normally respecting the kernel ARP
494c9a5c48aSKonrad Sewiłło-Jopekconfiguration.
4958fae3551SRodney W. Grimes.It Cm broadcast
496b09b4efbSRuslan Ermilov(Inet only.)
4978fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the
4988fae3551SRodney W. Grimesnetwork.
4998fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's.
5008fae3551SRodney W. Grimes.It Cm debug
5018fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on
5028fae3551SRodney W. Grimesextra console error logging.
5038fae3551SRodney W. Grimes.It Fl debug
5048fae3551SRodney W. GrimesDisable driver dependent debugging code.
505*00c9a680SMark Johnston.It Cm allmulti
506*00c9a680SMark JohnstonEnable promiscuous mode for multicast packets.
507*00c9a680SMark Johnston.It Fl allmulti
508*00c9a680SMark JohnstonDisable promiscuous mode for multicast packets.
509ffb079beSMaxim Sobolev.It Cm promisc
510ffb079beSMaxim SobolevPut interface into permanently promiscuous mode.
511ffb079beSMaxim Sobolev.It Fl promisc
512ffb079beSMaxim SobolevDisable permanently promiscuous mode.
5138fae3551SRodney W. Grimes.It Cm delete
514d0353b83SRuslan ErmilovAnother name for the
515d0353b83SRuslan Ermilov.Fl alias
516d0353b83SRuslan Ermilovparameter.
517215940b3SXin LI.It Cm description Ar value , Cm descr Ar value
518215940b3SXin LISpecify a description of the interface.
519215940b3SXin LIThis can be used to label interfaces in situations where they may
520215940b3SXin LIotherwise be difficult to distinguish.
521215940b3SXin LI.It Cm -description , Cm -descr
522215940b3SXin LIClear the interface description.
5238fae3551SRodney W. Grimes.It Cm down
524d0353b83SRuslan ErmilovMark an interface
525d0353b83SRuslan Ermilov.Dq down .
526d0353b83SRuslan ErmilovWhen an interface is marked
527d0353b83SRuslan Ermilov.Dq down ,
528d0353b83SRuslan Ermilovthe system will not attempt to
5298fae3551SRodney W. Grimestransmit messages through that interface.
5308fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well.
5318fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface.
53248773728SEugene Grosbein.It Cm group Ar groupname
5330dad3f0eSMax LaierAssign the interface to a
5340dad3f0eSMax Laier.Dq group .
5359aca30d8SKoichiro IwaoThe
5369aca30d8SKoichiro Iwao.Ar groupname
5379aca30d8SKoichiro Iwaomay not be longer than 15 characters and must not end in a digit.
5380dad3f0eSMax LaierAny interface can be in multiple groups.
5390dad3f0eSMax Laier.Pp
5400dad3f0eSMax LaierCloned interfaces are members of their interface family group by default.
5413c9ad939SEugene GrosbeinFor example, a VLAN interface such as
5423c9ad939SEugene Grosbein.Em vlan10
5433c9ad939SEugene Grosbeinis a member of the VLAN interface family group,
5443c9ad939SEugene Grosbein.Em vlan .
54548773728SEugene Grosbein.It Cm -group Ar groupname
5460dad3f0eSMax LaierRemove the interface from the given
5470dad3f0eSMax Laier.Dq group .
548331a2db8SHajimu UMEMOTO.It Cm eui64
549331a2db8SHajimu UMEMOTO(Inet6 only.)
550331a2db8SHajimu UMEMOTOFill interface index
551a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address)
552331a2db8SHajimu UMEMOTOautomatically.
55335fd7bc0SBjoern A. Zeeb.It Cm fib Ar fib_number
55435fd7bc0SBjoern A. ZeebSpecify interface FIB.
55535fd7bc0SBjoern A. ZeebA FIB
55635fd7bc0SBjoern A. Zeeb.Ar fib_number
55735fd7bc0SBjoern A. Zeebis assigned to all frames or packets received on that interface.
558818b39edSWarren BlockThe FIB is not inherited, e.g., vlans or other sub-interfaces will use
55935fd7bc0SBjoern A. Zeebthe default FIB (0) irrespective of the parent interface's FIB.
56035fd7bc0SBjoern A. ZeebThe kernel needs to be tuned to support more than the default FIB
56135fd7bc0SBjoern A. Zeebusing the
56235fd7bc0SBjoern A. Zeeb.Va ROUTETABLES
56335fd7bc0SBjoern A. Zeebkernel configuration option, or the
56435fd7bc0SBjoern A. Zeeb.Va net.fibs
56535fd7bc0SBjoern A. Zeebtunable.
566eccfe69aSAndrey V. Elsukov.It Cm tunnelfib Ar fib_number
567eccfe69aSAndrey V. ElsukovSpecify tunnel FIB.
568eccfe69aSAndrey V. ElsukovA FIB
569eccfe69aSAndrey V. Elsukov.Ar fib_number
570eccfe69aSAndrey V. Elsukovis assigned to all packets encapsulated by tunnel interface, e.g.,
5717f7a804aSZhenlei Huang.Xr gif 4 ,
572f578d019SGregory Shapiro.Xr gre 4 ,
573f578d019SGregory Shapiro.Xr vxlan 4 ,
574eccfe69aSAndrey V. Elsukovand
575f578d019SGregory Shapiro.Xr wg 4 .
57676b4b15fSChris Costello.It Cm maclabel Ar label
57776b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel,
57876b4b15fSChris Costelloset the MAC label to
57976b4b15fSChris Costello.Ar label .
58076b4b15fSChris Costello.\" (see
58176b4b15fSChris Costello.\" .Xr maclabel 7 ) .
582b5436146SPeter Wemm.It Cm media Ar type
583920de530SPeter WemmIf the driver supports the media selection system, set the media type
584920de530SPeter Wemmof the interface to
585b5436146SPeter Wemm.Ar type .
586b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several
587b09b4efbSRuslan Ermilovdifferent physical media connectors.
5884e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet
58944c4affaSMateusz Piotrowskiinterface might support the use of either AUI
590b09b4efbSRuslan Ermilovor twisted pair connectors.
591b09b4efbSRuslan ErmilovSetting the media type to
5924e9e907dSRuslan Ermilov.Cm 10base5/AUI
593b5436146SPeter Wemmwould change the currently active connector to the AUI port.
594b5436146SPeter WemmSetting it to
5954e9e907dSRuslan Ermilov.Cm 10baseT/UTP
596b09b4efbSRuslan Ermilovwould activate twisted pair.
597b09b4efbSRuslan ErmilovRefer to the interfaces' driver
598920de530SPeter Wemmspecific documentation or man page for a complete list of the
599920de530SPeter Wemmavailable types.
600b5436146SPeter Wemm.It Cm mediaopt Ar opts
601920de530SPeter WemmIf the driver supports the media selection system, set the specified
602920de530SPeter Wemmmedia options on the interface.
603b09b4efbSRuslan ErmilovThe
604b09b4efbSRuslan Ermilov.Ar opts
605b09b4efbSRuslan Ermilovargument
606b5436146SPeter Wemmis a comma delimited list of options to apply to the interface.
607b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete
608b5436146SPeter Wemmlist of available options.
609b5436146SPeter Wemm.It Fl mediaopt Ar opts
610920de530SPeter WemmIf the driver supports the media selection system, disable the
611920de530SPeter Wemmspecified media options on the interface.
612e519b1a5SSam Leffler.It Cm mode Ar mode
613e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified
614e519b1a5SSam Leffleroperating mode on the interface to
615e519b1a5SSam Leffler.Ar mode .
616e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes
617eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a
6184e9e907dSRuslan Ermilov.Pq Cm 11a ,
619eb9a85caSRuslan Ermilov802.11b
6204e9e907dSRuslan Ermilov.Pq Cm 11b ,
621eb9a85caSRuslan Ermilovand 802.11g
6224e9e907dSRuslan Ermilov.Pq Cm 11g
623e519b1a5SSam Leffleroperating modes.
624f3e7afe2SHans Petter Selasky.It Cm txrtlmt
625f3e7afe2SHans Petter SelaskySet if the driver supports TX rate limiting.
62611139493SMarius Strobl.It Cm inst Ar minst , Cm instance Ar minst
62711139493SMarius StroblSet the media instance to
62811139493SMarius Strobl.Ar minst .
62911139493SMarius StroblThis is useful for devices which have multiple physical layer interfaces
63011139493SMarius Strobl.Pq PHYs .
63197bebf0aSBrooks Davis.It Cm name Ar name
63297bebf0aSBrooks DavisSet the interface name to
63397bebf0aSBrooks Davis.Ar name .
634356ab07eSBjoern A. Zeeb.It Cm rxcsum , txcsum , rxcsum6 , txcsum6
6358fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
6368fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface.
637356ab07eSBjoern A. ZeebThe feature can be turned on selectively per protocol family.
638356ab07eSBjoern A. ZeebUse
639356ab07eSBjoern A. Zeeb.Cm rxcsum6 , txcsum6
640356ab07eSBjoern A. Zeebfor
641356ab07eSBjoern A. Zeeb.Xr ip6 4
642356ab07eSBjoern A. Zeebor
643356ab07eSBjoern A. Zeeb.Cm rxcsum , txcsum
644356ab07eSBjoern A. Zeebotherwise.
6458fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently
6468fbad60dSRuslan Ermilovof each other, so setting one may also set the other.
6478fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably
6488fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers.
649356ab07eSBjoern A. Zeeb.It Fl rxcsum , txcsum , rxcsum6 , txcsum6
6508fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
6518fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface.
652356ab07eSBjoern A. ZeebThe feature can be turned off selectively per protocol family.
653356ab07eSBjoern A. ZeebUse
654356ab07eSBjoern A. Zeeb.Fl rxcsum6 , txcsum6
655356ab07eSBjoern A. Zeebfor
656356ab07eSBjoern A. Zeeb.Xr ip6 4
657356ab07eSBjoern A. Zeebor
658356ab07eSBjoern A. Zeeb.Fl rxcsum , txcsum
659356ab07eSBjoern A. Zeebotherwise.
6608fbad60dSRuslan ErmilovThese settings may not always be independent of each other.
661d7097da4SAndre Oppermann.It Cm tso
662d7097da4SAndre OppermannIf the driver supports
663d7097da4SAndre Oppermann.Xr tcp 4
664d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface.
665d7097da4SAndre OppermannSome drivers may not be able to support TSO for
666d7097da4SAndre Oppermann.Xr ip 4
667d7097da4SAndre Oppermannand
668d7097da4SAndre Oppermann.Xr ip6 4
669d7097da4SAndre Oppermannpackets, so they may enable only one of them.
670d7097da4SAndre Oppermann.It Fl tso
671d7097da4SAndre OppermannIf the driver supports
672d7097da4SAndre Oppermann.Xr tcp 4
673d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface.
674d7097da4SAndre OppermannIt will always disable TSO for
675d7097da4SAndre Oppermann.Xr ip 4
676d7097da4SAndre Oppermannand
677d7097da4SAndre Oppermann.Xr ip6 4 .
6781623284fSBjoern A. Zeeb.It Cm tso6 , tso4
6791623284fSBjoern A. ZeebIf the driver supports
6801623284fSBjoern A. Zeeb.Xr tcp 4
6811623284fSBjoern A. Zeebsegmentation offloading for
6821623284fSBjoern A. Zeeb.Xr ip6 4
6831623284fSBjoern A. Zeebor
6841623284fSBjoern A. Zeeb.Xr ip 4
6851623284fSBjoern A. Zeebuse one of these to selectively enabled it only for one protocol family.
6861623284fSBjoern A. Zeeb.It Fl tso6 , tso4
6871623284fSBjoern A. ZeebIf the driver supports
6881623284fSBjoern A. Zeeb.Xr tcp 4
6891623284fSBjoern A. Zeebsegmentation offloading for
6901623284fSBjoern A. Zeeb.Xr ip6 4
6911623284fSBjoern A. Zeebor
6921623284fSBjoern A. Zeeb.Xr ip 4
6931623284fSBjoern A. Zeebuse one of these to selectively disable it only for one protocol family.
694a6575bfcSAndre Oppermann.It Cm lro
695a6575bfcSAndre OppermannIf the driver supports
696a6575bfcSAndre Oppermann.Xr tcp 4
697a6575bfcSAndre Oppermannlarge receive offloading, enable LRO on the interface.
698a6575bfcSAndre Oppermann.It Fl lro
699a6575bfcSAndre OppermannIf the driver supports
700a6575bfcSAndre Oppermann.Xr tcp 4
701a6575bfcSAndre Oppermannlarge receive offloading, disable LRO on the interface.
702b2e60773SJohn Baldwin.It Cm txtls
703b2e60773SJohn BaldwinTransmit TLS offload encrypts Transport Layer Security (TLS) records and
704b2e60773SJohn Baldwinsegments the encrypted record into one or more
705b2e60773SJohn Baldwin.Xr tcp 4
706b2e60773SJohn Baldwinsegments over either
707b2e60773SJohn Baldwin.Xr ip 4
708b2e60773SJohn Baldwinor
709b2e60773SJohn Baldwin.Xr ip6 4 .
710b2e60773SJohn BaldwinIf the driver supports transmit TLS offload,
711b2e60773SJohn Baldwinenable transmit TLS offload on the interface.
712b2e60773SJohn BaldwinSome drivers may not be able to support transmit TLS offload for
713b2e60773SJohn Baldwin.Xr ip 4
714b2e60773SJohn Baldwinand
715b2e60773SJohn Baldwin.Xr ip6 4
716b2e60773SJohn Baldwinpackets, so they may enable only one of them.
717b2e60773SJohn Baldwin.It Fl txtls
718b2e60773SJohn BaldwinIf the driver supports transmit TLS offload,
719b2e60773SJohn Baldwindisable transmit TLS offload on the interface.
720b2e60773SJohn BaldwinIt will always disable TLS for
721b2e60773SJohn Baldwin.Xr ip 4
722b2e60773SJohn Baldwinand
723b2e60773SJohn Baldwin.Xr ip6 4 .
724521eac97SJohn Baldwin.It Cm txtlsrtlmt
725521eac97SJohn BaldwinEnable use of rate limiting (packet pacing) for TLS offload.
726521eac97SJohn Baldwin.It Fl txtlsrtlmt
727521eac97SJohn BaldwinDisable use of rate limiting for TLS offload.
7283f43ada9SGleb Smirnoff.It Cm mextpg
7293f43ada9SGleb SmirnoffIf the driver supports extended multi-page
7303f43ada9SGleb Smirnoff.Xr mbuf 9
7313f43ada9SGleb Smirnoffbuffers, enable them on the interface.
7323f43ada9SGleb Smirnoff.It Fl mextpg
7333f43ada9SGleb SmirnoffIf the driver supports extended multi-page
7343f43ada9SGleb Smirnoff.Xr mbuf 9
73515cb9c0dSMaxim Konovalovbuffers, disable them on the interface.
736de0abf19SSam Leffler.It Cm wol , wol_ucast , wol_mcast , wol_magic
737de0abf19SSam LefflerEnable Wake On Lan (WOL) support, if available.
738de0abf19SSam LefflerWOL is a facility whereby a machine in a low power state may be woken
739de0abf19SSam Lefflerin response to a received packet.
740de0abf19SSam LefflerThere are three types of packets that may wake a system:
741de0abf19SSam Lefflerucast (directed solely to the machine's mac address),
742de0abf19SSam Lefflermcast (directed to a broadcast or multicast address),
743de0abf19SSam Leffleror
74467d77afbSMateusz Piotrowskimagic
74567d77afbSMateusz Piotrowski.Po unicast or multicast frames with a
746607eed2fSJose Luis Duran.Dq magic contents
747607eed2fSJose Luis Duran.Pc .
748de0abf19SSam LefflerNot all devices support WOL, those that do indicate the mechanisms
749de0abf19SSam Lefflerthey support in their capabilities.
750de0abf19SSam Leffler.Cm wol
751de0abf19SSam Leffleris a synonym for enabling all available WOL mechanisms.
752de0abf19SSam LefflerTo disable WOL use
753de0abf19SSam Leffler.Fl wol .
7549b776960SBjoern A. Zeeb.It Cm vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso
755163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable
7560f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware,
7579b776960SBjoern A. Zeebframe filtering in hardware, checksum offloading, or TSO on VLAN,
758163653e8SYaroslav Tykhiyrespectively.
759830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with
760163653e8SYaroslav Tykhiy.Xr vlan 4 ,
761163653e8SYaroslav Tykhiynot on a
762163653e8SYaroslav Tykhiy.Xr vlan 4
763163653e8SYaroslav Tykhiyinterface itself.
76455b0acc0SZhenlei Huang.It Fl vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso
765163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable
7660f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware,
76755b0acc0SZhenlei Huangframe filtering in hardware, checksum offloading, or TSO on VLAN,
768163653e8SYaroslav Tykhiyrespectively.
769830edb45SNavdeep Parhar.It Cm vxlanhwcsum , vxlanhwtso
770830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, enable inner checksum
771830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively.
772830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with
773830edb45SNavdeep Parhar.Xr vxlan 4 ,
774830edb45SNavdeep Parharnot on a
775830edb45SNavdeep Parhar.Xr vxlan 4
776830edb45SNavdeep Parharinterface itself.
777830edb45SNavdeep ParharThe physical interface is either the interface specified as the vxlandev
778830edb45SNavdeep Parharor the interface hosting the vxlanlocal address.
779830edb45SNavdeep ParharThe driver will offload as much checksum work and TSO as it can reliably
780830edb45SNavdeep Parharsupport, the exact level of offloading may vary between drivers.
781830edb45SNavdeep Parhar.It Fl vxlanhwcsum , vxlanhwtso
782830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, disable checksum
783830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively.
7845061de23SJamie Gritton.It Cm vnet Ar jail
7855061de23SJamie GrittonMove the interface to the
7865061de23SJamie Gritton.Xr jail 8 ,
7875061de23SJamie Grittonspecified by name or JID.
7885061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear
7895061de23SJamie Grittonfrom the current environment and become visible to the jail.
7905061de23SJamie Gritton.It Fl vnet Ar jail
7915061de23SJamie GrittonReclaim the interface from the
7925061de23SJamie Gritton.Xr jail 8 ,
7935061de23SJamie Grittonspecified by name or JID.
7945061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear
7955061de23SJamie Grittonfrom the jail, and become visible to the current network environment.
7963a3b019aSRuslan Ermilov.It Cm polling
7971f8f09b0SGleb SmirnoffTurn on
7983a3b019aSRuslan Ermilov.Xr polling 4
7991f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports
8001f8f09b0SGleb Smirnoffthis mode.
8013a3b019aSRuslan Ermilov.It Fl polling
8021f8f09b0SGleb SmirnoffTurn off
8033a3b019aSRuslan Ermilov.Xr polling 4
8041f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface.
8053e61dca0SBrooks Davis.It Cm create
8063e61dca0SBrooks DavisCreate the specified network pseudo-device.
8073e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new
8083e61dca0SBrooks Davisdevice with an arbitrary unit number.
809525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is
81097bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed
81197bebf0aSBrooks Davisin the same
81297bebf0aSBrooks Davis.Nm
81397bebf0aSBrooks Davisinvocation.
8143e61dca0SBrooks Davis.It Cm destroy
8153e61dca0SBrooks DavisDestroy the specified network pseudo-device.
8163e61dca0SBrooks Davis.It Cm plumb
8173e61dca0SBrooks DavisAnother name for the
818b8a7fd3fSYaroslav Tykhiy.Cm create
8193e61dca0SBrooks Davisparameter.
82044c4affaSMateusz PiotrowskiIncluded for Solaris compatibility.
8213e61dca0SBrooks Davis.It Cm unplumb
8223e61dca0SBrooks DavisAnother name for the
823b8a7fd3fSYaroslav Tykhiy.Cm destroy
8243e61dca0SBrooks Davisparameter.
82544c4affaSMateusz PiotrowskiIncluded for Solaris compatibility.
8268fae3551SRodney W. Grimes.It Cm metric Ar n
8278fae3551SRodney W. GrimesSet the routing metric of the interface to
8288fae3551SRodney W. Grimes.Ar n ,
8298fae3551SRodney W. Grimesdefault 0.
8308fae3551SRodney W. GrimesThe routing metric is used by the routing protocol
8318fae3551SRodney W. Grimes.Pq Xr routed 8 .
8328fae3551SRodney W. GrimesHigher metrics have the effect of making a route
83309a66bdaSJens Schweikhardtless favorable; metrics are counted as additional hops
8348fae3551SRodney W. Grimesto the destination network or host.
8354db32b03SDavid Greenman.It Cm mtu Ar n
8364db32b03SDavid GreenmanSet the maximum transmission unit of the interface to
8374db32b03SDavid Greenman.Ar n ,
8384db32b03SDavid Greenmandefault is interface specific.
839b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an
8404db32b03SDavid Greenmaninterface.
841b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have
8424db32b03SDavid Greenmanrange restrictions.
8438fae3551SRodney W. Grimes.It Cm netmask Ar mask
844b09b4efbSRuslan Ermilov.\" (Inet and ISO.)
845b09b4efbSRuslan Ermilov(Inet only.)
8468fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing
8478fae3551SRodney W. Grimesnetworks into sub-networks.
8488fae3551SRodney W. GrimesThe mask includes the network part of the local address
8498fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address.
8508fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number
851b09b4efbSRuslan Ermilovwith a leading
852b09b4efbSRuslan Ermilov.Ql 0x ,
853b09b4efbSRuslan Ermilovwith a dot-notation Internet address,
8548fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table
8558fae3551SRodney W. Grimes.Xr networks 5 .
8568fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address
8578fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts,
8588fae3551SRodney W. Grimesand 0's for the host part.
8598fae3551SRodney W. GrimesThe mask should contain at least the standard network portion,
8608fae3551SRodney W. Grimesand the subnet field should be contiguous with the network
8618fae3551SRodney W. Grimesportion.
86212813062SJesper Skriver.Pp
86312813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address.
86412813062SJesper SkriverSee the
86512813062SJesper Skriver.Ar address
86612813062SJesper Skriveroption above for more information.
867cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len
868b09b4efbSRuslan Ermilov(Inet6 only.)
869cfa1ca9dSYoshinobu InoueSpecify that
870cfa1ca9dSYoshinobu Inoue.Ar len
871cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks.
872cfa1ca9dSYoshinobu InoueThe
873cfa1ca9dSYoshinobu Inoue.Ar len
874cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128.
875cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule.
876bfc03b18SStephen McKayIf the parameter is omitted, 64 is used.
8779f1741caSRuslan Ermilov.Pp
8789f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address.
8799f1741caSRuslan ErmilovSee the
8809f1741caSRuslan Ermilov.Ar address
8819f1741caSRuslan Ermilovoption above for more information.
882d6d1cb48SRobert Watson.It Cm remove
883d0353b83SRuslan ErmilovAnother name for the
884d0353b83SRuslan Ermilov.Fl alias
885d0353b83SRuslan Ermilovparameter.
886d0353b83SRuslan ErmilovIntroduced for compatibility
887b09b4efbSRuslan Ermilovwith
888b09b4efbSRuslan Ermilov.Bsx .
889b09b4efbSRuslan Ermilov.Sm off
890b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2
891b09b4efbSRuslan Ermilov.Sm on
8928fae3551SRodney W. GrimesEnable special processing of the link level of the interface.
8938fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however,
894ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation.
895ef8f7ac9SSheldon HearnAn example
896b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type
897b09b4efbSRuslan Ermilovfor some Ethernet cards.
898b09b4efbSRuslan ErmilovRefer to the man page for the specific driver
899b5436146SPeter Wemmfor more information.
900b09b4efbSRuslan Ermilov.Sm off
901b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2
902b09b4efbSRuslan Ermilov.Sm on
9038fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface.
904afbe3a0fSPoul-Henning Kamp.It Cm monitor
905afbe3a0fSPoul-Henning KampPut the interface in monitor mode.
9063706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after
907afbe3a0fSPoul-Henning Kamp.Xr bpf 4
908afbe3a0fSPoul-Henning Kampprocessing.
909afbe3a0fSPoul-Henning Kamp.It Fl monitor
910afbe3a0fSPoul-Henning KampTake the interface out of monitor mode.
911a521fa63SJohn-Mark Gurney.It Cm pcp Ar priority_code_point
912a521fa63SJohn-Mark GurneyPriority code point
913a521fa63SJohn-Mark Gurney.Pq Dv PCP
914a521fa63SJohn-Mark Gurneyis an 3-bit field which refers to the IEEE 802.1p
915a521fa63SJohn-Mark Gurneyclass of service and maps to the frame priority level.
916a521fa63SJohn-Mark Gurney.It Fl pcp
917a521fa63SJohn-Mark GurneyStop tagging packets on the interface w/ the priority code point.
9188fae3551SRodney W. Grimes.It Cm up
919e333b944SPhilippe CharnierMark an interface
920e333b944SPhilippe Charnier.Dq up .
921e333b944SPhilippe CharnierThis may be used to enable an interface after an
922b09b4efbSRuslan Ermilov.Dq Nm Cm down .
9238fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface.
9248fae3551SRodney W. GrimesIf the interface was reset when previously marked down,
9258fae3551SRodney W. Grimesthe hardware will be re-initialized.
9265faf8dcbSSam Leffler.El
9270e2045b2SMateusz Piotrowski.Ss ICMPv6 Neighbor Discovery Protocol Parameters
928f6ac2391SJoel DahlThe following parameters are for ICMPv6 Neighbor Discovery Protocol.
9292e77c5abSHiroki SatoNote that the address family keyword
9302e77c5abSHiroki Sato.Dq Li inet6
9312e77c5abSHiroki Satois needed for them:
932a283298cSHiroki Sato.Bl -tag -width indent
933a283298cSHiroki Sato.It Cm accept_rtadv
934a283298cSHiroki SatoSet a flag to enable accepting ICMPv6 Router Advertisement messages.
9355ed65977SHiroki SatoThe
9365ed65977SHiroki Sato.Xr sysctl 8
9375ed65977SHiroki Satovariable
9385ed65977SHiroki Sato.Va net.inet6.ip6.accept_rtadv
9395ed65977SHiroki Satocontrols whether this flag is set by default or not.
940a283298cSHiroki Sato.It Cm -accept_rtadv
941a283298cSHiroki SatoClear a flag
942a283298cSHiroki Sato.Cm accept_rtadv .
9435ed65977SHiroki Sato.It Cm no_radr
9445ed65977SHiroki SatoSet a flag to control whether routers from which the system accepts
9455ed65977SHiroki SatoRouter Advertisement messages will be added to the Default Router List
9465ed65977SHiroki Satoor not.
9475ed65977SHiroki SatoWhen the
9485ed65977SHiroki Sato.Cm accept_rtadv
9495ed65977SHiroki Satoflag is disabled, this flag has no effect.
9505ed65977SHiroki SatoThe
9515ed65977SHiroki Sato.Xr sysctl 8
9525ed65977SHiroki Satovariable
9535ed65977SHiroki Sato.Va net.inet6.ip6.no_radr
9545ed65977SHiroki Satocontrols whether this flag is set by default or not.
9555ed65977SHiroki Sato.It Cm -no_radr
9565ed65977SHiroki SatoClear a flag
9575ed65977SHiroki Sato.Cm no_radr .
958a283298cSHiroki Sato.It Cm auto_linklocal
959a283298cSHiroki SatoSet a flag to perform automatic link-local address configuration when
960a53bb70bSJoel Dahlthe interface becomes available.
9615ed65977SHiroki SatoThe
9625ed65977SHiroki Sato.Xr sysctl 8
9635ed65977SHiroki Satovariable
9645ed65977SHiroki Sato.Va net.inet6.ip6.auto_linklocal
9655ed65977SHiroki Satocontrols whether this flag is set by default or not.
966a283298cSHiroki Sato.It Cm -auto_linklocal
967a283298cSHiroki SatoClear a flag
968a283298cSHiroki Sato.Cm auto_linklocal .
969a283298cSHiroki Sato.It Cm defaultif
970a283298cSHiroki SatoSet the specified interface as the default route when there is no
971a283298cSHiroki Satodefault router.
972a283298cSHiroki Sato.It Cm -defaultif
973a283298cSHiroki SatoClear a flag
974a283298cSHiroki Sato.Cm defaultif .
975a283298cSHiroki Sato.It Cm ifdisabled
976a283298cSHiroki SatoSet a flag to disable all of IPv6 network communications on the
97796db02f2SAllan Judespecified interface.
97896db02f2SAllan JudeNote that if there are already configured IPv6
9792e77c5abSHiroki Satoaddresses on that interface, all of them are marked as
9802e77c5abSHiroki Sato.Dq tentative
9812e77c5abSHiroki Satoand DAD will be performed when this flag is cleared.
982a283298cSHiroki Sato.It Cm -ifdisabled
983a283298cSHiroki SatoClear a flag
984a283298cSHiroki Sato.Cm ifdisabled .
985a283298cSHiroki SatoWhen this flag is cleared and
986a283298cSHiroki Sato.Cm auto_linklocal
987a283298cSHiroki Satoflag is enabled, automatic configuration of a link-local address is
988a283298cSHiroki Satoperformed.
989a283298cSHiroki Sato.It Cm nud
990a283298cSHiroki SatoSet a flag to enable Neighbor Unreachability Detection.
991a283298cSHiroki Sato.It Cm -nud
992a283298cSHiroki SatoClear a flag
993a283298cSHiroki Sato.Cm nud .
994164051ceSHajimu UMEMOTO.It Cm no_prefer_iface
9950c7b5530SJeremie Le HenSet a flag to not honor rule 5 of source address selection in RFC 3484.
9960c7b5530SJeremie Le HenIn practice this means the address on the outgoing interface will not be
9970c7b5530SJeremie Le Henpreferred, effectively yielding the decision to the address selection
9980c7b5530SJeremie Le Henpolicy table, configurable with
9990c7b5530SJeremie Le Hen.Xr ip6addrctl 8 .
1000164051ceSHajimu UMEMOTO.It Cm -no_prefer_iface
1001164051ceSHajimu UMEMOTOClear a flag
1002164051ceSHajimu UMEMOTO.Cm no_prefer_iface .
100323e9ffb0SHiroki Sato.It Cm no_dad
100423e9ffb0SHiroki SatoSet a flag to disable Duplicate Address Detection.
100523e9ffb0SHiroki Sato.It Cm -no_dad
100623e9ffb0SHiroki SatoClear a flag
100723e9ffb0SHiroki Sato.Cm no_dad .
1008a283298cSHiroki Sato.El
10090e2045b2SMateusz Piotrowski.Ss IPv6 Parameters
10105dbfa43fSAndrey V. ElsukovThe following parameters are specific for IPv6 addresses.
10115dbfa43fSAndrey V. ElsukovNote that the address family keyword
10125dbfa43fSAndrey V. Elsukov.Dq Li inet6
10135dbfa43fSAndrey V. Elsukovis needed for them:
10145dbfa43fSAndrey V. Elsukov.Bl -tag -width indent
1015a6c0b9d0SEdward Tomasz Napierala.It Cm autoconf
1016a6c0b9d0SEdward Tomasz NapieralaSet the IPv6 autoconfigured address bit.
1017a6c0b9d0SEdward Tomasz Napierala.It Fl autoconf
1018a6c0b9d0SEdward Tomasz NapieralaClear the IPv6 autoconfigured address bit.
101967135128SAllan Jude.It Cm deprecated
102067135128SAllan JudeSet the IPv6 deprecated address bit.
102167135128SAllan Jude.It Fl deprecated
102267135128SAllan JudeClear the IPv6 deprecated address bit.
102367135128SAllan Jude.It Cm pltime Ar n
102467135128SAllan JudeSet preferred lifetime for the address.
10255dbfa43fSAndrey V. Elsukov.It Cm prefer_source
10265dbfa43fSAndrey V. ElsukovSet a flag to prefer address as a candidate of the source address for
10275dbfa43fSAndrey V. Elsukovoutgoing packets.
10285dbfa43fSAndrey V. Elsukov.It Cm -prefer_source
10295dbfa43fSAndrey V. ElsukovClear a flag
10305dbfa43fSAndrey V. Elsukov.Cm prefer_source .
103167135128SAllan Jude.It Cm vltime Ar n
103267135128SAllan JudeSet valid lifetime for the address.
10335dbfa43fSAndrey V. Elsukov.El
10340e2045b2SMateusz Piotrowski.Ss IEEE 802.11 Wireless Interfaces Cloning Parameters
1035b032f27cSSam LefflerThe following parameters are specific to cloning
1036b032f27cSSam LefflerIEEE 802.11 wireless interfaces with the
1037b032f27cSSam Leffler.Cm create
1038b032f27cSSam Lefflerrequest:
10395faf8dcbSSam Leffler.Bl -tag -width indent
1040b032f27cSSam Leffler.It Cm wlandev Ar device
1041b032f27cSSam LefflerUse
1042b032f27cSSam Leffler.Ar device
1043b032f27cSSam Leffleras the parent for the cloned device.
1044b032f27cSSam Leffler.It Cm wlanmode Ar mode
1045b032f27cSSam LefflerSpecify the operating mode for this cloned device.
1046b032f27cSSam Leffler.Ar mode
1047b032f27cSSam Leffleris one of
1048b032f27cSSam Leffler.Cm sta ,
1049b032f27cSSam Leffler.Cm ahdemo
1050b032f27cSSam Leffler(or
1051b032f27cSSam Leffler.Cm adhoc-demo ) ,
1052527d10a5SMateusz Piotrowski.Cm ibss
1053b032f27cSSam Leffler(or
1054b032f27cSSam Leffler.Cm adhoc ) ,
1055527d10a5SMateusz Piotrowski.Cm ap
1056b032f27cSSam Leffler(or
1057b032f27cSSam Leffler.Cm hostap ) ,
1058b032f27cSSam Leffler.Cm wds ,
105910ad9a77SSam Leffler.Cm tdma ,
106059aa14a9SRui Paulo.Cm mesh ,
1061b032f27cSSam Lefflerand
1062b032f27cSSam Leffler.Cm monitor .
1063b032f27cSSam LefflerThe operating mode of a cloned interface cannot be changed.
106410ad9a77SSam LefflerThe
106510ad9a77SSam Leffler.Cm tdma
106610ad9a77SSam Lefflermode is actually implemented as an
106710ad9a77SSam Leffler.Cm adhoc-demo
106810ad9a77SSam Lefflerinterface with special properties.
1069b032f27cSSam Leffler.It Cm wlanbssid Ar bssid
1070b032f27cSSam LefflerThe 802.11 mac address to use for the bssid.
1071b032f27cSSam LefflerThis must be specified at create time for a legacy
1072b032f27cSSam Leffler.Cm wds
1073b032f27cSSam Lefflerdevice.
1074b032f27cSSam Leffler.It Cm wlanaddr Ar address
1075b032f27cSSam LefflerThe local mac address.
1076b032f27cSSam LefflerIf this is not specified then a mac address will automatically be assigned
1077b032f27cSSam Lefflerto the cloned device.
1078b032f27cSSam LefflerTypically this address is the same as the address of the parent device
1079b032f27cSSam Lefflerbut if the
1080b032f27cSSam Leffler.Cm bssid
1081b032f27cSSam Lefflerparameter is specified then the driver will craft a unique address for
1082b032f27cSSam Lefflerthe device (if supported).
1083b032f27cSSam Leffler.It Cm wdslegacy
1084b032f27cSSam LefflerMark a
1085b032f27cSSam Leffler.Cm wds
108667d77afbSMateusz Piotrowskidevice as operating in
108767d77afbSMateusz Piotrowski.Dq legacy mode .
1088b032f27cSSam LefflerLegacy
1089b032f27cSSam Leffler.Cm wds
1090b032f27cSSam Lefflerdevices have a fixed peer relationship and do not, for example, roam
1091b032f27cSSam Lefflerif their peer stops communicating.
1092140119a6SPauAmmaFor completeness a Dynamic WDS (DWDS) interface may be marked as
1093b032f27cSSam Leffler.Fl wdslegacy .
1094b032f27cSSam Leffler.It Cm bssid
1095b032f27cSSam LefflerRequest a unique local mac address for the cloned device.
1096b032f27cSSam LefflerThis is only possible if the device supports multiple mac addresses.
1097b032f27cSSam LefflerTo force use of the parent's mac address use
1098b032f27cSSam Leffler.Fl bssid .
1099b032f27cSSam Leffler.It Cm beacons
1100b032f27cSSam LefflerMark the cloned interface as depending on hardware support to
1101b032f27cSSam Lefflertrack received beacons.
1102b032f27cSSam LefflerTo have beacons tracked in software use
1103b032f27cSSam Leffler.Fl beacons .
1104b032f27cSSam LefflerFor
1105b032f27cSSam Leffler.Cm hostap
1106b032f27cSSam Lefflermode
1107b032f27cSSam Leffler.Fl beacons
1108b032f27cSSam Lefflercan also be used to indicate no beacons should
1109b032f27cSSam Lefflerbe transmitted; this can be useful when creating a WDS configuration but
1110b032f27cSSam Leffler.Cm wds
1111b032f27cSSam Lefflerinterfaces can only be created as companions to an access point.
1112b032f27cSSam Leffler.El
11130e2045b2SMateusz Piotrowski.Ss Cloned IEEE 802.11 Wireless Interface Parameters
1114b032f27cSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces
1115b032f27cSSam Lefflercloned with a
1116b032f27cSSam Leffler.Cm create
1117b032f27cSSam Leffleroperation:
1118b032f27cSSam Leffler.Bl -tag -width indent
1119b032f27cSSam Leffler.It Cm ampdu
1120b032f27cSSam LefflerEnable sending and receiving AMPDU frames when using 802.11n (default).
1121b032f27cSSam LefflerThe 802.11n specification states a compliant station must be capable
1122a53bb70bSJoel Dahlof receiving AMPDU frames but transmission is optional.
1123b032f27cSSam LefflerUse
1124b032f27cSSam Leffler.Fl ampdu
1125b032f27cSSam Lefflerto disable all use of AMPDU with 802.11n.
1126b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use
1127b032f27cSSam Leffler.Cm ampdutx
1128b032f27cSSam Lefflerand
1129b032f27cSSam Leffler.Cm ampdurx
1130b032f27cSSam Lefflerto control use of AMPDU in one direction.
1131b032f27cSSam Leffler.It Cm ampdudensity Ar density
1132b032f27cSSam LefflerSet the AMPDU density parameter used when operating with 802.11n.
1133b032f27cSSam LefflerThis parameter controls the inter-packet gap for AMPDU frames.
1134b032f27cSSam LefflerThe sending device normally controls this setting but a receiving station
1135b032f27cSSam Lefflermay request wider gaps.
1136b032f27cSSam LefflerLegal values for
1137b032f27cSSam Leffler.Ar density
1138b032f27cSSam Lefflerare 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds).
1139b032f27cSSam LefflerA value of
1140b032f27cSSam Leffler.Cm -
1141b032f27cSSam Leffleris treated the same as 0.
1142b032f27cSSam Leffler.It Cm ampdulimit Ar limit
1143b032f27cSSam LefflerSet the limit on packet size for receiving AMPDU frames when operating
1144b032f27cSSam Lefflerwith 802.11n.
1145b032f27cSSam LefflerLegal values for
1146b032f27cSSam Leffler.Ar limit
1147b032f27cSSam Lefflerare 8192, 16384, 32768, and 65536 but one can also specify
1148b032f27cSSam Lefflerjust the unique prefix: 8, 16, 32, 64.
1149b032f27cSSam LefflerNote the sender may limit the size of AMPDU frames to be less
1150b032f27cSSam Lefflerthan the maximum specified by the receiving station.
1151b032f27cSSam Leffler.It Cm amsdu
1152b032f27cSSam LefflerEnable sending and receiving AMSDU frames when using 802.11n.
1153b032f27cSSam LefflerBy default AMSDU is received but not transmitted.
1154b032f27cSSam LefflerUse
1155b032f27cSSam Leffler.Fl amsdu
1156b032f27cSSam Lefflerto disable all use of AMSDU with 802.11n.
1157b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use
1158b032f27cSSam Leffler.Cm amsdutx
1159b032f27cSSam Lefflerand
1160b032f27cSSam Leffler.Cm amsdurx
1161b032f27cSSam Lefflerto control use of AMSDU in one direction.
1162b032f27cSSam Leffler.It Cm amsdulimit Ar limit
1163b032f27cSSam LefflerSet the limit on packet size for sending and receiving AMSDU frames
1164b032f27cSSam Lefflerwhen operating with 802.11n.
1165b032f27cSSam LefflerLegal values for
1166b032f27cSSam Leffler.Ar limit
1167b032f27cSSam Lefflerare 7935 and 3839 (bytes).
1168b032f27cSSam LefflerNote the sender may limit the size of AMSDU frames to be less
1169b032f27cSSam Lefflerthan the maximum specified by the receiving station.
1170b032f27cSSam LefflerNote also that devices are not required to support the 7935 limit,
1171b032f27cSSam Leffleronly 3839 is required by the specification and the larger value
1172b032f27cSSam Lefflermay require more memory to be dedicated to support functionality
1173b032f27cSSam Lefflerthat is rarely used.
11745faf8dcbSSam Leffler.It Cm apbridge
117521414470SRuslan ErmilovWhen operating as an access point, pass packets between
11765faf8dcbSSam Lefflerwireless clients directly (default).
11775faf8dcbSSam LefflerTo instead let them pass up through the
117821414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use
117921414470SRuslan Ermilov.Fl apbridge .
11805faf8dcbSSam LefflerDisabling the internal bridging
11815faf8dcbSSam Leffleris useful when traffic is to be processed with
11825faf8dcbSSam Lefflerpacket filtering.
1183419d8080SPoul-Henning Kamp.It Cm authmode Ar mode
11845faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode.
1185b032f27cSSam LefflerNot all adapters support all modes.
1186b09b4efbSRuslan ErmilovThe set of
1187419d8080SPoul-Henning Kampvalid modes is
11884e9e907dSRuslan Ermilov.Cm none , open , shared
118921414470SRuslan Ermilov(shared key),
11904e9e907dSRuslan Ermilov.Cm 8021x
119121414470SRuslan Ermilov(IEEE 802.1x),
1192aeffcba3SSam Lefflerand
11934e9e907dSRuslan Ermilov.Cm wpa
119421414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i).
11955faf8dcbSSam LefflerThe
11964e9e907dSRuslan Ermilov.Cm 8021x
1197419d8080SPoul-Henning Kampand
11984e9e907dSRuslan Ermilov.Cm wpa
1199aeffcba3SSam Lefflermodes are only useful when using an authentication service
12005faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when
12015faf8dcbSSam Leffleroperating as an access point).
1202419d8080SPoul-Henning KampModes are case insensitive.
1203fdef6accSSam Leffler.It Cm bgscan
1204fdef6accSSam LefflerEnable background scanning when operating as a station.
1205fdef6accSSam LefflerBackground scanning is a technique whereby a station associated to
1206fdef6accSSam Leffleran access point will temporarily leave the channel to scan for
1207fdef6accSSam Lefflerneighboring stations.
1208fdef6accSSam LefflerThis allows a station to maintain a cache of nearby access points
1209d592cd38SSam Lefflerso that roaming between access points can be done without
1210fdef6accSSam Lefflera lengthy scan operation.
1211fdef6accSSam LefflerBackground scanning is done only when a station is not busy and
1212fdef6accSSam Lefflerany outbound traffic will cancel a scan operation.
1213fdef6accSSam LefflerBackground scanning should never cause packets to be lost though
1214fdef6accSSam Lefflerthere may be some small latency if outbound traffic interrupts a
1215fdef6accSSam Lefflerscan operation.
1216fdef6accSSam LefflerBy default background scanning is enabled if the device is capable.
1217fdef6accSSam LefflerTo disable background scanning, use
1218fdef6accSSam Leffler.Fl bgscan .
1219fdef6accSSam LefflerBackground scanning is controlled by the
1220fdef6accSSam Leffler.Cm bgscanidle
1221fdef6accSSam Lefflerand
1222fdef6accSSam Leffler.Cm bgscanintvl
1223fdef6accSSam Lefflerparameters.
1224fdef6accSSam LefflerBackground scanning must be enabled for roaming; this is an artifact
1225fdef6accSSam Lefflerof the current implementation and may not be required in the future.
1226fdef6accSSam Leffler.It Cm bgscanidle Ar idletime
1227fdef6accSSam LefflerSet the minimum time a station must be idle (not transmitting or
1228fdef6accSSam Lefflerreceiving frames) before a background scan is initiated.
1229fdef6accSSam LefflerThe
1230fdef6accSSam Leffler.Ar idletime
1231fdef6accSSam Lefflerparameter is specified in milliseconds.
1232fdef6accSSam LefflerBy default a station must be idle at least 250 milliseconds before
1233fdef6accSSam Lefflera background scan is initiated.
1234fdef6accSSam LefflerThe idle time may not be set to less than 100 milliseconds.
1235fdef6accSSam Leffler.It Cm bgscanintvl Ar interval
1236fdef6accSSam LefflerSet the interval at which background scanning is attempted.
1237fdef6accSSam LefflerThe
1238fdef6accSSam Leffler.Ar interval
1239fdef6accSSam Lefflerparameter is specified in seconds.
1240d592cd38SSam LefflerBy default a background scan is considered every 300 seconds (5 minutes).
1241fdef6accSSam LefflerThe
1242fdef6accSSam Leffler.Ar interval
1243fdef6accSSam Lefflermay not be set to less than 15 seconds.
1244aeffcba3SSam Leffler.It Cm bintval Ar interval
1245aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in
1246aeffcba3SSam Lefflerad-hoc or ap mode.
1247aeffcba3SSam LefflerThe
1248aeffcba3SSam Leffler.Ar interval
124942b28f81SDag-Erling Smørgravparameter is specified in TUs (1024 usecs).
125042b28f81SDag-Erling SmørgravBy default beacon frames are transmitted every 100 TUs.
1251d7ccef33SSam Leffler.It Cm bmissthreshold Ar count
1252d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station
12538266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point).
1254d7ccef33SSam LefflerThe
1255d7ccef33SSam Leffler.Ar count
12568266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the
12578266d476SRuslan Ermilovupper bound may be reduced according to device capabilities.
1258d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but
1259d7ccef33SSam Lefflerthis may be overridden by the device driver.
1260d7ccef33SSam LefflerAnother name for the
1261d7ccef33SSam Leffler.Cm bmissthreshold
1262d7ccef33SSam Lefflerparameter is
1263d7ccef33SSam Leffler.Cm bmiss .
12645faf8dcbSSam Leffler.It Cm bssid Ar address
12655faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating
12665faf8dcbSSam Leffleras a station in a BSS network.
12675faf8dcbSSam LefflerThis overrides any automatic selection done by the system.
126821414470SRuslan ErmilovTo disable a previously selected access point, supply
12694e9e907dSRuslan Ermilov.Cm any , none ,
12705faf8dcbSSam Leffleror
12714e9e907dSRuslan Ermilov.Cm -
12725faf8dcbSSam Lefflerfor the address.
127309a66bdaSJens SchweikhardtThis option is useful when more than one access point uses the same SSID.
12745faf8dcbSSam LefflerAnother name for the
12755faf8dcbSSam Leffler.Cm bssid
12765faf8dcbSSam Lefflerparameter is
12775faf8dcbSSam Leffler.Cm ap .
127829d58c71SSam Leffler.It Cm burst
127929d58c71SSam LefflerEnable packet bursting.
128029d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless
128129d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe
128229d58c71SSam Lefflerspacing is reduced.
128329d58c71SSam LefflerThis technique can significantly increase throughput by reducing
128429d58c71SSam Lefflertransmission overhead.
128529d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification
128629d58c71SSam Lefflerand some devices that do not support QoS may still be capable.
128729d58c71SSam LefflerBy default packet bursting is enabled if a device is capable
128829d58c71SSam Lefflerof doing it.
128929d58c71SSam LefflerTo disable packet bursting, use
129029d58c71SSam Leffler.Fl burst .
12915faf8dcbSSam Leffler.It Cm chanlist Ar channels
12925faf8dcbSSam LefflerSet the desired channels to use when scanning for access
12935faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied
12945faf8dcbSSam Lefflerchannels when operating as an access point.
12955faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with
129621414470SRuslan Ermiloveach element in the list representing either a single channel number or a range
12975faf8dcbSSam Lefflerof the form
12985faf8dcbSSam Leffler.Dq Li a-b .
12995faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible
13005faf8dcbSSam Leffleraccording to the operating characteristics of the device.
13015faf8dcbSSam Leffler.It Cm channel Ar number
13025faf8dcbSSam LefflerSet a single desired channel.
13035faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available
13045faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for.
13055faf8dcbSSam LefflerSetting
13065faf8dcbSSam Lefflerthe channel to
1307ce038463SMateusz Piotrowski.Cm any ,
13085faf8dcbSSam Leffleror
1309ce038463SMateusz Piotrowski.Dq Cm -
13104a5184dcSSam Lefflerwill clear any desired channel and, if the device is marked up,
13114a5184dcSSam Lefflerforce a scan for a channel to operate on.
13125faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified
13135faf8dcbSSam Lefflerinstead of the channel number.
13148f3591a5SSam Leffler.Pp
13158f3591a5SSam LefflerWhen there are several ways to use a channel the channel
13168f3591a5SSam Lefflernumber/frequency may be appended with attributes to clarify.
13178f3591a5SSam LefflerFor example, if a device is capable of operating on channel 6
13188f3591a5SSam Lefflerwith 802.11n and 802.11g then one can specify that g-only use
1319ce038463SMateusz Piotrowskishould be used by specifying
1320ce038463SMateusz Piotrowski.Cm 6:g .
13218f3591a5SSam LefflerSimilarly the channel width can be specified by appending it
1322ce038463SMateusz Piotrowskiwith
1323ce038463SMateusz Piotrowski.Dq Cm \&/ ;
1324ce038463SMateusz Piotrowskie.g.,
1325ce038463SMateusz Piotrowski.Cm 6/40
1326ce038463SMateusz Piotrowskispecifies a 40MHz wide channel.
1327ce038463SMateusz PiotrowskiThese attributes can be combined as in:
1328ce038463SMateusz Piotrowski.Cm 6:ht/40 .
1329ce038463SMateusz Piotrowski.Pp
1330ce038463SMateusz PiotrowskiThe full set of flags specified following a
1331ce038463SMateusz Piotrowski.Dq Cm \&:
1332ce038463SMateusz Piotrowskiare:
1333ce038463SMateusz Piotrowski.Pp
1334ce038463SMateusz Piotrowski.Bl -tag -compact
1335ce038463SMateusz Piotrowski.It Cm a
1336ce038463SMateusz Piotrowski802.11a
1337ce038463SMateusz Piotrowski.It Cm b
1338ce038463SMateusz Piotrowski802.11b
1339ce038463SMateusz Piotrowski.It Cm d
1340ce038463SMateusz PiotrowskiAtheros Dynamic Turbo mode
1341ce038463SMateusz Piotrowski.It Cm g
1342ce038463SMateusz Piotrowski802.11g
1343ce038463SMateusz Piotrowski.It Cm h
1344ce038463SMateusz PiotrowskiSame as
13458f3591a5SSam Leffler.Cm n
1346ce038463SMateusz Piotrowski.It Cm n
1347ce038463SMateusz Piotrowski802.11n aka HT
1348ce038463SMateusz Piotrowski.It Cm s
1349ce038463SMateusz PiotrowskiAtheros Static Turbo mode
1350ce038463SMateusz Piotrowski.It Cm t
1351ce038463SMateusz PiotrowskiAtheros Dynamic Turbo mode, or appended to
1352ce038463SMateusz Piotrowski.Cm st
13538f3591a5SSam Lefflerand
1354ce038463SMateusz Piotrowski.Cm dt
1355ce038463SMateusz Piotrowski.El
1356ce038463SMateusz Piotrowski.Pp
1357ce038463SMateusz PiotrowskiThe full set of channel widths following a
1358ce038463SMateusz Piotrowski.Cm \&/
1359ce038463SMateusz Piotrowskiare:
1360ce038463SMateusz Piotrowski.Pp
1361ce038463SMateusz Piotrowski.Bl -tag -compact
1362ce038463SMateusz Piotrowski.It Cm 5
1363ce038463SMateusz Piotrowski5MHz aka quarter-rate channel
1364ce038463SMateusz Piotrowski.It Cm 10
1365ce038463SMateusz Piotrowski10MHz aka half-rate channel
1366ce038463SMateusz Piotrowski.It Cm 20
1367ce038463SMateusz Piotrowski20MHz mostly for use in specifying
1368ce038463SMateusz Piotrowski.Cm ht20
1369ce038463SMateusz Piotrowski.It Cm 40
1370ce038463SMateusz Piotrowski40MHz mostly for use in specifying
1371ce038463SMateusz Piotrowski.Cm ht40
1372ce038463SMateusz Piotrowski.El
1373ce038463SMateusz Piotrowski.Pp
13748f3591a5SSam LefflerIn addition,
13758f3591a5SSam Lefflera 40MHz HT channel specification may include the location
1376ce038463SMateusz Piotrowskiof the extension channel by appending
1377ce038463SMateusz Piotrowski.Dq Cm \&+
1378ce038463SMateusz Piotrowskior
1379ce038463SMateusz Piotrowski.Dq Cm \&-
1380ce038463SMateusz Piotrowskifor above and below,
1381ce038463SMateusz Piotrowskirespectively; e.g.,
1382ce038463SMateusz Piotrowski.Cm 2437:ht/40+
1383ce038463SMateusz Piotrowskispecifies 40MHz wide HT operation
13848f3591a5SSam Lefflerwith the center channel at frequency 2437 and the extension channel above.
1385b032f27cSSam Leffler.It Cm country Ar name
1386b032f27cSSam LefflerSet the country code to use in calculating the regulatory constraints
1387b032f27cSSam Lefflerfor operation.
1388b032f27cSSam LefflerIn particular the set of available channels, how the wireless device
1389b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that
1390b032f27cSSam Lefflercan be used on a channel are defined by this setting.
1391b032f27cSSam LefflerCountry/Region codes are specified as a 2-character abbreviation
1392b032f27cSSam Lefflerdefined by ISO 3166 or using a longer, but possibly ambiguous, spelling;
1393818b39edSWarren Blocke.g., "ES" and "Spain".
139437b983c0SJoel DahlThe set of country codes are taken from
139537b983c0SJoel Dahl.Pa /etc/regdomain.xml
139637b983c0SJoel Dahland can also
139767d77afbSMateusz Piotrowskibe viewed with the
139867d77afbSMateusz Piotrowski.Cm list countries
139967d77afbSMateusz Piotrowskirequest.
1400b032f27cSSam LefflerNote that not all devices support changing the country code from a default
1401b032f27cSSam Lefflersetting; typically stored in EEPROM.
1402b032f27cSSam LefflerSee also
1403b032f27cSSam Leffler.Cm regdomain ,
1404b032f27cSSam Leffler.Cm indoor ,
1405b032f27cSSam Leffler.Cm outdoor ,
1406b032f27cSSam Lefflerand
1407b032f27cSSam Leffler.Cm anywhere .
1408b032f27cSSam Leffler.It Cm dfs
1409b032f27cSSam LefflerEnable Dynamic Frequency Selection (DFS) as specified in 802.11h.
1410b032f27cSSam LefflerDFS embodies several facilities including detection of overlapping
1411b032f27cSSam Lefflerradar signals, dynamic transmit power control, and channel selection
1412b032f27cSSam Leffleraccording to a least-congested criteria.
14131748d1e5SGavin AtkinsonDFS support is mandatory for some 5GHz frequencies in certain
1414818b39edSWarren Blocklocales (e.g., ETSI).
1415b032f27cSSam LefflerBy default DFS is enabled according to the regulatory definitions
141637b983c0SJoel Dahlspecified in
141737b983c0SJoel Dahl.Pa /etc/regdomain.xml
141837b983c0SJoel Dahland the current country code, regdomain,
1419b032f27cSSam Lefflerand channel.
1420b032f27cSSam LefflerNote the underlying device (and driver) must support radar detection
1421b032f27cSSam Lefflerfor full DFS support to work.
1422b032f27cSSam LefflerTo be fully compliant with the local regulatory agency frequencies that
1423b032f27cSSam Lefflerrequire DFS should not be used unless it is fully supported.
1424b032f27cSSam LefflerUse
1425b032f27cSSam Leffler.Fl dfs
1426b032f27cSSam Lefflerto disable this functionality for testing.
1427b032f27cSSam Leffler.It Cm dotd
1428b032f27cSSam LefflerEnable support for the 802.11d specification (default).
1429b032f27cSSam LefflerWhen this support is enabled in station mode, beacon frames that advertise
1430b032f27cSSam Lefflera country code different than the currently configured country code will
1431b032f27cSSam Lefflercause an event to be dispatched to user applications.
1432b032f27cSSam LefflerThis event can be used by the station to adopt that country code and
1433b032f27cSSam Leffleroperate according to the associated regulatory constraints.
1434b032f27cSSam LefflerWhen operating as an access point with 802.11d enabled the beacon and
1435b032f27cSSam Lefflerprobe response frames transmitted will advertise the current regulatory
1436b032f27cSSam Lefflerdomain settings.
1437b032f27cSSam LefflerTo disable 802.11d use
1438b032f27cSSam Leffler.Fl dotd .
1439fdef6accSSam Leffler.It Cm doth
1440b032f27cSSam LefflerEnable 802.11h support including spectrum management.
1441b032f27cSSam LefflerWhen 802.11h is enabled beacon and probe response frames will have
1442b032f27cSSam Lefflerthe SpectrumMgt bit set in the capabilities field and
1443b032f27cSSam Lefflercountry and power constraint information elements will be present.
1444b032f27cSSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA)
1445b032f27cSSam Lefflerwhich are a mechanism to coordinate channel changes by an access point.
1446fdef6accSSam LefflerBy default 802.11h is enabled if the device is capable.
1447fdef6accSSam LefflerTo disable 802.11h use
1448fdef6accSSam Leffler.Fl doth .
14494e0a8f0dSSam Leffler.It Cm deftxkey Ar index
14504e0a8f0dSSam LefflerSet the default key to use for transmission.
14514e0a8f0dSSam LefflerTypically this is only set when using WEP encryption.
14525ce09a9eSSam LefflerNote that you must set a default transmit key
14535ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic.
14544e0a8f0dSSam LefflerThe
14554e0a8f0dSSam Leffler.Cm weptxkey
14564e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility.
1457aeffcba3SSam Leffler.It Cm dtimperiod Ar period
1458aeffcba3SSam LefflerSet the
1459aeffcba3SSam LefflerDTIM
1460aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when
1461aeffcba3SSam Leffleroperating in ap mode.
1462aeffcba3SSam LefflerThe
1463aeffcba3SSam Leffler.Ar period
1464aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM
1465aeffcba3SSam Lefflerand must be in the range 1 to 15.
14664e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon).
14676edc611eSAdrian Chadd.It Cm quiet
146896db02f2SAllan JudeEnable the use of quiet IE.
146996db02f2SAllan JudeHostap will use this to silence other
14706edc611eSAdrian Chaddstations to reduce interference for radar detection when
14711748d1e5SGavin Atkinsonoperating on 5GHz frequency and doth support is enabled.
14726edc611eSAdrian ChaddUse
14736edc611eSAdrian Chadd.Fl quiet
14746edc611eSAdrian Chaddto disable this functionality.
14756edc611eSAdrian Chadd.It Cm quiet_period Ar period
14766edc611eSAdrian ChaddSet the QUIET
14776edc611eSAdrian Chadd.Ar period
14786edc611eSAdrian Chaddto the number of beacon intervals between the start of regularly
14796edc611eSAdrian Chaddscheduled quiet intervals defined by Quiet element.
14806edc611eSAdrian Chadd.It Cm quiet_count Ar count
14816edc611eSAdrian ChaddSet the QUIET
14826edc611eSAdrian Chadd.Ar count
14836edc611eSAdrian Chaddto the number of TBTTs until the beacon interval during which the
148496db02f2SAllan Judenext quiet interval shall start.
148596db02f2SAllan JudeA value of 1 indicates the quiet
14866edc611eSAdrian Chaddinterval will start during the beacon interval starting at the next
148796db02f2SAllan JudeTBTT.
148896db02f2SAllan JudeA value 0 is reserved.
14896edc611eSAdrian Chadd.It Cm quiet_offset Ar offset
14906edc611eSAdrian ChaddSet the QUIET
14916edc611eSAdrian Chadd.Ar offset
14926edc611eSAdrian Chaddto the offset of the start of the quiet interval from the TBTT
14936edc611eSAdrian Chaddspecified by the Quiet count, expressed in TUs.
14946edc611eSAdrian ChaddThe value of the
14956edc611eSAdrian Chadd.Ar offset
14966edc611eSAdrian Chaddshall be less than one beacon interval.
14976edc611eSAdrian Chadd.It Cm quiet_duration Ar dur
14986edc611eSAdrian ChaddSet the QUIET
14996edc611eSAdrian Chadd.Ar dur
15006edc611eSAdrian Chaddto the duration of the Quiet interval, expressed in TUs.
15016edc611eSAdrian ChaddThe value should be less than beacon interval.
1502fdef6accSSam Leffler.It Cm dturbo
1503fdef6accSSam LefflerEnable the use of Atheros Dynamic Turbo mode when communicating with
1504fdef6accSSam Leffleranother Dynamic Turbo-capable station.
1505fdef6accSSam LefflerDynamic Turbo mode is an Atheros-specific mechanism by which
150667d77afbSMateusz Piotrowskistations switch between normal 802.11 operation and a
150767d77afbSMateusz Piotrowski.Dq boosted
1508fdef6accSSam Lefflermode in which a 40MHz wide channel is used for communication.
1509fdef6accSSam LefflerStations using Dynamic Turbo mode operate boosted only when the
1510fdef6accSSam Lefflerchannel is free of non-dturbo stations; when a non-dturbo station
1511fdef6accSSam Leffleris identified on the channel all stations will automatically drop
1512fdef6accSSam Lefflerback to normal operation.
1513fdef6accSSam LefflerBy default, Dynamic Turbo mode is not enabled, even if the device is capable.
1514fdef6accSSam LefflerNote that turbo mode (dynamic or static) is only allowed on some
1515fdef6accSSam Lefflerchannels depending on the regulatory constraints; use the
1516fdef6accSSam Leffler.Cm list chan
1517fdef6accSSam Lefflercommand to identify the channels where turbo mode may be used.
1518fdef6accSSam LefflerTo disable Dynamic Turbo mode use
1519fdef6accSSam Leffler.Fl dturbo .
1520b032f27cSSam Leffler.It Cm dwds
1521b032f27cSSam LefflerEnable Dynamic WDS (DWDS) support.
1522b032f27cSSam LefflerDWDS is a facility by which 4-address traffic can be carried between
1523b032f27cSSam Lefflerstations operating in infrastructure mode.
1524b032f27cSSam LefflerA station first associates to an access point and authenticates using
1525818b39edSWarren Blocknormal procedures (e.g., WPA).
1526b032f27cSSam LefflerThen 4-address frames are passed to carry traffic for stations
1527b032f27cSSam Leffleroperating on either side of the wireless link.
1528b032f27cSSam LefflerDWDS extends the normal WDS mechanism by leveraging existing security
1529b032f27cSSam Lefflerprotocols and eliminating static binding.
1530b032f27cSSam Leffler.Pp
1531b032f27cSSam LefflerWhen DWDS is enabled on an access point 4-address frames received from
153267d77afbSMateusz Piotrowskian authorized station will generate a
153367d77afbSMateusz Piotrowski.Dq DWDS discovery
153467d77afbSMateusz Piotrowskievent to user
1535b032f27cSSam Lefflerapplications.
1536b032f27cSSam LefflerThis event should be used to create a WDS interface that is bound
1537b032f27cSSam Lefflerto the remote station (and usually plumbed into a bridge).
1538b032f27cSSam LefflerOnce the WDS interface is up and running 4-address traffic then logically
1539b032f27cSSam Lefflerflows through that interface.
1540b032f27cSSam Leffler.Pp
1541b032f27cSSam LefflerWhen DWDS is enabled on a station, traffic with a destination address
1542b032f27cSSam Lefflerdifferent from the peer station are encapsulated in a 4-address frame
1543b032f27cSSam Lefflerand transmitted to the peer.
1544b032f27cSSam LefflerAll 4-address traffic uses the security information of the stations
1545818b39edSWarren Block(e.g., cryptographic keys).
1546b032f27cSSam LefflerA station is associated using 802.11n facilities may transport
1547b032f27cSSam Leffler4-address traffic using these same mechanisms; this depends on available
1548b032f27cSSam Lefflerresources and capabilities of the device.
1549b032f27cSSam LefflerThe DWDS implementation guards against layer 2 routing loops of
1550b032f27cSSam Lefflermulticast traffic.
1551fdef6accSSam Leffler.It Cm ff
1552d592cd38SSam LefflerEnable the use of Atheros Fast Frames when communicating with
1553fdef6accSSam Leffleranother Fast Frames-capable station.
1554fdef6accSSam LefflerFast Frames are an encapsulation technique by which two 802.3
1555fdef6accSSam Lefflerframes are transmitted in a single 802.11 frame.
1556fdef6accSSam LefflerThis can noticeably improve throughput but requires that the
1557fdef6accSSam Lefflerreceiving station understand how to decapsulate the frame.
1558fdef6accSSam LefflerFast frame use is negotiated using the Atheros 802.11 vendor-specific
1559fdef6accSSam Lefflerprotocol extension so enabling use is safe when communicating with
1560fdef6accSSam Lefflernon-Atheros devices.
1561fdef6accSSam LefflerBy default, use of fast frames is enabled if the device is capable.
1562fdef6accSSam LefflerTo explicitly disable fast frames, use
1563fdef6accSSam Leffler.Fl ff .
1564b032f27cSSam Leffler.It Cm fragthreshold Ar length
1565b032f27cSSam LefflerSet the threshold for which transmitted frames are broken into fragments.
1566b032f27cSSam LefflerThe
1567b032f27cSSam Leffler.Ar length
1568b032f27cSSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346.
1569b032f27cSSam LefflerSetting
1570b032f27cSSam Leffler.Ar length
1571b032f27cSSam Lefflerto
1572b032f27cSSam Leffler.Li 2346 ,
1573b032f27cSSam Leffler.Cm any ,
1574b032f27cSSam Leffleror
1575b032f27cSSam Leffler.Cm -
1576b032f27cSSam Lefflerdisables transmit fragmentation.
1577b032f27cSSam LefflerNot all adapters honor the fragmentation threshold.
1578b032f27cSSam Leffler.It Cm hidessid
1579b032f27cSSam LefflerWhen operating as an access point, do not broadcast the SSID
1580b032f27cSSam Lefflerin beacon frames or respond to probe request frames unless
1581b032f27cSSam Lefflerthey are directed to the ap (i.e., they include the ap's SSID).
1582b032f27cSSam LefflerBy default, the SSID is included in beacon frames and
1583b032f27cSSam Lefflerundirected probe request frames are answered.
1584b032f27cSSam LefflerTo re-enable the broadcast of the SSID etc., use
1585b032f27cSSam Leffler.Fl hidessid .
1586b032f27cSSam Leffler.It Cm ht
1587b032f27cSSam LefflerEnable use of High Throughput (HT) when using 802.11n (default).
1588b032f27cSSam LefflerThe 802.11n specification includes mechanisms for operation
1589b032f27cSSam Leffleron 20MHz and 40MHz wide channels using different signalling mechanisms
1590b032f27cSSam Lefflerthan specified in 802.11b, 802.11g, and 802.11a.
1591b032f27cSSam LefflerStations negotiate use of these facilities, termed HT20 and HT40,
1592b032f27cSSam Lefflerwhen they associate.
1593b032f27cSSam LefflerTo disable all use of 802.11n use
1594b032f27cSSam Leffler.Fl ht .
1595818b39edSWarren BlockTo disable use of HT20 (e.g., to force only HT40 use) use
1596b032f27cSSam Leffler.Fl ht20 .
1597b032f27cSSam LefflerTo disable use of HT40 use
1598b032f27cSSam Leffler.Fl ht40 .
1599b032f27cSSam Leffler.Pp
160067d77afbSMateusz PiotrowskiHT configuration is used to
160167d77afbSMateusz Piotrowski.Dq auto promote
160267d77afbSMateusz Piotrowskioperation
1603b032f27cSSam Lefflerwhen several choices are available.
1604b032f27cSSam LefflerFor example, if a station associates to an 11n-capable access point
1605b032f27cSSam Lefflerit controls whether the station uses legacy operation, HT20, or HT40.
1606b032f27cSSam LefflerWhen an 11n-capable device is setup as an access point and
1607b032f27cSSam LefflerAuto Channel Selection is used to locate a channel to operate on,
1608b032f27cSSam LefflerHT configuration controls whether legacy, HT20, or HT40 operation is setup
1609b032f27cSSam Leffleron the selected channel.
1610b032f27cSSam LefflerIf a fixed channel is specified for a station then HT configuration can
1611818b39edSWarren Blockbe given as part of the channel specification; e.g., 6:ht/20 to setup
1612b032f27cSSam LefflerHT20 operation on channel 6.
1613b032f27cSSam Leffler.It Cm htcompat
1614b032f27cSSam LefflerEnable use of compatibility support for pre-802.11n devices (default).
1615b032f27cSSam LefflerThe 802.11n protocol specification went through several incompatible iterations.
1616b032f27cSSam LefflerSome vendors implemented 11n support to older specifications that
1617b032f27cSSam Lefflerwill not interoperate with a purely 11n-compliant station.
1618b032f27cSSam LefflerIn particular the information elements included in management frames
1619b032f27cSSam Lefflerfor old devices are different.
1620b032f27cSSam LefflerWhen compatibility support is enabled both standard and compatible data
1621b032f27cSSam Lefflerwill be provided.
1622f30f9d40SRui PauloStations that associate using the compatibility mechanisms are flagged
162367d77afbSMateusz Piotrowskiin
162467d77afbSMateusz Piotrowski.Cm list sta .
1625f30f9d40SRui PauloTo disable compatibility support use
1626b032f27cSSam Leffler.Fl htcompat .
1627b032f27cSSam Leffler.It Cm htprotmode Ar technique
1628b032f27cSSam LefflerFor interfaces operating in 802.11n, use the specified
1629b032f27cSSam Leffler.Ar technique
1630b032f27cSSam Lefflerfor protecting HT frames in a mixed legacy/HT network.
1631b032f27cSSam LefflerThe set of valid techniques is
1632b032f27cSSam Leffler.Cm off ,
1633b032f27cSSam Lefflerand
1634b032f27cSSam Leffler.Cm rts
1635b032f27cSSam Leffler(RTS/CTS, default).
1636b032f27cSSam LefflerTechnique names are case insensitive.
1637b032f27cSSam Leffler.It Cm inact
1638b032f27cSSam LefflerEnable inactivity processing for stations associated to an
1639b032f27cSSam Leffleraccess point (default).
1640b032f27cSSam LefflerWhen operating as an access point the 802.11 layer monitors
1641b032f27cSSam Lefflerthe activity of each associated station.
1642b032f27cSSam LefflerWhen a station is inactive for 5 minutes it will send several
164367d77afbSMateusz Piotrowski.Dq probe frames
164467d77afbSMateusz Piotrowskito see if the station is still present.
1645b032f27cSSam LefflerIf no response is received then the station is deauthenticated.
1646b032f27cSSam LefflerApplications that prefer to handle this work can disable this
1647b032f27cSSam Lefflerfacility by using
1648b032f27cSSam Leffler.Fl inact .
1649b032f27cSSam Leffler.It Cm indoor
1650b032f27cSSam LefflerSet the location to use in calculating regulatory constraints.
1651b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames
1652b032f27cSSam Lefflerwhen 802.11d is enabled with
1653b032f27cSSam Leffler.Cm dotd .
1654b032f27cSSam LefflerSee also
1655b032f27cSSam Leffler.Cm outdoor ,
1656b032f27cSSam Leffler.Cm anywhere ,
1657b032f27cSSam Leffler.Cm country ,
1658b032f27cSSam Lefflerand
1659b032f27cSSam Leffler.Cm regdomain .
16604e9e907dSRuslan Ermilov.It Cm list active
1661aeffcba3SSam LefflerDisplay the list of channels available for use taking into account
1662aeffcba3SSam Lefflerany restrictions set with the
16634e9e907dSRuslan Ermilov.Cm chanlist
1664451486b5SSam Lefflerdirective.
1665451486b5SSam LefflerSee the description of
1666451486b5SSam Leffler.Cm list chan
1667451486b5SSam Lefflerfor more information.
16684e9e907dSRuslan Ermilov.It Cm list caps
1669aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating
1670aeffcba3SSam Lefflermodes supported.
16714e9e907dSRuslan Ermilov.It Cm list chan
1672aeffcba3SSam LefflerDisplay the list of channels available for use.
1673451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent
1674451486b5SSam Lefflerfrequency, and usage modes.
1675451486b5SSam LefflerChannels identified as
1676451486b5SSam Leffler.Ql 11g
1677451486b5SSam Lefflerare also usable in
1678451486b5SSam Leffler.Ql 11b
1679451486b5SSam Lefflermode.
1680451486b5SSam LefflerChannels identified as
1681451486b5SSam Leffler.Ql 11a Turbo
1682451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode
16838266d476SRuslan Ermilov(specified with
16848266d476SRuslan Ermilov. Cm mediaopt turbo ) .
1685451486b5SSam LefflerChannels marked with a
1686451486b5SSam Leffler.Ql *
1687451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned.
1688451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until
1689451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication;
1690451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating
1691451486b5SSam Leffleron the channel.
16924e9e907dSRuslan Ermilov.Cm list freq
1693aeffcba3SSam Leffleris another way of requesting this information.
1694d592cd38SSam LefflerBy default a compacted list of channels is displayed; if the
1695d592cd38SSam Leffler.Fl v
1696d592cd38SSam Leffleroption is specified then all channels are shown.
1697b032f27cSSam Leffler.It Cm list countries
1698b032f27cSSam LefflerDisplay the set of country codes and regulatory domains that can be
1699b032f27cSSam Lefflerused in regulatory configuration.
17004e9e907dSRuslan Ermilov.It Cm list mac
170129f0e929SSam LefflerDisplay the current MAC Access Control List state.
170229f0e929SSam LefflerEach address is prefixed with a character that indicates the
170329f0e929SSam Lefflercurrent policy applied to it:
17044e9e907dSRuslan Ermilov.Ql +
170529f0e929SSam Lefflerindicates the address is allowed access,
17064e9e907dSRuslan Ermilov.Ql -
170729f0e929SSam Lefflerindicates the address is denied access,
17084e9e907dSRuslan Ermilov.Ql *
170929f0e929SSam Lefflerindicates the address is present but the current policy open
17104e9e907dSRuslan Ermilov(so the ACL is not consulted).
171159aa14a9SRui Paulo.It Cm list mesh
171259aa14a9SRui PauloDisplays the mesh routing table, used for forwarding packets on a mesh
171359aa14a9SRui Paulonetwork.
1714b032f27cSSam Leffler.It Cm list regdomain
1715b032f27cSSam LefflerDisplay the current regulatory settings including the available channels
1716b032f27cSSam Lefflerand transmit power caps.
1717b032f27cSSam Leffler.It Cm list roam
1718b032f27cSSam LefflerDisplay the parameters that govern roaming operation.
1719b032f27cSSam Leffler.It Cm list txparam
1720b032f27cSSam LefflerDisplay the parameters that govern transmit operation.
1721b032f27cSSam Leffler.It Cm list txpower
1722b032f27cSSam LefflerDisplay the transmit power caps for each channel.
17234e9e907dSRuslan Ermilov.It Cm list scan
1724aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors
1725aeffcba3SSam Lefflerlocated in the vicinity.
1726b032f27cSSam LefflerThis information may be updated automatically by the adapter
1727b032f27cSSam Lefflerwith a
17284e9e907dSRuslan Ermilov.Cm scan
1729fdef6accSSam Lefflerrequest or through background scanning.
1730b032f27cSSam LefflerDepending on the capabilities of the stations the following
173105621e0bSMateusz Piotrowskiflags (capability codes) can be included in the output:
1732b032f27cSSam Leffler.Bl -tag -width 3n
1733b032f27cSSam Leffler.It Li A
1734f95cfecbSAndriy GaponChannel agility.
1735f95cfecbSAndriy Gapon.It Li B
1736f95cfecbSAndriy GaponPBCC modulation.
1737f95cfecbSAndriy Gapon.It Li C
1738f95cfecbSAndriy GaponPoll request capability.
1739f95cfecbSAndriy Gapon.It Li D
1740f95cfecbSAndriy GaponDSSS/OFDM capability.
1741b032f27cSSam Leffler.It Li E
1742f95cfecbSAndriy GaponExtended Service Set (ESS).
174305621e0bSMateusz PiotrowskiIndicates that the station is part of an infrastructure network
174405621e0bSMateusz Piotrowskirather than an IBSS/ad-hoc network.
1745f95cfecbSAndriy Gapon.It Li I
1746f95cfecbSAndriy GaponIndependent Basic Service Set (IBSS).
174705621e0bSMateusz PiotrowskiIndicates that the station is part of an ad-hoc network
174805621e0bSMateusz Piotrowskirather than an ESS network.
1749b032f27cSSam Leffler.It Li P
1750f95cfecbSAndriy GaponPrivacy capability.
175105621e0bSMateusz PiotrowskiThe station requires authentication and encryption
175205621e0bSMateusz Piotrowskifor all data frames exchanged within the BSS using cryptographic means
175305621e0bSMateusz Piotrowskisuch as WEP, TKIP, or AES-CCMP.
1754f95cfecbSAndriy Gapon.It Li R
1755f95cfecbSAndriy GaponRobust Secure Network (RSN).
175668a63039SBjoern A. Zeeb.It Li S
175768a63039SBjoern A. ZeebShort Preamble.
175805621e0bSMateusz PiotrowskiIndicates that the network is using short preambles,
175905621e0bSMateusz Piotrowskidefined in 802.11b High Rate/DSSS PHY,
176005621e0bSMateusz Piotrowskiand utilizes a 56 bit sync field
176105621e0bSMateusz Piotrowskirather than the 128 bit field used in long preamble mode.
176205621e0bSMateusz PiotrowskiShort preambles are used to optionally
176368a63039SBjoern A. Zeebimprove throughput performance with 802.11g and 802.11b.
1764f95cfecbSAndriy Gapon.It Li c
1765f95cfecbSAndriy GaponPollable capability.
1766f95cfecbSAndriy Gapon.It Li s
1767f95cfecbSAndriy GaponShort slot time capability.
176805621e0bSMateusz PiotrowskiIndicates that the 802.11g network is using a short slot time
176905621e0bSMateusz Piotrowskibecause there are no legacy (802.11b) stations present.
1770b032f27cSSam Leffler.El
1771b032f27cSSam Leffler.Pp
1772b032f27cSSam LefflerBy default interesting information elements captured from the neighboring
1773b032f27cSSam Lefflerstations are displayed at the end of each row.
1774b032f27cSSam LefflerPossible elements include:
1775b032f27cSSam Leffler.Cm WME
1776b032f27cSSam Leffler(station supports WME),
1777b032f27cSSam Leffler.Cm WPA
1778b032f27cSSam Leffler(station supports WPA),
1779ed8b5a93SSam Leffler.Cm WPS
1780ed8b5a93SSam Leffler(station supports WPS),
1781b032f27cSSam Leffler.Cm RSN
1782b032f27cSSam Leffler(station supports 802.11i/RSN),
1783b032f27cSSam Leffler.Cm HTCAP
1784b032f27cSSam Leffler(station supports 802.11n/HT communication),
1785b032f27cSSam Leffler.Cm ATH
1786116c00fbSMaxim Konovalov(station supports Atheros protocol extensions),
1787b032f27cSSam Leffler.Cm VEN
1788b032f27cSSam Leffler(station supports unknown vendor-specific extensions).
1789b032f27cSSam LefflerIf the
1790b032f27cSSam Leffler.Fl v
1791b032f27cSSam Lefflerflag is used all the information elements and their
1792b032f27cSSam Lefflercontents will be shown.
17934f1fb109SGiorgos KeramidasSpecifying the
1794b032f27cSSam Leffler.Fl v
1795b032f27cSSam Lefflerflag also enables display of long SSIDs.
17964f1fb109SGiorgos KeramidasThe
17974e9e907dSRuslan Ermilov.Cm list ap
17984f1fb109SGiorgos Keramidascommand is another way of requesting this information.
17994e9e907dSRuslan Ermilov.It Cm list sta
1800aeffcba3SSam LefflerWhen operating as an access point display the stations that are
1801aeffcba3SSam Lefflercurrently associated.
1802aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as
1803aeffcba3SSam Lefflerneighbors in the IBSS.
180459aa14a9SRui PauloWhen operating in mesh mode display stations identified as
180559aa14a9SRui Pauloneighbors in the MBSS.
1806fdef6accSSam LefflerWhen operating in station mode display the access point.
180797d7b28eSSam LefflerCapabilities advertised by the stations are described under
180897d7b28eSSam Lefflerthe
180997d7b28eSSam Leffler.Cm scan
181097d7b28eSSam Lefflerrequest.
1811f95cfecbSAndriy GaponThe following flags can be included in the output:
181297d7b28eSSam Leffler.Bl -tag -width 3n
181397d7b28eSSam Leffler.It Li A
181497d7b28eSSam LefflerAuthorized.
181597d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames.
181697d7b28eSSam Leffler.It Li E
181797d7b28eSSam LefflerExtended Rate Phy (ERP).
181897d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network
181997d7b28eSSam Lefflerusing extended transmit rates.
1820fdef6accSSam Leffler.It Li H
1821fdef6accSSam LefflerHigh Throughput (HT).
1822b032f27cSSam LefflerIndicates that the station is using HT transmit rates.
1823f95cfecbSAndriy GaponIf a
1824f95cfecbSAndriy Gapon.Sq Li +
1825f95cfecbSAndriy Gaponfollows immediately after then the station associated
1826b032f27cSSam Lefflerusing deprecated mechanisms supported only when
1827b032f27cSSam Leffler.Cm htcompat
1828b032f27cSSam Leffleris enabled.
182997d7b28eSSam Leffler.It Li P
183097d7b28eSSam LefflerPower Save.
183197d7b28eSSam LefflerIndicates that the station is operating in power save mode.
183297d7b28eSSam Leffler.It Li Q
183397d7b28eSSam LefflerQuality of Service (QoS).
183497d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for
183597d7b28eSSam Lefflerdata frame.
183697d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled.
183768a63039SBjoern A. Zeeb.It Li S
1838f95cfecbSAndriy GaponShort GI in HT 40MHz mode enabled.
1839f95cfecbSAndriy GaponIf a
1840f95cfecbSAndriy Gapon.Sq Li +
1841f95cfecbSAndriy Gaponfollows immediately after then short GI in HT 20MHz mode is enabled as well.
1842b032f27cSSam Leffler.It Li T
1843b032f27cSSam LefflerTransitional Security Network (TSN).
1844b032f27cSSam LefflerIndicates that the station associated using TSN; see also
1845b032f27cSSam Leffler.Cm tsn
1846b032f27cSSam Lefflerbelow.
1847b032f27cSSam Leffler.It Li W
1848b032f27cSSam LefflerWi-Fi Protected Setup (WPS).
1849b032f27cSSam LefflerIndicates that the station associated using WPS.
1850f95cfecbSAndriy Gapon.It Li s
1851f95cfecbSAndriy GaponShort GI in HT 20MHz mode enabled.
185297d7b28eSSam Leffler.El
1853d592cd38SSam Leffler.Pp
1854d592cd38SSam LefflerBy default information elements received from associated stations
1855d592cd38SSam Lefflerare displayed in a short form; the
1856d592cd38SSam Leffler.Fl v
1857116c00fbSMaxim Konovalovflag causes this information to be displayed symbolically.
18584e9e907dSRuslan Ermilov.It Cm list wme
185987a8e294SSam LefflerDisplay the current channel parameters to use when operating in WME mode.
186087a8e294SSam LefflerIf the
186187a8e294SSam Leffler.Fl v
186287a8e294SSam Leffleroption is specified then both channel and BSS parameters are displayed
186387a8e294SSam Lefflerfor each AC (first channel, then BSS).
1864aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be
1865aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful
1866aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled.
1867aeffcba3SSam LefflerSee the description of the
18684e9e907dSRuslan Ermilov.Cm wme
1869aeffcba3SSam Lefflerdirective for information on the various parameters.
1870b032f27cSSam Leffler.It Cm maxretry Ar count
1871b032f27cSSam LefflerSet the maximum number of tries to use in sending unicast frames.
1872b032f27cSSam LefflerThe default setting is 6 but drivers may override this with a value
1873b032f27cSSam Lefflerthey choose.
1874439b4702SSam Leffler.It Cm mcastrate Ar rate
1875439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames.
1876818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s.
1877439b4702SSam LefflerThis rate should be valid for the current operating conditions;
1878439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an
1879439b4702SSam Lefflerappropriate rate.
1880b032f27cSSam Leffler.It Cm mgtrate Ar rate
1881b032f27cSSam LefflerSet the rate for transmitting management and/or control frames.
1882818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s.
1883b032f27cSSam Leffler.It Cm outdoor
1884b032f27cSSam LefflerSet the location to use in calculating regulatory constraints.
1885b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames
1886b032f27cSSam Lefflerwhen 802.11d is enabled with
1887b032f27cSSam Leffler.Cm dotd .
1888b032f27cSSam LefflerSee also
1889b032f27cSSam Leffler.Cm anywhere ,
1890b032f27cSSam Leffler.Cm country ,
1891b032f27cSSam Leffler.Cm indoor ,
1892b032f27cSSam Lefflerand
1893b032f27cSSam Leffler.Cm regdomain .
1894419d8080SPoul-Henning Kamp.It Cm powersave
18955faf8dcbSSam LefflerEnable powersave operation.
189621414470SRuslan ErmilovWhen operating as a client, the station will conserve power by
18975faf8dcbSSam Lefflerperiodically turning off the radio and listening for
18985faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting.
18995faf8dcbSSam LefflerThe station must then retrieve the packets.
1900fdef6accSSam LefflerNot all devices support power save operation as a client.
1901fdef6accSSam LefflerThe 802.11 specification requires that all access points support
1902fdef6accSSam Lefflerpower save but some drivers do not.
19035faf8dcbSSam LefflerUse
19045faf8dcbSSam Leffler.Fl powersave
1905fdef6accSSam Lefflerto disable powersave operation when operating as a client.
1906419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep
190742b28f81SDag-Erling SmørgravSet the desired max powersave sleep time in TUs (1024 usecs).
190842b28f81SDag-Erling SmørgravBy default the max powersave sleep time is 100 TUs.
1909a6b03f42SSam Leffler.It Cm protmode Ar technique
19105faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified
1911d04b5dfeSRuslan Ermilov.Ar technique
1912d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network.
1913a6b03f42SSam LefflerThe set of valid techniques is
19144e9e907dSRuslan Ermilov.Cm off , cts
1915a6b03f42SSam Leffler(CTS to self),
1916a6b03f42SSam Lefflerand
19174e9e907dSRuslan Ermilov.Cm rtscts
1918a6b03f42SSam Leffler(RTS/CTS).
1919a6b03f42SSam LefflerTechnique names are case insensitive.
1920fdef6accSSam LefflerNot all devices support
1921fdef6accSSam Leffler.Cm cts
1922fdef6accSSam Leffleras a protection technique.
1923fa56f745SSam Leffler.It Cm pureg
1924fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only
1925fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not
1926fa56f745SSam Lefflerpermitted to associate).
1927fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use
1928fa56f745SSam Leffler.Fl pureg .
1929b032f27cSSam Leffler.It Cm puren
1930b032f27cSSam LefflerWhen operating as an access point in 802.11n mode allow only
1931b032f27cSSam LefflerHT-capable stations to associate (legacy stations are not
1932b032f27cSSam Lefflerpermitted to associate).
1933b032f27cSSam LefflerTo allow both HT and legacy stations to associate, use
1934b032f27cSSam Leffler.Fl puren .
1935b032f27cSSam Leffler.It Cm regdomain Ar sku
1936b032f27cSSam LefflerSet the regulatory domain to use in calculating the regulatory constraints
1937b032f27cSSam Lefflerfor operation.
1938b032f27cSSam LefflerIn particular the set of available channels, how the wireless device
1939b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that
1940b032f27cSSam Lefflercan be used on a channel are defined by this setting.
194137b983c0SJoel DahlRegdomain codes (SKU's) are taken from
194237b983c0SJoel Dahl.Pa /etc/regdomain.xml
194337b983c0SJoel Dahland can also
194467d77afbSMateusz Piotrowskibe viewed with the
194567d77afbSMateusz Piotrowski.Cm list countries
194667d77afbSMateusz Piotrowskirequest.
1947b032f27cSSam LefflerNote that not all devices support changing the regdomain from a default
1948b032f27cSSam Lefflersetting; typically stored in EEPROM.
1949b032f27cSSam LefflerSee also
1950b032f27cSSam Leffler.Cm country ,
1951b032f27cSSam Leffler.Cm indoor ,
1952b032f27cSSam Leffler.Cm outdoor ,
1953b032f27cSSam Lefflerand
1954b032f27cSSam Leffler.Cm anywhere .
195551947cb6SSam Leffler.It Cm rifs
195651947cb6SSam LefflerEnable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n
195751947cb6SSam Leffleron an HT channel.
195851947cb6SSam LefflerNote that RIFS must be supported by both the station and access point
195951947cb6SSam Lefflerfor it to be used.
196051947cb6SSam LefflerTo disable RIFS use
196151947cb6SSam Leffler.Fl rifs .
1962b032f27cSSam Leffler.It Cm roam:rate Ar rate
1963b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS.
1964b032f27cSSam LefflerThe
1965b032f27cSSam Leffler.Ar rate
1966b032f27cSSam Lefflerparameter specifies the transmit rate in megabits
1967b032f27cSSam Lefflerat which roaming should be considered.
1968b032f27cSSam LefflerIf the current transmit rate drops below this setting and background scanning
1969b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is
1970b032f27cSSam Leffleravailable and switch over to it.
1971b032f27cSSam LefflerThe current scan cache contents are used if they are considered
1972b032f27cSSam Lefflervalid according to the
1973b032f27cSSam Leffler.Cm scanvalid
1974b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before
1975b032f27cSSam Lefflerany selection occurs.
1976b032f27cSSam LefflerEach channel type has a separate rate threshold; the default values are:
1977b032f27cSSam Leffler12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng).
1978b032f27cSSam Leffler.It Cm roam:rssi Ar rssi
1979b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS.
1980b032f27cSSam LefflerThe
1981b032f27cSSam Leffler.Ar rssi
1982b032f27cSSam Lefflerparameter specifies the receive signal strength in dBm units
1983b032f27cSSam Lefflerat which roaming should be considered.
1984b032f27cSSam LefflerIf the current rssi drops below this setting and background scanning
1985b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is
1986b032f27cSSam Leffleravailable and switch over to it.
1987b032f27cSSam LefflerThe current scan cache contents are used if they are considered
1988b032f27cSSam Lefflervalid according to the
1989b032f27cSSam Leffler.Cm scanvalid
1990b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before
1991b032f27cSSam Lefflerany selection occurs.
1992b3c97464SRui PauloEach channel type has a separate rssi threshold; the default values are
1993b032f27cSSam Lefflerall 7 dBm.
19945faf8dcbSSam Leffler.It Cm roaming Ar mode
19955faf8dcbSSam LefflerWhen operating as a station, control how the system will
19965faf8dcbSSam Lefflerbehave when communication with the current access point
19975faf8dcbSSam Leffleris broken.
199821414470SRuslan ErmilovThe
199921414470SRuslan Ermilov.Ar mode
200021414470SRuslan Ermilovargument may be one of
20014e9e907dSRuslan Ermilov.Cm device
20025faf8dcbSSam Leffler(leave it to the hardware device to decide),
20034e9e907dSRuslan Ermilov.Cm auto
200421414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate),
20054e9e907dSRuslan Ermilov.Cm manual
20065faf8dcbSSam Leffler(do nothing until explicitly instructed).
200721414470SRuslan ErmilovBy default, the device is left to handle this if it is
200821414470SRuslan Ermilovcapable; otherwise, the operating system will automatically
20095faf8dcbSSam Lefflerattempt to reestablish communication.
2010fdef6accSSam LefflerManual mode is used by applications such as
2011fdef6accSSam Leffler.Xr wpa_supplicant 8
2012fdef6accSSam Lefflerthat want to control the selection of an access point.
2013a6b03f42SSam Leffler.It Cm rtsthreshold Ar length
20145faf8dcbSSam LefflerSet the threshold for which
2015a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an
2016a6b03f42SSam LefflerRTS
2017a6b03f42SSam Lefflercontrol frame.
2018d04b5dfeSRuslan ErmilovThe
2019d04b5dfeSRuslan Ermilov.Ar length
2020d04b5dfeSRuslan Ermilovargument
2021aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346.
2022aeffcba3SSam LefflerSetting
2023aeffcba3SSam Leffler.Ar length
2024aeffcba3SSam Lefflerto
20254e9e907dSRuslan Ermilov.Li 2346 ,
20264e9e907dSRuslan Ermilov.Cm any ,
2027aeffcba3SSam Leffleror
20284e9e907dSRuslan Ermilov.Cm -
2029aeffcba3SSam Lefflerdisables transmission of RTS frames.
2030b032f27cSSam LefflerNot all adapters support setting the RTS threshold.
20315faf8dcbSSam Leffler.It Cm scan
2032aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and
2033aeffcba3SSam Lefflerdisplay all stations found.
2034aeffcba3SSam LefflerOnly the super-user can initiate a scan.
2035b032f27cSSam LefflerSee
2036b032f27cSSam Leffler.Cm list scan
2037b032f27cSSam Lefflerfor information on the display.
2038b032f27cSSam LefflerBy default a background scan is done; otherwise a foreground
2039b032f27cSSam Lefflerscan is done and the station may roam to a different access point.
2040aeffcba3SSam LefflerThe
20414e9e907dSRuslan Ermilov.Cm list scan
2042aeffcba3SSam Lefflerrequest can be used to show recent scan results without
2043aeffcba3SSam Lefflerinitiating a new scan.
2044fdef6accSSam Leffler.It Cm scanvalid Ar threshold
2045fdef6accSSam LefflerSet the maximum time the scan cache contents are considered valid;
2046818b39edSWarren Blocki.e., will be used without first triggering a scan operation to
2047fdef6accSSam Lefflerrefresh the data.
2048fdef6accSSam LefflerThe
2049fdef6accSSam Leffler.Ar threshold
2050fdef6accSSam Lefflerparameter is specified in seconds and defaults to 60 seconds.
2051fdef6accSSam LefflerThe minimum setting for
2052fdef6accSSam Leffler.Ar threshold
2053fdef6accSSam Leffleris 10 seconds.
2054fdef6accSSam LefflerOne should take care setting this threshold; if it is set too low
2055fdef6accSSam Lefflerthen attempts to roam to another access point may trigger unnecessary
2056fdef6accSSam Lefflerbackground scan operations.
2057b032f27cSSam Leffler.It Cm shortgi
2058b032f27cSSam LefflerEnable use of Short Guard Interval when operating in 802.11n
2059b032f27cSSam Leffleron an HT channel.
2060b032f27cSSam LefflerNB: this currently enables Short GI on both HT40 and HT20 channels.
2061b032f27cSSam LefflerTo disable Short GI use
2062b032f27cSSam Leffler.Fl shortgi .
206351947cb6SSam Leffler.It Cm smps
206451947cb6SSam LefflerEnable use of Static Spatial Multiplexing Power Save (SMPS)
206551947cb6SSam Lefflerwhen operating in 802.11n.
206651947cb6SSam LefflerA station operating with Static SMPS maintains only a single
206751947cb6SSam Lefflerreceive chain active (this can significantly reduce power consumption).
206851947cb6SSam LefflerTo disable SMPS use
206951947cb6SSam Leffler.Fl smps .
207051947cb6SSam Leffler.It Cm smpsdyn
207151947cb6SSam LefflerEnable use of Dynamic Spatial Multiplexing Power Save (SMPS)
207251947cb6SSam Lefflerwhen operating in 802.11n.
207351947cb6SSam LefflerA station operating with Dynamic SMPS maintains only a single
207451947cb6SSam Lefflerreceive chain active but switches to multiple receive chains when it
207551947cb6SSam Lefflerreceives an RTS frame (this can significantly reduce power consumption).
207651947cb6SSam LefflerNote that stations cannot distinguish between RTS/CTS intended to
207751947cb6SSam Lefflerenable multiple receive chains and those used for other purposes.
207851947cb6SSam LefflerTo disable SMPS use
207951947cb6SSam Leffler.Fl smps .
2080b032f27cSSam Leffler.It Cm ssid Ar ssid
2081b032f27cSSam LefflerSet the desired Service Set Identifier (aka network name).
2082b032f27cSSam LefflerThe SSID is a string up to 32 characters
2083b032f27cSSam Lefflerin length and may be specified as either a normal string or in
2084b032f27cSSam Lefflerhexadecimal when preceded by
2085b032f27cSSam Leffler.Ql 0x .
2086b032f27cSSam LefflerAdditionally, the SSID may be cleared by setting it to
2087b032f27cSSam Leffler.Ql - .
208810ad9a77SSam Leffler.It Cm tdmaslot Ar slot
208910ad9a77SSam LefflerWhen operating with TDMA, use the specified
209010ad9a77SSam Leffler.Ar slot
209110ad9a77SSam Lefflerconfiguration.
209210ad9a77SSam LefflerThe
209310ad9a77SSam Leffler.Ar slot
209410ad9a77SSam Leffleris a number between 0 and the maximum number of slots in the BSS.
209510ad9a77SSam LefflerNote that a station configured as slot 0 is a master and
209610ad9a77SSam Lefflerwill broadcast beacon frames advertising the BSS;
209710ad9a77SSam Lefflerstations configured to use other slots will always
209810ad9a77SSam Lefflerscan to locate a master before they ever transmit.
209910ad9a77SSam LefflerBy default
210010ad9a77SSam Leffler.Cm tdmaslot
210110ad9a77SSam Leffleris set to 1.
210210ad9a77SSam Leffler.It Cm tdmaslotcnt Ar cnt
210310ad9a77SSam LefflerWhen operating with TDMA, setup a BSS with
210410ad9a77SSam Leffler.Ar cnt
210510ad9a77SSam Lefflerslots.
210610ad9a77SSam LefflerThe slot count may be at most 8.
210710ad9a77SSam LefflerThe current implementation is only tested with two stations
2108818b39edSWarren Block(i.e., point to point applications).
210910ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0;
211010ad9a77SSam Lefflerother stations adopt this setting from the BSS they join.
211110ad9a77SSam LefflerBy default
211210ad9a77SSam Leffler.Cm tdmaslotcnt
211310ad9a77SSam Leffleris set to 2.
211410ad9a77SSam Leffler.It Cm tdmaslotlen Ar len
211510ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that each station has a slot
211610ad9a77SSam Leffler.Ar len
211710ad9a77SSam Lefflermicroseconds long.
211810ad9a77SSam LefflerThe slot length must be at least 150 microseconds (1/8 TU)
211910ad9a77SSam Lefflerand no more than 65 milliseconds.
212010ad9a77SSam LefflerNote that setting too small a slot length may result in poor channel
212110ad9a77SSam Lefflerbandwidth utilization due to factors such as timer granularity and
212210ad9a77SSam Lefflerguard time.
212310ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0;
212410ad9a77SSam Lefflerother stations adopt this setting from the BSS they join.
212510ad9a77SSam LefflerBy default
212610ad9a77SSam Leffler.Cm tdmaslotlen
212710ad9a77SSam Leffleris set to 10 milliseconds.
212810ad9a77SSam Leffler.It Cm tdmabintval Ar intval
212910ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that beacons are transmitted every
213010ad9a77SSam Leffler.Ar intval
213110ad9a77SSam Lefflersuperframes to synchronize the TDMA slot timing.
2132818b39edSWarren BlockA superframe is defined as the number of slots times the slot length; e.g.,
213310ad9a77SSam Lefflera BSS with two slots of 10 milliseconds has a 20 millisecond superframe.
213410ad9a77SSam LefflerThe beacon interval may not be zero.
213510ad9a77SSam LefflerA lower setting of
213610ad9a77SSam Leffler.Cm tdmabintval
213710ad9a77SSam Lefflercauses the timers to be resynchronized more often; this can be help if
213810ad9a77SSam Lefflersignificant timer drift is observed.
213910ad9a77SSam LefflerBy default
214010ad9a77SSam Leffler.Cm tdmabintval
214110ad9a77SSam Leffleris set to 5.
2142b032f27cSSam Leffler.It Cm tsn
2143b032f27cSSam LefflerWhen operating as an access point with WPA/802.11i allow legacy
2144b032f27cSSam Lefflerstations to associate using static key WEP and open authentication.
2145b032f27cSSam LefflerTo disallow legacy station use of WEP, use
2146b032f27cSSam Leffler.Fl tsn .
2147a6b03f42SSam Leffler.It Cm txpower Ar power
21485faf8dcbSSam LefflerSet the power used to transmit frames.
2149d04b5dfeSRuslan ErmilovThe
2150d04b5dfeSRuslan Ermilov.Ar power
2151d592cd38SSam Lefflerargument is specified in .5 dBm units.
2152a6b03f42SSam LefflerOut of range values are truncated.
2153b91a4869SWarner LoshTypically only a few discrete power settings are available and
2154a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value.
2155b032f27cSSam LefflerNot all adapters support changing the transmit power.
2156b032f27cSSam Leffler.It Cm ucastrate Ar rate
2157b032f27cSSam LefflerSet a fixed rate for transmitting unicast frames.
2158818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s.
2159b032f27cSSam LefflerThis rate should be valid for the current operating conditions;
2160b032f27cSSam Lefflerif an invalid rate is specified drivers are free to chose an
2161b032f27cSSam Lefflerappropriate rate.
2162419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode
21635faf8dcbSSam LefflerSet the desired WEP mode.
2164b032f27cSSam LefflerNot all adapters support all modes.
2165b09b4efbSRuslan ErmilovThe set of valid modes is
21664e9e907dSRuslan Ermilov.Cm off , on ,
2167419d8080SPoul-Henning Kampand
21684e9e907dSRuslan Ermilov.Cm mixed .
2169d04b5dfeSRuslan ErmilovThe
21704e9e907dSRuslan Ermilov.Cm mixed
2171419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access
2172b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic.
2173b032f27cSSam LefflerOn these adapters,
21744e9e907dSRuslan Ermilov.Cm on
2175b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections.
2176b032f27cSSam LefflerOn other adapters,
21774e9e907dSRuslan Ermilov.Cm on
2178419d8080SPoul-Henning Kampis generally another name for
21794e9e907dSRuslan Ermilov.Cm mixed .
2180419d8080SPoul-Henning KampModes are case insensitive.
2181419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index
21825faf8dcbSSam LefflerSet the WEP key to be used for transmission.
21834e0a8f0dSSam LefflerThis is the same as setting the default transmission key with
21844e0a8f0dSSam Leffler.Cm deftxkey .
2185b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
21865faf8dcbSSam LefflerSet the selected WEP key.
2187b09b4efbSRuslan ErmilovIf an
2188419d8080SPoul-Henning Kamp.Ar index
2189b09b4efbSRuslan Ermilovis not given, key 1 is set.
2190b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13
2191c2025a76SJoel Dahlcharacters (40 or 104 bits) depending on the local network and the
2192b09b4efbSRuslan Ermilovcapabilities of the adaptor.
2193b09b4efbSRuslan ErmilovIt may be specified either as a plain
2194e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by
2195b09b4efbSRuslan Ermilov.Ql 0x .
2196d8f2e345SWarner LoshFor maximum portability, hex keys are recommended;
2197d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific.
219844c4affaSMateusz PiotrowskiIn particular, the Windows drivers do this mapping differently to
2199a61d9c47SRuslan Ermilov.Fx .
2200419d8080SPoul-Henning KampA key may be cleared by setting it to
2201b09b4efbSRuslan Ermilov.Ql - .
2202b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys.
2203b032f27cSSam LefflerSome adapters support more than four keys.
2204b09b4efbSRuslan ErmilovIf that is the case, then the first four keys
2205419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor
2206419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM.
22075ce09a9eSSam Leffler.Pp
22085ce09a9eSSam LefflerNote that you must set a default transmit key with
22095ce09a9eSSam Leffler.Cm deftxkey
22105ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic.
22115faf8dcbSSam Leffler.It Cm wme
2212aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available,
22135faf8dcbSSam Lefflerfor the specified interface.
22145faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the
22155faf8dcbSSam Lefflerefficient communication of realtime and multimedia data.
221621414470SRuslan ErmilovTo disable WME support, use
22175faf8dcbSSam Leffler.Fl wme .
2218b032f27cSSam LefflerAnother name for this parameter is
2219b032f27cSSam Leffler.Cm wmm .
2220aeffcba3SSam Leffler.Pp
2221aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use.
2222aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and
2223aeffcba3SSam Lefflersplit into those that are used by a station when acting
2224aeffcba3SSam Leffleras an access point and those for client stations in the BSS.
2225aeffcba3SSam LefflerThe latter are received from the access point and may not be changed
2226aeffcba3SSam Leffler(at the station).
2227aeffcba3SSam LefflerThe following Access Categories are recognized:
2228aeffcba3SSam Leffler.Pp
22294e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact
2230aeffcba3SSam Leffler.It Cm AC_BE
22314e9e907dSRuslan Ermilov(or
22324e9e907dSRuslan Ermilov.Cm BE )
22334e9e907dSRuslan Ermilovbest effort delivery,
2234aeffcba3SSam Leffler.It Cm AC_BK
22354e9e907dSRuslan Ermilov(or
22364e9e907dSRuslan Ermilov.Cm BK )
22374e9e907dSRuslan Ermilovbackground traffic,
2238aeffcba3SSam Leffler.It Cm AC_VI
22394e9e907dSRuslan Ermilov(or
22404e9e907dSRuslan Ermilov.Cm VI )
22414e9e907dSRuslan Ermilovvideo traffic,
2242aeffcba3SSam Leffler.It Cm AC_VO
22434e9e907dSRuslan Ermilov(or
22444e9e907dSRuslan Ermilov.Cm VO )
22454e9e907dSRuslan Ermilovvoice traffic.
22465faf8dcbSSam Leffler.El
22475faf8dcbSSam Leffler.Pp
2248aeffcba3SSam LefflerAC parameters are case-insensitive.
2249aeffcba3SSam LefflerTraffic classification is done in the operating system using the
2250aeffcba3SSam Lefflervlan priority associated with data frames or the
2251aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames.
22524e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the
2253aeffcba3SSam LefflerBest Effort (BE) category.
2254aeffcba3SSam Leffler.Bl -tag -width indent
2255aeffcba3SSam Leffler.It Cm ack Ar ac
2256aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station;
2257aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station
2258aeffcba3SSam Lefflerrequire an ACK response from the receiving station.
2259aeffcba3SSam LefflerTo disable waiting for an ACK use
2260aeffcba3SSam Leffler.Fl ack .
2261aeffcba3SSam LefflerThis parameter is applied only to the local station.
2262aeffcba3SSam Leffler.It Cm acm Ar ac
2263aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism
2264aeffcba3SSam Lefflerfor transmissions by the local station.
2265aeffcba3SSam LefflerTo disable the ACM use
2266aeffcba3SSam Leffler.Fl acm .
2267aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
2268aeffcba3SSam Lefflerthe setting received from the access point.
2269aeffcba3SSam LefflerNB: ACM is not supported right now.
2270aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count
2271aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS)
2272aeffcba3SSam Lefflerchannel access parameter to use for transmissions
2273aeffcba3SSam Lefflerby the local station.
2274aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
2275aeffcba3SSam Lefflerthe setting received from the access point.
2276aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count
2277aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions
2278aeffcba3SSam Lefflerby the local station.
2279aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
2280aeffcba3SSam Lefflerthe setting received from the access point.
2281aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count
2282aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions
2283aeffcba3SSam Lefflerby the local station.
2284aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
2285aeffcba3SSam Lefflerthe setting received from the access point.
2286aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit
2287aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter
2288aeffcba3SSam Lefflerto use for transmissions by the local station.
2289aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station
2290aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium.
2291aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
2292aeffcba3SSam Lefflerthe setting received from the access point.
2293aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count
2294aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS.
2295aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
2296aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count
2297aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS.
2298aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
2299aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count
2300aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS.
2301aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
2302aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit
2303aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS.
2304aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
2305aeffcba3SSam Leffler.El
2306b032f27cSSam Leffler.It Cm wps
2307b032f27cSSam LefflerEnable Wireless Privacy Subscriber support.
2308b032f27cSSam LefflerNote that WPS support requires a WPS-capable supplicant.
2309b032f27cSSam LefflerTo disable this function use
2310b032f27cSSam Leffler.Fl wps .
2311aeffcba3SSam Leffler.El
23120e2045b2SMateusz Piotrowski.Ss MAC-Based Access Control List Parameters
2313aeffcba3SSam LefflerThe following parameters support an optional access control list
2314b032f27cSSam Lefflerfeature available with some adapters when operating in ap mode; see
2315aeffcba3SSam Leffler.Xr wlan_acl 4 .
2316aeffcba3SSam LefflerThis facility allows an access point to accept/deny association
2317aeffcba3SSam Lefflerrequests based on the MAC address of the station.
2318aeffcba3SSam LefflerNote that this feature does not significantly enhance security
2319aeffcba3SSam Leffleras MAC address spoofing is easy to do.
2320aeffcba3SSam Leffler.Bl -tag -width indent
2321aeffcba3SSam Leffler.It Cm mac:add Ar address
2322aeffcba3SSam LefflerAdd the specified MAC address to the database.
2323aeffcba3SSam LefflerDepending on the policy setting association requests from the
2324aeffcba3SSam Lefflerspecified station will be allowed or denied.
2325aeffcba3SSam Leffler.It Cm mac:allow
2326aeffcba3SSam LefflerSet the ACL policy to permit association only by
2327aeffcba3SSam Lefflerstations registered in the database.
2328e70fcb23SSam Leffler.It Cm mac:del Ar address
2329aeffcba3SSam LefflerDelete the specified MAC address from the database.
2330aeffcba3SSam Leffler.It Cm mac:deny
2331aeffcba3SSam LefflerSet the ACL policy to deny association only by
2332aeffcba3SSam Lefflerstations registered in the database.
2333e70fcb23SSam Leffler.It Cm mac:kick Ar address
233429f0e929SSam LefflerForce the specified station to be deauthenticated.
233529f0e929SSam LefflerThis typically is done to block a station after updating the
233629f0e929SSam Leffleraddress database.
2337aeffcba3SSam Leffler.It Cm mac:open
2338aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate.
2339aeffcba3SSam Leffler.It Cm mac:flush
2340aeffcba3SSam LefflerDelete all entries in the database.
2341b032f27cSSam Leffler.It Cm mac:radius
2342b032f27cSSam LefflerSet the ACL policy to permit association only by
2343b032f27cSSam Lefflerstations approved by a RADIUS server.
2344b032f27cSSam LefflerNote that this feature requires the
2345b032f27cSSam Leffler.Xr hostapd 8
2346b032f27cSSam Lefflerprogram be configured to do the right thing
2347b032f27cSSam Leffleras it handles the RADIUS processing
2348b032f27cSSam Leffler(and marks stations as authorized).
2349aeffcba3SSam Leffler.El
23500e2045b2SMateusz Piotrowski.Ss Mesh Mode Wireless Interface Parameters
235159aa14a9SRui PauloThe following parameters are related to a wireless interface operating in mesh
235259aa14a9SRui Paulomode:
235359aa14a9SRui Paulo.Bl -tag -width indent
235459aa14a9SRui Paulo.It Cm meshid Ar meshid
235559aa14a9SRui PauloSet the desired Mesh Identifier.
235659aa14a9SRui PauloThe Mesh ID is a string up to 32 characters in length.
235759aa14a9SRui PauloA mesh interface must have a Mesh Identifier specified
235859aa14a9SRui Pauloto reach an operational state.
235959aa14a9SRui Paulo.It Cm meshttl Ar ttl
236067d77afbSMateusz PiotrowskiSet the desired
236167d77afbSMateusz Piotrowski.Dq time to live
236267d77afbSMateusz Piotrowskifor mesh forwarded packets;
236359aa14a9SRui Paulothis is the number of hops a packet may be forwarded before
236459aa14a9SRui Pauloit is discarded.
236559aa14a9SRui PauloThe default setting for
236659aa14a9SRui Paulo.Cm meshttl
236759aa14a9SRui Paulois 31.
236859aa14a9SRui Paulo.It Cm meshpeering
236959aa14a9SRui PauloEnable or disable peering with neighbor mesh stations.
237059aa14a9SRui PauloStations must peer before any data packets can be exchanged.
237159aa14a9SRui PauloBy default
237259aa14a9SRui Paulo.Cm meshpeering
237359aa14a9SRui Paulois enabled.
237459aa14a9SRui Paulo.It Cm meshforward
237559aa14a9SRui PauloEnable or disable forwarding packets by a mesh interface.
237659aa14a9SRui PauloBy default
237759aa14a9SRui Paulo.Cm meshforward
237859aa14a9SRui Paulois enabled.
2379e6e06eb8SMonthadar Al Jaberi.It Cm meshgate
2380e6e06eb8SMonthadar Al JaberiThis attribute specifies whether or not the mesh STA activates mesh gate
2381e6e06eb8SMonthadar Al Jaberiannouncements.
2382e6e06eb8SMonthadar Al JaberiBy default
2383e6e06eb8SMonthadar Al Jaberi.Cm meshgate
2384e6e06eb8SMonthadar Al Jaberiis disabled.
238559aa14a9SRui Paulo.It Cm meshmetric Ar protocol
238659aa14a9SRui PauloSet the specified
238759aa14a9SRui Paulo.Ar protocol
238859aa14a9SRui Pauloas the link metric protocol used on a mesh network.
238959aa14a9SRui PauloThe default protocol is called
239059aa14a9SRui Paulo.Ar AIRTIME .
239159aa14a9SRui PauloThe mesh interface will restart after changing this setting.
239259aa14a9SRui Paulo.It Cm meshpath Ar protocol
239359aa14a9SRui PauloSet the specified
239459aa14a9SRui Paulo.Ar protocol
239559aa14a9SRui Pauloas the path selection protocol used on a mesh network.
239659aa14a9SRui PauloThe only available protocol at the moment is called
239759aa14a9SRui Paulo.Ar HWMP
239859aa14a9SRui Paulo(Hybrid Wireless Mesh Protocol).
239959aa14a9SRui PauloThe mesh interface will restart after changing this setting.
240059aa14a9SRui Paulo.It Cm hwmprootmode Ar mode
240167d77afbSMateusz PiotrowskiStations on a mesh network can operate as
240267d77afbSMateusz Piotrowski.Dq root nodes .
240359aa14a9SRui PauloRoot nodes try to find paths to all mesh nodes and advertise themselves
240459aa14a9SRui Pauloregularly.
240559aa14a9SRui PauloWhen there is a root mesh node on a network, other mesh nodes can setup
240659aa14a9SRui Paulopaths between themselves faster because they can use the root node
240759aa14a9SRui Pauloto find the destination.
240859aa14a9SRui PauloThis path may not be the best, but on-demand
240959aa14a9SRui Paulorouting will eventually find the best path.
241059aa14a9SRui PauloThe following modes are recognized:
241159aa14a9SRui Paulo.Pp
241259aa14a9SRui Paulo.Bl -tag -width ".Cm PROACTIVE" -compact
241359aa14a9SRui Paulo.It Cm DISABLED
241459aa14a9SRui PauloDisable root mode.
241559aa14a9SRui Paulo.It Cm NORMAL
241659aa14a9SRui PauloSend broadcast path requests every two seconds.
241759aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to
241859aa14a9SRui Paulodiscover a path to us.
241959aa14a9SRui Paulo.It Cm PROACTIVE
2420a4dec862SJoel DahlSend broadcast path requests every two seconds and every node must reply
2421c2025a76SJoel Dahlwith a path reply even if it already has a path to this root mesh station.
242259aa14a9SRui Paulo.It Cm RANN
2423a53bb70bSJoel DahlSend broadcast root announcement (RANN) frames.
242459aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to
242559aa14a9SRui Paulodiscover a path to us.
242659aa14a9SRui Paulo.El
242759aa14a9SRui PauloBy default
242859aa14a9SRui Paulo.Cm hwmprootmode
242959aa14a9SRui Paulois set to
243059aa14a9SRui Paulo.Ar DISABLED .
243159aa14a9SRui Paulo.It Cm hwmpmaxhops Ar cnt
243259aa14a9SRui PauloSet the maximum number of hops allowed in an HMWP path to
243359aa14a9SRui Paulo.Ar cnt .
243459aa14a9SRui PauloThe default setting for
243559aa14a9SRui Paulo.Cm hwmpmaxhops
243659aa14a9SRui Paulois 31.
243759aa14a9SRui Paulo.El
24380e2045b2SMateusz Piotrowski.Ss Compatibility Parameters
2439aeffcba3SSam LefflerThe following parameters are for compatibility with other systems:
24405faf8dcbSSam Leffler.Bl -tag -width indent
24415faf8dcbSSam Leffler.It Cm nwid Ar ssid
24425faf8dcbSSam LefflerAnother name for the
24435faf8dcbSSam Leffler.Cm ssid
24445faf8dcbSSam Lefflerparameter.
24455faf8dcbSSam LefflerIncluded for
24465faf8dcbSSam Leffler.Nx
24475faf8dcbSSam Lefflercompatibility.
2448b032f27cSSam Leffler.It Cm stationname Ar name
2449b032f27cSSam LefflerSet the name of this station.
2450b032f27cSSam LefflerThe station name is not part of the IEEE 802.11
2451b032f27cSSam Lefflerprotocol though some interfaces support it.
2452b032f27cSSam LefflerAs such it only
2453b032f27cSSam Lefflerseems to be meaningful to identical or virtually identical equipment.
2454b032f27cSSam LefflerSetting the station name is identical in syntax to setting the SSID.
2455b032f27cSSam LefflerOne can also use
2456b032f27cSSam Leffler.Cm station
2457b032f27cSSam Lefflerfor
24585faf8dcbSSam Leffler.Bsx
24595faf8dcbSSam Lefflercompatibility.
2460419d8080SPoul-Henning Kamp.It Cm wep
2461419d8080SPoul-Henning KampAnother way of saying
2462b09b4efbSRuslan Ermilov.Cm wepmode on .
2463b09b4efbSRuslan ErmilovIncluded for
2464b09b4efbSRuslan Ermilov.Bsx
2465b09b4efbSRuslan Ermilovcompatibility.
2466b09b4efbSRuslan Ermilov.It Fl wep
2467419d8080SPoul-Henning KampAnother way of saying
2468b09b4efbSRuslan Ermilov.Cm wepmode off .
2469b09b4efbSRuslan ErmilovIncluded for
2470b09b4efbSRuslan Ermilov.Bsx
2471b09b4efbSRuslan Ermilovcompatibility.
2472419d8080SPoul-Henning Kamp.It Cm nwkey key
2473419d8080SPoul-Henning KampAnother way of saying:
2474b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
2475b09b4efbSRuslan ErmilovIncluded for
2476b09b4efbSRuslan Ermilov.Nx
2477b09b4efbSRuslan Ermilovcompatibility.
2478b09b4efbSRuslan Ermilov.It Cm nwkey Xo
2479b09b4efbSRuslan Ermilov.Sm off
2480b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4
2481b09b4efbSRuslan Ermilov.Sm on
2482b09b4efbSRuslan Ermilov.Xc
2483419d8080SPoul-Henning KampAnother way of saying
2484b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
2485b09b4efbSRuslan ErmilovIncluded for
2486b09b4efbSRuslan Ermilov.Nx
2487b09b4efbSRuslan Ermilovcompatibility.
2488b09b4efbSRuslan Ermilov.It Fl nwkey
2489419d8080SPoul-Henning KampAnother way of saying
2490b09b4efbSRuslan Ermilov.Cm wepmode off .
2491b09b4efbSRuslan ErmilovIncluded for
2492b09b4efbSRuslan Ermilov.Nx
2493b09b4efbSRuslan Ermilovcompatibility.
24948fae3551SRodney W. Grimes.El
24950e2045b2SMateusz Piotrowski.Ss Bridge Interface Parameters
24967afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces:
24977afc53b8SAndrew Thompson.Bl -tag -width indent
24987afc53b8SAndrew Thompson.It Cm addm Ar interface
24997afc53b8SAndrew ThompsonAdd the interface named by
25007afc53b8SAndrew Thompson.Ar interface
25017afc53b8SAndrew Thompsonas a member of the bridge.
25027afc53b8SAndrew ThompsonThe interface is put into promiscuous mode
25037afc53b8SAndrew Thompsonso that it can receive every packet sent on the network.
25047afc53b8SAndrew Thompson.It Cm deletem Ar interface
25057afc53b8SAndrew ThompsonRemove the interface named by
25067afc53b8SAndrew Thompson.Ar interface
25077afc53b8SAndrew Thompsonfrom the bridge.
25087afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when
25097afc53b8SAndrew Thompsonit is removed from the bridge.
25107afc53b8SAndrew Thompson.It Cm maxaddr Ar size
25117afc53b8SAndrew ThompsonSet the size of the bridge address cache to
25127afc53b8SAndrew Thompson.Ar size .
25135640c372SChristian BruefferThe default is 2000 entries.
25147afc53b8SAndrew Thompson.It Cm timeout Ar seconds
25157afc53b8SAndrew ThompsonSet the timeout of address cache entries to
25167afc53b8SAndrew Thompson.Ar seconds
25177afc53b8SAndrew Thompsonseconds.
25187afc53b8SAndrew ThompsonIf
25197afc53b8SAndrew Thompson.Ar seconds
25207afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired.
25215640c372SChristian BruefferThe default is 1200 seconds.
2522db7d6dc1SAndrew Thompson.It Cm addr
2523db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge.
2524db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address
2525db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to
2526db7d6dc1SAndrew Thompson.Ar interface-name .
2527db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the
2528db7d6dc1SAndrew Thompsonaddress is seen on a different interface.
25297afc53b8SAndrew Thompson.It Cm deladdr Ar address
25307afc53b8SAndrew ThompsonDelete
25317afc53b8SAndrew Thompson.Ar address
25327afc53b8SAndrew Thompsonfrom the address cache.
25337afc53b8SAndrew Thompson.It Cm flush
25347afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache.
25357afc53b8SAndrew Thompson.It Cm flushall
25367afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache.
25377afc53b8SAndrew Thompson.It Cm discover Ar interface
25387afc53b8SAndrew ThompsonMark an interface as a
25397afc53b8SAndrew Thompson.Dq discovering
25407afc53b8SAndrew Thompsoninterface.
25417afc53b8SAndrew ThompsonWhen the bridge has no address cache entry
25427afc53b8SAndrew Thompson(either dynamic or static)
25437afc53b8SAndrew Thompsonfor the destination address of a packet,
25447afc53b8SAndrew Thompsonthe bridge will forward the packet to all
25457afc53b8SAndrew Thompsonmember interfaces marked as
25467afc53b8SAndrew Thompson.Dq discovering .
25477afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
25487afc53b8SAndrew Thompson.It Cm -discover Ar interface
25497afc53b8SAndrew ThompsonClear the
25507afc53b8SAndrew Thompson.Dq discovering
25517afc53b8SAndrew Thompsonattribute on a member interface.
25527afc53b8SAndrew ThompsonFor packets without the
25537afc53b8SAndrew Thompson.Dq discovering
25547afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast
25557afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address
25567afc53b8SAndrew Thompsonis known to be on the interface's segment.
25577afc53b8SAndrew Thompson.It Cm learn Ar interface
25587afc53b8SAndrew ThompsonMark an interface as a
25597afc53b8SAndrew Thompson.Dq learning
25607afc53b8SAndrew Thompsoninterface.
25617afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source
25627afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a
25637afc53b8SAndrew Thompsondestination address on the interface's segment.
25647afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
25657afc53b8SAndrew Thompson.It Cm -learn Ar interface
25667afc53b8SAndrew ThompsonClear the
25677afc53b8SAndrew Thompson.Dq learning
25687afc53b8SAndrew Thompsonattribute on a member interface.
25693df7fad0SAndrew Thompson.It Cm sticky Ar interface
25703df7fad0SAndrew ThompsonMark an interface as a
25713df7fad0SAndrew Thompson.Dq sticky
25723df7fad0SAndrew Thompsoninterface.
25733df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into
25743df7fad0SAndrew Thompsonthe cache.
25753df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the
25763df7fad0SAndrew Thompsonaddress is seen on a different interface.
25773df7fad0SAndrew Thompson.It Cm -sticky Ar interface
25783df7fad0SAndrew ThompsonClear the
25793df7fad0SAndrew Thompson.Dq sticky
25803df7fad0SAndrew Thompsonattribute on a member interface.
258185ce7297SAndrew Thompson.It Cm private Ar interface
258285ce7297SAndrew ThompsonMark an interface as a
258385ce7297SAndrew Thompson.Dq private
258485ce7297SAndrew Thompsoninterface.
258585ce7297SAndrew ThompsonA private interface does not forward any traffic to any other port that is also
258685ce7297SAndrew Thompsona private interface.
258785ce7297SAndrew Thompson.It Cm -private Ar interface
258885ce7297SAndrew ThompsonClear the
258985ce7297SAndrew Thompson.Dq private
259085ce7297SAndrew Thompsonattribute on a member interface.
259191f6764eSAndrew Thompson.It Cm span Ar interface
259291f6764eSAndrew ThompsonAdd the interface named by
259391f6764eSAndrew Thompson.Ar interface
259491f6764eSAndrew Thompsonas a span port on the bridge.
259591f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge.
259691f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on
259791f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge.
259891f6764eSAndrew Thompson.It Cm -span Ar interface
259991f6764eSAndrew ThompsonDelete the interface named by
260091f6764eSAndrew Thompson.Ar interface
260191f6764eSAndrew Thompsonfrom the list of span ports of the bridge.
26027afc53b8SAndrew Thompson.It Cm stp Ar interface
26037afc53b8SAndrew ThompsonEnable Spanning Tree protocol on
26047afc53b8SAndrew Thompson.Ar interface .
26057afc53b8SAndrew ThompsonThe
26067afc53b8SAndrew Thompson.Xr if_bridge 4
26077afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP).
26087afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology.
26097afc53b8SAndrew Thompson.It Cm -stp Ar interface
26107afc53b8SAndrew ThompsonDisable Spanning Tree protocol on
26117afc53b8SAndrew Thompson.Ar interface .
26127afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
26133fab7669SAndrew Thompson.It Cm edge Ar interface
26143fab7669SAndrew ThompsonSet
26153fab7669SAndrew Thompson.Ar interface
26163fab7669SAndrew Thompsonas an edge port.
26173fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging
26183fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding.
26193fab7669SAndrew Thompson.It Cm -edge Ar interface
26203fab7669SAndrew ThompsonDisable edge status on
26213fab7669SAndrew Thompson.Ar interface .
26223fab7669SAndrew Thompson.It Cm autoedge Ar interface
26233fab7669SAndrew ThompsonAllow
26243fab7669SAndrew Thompson.Ar interface
26253fab7669SAndrew Thompsonto automatically detect edge status.
26263fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge.
26273fab7669SAndrew Thompson.It Cm -autoedge Ar interface
26283fab7669SAndrew ThompsonDisable automatic edge status on
26293fab7669SAndrew Thompson.Ar interface .
263078709605SAndrew Thompson.It Cm ptp Ar interface
2631153f9b00SAndrew ThompsonSet the
2632153f9b00SAndrew Thompson.Ar interface
2633153f9b00SAndrew Thompsonas a point to point link.
2634153f9b00SAndrew ThompsonThis is required for straight transitions to forwarding and
2635153f9b00SAndrew Thompsonshould be enabled on a direct link to another RSTP capable switch.
263678709605SAndrew Thompson.It Cm -ptp Ar interface
2637153f9b00SAndrew ThompsonDisable point to point link status on
2638153f9b00SAndrew Thompson.Ar interface .
2639153f9b00SAndrew ThompsonThis should be disabled for a half duplex link and for an interface
2640153f9b00SAndrew Thompsonconnected to a shared network segment,
2641153f9b00SAndrew Thompsonlike a hub or a wireless network.
264278709605SAndrew Thompson.It Cm autoptp Ar interface
2643153f9b00SAndrew ThompsonAutomatically detect the point to point status on
2644153f9b00SAndrew Thompson.Ar interface
2645153f9b00SAndrew Thompsonby checking the full duplex link status.
2646153f9b00SAndrew ThompsonThis is the default for interfaces added to the bridge.
264778709605SAndrew Thompson.It Cm -autoptp Ar interface
2648153f9b00SAndrew ThompsonDisable automatic point to point link detection on
2649153f9b00SAndrew Thompson.Ar interface .
26507afc53b8SAndrew Thompson.It Cm maxage Ar seconds
26517afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid.
26527afc53b8SAndrew ThompsonThe default is 20 seconds.
26533fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds.
26547afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds
26557afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding
26567afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled.
26577afc53b8SAndrew ThompsonThe default is 15 seconds.
26583fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds.
26597afc53b8SAndrew Thompson.It Cm hellotime Ar seconds
26607afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol
26617afc53b8SAndrew Thompsonconfiguration messages.
26623fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode.
26637afc53b8SAndrew ThompsonThe default is 2 seconds.
26643fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds.
26657afc53b8SAndrew Thompson.It Cm priority Ar value
26667afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree.
26677afc53b8SAndrew ThompsonThe default is 32768.
26683fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440.
266999469fe2SAndrew Thompson.It Cm proto Ar value
26703fab7669SAndrew ThompsonSet the Spanning Tree protocol.
26713fab7669SAndrew ThompsonThe default is rstp.
26723fab7669SAndrew ThompsonThe available options are stp and rstp.
26731dfd31abSAndrew Thompson.It Cm holdcnt Ar value
26743fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree.
26753fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited.
26763fab7669SAndrew ThompsonThe default is 6.
26773fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10.
26787afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value
26797afc53b8SAndrew ThompsonSet the Spanning Tree priority of
26807afc53b8SAndrew Thompson.Ar interface
26817afc53b8SAndrew Thompsonto
26827afc53b8SAndrew Thompson.Ar value .
26837afc53b8SAndrew ThompsonThe default is 128.
26843fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240.
26857afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value
26867afc53b8SAndrew ThompsonSet the Spanning Tree path cost of
26877afc53b8SAndrew Thompson.Ar interface
26887afc53b8SAndrew Thompsonto
26897afc53b8SAndrew Thompson.Ar value .
26903fab7669SAndrew ThompsonThe default is calculated from the link speed.
26913fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the
26923fab7669SAndrew Thompsoncost to 0.
26933fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000.
26945f33ec7bSAndrew Thompson.It Cm ifmaxaddr Ar interface Ar size
26955f33ec7bSAndrew ThompsonSet the maximum number of hosts allowed from an interface, packets with unknown
26965f33ec7bSAndrew Thompsonsource addresses are dropped until an existing host cache entry expires or is
26975f33ec7bSAndrew Thompsonremoved.
26985f33ec7bSAndrew ThompsonSet to 0 to disable.
26997afc53b8SAndrew Thompson.El
27000e2045b2SMateusz Piotrowski.Ss Link Aggregation and Link Failover Parameters
270118242d3bSAndrew ThompsonThe following parameters are specific to lagg interfaces:
27027b62d98bSAndrew Thompson.Bl -tag -width indent
2703a92c4bb6SHans Petter Selasky.It Cm laggtype Ar type
2704a92c4bb6SHans Petter SelaskyWhen creating a lagg interface the type can be specified as either
2705a92c4bb6SHans Petter Selasky.Cm ethernet
2706a92c4bb6SHans Petter Selaskyor
2707a92c4bb6SHans Petter Selasky.Cm infiniband .
2708a92c4bb6SHans Petter SelaskyIf not specified ethernet is the default lagg type.
270918242d3bSAndrew Thompson.It Cm laggport Ar interface
27107b62d98bSAndrew ThompsonAdd the interface named by
27117b62d98bSAndrew Thompson.Ar interface
271218242d3bSAndrew Thompsonas a port of the aggregation interface.
271318242d3bSAndrew Thompson.It Cm -laggport Ar interface
27147b62d98bSAndrew ThompsonRemove the interface named by
27157b62d98bSAndrew Thompson.Ar interface
271618242d3bSAndrew Thompsonfrom the aggregation interface.
271718242d3bSAndrew Thompson.It Cm laggproto Ar proto
271818242d3bSAndrew ThompsonSet the aggregation protocol.
2719939a050aSHiroki SatoThe default is
2720939a050aSHiroki Sato.Li failover .
2721939a050aSHiroki SatoThe available options are
2722939a050aSHiroki Sato.Li failover ,
2723939a050aSHiroki Sato.Li lacp ,
2724939a050aSHiroki Sato.Li loadbalance ,
2725939a050aSHiroki Sato.Li roundrobin ,
2726939a050aSHiroki Sato.Li broadcast
2727939a050aSHiroki Satoand
2728939a050aSHiroki Sato.Li none .
272986f67641SAndrew Thompson.It Cm lagghash Ar option Ns Oo , Ns Ar option Oc
273086f67641SAndrew ThompsonSet the packet layers to hash for aggregation protocols which load balance.
273186f67641SAndrew ThompsonThe default is
273286f67641SAndrew Thompson.Dq l2,l3,l4 .
273386f67641SAndrew ThompsonThe options can be combined using commas.
273486f67641SAndrew Thompson.Pp
273586f67641SAndrew Thompson.Bl -tag -width ".Cm l2" -compact
273686f67641SAndrew Thompson.It Cm l2
273786f67641SAndrew Thompsonsrc/dst mac address and optional vlan number.
273886f67641SAndrew Thompson.It Cm l3
273986f67641SAndrew Thompsonsrc/dst address for IPv4 or IPv6.
274086f67641SAndrew Thompson.It Cm l4
2741a0778b71SAndrew Thompsonsrc/dst port for TCP/UDP/SCTP.
274286f67641SAndrew Thompson.El
27438ebaf584SEugene Grosbein.It Cm -use_flowid
2744939a050aSHiroki SatoEnable local hash computation for RSS hash on the interface.
2745939a050aSHiroki SatoThe
2746939a050aSHiroki Sato.Li loadbalance
2747939a050aSHiroki Satoand
2748939a050aSHiroki Sato.Li lacp
2749939a050aSHiroki Satomodes will use the RSS hash from the network card if available
2750939a050aSHiroki Satoto avoid computing one, this may give poor traffic distribution
2751939a050aSHiroki Satoif the hash is invalid or uses less of the protocol header information.
27528ebaf584SEugene Grosbein.Cm -use_flowid
2753939a050aSHiroki Satodisables use of RSS hash from the network card.
2754939a050aSHiroki SatoThe default value can be set via the
2755939a050aSHiroki Sato.Va net.link.lagg.default_use_flowid
2756939a050aSHiroki Sato.Xr sysctl 8
2757939a050aSHiroki Satovariable.
2758939a050aSHiroki Sato.Li 0
2759939a050aSHiroki Satomeans
2760939a050aSHiroki Sato.Dq disabled
2761939a050aSHiroki Satoand
2762939a050aSHiroki Sato.Li 1
2763939a050aSHiroki Satomeans
2764939a050aSHiroki Sato.Dq enabled .
27658ebaf584SEugene Grosbein.It Cm use_flowid
27668ebaf584SEugene GrosbeinUse the RSS hash from the network card if available.
2767939a050aSHiroki Sato.It Cm flowid_shift Ar number
2768939a050aSHiroki SatoSet a shift parameter for RSS local hash computation.
2769939a050aSHiroki SatoHash is calculated by using flowid bits in a packet header mbuf
2770939a050aSHiroki Satowhich are shifted by the number of this parameter.
277135961dceSAndrew Gallatin.It Cm use_numa
277235961dceSAndrew GallatinEnable selection of egress ports based on the native
277314e3d324SJens Schweikhardt.Xr numa 4
277435961dceSAndrew Gallatindomain for the packets being transmitted.
277535961dceSAndrew GallatinThis is currently only implemented for lacp mode.
277635961dceSAndrew GallatinThis works only on
277714e3d324SJens Schweikhardt.Xr numa 4
277835961dceSAndrew Gallatinhardware, running a kernel compiled with the
277914e3d324SJens Schweikhardt.Xr numa 4
278035961dceSAndrew Gallatinoption, and when interfaces from multiple
278114e3d324SJens Schweikhardt.Xr numa 4
278235961dceSAndrew Gallatindomains are ports of the aggregation interface.
278335961dceSAndrew Gallatin.It Cm -use_numa
278435961dceSAndrew GallatinDisable selection of egress ports based on the native
278514e3d324SJens Schweikhardt.Xr numa 4
278635961dceSAndrew Gallatindomain for the packets being transmitted.
27870e02b43aSHiren Panchasara.It Cm lacp_fast_timeout
27880e02b43aSHiren PanchasaraEnable lacp fast-timeout on the interface.
27890e02b43aSHiren Panchasara.It Cm -lacp_fast_timeout
27900e02b43aSHiren PanchasaraDisable lacp fast-timeout on the interface.
2791c1be893cSSteven Hartland.It Cm lacp_strict
2792c1be893cSSteven HartlandEnable lacp strict compliance on the interface.
2793c1be893cSSteven HartlandThe default value can be set via the
2794c1be893cSSteven Hartland.Va net.link.lagg.lacp.default_strict_mode
2795c1be893cSSteven Hartland.Xr sysctl 8
2796c1be893cSSteven Hartlandvariable.
2797c1be893cSSteven Hartland.Li 0
2798c1be893cSSteven Hartlandmeans
2799c1be893cSSteven Hartland.Dq disabled
2800c1be893cSSteven Hartlandand
2801c1be893cSSteven Hartland.Li 1
2802c1be893cSSteven Hartlandmeans
2803c1be893cSSteven Hartland.Dq enabled .
2804c1be893cSSteven Hartland.It Cm -lacp_strict
2805c1be893cSSteven HartlandDisable lacp strict compliance on the interface.
2806c104c299SMark Johnston.It Cm rr_limit Ar number
2807c104c299SMark JohnstonConfigure a stride for an interface in round-robin mode.
2808c104c299SMark JohnstonThe default stride is 1.
28097b62d98bSAndrew Thompson.El
28100e2045b2SMateusz Piotrowski.Ss Generic IP Tunnel Parameters
2811f8824f7bSMark FelderThe following parameters apply to IP tunnel interfaces,
2812163653e8SYaroslav Tykhiy.Xr gif 4 :
2813163653e8SYaroslav Tykhiy.Bl -tag -width indent
2814163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr
2815163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel
2816163653e8SYaroslav Tykhiyinterfaces.
2817163653e8SYaroslav TykhiyThe arguments
2818163653e8SYaroslav Tykhiy.Ar src_addr
2819163653e8SYaroslav Tykhiyand
2820163653e8SYaroslav Tykhiy.Ar dest_addr
2821163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating
2822163653e8SYaroslav TykhiyIPv4/IPv6 header.
28239e241c5eSYaroslav Tykhiy.It Fl tunnel
2824163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel
2825163653e8SYaroslav Tykhiyinterfaces previously configured with
2826163653e8SYaroslav Tykhiy.Cm tunnel .
28279e241c5eSYaroslav Tykhiy.It Cm deletetunnel
28289e241c5eSYaroslav TykhiyAnother name for the
28299e241c5eSYaroslav Tykhiy.Fl tunnel
28309e241c5eSYaroslav Tykhiyparameter.
28316dcd0ad8SHiroki Sato.It Cm accept_rev_ethip_ver
2832a53bb70bSJoel DahlSet a flag to accept both correct EtherIP packets and ones
283396db02f2SAllan Judewith reversed version field.
283496db02f2SAllan JudeEnabled by default.
28356dcd0ad8SHiroki SatoThis is for backward compatibility with
28366dcd0ad8SHiroki Sato.Fx 6.1 ,
28376dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1.
28386dcd0ad8SHiroki Sato.It Cm -accept_rev_ethip_ver
28396dcd0ad8SHiroki SatoClear a flag
28406dcd0ad8SHiroki Sato.Cm accept_rev_ethip_ver .
2841c1b4f79dSAndrey V. Elsukov.It Cm ignore_source
2842c1b4f79dSAndrey V. ElsukovSet a flag to accept encapsulated packets destined to this host
2843c1b4f79dSAndrey V. Elsukovindependently from source address.
2844c1b4f79dSAndrey V. ElsukovThis may be useful for hosts, that receive encapsulated packets
2845c1b4f79dSAndrey V. Elsukovfrom the load balancers.
2846c1b4f79dSAndrey V. Elsukov.It Cm -ignore_source
2847c1b4f79dSAndrey V. ElsukovClear a flag
2848c1b4f79dSAndrey V. Elsukov.Cm ignore_source .
28496dcd0ad8SHiroki Sato.It Cm send_rev_ethip_ver
28506dcd0ad8SHiroki SatoSet a flag to send EtherIP packets with reversed version
285196db02f2SAllan Judefield intentionally.
285296db02f2SAllan JudeDisabled by default.
28536dcd0ad8SHiroki SatoThis is for backward compatibility with
28546dcd0ad8SHiroki Sato.Fx 6.1 ,
28556dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1.
28566dcd0ad8SHiroki Sato.It Cm -send_rev_ethip_ver
28576dcd0ad8SHiroki SatoClear a flag
28586dcd0ad8SHiroki Sato.Cm send_rev_ethip_ver .
2859163653e8SYaroslav Tykhiy.El
28600e2045b2SMateusz Piotrowski.Ss GRE Tunnel Parameters
2861f8824f7bSMark FelderThe following parameters apply to GRE tunnel interfaces,
2862131c55bcSAndrew Thompson.Xr gre 4 :
2863131c55bcSAndrew Thompson.Bl -tag -width indent
2864f8824f7bSMark Felder.It Cm tunnel Ar src_addr dest_addr
2865f8824f7bSMark FelderConfigure the physical source and destination address for GRE tunnel
2866f8824f7bSMark Felderinterfaces.
2867f8824f7bSMark FelderThe arguments
2868f8824f7bSMark Felder.Ar src_addr
2869f8824f7bSMark Felderand
2870f8824f7bSMark Felder.Ar dest_addr
2871f8824f7bSMark Felderare interpreted as the outer source/destination for the encapsulating
2872f8824f7bSMark FelderIPv4/IPv6 header.
2873f8824f7bSMark Felder.It Fl tunnel
2874f8824f7bSMark FelderUnconfigure the physical source and destination address for GRE tunnel
2875f8824f7bSMark Felderinterfaces previously configured with
2876f8824f7bSMark Felder.Cm tunnel .
2877f8824f7bSMark Felder.It Cm deletetunnel
2878f8824f7bSMark FelderAnother name for the
2879f8824f7bSMark Felder.Fl tunnel
2880f8824f7bSMark Felderparameter.
2881131c55bcSAndrew Thompson.It Cm grekey Ar key
2882131c55bcSAndrew ThompsonConfigure the GRE key to be used for outgoing packets.
2883131c55bcSAndrew ThompsonNote that
2884131c55bcSAndrew Thompson.Xr gre 4 will always accept GRE packets with invalid or absent keys.
2885131c55bcSAndrew ThompsonThis command will result in a four byte MTU reduction on the interface.
2886131c55bcSAndrew Thompson.El
28870e2045b2SMateusz Piotrowski.Ss Packet Filter State Table Sychronisation Parameters
2888163653e8SYaroslav TykhiyThe following parameters are specific to
2889ced42c6cSCeri Davies.Xr pfsync 4
2890ced42c6cSCeri Daviesinterfaces:
2891ced42c6cSCeri Davies.Bl -tag -width indent
289279f6687dSGleb Smirnoff.It Cm syncdev Ar iface
289379f6687dSGleb SmirnoffUse the specified interface
289479f6687dSGleb Smirnoffto send and receive pfsync state synchronisation messages.
289579f6687dSGleb Smirnoff.It Fl syncdev
289679f6687dSGleb SmirnoffStop sending pfsync state synchronisation messages over the network.
289779f6687dSGleb Smirnoff.It Cm syncpeer Ar peer_address
289881d4c786SLuiz AmaralSet the destination address for the state synchronization messages sent.
289981d4c786SLuiz AmaralThe
290081d4c786SLuiz Amaral.Ar peer_address
290181d4c786SLuiz Amaralis normally the IPv4 or IPv6 address of the other host taking
290281d4c786SLuiz Amaralpart in the pfsync cluster.
290381d4c786SLuiz Amaral.Pp
290481d4c786SLuiz AmaralWhen the
290581d4c786SLuiz Amaral.Ar peer_address
290681d4c786SLuiz Amaralis set to a unicast IP address, the pfsync link will behave
290781d4c786SLuiz Amaralas point-to-point rather than using multicast to broadcast the messages.
290881d4c786SLuiz Amaral.Pp
290981d4c786SLuiz AmaralWhen the
291081d4c786SLuiz Amaral.Ar peer_address
291181d4c786SLuiz Amaralis set to ff12::f0, the state synchronization
291281d4c786SLuiz Amaralmessages will be broadcast using multicast over IPv6.
291379f6687dSGleb Smirnoff.It Fl syncpeer
291481d4c786SLuiz AmaralUnset the syncpeer.
291581d4c786SLuiz AmaralPackets will then be broadcast using multicast over IPv4.
2916ced42c6cSCeri Davies.It Cm maxupd Ar n
2917ced42c6cSCeri DaviesSet the maximum number of updates for a single state which
2918ced42c6cSCeri Daviescan be collapsed into one.
2919ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128.
292079f6687dSGleb Smirnoff.It Cm defer
292179f6687dSGleb SmirnoffDefer transmission of the first packet in a state until a peer has
292279f6687dSGleb Smirnoffacknowledged that the associated state has been inserted.
292379f6687dSGleb Smirnoff.It Fl defer
292479f6687dSGleb SmirnoffDo not defer the first packet in a state.
292579f6687dSGleb SmirnoffThis is the default.
292618be782cSKajetan Staszkiewicz.It Fl version Ar n
292718be782cSKajetan StaszkiewiczConfigure message format for compatibility with older versions of FreeBSD.
292818be782cSKajetan StaszkiewiczRefer to
292918be782cSKajetan Staszkiewicz.Xr pfsync 4
293018be782cSKajetan Staszkiewiczfor details.
2931ced42c6cSCeri Davies.El
29320e2045b2SMateusz Piotrowski.Ss VLAN Parameters
2933ced42c6cSCeri DaviesThe following parameters are specific to
2934163653e8SYaroslav Tykhiy.Xr vlan 4
2935163653e8SYaroslav Tykhiyinterfaces:
2936163653e8SYaroslav Tykhiy.Bl -tag -width indent
2937163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag
2938163653e8SYaroslav TykhiySet the VLAN tag value to
2939163653e8SYaroslav Tykhiy.Ar vlan_tag .
2940f3f28e69SRobert WatsonThis value is a 12-bit VLAN Identifier (VID) which is used to create an 802.1Q
2941c7cffd65SAlexander V. Chernikovor 802.1ad VLAN header for packets sent from the
2942163653e8SYaroslav Tykhiy.Xr vlan 4
2943163653e8SYaroslav Tykhiyinterface.
2944163653e8SYaroslav TykhiyNote that
2945163653e8SYaroslav Tykhiy.Cm vlan
2946163653e8SYaroslav Tykhiyand
2947163653e8SYaroslav Tykhiy.Cm vlandev
2948163653e8SYaroslav Tykhiymust both be set at the same time.
2949c7cffd65SAlexander V. Chernikov.It Cm vlanproto Ar vlan_proto
2950c7cffd65SAlexander V. ChernikovSet the VLAN encapsulation protocol to
2951c7cffd65SAlexander V. Chernikov.Ar vlan_proto .
2952197947e0SMateusz PiotrowskiSupported encapsulation protocols are currently:
2953197947e0SMateusz Piotrowski.Bl -tag
2954197947e0SMateusz Piotrowski.It Cm 802.1Q
2955197947e0SMateusz PiotrowskiDefault.
2956197947e0SMateusz Piotrowski.It Cm 802.1ad
2957197947e0SMateusz Piotrowski.It Cm QinQ
2958197947e0SMateusz PiotrowskiSame as
2959197947e0SMateusz Piotrowski.Cm 802.1ad .
2960197947e0SMateusz Piotrowski.El
29612ccbbd06SMarcelo Araujo.It Cm vlanpcp Ar priority_code_point
29622ccbbd06SMarcelo AraujoPriority code point
29632ccbbd06SMarcelo Araujo.Pq Dv PCP
29642ccbbd06SMarcelo Araujois an 3-bit field which refers to the IEEE 802.1p
29652ccbbd06SMarcelo Araujoclass of service and maps to the frame priority level.
29662ccbbd06SMarcelo Araujo.Pp
29672ccbbd06SMarcelo AraujoValues in order of priority are:
29682ccbbd06SMarcelo Araujo.Cm 1
29692ccbbd06SMarcelo Araujo.Pq Dv Background (lowest) ,
29702ccbbd06SMarcelo Araujo.Cm 0
29712ccbbd06SMarcelo Araujo.Pq Dv Best effort (default) ,
29722ccbbd06SMarcelo Araujo.Cm 2
29732ccbbd06SMarcelo Araujo.Pq Dv Excellent effort ,
29742ccbbd06SMarcelo Araujo.Cm 3
29752ccbbd06SMarcelo Araujo.Pq Dv Critical applications ,
29762ccbbd06SMarcelo Araujo.Cm 4
29770ea8a7f3SJose Luis Duran.Pq Dv Video, < 100ms latency and jitter ,
29782ccbbd06SMarcelo Araujo.Cm 5
29790ea8a7f3SJose Luis Duran.Pq Dv Voice, < 10ms latency and jitter ,
29802ccbbd06SMarcelo Araujo.Cm 6
29812ccbbd06SMarcelo Araujo.Pq Dv Internetwork control ,
29822ccbbd06SMarcelo Araujo.Cm 7
29832ccbbd06SMarcelo Araujo.Pq Dv Network control (highest) .
2984163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface
2985163653e8SYaroslav TykhiyAssociate the physical interface
2986163653e8SYaroslav Tykhiy.Ar iface
2987163653e8SYaroslav Tykhiywith a
2988163653e8SYaroslav Tykhiy.Xr vlan 4
2989163653e8SYaroslav Tykhiyinterface.
2990163653e8SYaroslav TykhiyPackets transmitted through the
2991163653e8SYaroslav Tykhiy.Xr vlan 4
2992163653e8SYaroslav Tykhiyinterface will be
2993163653e8SYaroslav Tykhiydiverted to the specified physical interface
2994163653e8SYaroslav Tykhiy.Ar iface
2995163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation.
2996163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received
2997f3f28e69SRobert Watsonby the parent interface with the correct VLAN Identifier will be diverted to
2998163653e8SYaroslav Tykhiythe associated
2999163653e8SYaroslav Tykhiy.Xr vlan 4
3000163653e8SYaroslav Tykhiypseudo-interface.
3001163653e8SYaroslav TykhiyThe
3002163653e8SYaroslav Tykhiy.Xr vlan 4
3003163653e8SYaroslav Tykhiyinterface is assigned a
300496db02f2SAllan Judecopy of the parent interface's flags and the parent's Ethernet address.
3005163653e8SYaroslav TykhiyThe
3006163653e8SYaroslav Tykhiy.Cm vlandev
3007163653e8SYaroslav Tykhiyand
3008163653e8SYaroslav Tykhiy.Cm vlan
3009163653e8SYaroslav Tykhiymust both be set at the same time.
3010163653e8SYaroslav TykhiyIf the
3011163653e8SYaroslav Tykhiy.Xr vlan 4
3012163653e8SYaroslav Tykhiyinterface already has
3013163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail.
3014163653e8SYaroslav TykhiyTo
3015163653e8SYaroslav Tykhiychange the association to another physical interface, the existing
3016163653e8SYaroslav Tykhiyassociation must be cleared first.
3017163653e8SYaroslav Tykhiy.Pp
3018163653e8SYaroslav TykhiyNote: if the hardware tagging capability
3019163653e8SYaroslav Tykhiyis set on the parent interface, the
3020163653e8SYaroslav Tykhiy.Xr vlan 4
3021163653e8SYaroslav Tykhiypseudo
3022163653e8SYaroslav Tykhiyinterface's behavior changes:
3023163653e8SYaroslav Tykhiythe
3024163653e8SYaroslav Tykhiy.Xr vlan 4
3025163653e8SYaroslav Tykhiyinterface recognizes that the
3026163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its
3027163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from
3028163653e8SYaroslav Tykhiythe parent unaltered.
3029b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface
3030163653e8SYaroslav TykhiyIf the driver is a
3031163653e8SYaroslav Tykhiy.Xr vlan 4
3032b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it.
3033163653e8SYaroslav TykhiyThis breaks the link between the
3034163653e8SYaroslav Tykhiy.Xr vlan 4
3035163653e8SYaroslav Tykhiyinterface and its parent,
3036f3f28e69SRobert Watsonclears its VLAN Identifier, flags and its link address and shuts the interface
3037f3f28e69SRobert Watsondown.
3038b0dcc11cSYaroslav TykhiyThe
3039b0dcc11cSYaroslav Tykhiy.Ar iface
3040b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated.
3041163653e8SYaroslav Tykhiy.El
30420e2045b2SMateusz Piotrowski.Ss Virtual eXtensible LAN Parameters
304308b68b0eSGleb SmirnoffThe following parameters are used to configure
3044007054f0SBryan Venteicher.Xr vxlan 4
3045007054f0SBryan Venteicherinterfaces.
3046007054f0SBryan Venteicher.Bl -tag -width indent
3047c6e32006SBryan Venteicher.It Cm vxlanid Ar identifier
3048007054f0SBryan VenteicherThis value is a 24-bit VXLAN Network Identifier (VNI) that identifies the
3049007054f0SBryan Venteichervirtual network segment membership of the interface.
3050c6e32006SBryan Venteicher.It Cm vxlanlocal Ar address
3051007054f0SBryan VenteicherThe source address used in the encapsulating IPv4/IPv6 header.
3052007054f0SBryan VenteicherThe address should already be assigned to an existing interface.
3053007054f0SBryan VenteicherWhen the interface is configured in unicast mode, the listening socket
3054007054f0SBryan Venteicheris bound to this address.
3055c6e32006SBryan Venteicher.It Cm vxlanremote Ar address
3056007054f0SBryan VenteicherThe interface can be configured in a unicast, or point-to-point, mode
3057007054f0SBryan Venteicherto create a tunnel between two hosts.
3058007054f0SBryan VenteicherThis is the IP address of the remote end of the tunnel.
3059c6e32006SBryan Venteicher.It Cm vxlangroup Ar address
3060007054f0SBryan VenteicherThe interface can be configured in a multicast mode
3061007054f0SBryan Venteicherto create a virtual network of hosts.
3062007054f0SBryan VenteicherThis is the IP multicast group address the interface will join.
3063c6e32006SBryan Venteicher.It Cm vxlanlocalport Ar port
3064007054f0SBryan VenteicherThe port number the interface will listen on.
3065007054f0SBryan VenteicherThe default port number is 4789.
3066c6e32006SBryan Venteicher.It Cm vxlanremoteport Ar port
3067007054f0SBryan VenteicherThe destination port number used in the encapsulating IPv4/IPv6 header.
3068007054f0SBryan VenteicherThe remote host should be listening on this port.
3069007054f0SBryan VenteicherThe default port number is 4789.
3070007054f0SBryan VenteicherNote some other implementations, such as Linux,
3071007054f0SBryan Venteicherdo not default to the IANA assigned port,
3072007054f0SBryan Venteicherbut instead listen on port 8472.
3073c6e32006SBryan Venteicher.It Cm vxlanportrange Ar low high
3074007054f0SBryan VenteicherThe range of source ports used in the encapsulating IPv4/IPv6 header.
3075007054f0SBryan VenteicherThe port selected within the range is based on a hash of the inner frame.
3076007054f0SBryan VenteicherA range is useful to provide entropy within the outer IP header
3077007054f0SBryan Venteicherfor more effective load balancing.
3078007054f0SBryan VenteicherThe default range is between the
3079007054f0SBryan Venteicher.Xr sysctl 8
3080007054f0SBryan Venteichervariables
3081007054f0SBryan Venteicher.Va net.inet.ip.portrange.first
3082007054f0SBryan Venteicherand
3083007054f0SBryan Venteicher.Va net.inet.ip.portrange.last
3084c6e32006SBryan Venteicher.It Cm vxlantimeout Ar timeout
3085007054f0SBryan VenteicherThe maximum time, in seconds, before an entry in the forwarding table
3086007054f0SBryan Venteicheris pruned.
3087007054f0SBryan VenteicherThe default is 1200 seconds (20 minutes).
3088c6e32006SBryan Venteicher.It Cm vxlanmaxaddr Ar max
3089007054f0SBryan VenteicherThe maximum number of entries in the forwarding table.
3090007054f0SBryan VenteicherThe default is 2000.
3091007054f0SBryan Venteicher.It Cm vxlandev Ar dev
3092007054f0SBryan VenteicherWhen the interface is configured in multicast mode, the
3093007054f0SBryan Venteicher.Cm dev
3094007054f0SBryan Venteicherinterface is used to transmit IP multicast packets.
3095c6e32006SBryan Venteicher.It Cm vxlanttl Ar ttl
3096007054f0SBryan VenteicherThe TTL used in the encapsulating IPv4/IPv6 header.
3097007054f0SBryan VenteicherThe default is 64.
3098c6e32006SBryan Venteicher.It Cm vxlanlearn
3099007054f0SBryan VenteicherThe source IP address and inner source Ethernet MAC address of
3100007054f0SBryan Venteicherreceived packets are used to dynamically populate the forwarding table.
3101007054f0SBryan VenteicherWhen in multicast mode, an entry in the forwarding table allows the
3102007054f0SBryan Venteicherinterface to send the frame directly to the remote host instead of
3103007054f0SBryan Venteicherbroadcasting the frame to the multicast group.
3104007054f0SBryan VenteicherThis is the default.
3105c6e32006SBryan Venteicher.It Fl vxlanlearn
3106e700bef2SMarcelo AraujoThe forwarding table is not populated by received packets.
3107c6e32006SBryan Venteicher.It Cm vxlanflush
3108007054f0SBryan VenteicherDelete all dynamically-learned addresses from the forwarding table.
3109c6e32006SBryan Venteicher.It Cm vxlanflushall
3110007054f0SBryan VenteicherDelete all addresses, including static addresses, from the forwarding table.
3111007054f0SBryan Venteicher.El
31120e2045b2SMateusz Piotrowski.Ss CARP Parameters
3113007054f0SBryan VenteicherThe following parameters are used to configure
3114556c9a4cSJesus R. Camou.Xr carp 4
311508b68b0eSGleb Smirnoffprotocol on an interface:
3116556c9a4cSJesus R. Camou.Bl -tag -width indent
311708b68b0eSGleb Smirnoff.It Cm vhid Ar n
311808b68b0eSGleb SmirnoffSet the virtual host ID.
311908b68b0eSGleb SmirnoffThis is a required setting to initiate
312008b68b0eSGleb Smirnoff.Xr carp 4 .
3121818b39edSWarren BlockIf the virtual host ID does not exist yet, it is created and attached to the
312208b68b0eSGleb Smirnoffinterface, otherwise configuration of an existing vhid is adjusted.
312308b68b0eSGleb SmirnoffIf the
312408b68b0eSGleb Smirnoff.Cm vhid
312508b68b0eSGleb Smirnoffkeyword is supplied along with an
312608b68b0eSGleb Smirnoff.Dq inet6
312708b68b0eSGleb Smirnoffor
312808b68b0eSGleb Smirnoff.Dq inet
312908b68b0eSGleb Smirnoffaddress, then this address is configured to be run under control of the
313008b68b0eSGleb Smirnoffspecified vhid.
313108b68b0eSGleb SmirnoffWhenever a last address that refers to a particular vhid is removed from an
313208b68b0eSGleb Smirnoffinterface, the vhid is automatically removed from interface and destroyed.
313308b68b0eSGleb SmirnoffAny other configuration parameters for the
313408b68b0eSGleb Smirnoff.Xr carp 4
313508b68b0eSGleb Smirnoffprotocol should be supplied along with the
313608b68b0eSGleb Smirnoff.Cm vhid
313708b68b0eSGleb Smirnoffkeyword.
313808b68b0eSGleb SmirnoffAcceptable values for vhid are 1 to 255.
3139556c9a4cSJesus R. Camou.It Cm advbase Ar seconds
3140556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds.
3141556c9a4cSJesus R. CamouThe acceptable values are 1 to 255.
3142556c9a4cSJesus R. CamouThe default value is 1.
3143556c9a4cSJesus R. Camou.It Cm advskew Ar interval
3144556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to
3145556c9a4cSJesus R. Camoumake one host advertise slower than another host.
3146556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds.
3147556c9a4cSJesus R. CamouThe acceptable values are 1 to 254.
3148556c9a4cSJesus R. CamouThe default value is 0.
3149556c9a4cSJesus R. Camou.It Cm pass Ar phrase
3150556c9a4cSJesus R. CamouSet the authentication key to
3151556c9a4cSJesus R. Camou.Ar phrase .
3152388c12e3SMateusz Piotrowski.It Cm state Ar state
315308b68b0eSGleb SmirnoffForcibly change state of a given vhid.
3154388c12e3SMateusz PiotrowskiThe following states are recognized:
3155388c12e3SMateusz Piotrowski.Cm MASTER
3156388c12e3SMateusz Piotrowskiand
3157388c12e3SMateusz Piotrowski.Cm BACKUP .
3158b1a4ccddSKristof Provost.It Cm peer Ar address
3159b1a4ccddSKristof ProvostSet the address to send (IPv4)
3160b1a4ccddSKristof Provost.Xr carp 4
3161b1a4ccddSKristof Provostannouncements to.
3162b1a4ccddSKristof Provost.It Cm mcast
3163b1a4ccddSKristof ProvostRestore the default destination address for (IPv4)
3164b1a4ccddSKristof Provost.Xr carp 4
3165b1a4ccddSKristof Provostannouncements, which is 224.0.0.18.
3166b1a4ccddSKristof Provost.It Cm peer6 Ar address
3167b1a4ccddSKristof ProvostSet the address to send (IPv6)
3168b1a4ccddSKristof Provost.Xr carp 4
3169b1a4ccddSKristof Provostannouncements to.
3170b1a4ccddSKristof Provost.It Cm mcast6
3171b1a4ccddSKristof ProvostRestore the default destination address for (IPv4)
3172b1a4ccddSKristof Provost.Xr carp 4
3173b1a4ccddSKristof Provostannouncements, which is ff02::12.
31740d446a43SKristof Provost.It Cm carpver
31750d446a43SKristof ProvostSet the protocol version.
31760d446a43SKristof ProvostValid choices are 2 (for
31770d446a43SKristof Provost.Xr carp 4)
31780d446a43SKristof Provostand 3 (for VRRPv3).
31790d446a43SKristof ProvostThis can only be set when
31800d446a43SKristof Provost.Xr carp 4
31810d446a43SKristof Provostis initiated.
31820d446a43SKristof Provost.It Cm vrrpprio
31830d446a43SKristof ProvostSet the VRRPv3 priority.
31840d446a43SKristof ProvostValid values are 1-255.
31850d446a43SKristof Provost.It Cm vrrpinterval
31860d446a43SKristof ProvostSet the VRRPv3 Master Advertisement Interval.
31870d446a43SKristof ProvostValues are in centiseconds.
3188556c9a4cSJesus R. Camou.El
3189f4f02fa1SMateusz Piotrowski.Sh ENVIRONMENT
3190f4f02fa1SMateusz PiotrowskiThe following environment variables affect the execution of
3191f4f02fa1SMateusz Piotrowski.Nm :
3192f4f02fa1SMateusz Piotrowski.Bl -tag -width IFCONFIG_FORMAT
3193f4f02fa1SMateusz Piotrowski.It Ev IFCONFIG_FORMAT
3194f4f02fa1SMateusz PiotrowskiThis variable can contain a specification of the output format.
3195f4f02fa1SMateusz PiotrowskiSee the description of the
3196f4f02fa1SMateusz Piotrowski.Fl f
3197f4f02fa1SMateusz Piotrowskiflag for more details.
3198f4f02fa1SMateusz Piotrowski.El
31999bad5f37SBruce M Simpson.Sh EXAMPLES
32009bad5f37SBruce M SimpsonAssign the IPv4 address
32019bb9973cSBruce M Simpson.Li 192.0.2.10 ,
32029bad5f37SBruce M Simpsonwith a network mask of
32039bad5f37SBruce M Simpson.Li 255.255.255.0 ,
32049bad5f37SBruce M Simpsonto the interface
3205ffda6790SBrooks Davis.Li em0 :
3206ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.10 netmask 255.255.255.0
32079bad5f37SBruce M Simpson.Pp
32089bb9973cSBruce M SimpsonAdd the IPv4 address
32099bb9973cSBruce M Simpson.Li 192.0.2.45 ,
32109bad5f37SBruce M Simpsonwith the CIDR network prefix
32119bb9973cSBruce M Simpson.Li /28 ,
32129bad5f37SBruce M Simpsonto the interface
321319ac0bc5SMateusz Piotrowski.Li em0 :
321419ac0bc5SMateusz Piotrowski.Dl # ifconfig em0 inet 192.0.2.45/28 alias
32159bad5f37SBruce M Simpson.Pp
32169bb9973cSBruce M SimpsonRemove the IPv4 address
32179bb9973cSBruce M Simpson.Li 192.0.2.45
32189bb9973cSBruce M Simpsonfrom the interface
3219ffda6790SBrooks Davis.Li em0 :
3220ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.45 -alias
32219bb9973cSBruce M Simpson.Pp
3222a283298cSHiroki SatoEnable IPv6 functionality of the interface:
3223a283298cSHiroki Sato.Dl # ifconfig em0 inet6 -ifdisabled
3224a283298cSHiroki Sato.Pp
32259bb9973cSBruce M SimpsonAdd the IPv6 address
32269bb9973cSBruce M Simpson.Li 2001:DB8:DBDB::123/48
32279bad5f37SBruce M Simpsonto the interface
32289bad5f37SBruce M Simpson.Li em0 :
32299bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias
32309bb9973cSBruce M SimpsonNote that lower case hexadecimal IPv6 addresses are acceptable.
32319bad5f37SBruce M Simpson.Pp
32329bad5f37SBruce M SimpsonRemove the IPv6 address added in the above example,
32339bad5f37SBruce M Simpsonusing the
32349bad5f37SBruce M Simpson.Li /
323519ac0bc5SMateusz Piotrowskicharacter as shorthand for the network prefix:
323619ac0bc5SMateusz Piotrowski.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 -alias
32379bad5f37SBruce M Simpson.Pp
323808b68b0eSGleb SmirnoffConfigure a single CARP redundant address on igb0, and then switch it
323908b68b0eSGleb Smirnoffto be master:
324019ac0bc5SMateusz Piotrowski.Bd -literal -offset indent -compact
324119ac0bc5SMateusz Piotrowski# ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up
324219ac0bc5SMateusz Piotrowski# ifconfig igb0 vhid 1 state master
324319ac0bc5SMateusz Piotrowski.Ed
324408b68b0eSGleb Smirnoff.Pp
32459bad5f37SBruce M SimpsonConfigure the interface
32469bad5f37SBruce M Simpson.Li xl0 ,
32479bad5f37SBruce M Simpsonto use 100baseTX, full duplex Ethernet media options:
32489bad5f37SBruce M Simpson.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex
32499bad5f37SBruce M Simpson.Pp
3250215940b3SXin LILabel the em0 interface as an uplink:
3251215940b3SXin LI.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&"
3252215940b3SXin LI.Pp
32539bad5f37SBruce M SimpsonCreate the software network interface
32549bad5f37SBruce M Simpson.Li gif1 :
32559bad5f37SBruce M Simpson.Dl # ifconfig gif1 create
32569bad5f37SBruce M Simpson.Pp
32579bad5f37SBruce M SimpsonDestroy the software network interface
32589bad5f37SBruce M Simpson.Li gif1 :
32599bad5f37SBruce M Simpson.Dl # ifconfig gif1 destroy
326048141d37SGlen Barber.Pp
326166e0e139SGlen BarberDisplay available wireless networks using
326248141d37SGlen Barber.Li wlan0 :
3263a34287fbSGlen Barber.Dl # ifconfig wlan0 list scan
32647c2aa744SAllan Jude.Pp
32657c2aa744SAllan JudeDisplay inet and inet6 address subnet masks in CIDR notation
32667c2aa744SAllan Jude.Dl # ifconfig -f inet:cidr,inet6:cidr
32678e725dacSEugene Grosbein.Pp
32688e725dacSEugene GrosbeinDisplay interfaces that are up with the exception of loopback
32698e725dacSEugene Grosbein.Dl # ifconfig -a -u -G lo
32703049aac9SMateusz Piotrowski.Pp
32714d91c53aSMateusz PiotrowskiDisplay a list of interface names beloning to the wlan group:
32724d91c53aSMateusz Piotrowski.Bd -literal -offset indent -compact
32734d91c53aSMateusz Piotrowski# ifconfig -g wlan
32744d91c53aSMateusz Piotrowskiwlan0
32754d91c53aSMateusz Piotrowskiwlan1
32764d91c53aSMateusz Piotrowski.Ed
32774d91c53aSMateusz Piotrowski.Pp
32784d91c53aSMateusz PiotrowskiDisplay details about the interfaces belonging to the wlan group:
32794d91c53aSMateusz Piotrowski.Bd -literal -offset indent -compact
32804d91c53aSMateusz Piotrowski# ifconfig -a -g wlan
32814d91c53aSMateusz Piotrowskiwlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
32824d91c53aSMateusz Piotrowski        ether 75:4c:61:6b:7a:73
32834d91c53aSMateusz Piotrowski        inet6 fe80::4c75:636a:616e:ffd8%wlan0 prefixlen 64 scopeid 0x3
32844d91c53aSMateusz Piotrowski        inet6 2001:5761:6e64:6152:6f6d:616e:fea4:ffe2 prefixlen 64 autoconf
32854d91c53aSMateusz Piotrowski        inet 192.168.10.5 netmask 0xffffff00 broadcast 192.168.10.255
32864d91c53aSMateusz Piotrowski        groups: wlan
32874d91c53aSMateusz Piotrowski        ssid "Hotspot" channel 11 (2462 MHz 11g) bssid 12:34:ff:ff:43:21
32884d91c53aSMateusz Piotrowski        regdomain ETSI country DE authmode WPA2/802.11i privacy ON
32894d91c53aSMateusz Piotrowski        deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 10
32904d91c53aSMateusz Piotrowski        scanvalid 60 protmode CTS wme roaming MANUAL
32914d91c53aSMateusz Piotrowski        parent interface: iwm0
32924d91c53aSMateusz Piotrowski        media: IEEE 802.11 Wireless Ethernet DS/2Mbps mode 11g
32934d91c53aSMateusz Piotrowski        status: associated
32944d91c53aSMateusz Piotrowski        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
32954d91c53aSMateusz Piotrowskiwlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
32964d91c53aSMateusz Piotrowski        ether 00:50:69:6f:74:72
32974d91c53aSMateusz Piotrowski        groups: wlan
32984d91c53aSMateusz Piotrowski        ssid "" channel 2 (2417 MHz 11g)
32994d91c53aSMateusz Piotrowski        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
33004d91c53aSMateusz Piotrowski        scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
33014d91c53aSMateusz Piotrowski        roam:rate 5 protmode CTS wme bintval 0
33024d91c53aSMateusz Piotrowski        parent interface: rum0
33034d91c53aSMateusz Piotrowski        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
33044d91c53aSMateusz Piotrowski        status: no carrier
33054d91c53aSMateusz Piotrowski        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
33064d91c53aSMateusz Piotrowski.Ed
33074d91c53aSMateusz Piotrowski.Pp
33083049aac9SMateusz PiotrowskiSet a randomly-generated MAC address on tap0:
33093049aac9SMateusz Piotrowski.Dl # ifconfig tap0 ether random
33108fae3551SRodney W. Grimes.Sh DIAGNOSTICS
331120d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the
33128fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and
33138fae3551SRodney W. Grimestried to alter an interface's configuration.
33148fae3551SRodney W. Grimes.Sh SEE ALSO
33158fae3551SRodney W. Grimes.Xr netstat 1 ,
33164029efa5SChristian Brueffer.Xr carp 4 ,
33176dcd0ad8SHiroki Sato.Xr gif 4 ,
33188fae3551SRodney W. Grimes.Xr netintro 4 ,
3319ced42c6cSCeri Davies.Xr pfsync 4 ,
33204029efa5SChristian Brueffer.Xr polling 4 ,
3321588e78c5SYaroslav Tykhiy.Xr vlan 4 ,
3322007054f0SBryan Venteicher.Xr vxlan 4 ,
3323fd9635efSWarren Block.Xr devd.conf 5 ,
3324fd9635efSWarren Block.Xr devd 8 ,
3325c09eb466SJoel Dahl.Xr jail 8 ,
33268fae3551SRodney W. Grimes.Xr rc 8 ,
33274b32efacSBruce M Simpson.Xr routed 8 ,
33284b32efacSBruce M Simpson.Xr sysctl 8
33298fae3551SRodney W. Grimes.Sh HISTORY
33308fae3551SRodney W. GrimesThe
33318fae3551SRodney W. Grimes.Nm
3332e1205e80SPhilippe Charnierutility appeared in
33338fae3551SRodney W. Grimes.Bx 4.2 .
33346087df9eSRuslan Ermilov.Sh BUGS
33356087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each
33366087df9eSRuslan Ermilovinterface configured for IPv6.
33376087df9eSRuslan ErmilovNormally, such an address is automatically configured by the
3338a283298cSHiroki Satokernel on each interface added to the system or enabled; this behavior may
3339a283298cSHiroki Satobe disabled by setting per-interface flag
3340a283298cSHiroki Sato.Cm -auto_linklocal .
3341a283298cSHiroki SatoThe default value of this flag is 1 and can be disabled by using the sysctl
3342a283298cSHiroki SatoMIB variable
3343a283298cSHiroki Sato.Va net.inet6.ip6.auto_linklocal .
33446087df9eSRuslan Ermilov.Pp
3345a283298cSHiroki SatoDo not configure IPv6 addresses with no link-local address by using
3346a283298cSHiroki Sato.Nm .
3347a283298cSHiroki SatoIt can result in unexpected behaviors of the kernel.
3348