18fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 68fae3551SRodney W. Grimes.\" are met: 78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 88fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 108fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 118fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 138fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 148fae3551SRodney W. Grimes.\" without specific prior written permission. 158fae3551SRodney W. Grimes.\" 168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 198fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 268fae3551SRodney W. Grimes.\" SUCH DAMAGE. 278fae3551SRodney W. Grimes.\" 280761cb29SGarrett Wollman.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 297f3dea24SPeter Wemm.\" $FreeBSD$ 308fae3551SRodney W. Grimes.\" 3112a77464SMateusz Piotrowski.Dd March 30, 2022 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 392e053399SMateusz Piotrowski.Op Fl kLmn 4052ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format 41abc3361aSArchie Cobbs.Ar interface 423e61dca0SBrooks Davis.Op Cm create 435af3fa9aSBjoern A. Zeeb.Ar address_family 448fae3551SRodney W. Grimes.Oo 45eb2a1701SDima Dorfman.Ar address 468fae3551SRodney W. Grimes.Op Ar dest_address 478fae3551SRodney W. Grimes.Oc 488fae3551SRodney W. Grimes.Op Ar parameters 497c7fb079SRuslan Ermilov.Nm 503e61dca0SBrooks Davis.Ar interface 513e61dca0SBrooks Davis.Cm destroy 523e61dca0SBrooks Davis.Nm 53b5436146SPeter Wemm.Fl a 54b710d4c8SMateusz Piotrowski.Op Fl dkLmuv 5552ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format 56d1d14f04SMateusz Piotrowski.Op Fl G Ar groupname 57d1d14f04SMateusz Piotrowski.Op Fl g Ar groupname 58e333b944SPhilippe Charnier.Op Ar address_family 597c7fb079SRuslan Ermilov.Nm 60efb4f7fdSMateusz Piotrowski.Fl C 61efb4f7fdSMateusz Piotrowski.Nm 62a9475cb3SMateusz Piotrowski.Fl g Ar groupname 63a9475cb3SMateusz Piotrowski.Nm 64b5436146SPeter Wemm.Fl l 652e053399SMateusz Piotrowski.Op Fl du 66e333b944SPhilippe Charnier.Op Ar address_family 677c7fb079SRuslan Ermilov.Nm 68efb4f7fdSMateusz Piotrowski.Op Fl dkLmuv 6952ec8807SMateusz Piotrowski.Op Fl f Ar type Ns Cm \&: Ns Ar format 708fae3551SRodney W. Grimes.Sh DESCRIPTION 71e1205e80SPhilippe CharnierThe 72e1205e80SPhilippe Charnier.Nm 73e1205e80SPhilippe Charnierutility is used to assign an address 748fae3551SRodney W. Grimesto a network interface and/or configure 758fae3551SRodney W. Grimesnetwork interface parameters. 76e1205e80SPhilippe CharnierThe 77e1205e80SPhilippe Charnier.Nm 78e1205e80SPhilippe Charnierutility must be used at boot time to define the network address 798fae3551SRodney W. Grimesof each interface present on a machine; it may also be used at 808fae3551SRodney W. Grimesa later time to redefine an interface's address 818fae3551SRodney W. Grimesor other operating parameters. 828fae3551SRodney W. Grimes.Pp 83e333b944SPhilippe CharnierThe following options are available: 84e333b944SPhilippe Charnier.Bl -tag -width indent 850625c313SMateusz Piotrowski.It Fl a 860625c313SMateusz PiotrowskiDisplay information about all interfaces in the system. 870625c313SMateusz Piotrowski.Pp 880625c313SMateusz PiotrowskiThe 890625c313SMateusz Piotrowski.Fl a 900625c313SMateusz Piotrowskiflag may be used instead of the 910625c313SMateusz Piotrowski.Ar interface 920625c313SMateusz Piotrowskiargument. 9359cdaadcSMateusz Piotrowski.It Fl C 9459cdaadcSMateusz PiotrowskiList all the interface cloners available on the system, 9559cdaadcSMateusz Piotrowskiwith no additional information. 9659cdaadcSMateusz PiotrowskiUse of this flag is mutually exclusive with all other flags and commands. 970625c313SMateusz Piotrowski.It Fl d 980625c313SMateusz PiotrowskiDisplay only the interfaces that are down. 99f4f02fa1SMateusz Piotrowski.It Fl f Xo 100f4f02fa1SMateusz Piotrowski.Ar type Ns Cm \&: Ns Ar format Ns 101f4f02fa1SMateusz Piotrowski.Op Cm \&, Ns Ar type Ns Cm \&: Ns Ar format Ar ... 102f4f02fa1SMateusz Piotrowski.Xc 103f4f02fa1SMateusz PiotrowskiControl the output format of 104f4f02fa1SMateusz Piotrowski.Nm . 105f4f02fa1SMateusz PiotrowskiThe format is specified as a comma-separated list of 106f4f02fa1SMateusz Piotrowski.Ar type Ns Cm \&: Ns Ar format 107f4f02fa1SMateusz Piotrowskipairs 108f4f02fa1SMateusz Piotrowski.Po see the 109f4f02fa1SMateusz Piotrowski.Sx EXAMPLES 110f4f02fa1SMateusz Piotrowskisection for more information 111f4f02fa1SMateusz Piotrowski.Pc . 112f4f02fa1SMateusz Piotrowski.Pp 113f4f02fa1SMateusz PiotrowskiThe output format can also be specified via the 114f4f02fa1SMateusz Piotrowski.Ev IFCONFIG_FORMAT 115f4f02fa1SMateusz Piotrowskienvironment variable. 116f4f02fa1SMateusz PiotrowskiThe 117f4f02fa1SMateusz Piotrowski.Fl f 118f4f02fa1SMateusz Piotrowskiflag can be supplied multiple times. 119f4f02fa1SMateusz Piotrowski.Pp 120f4f02fa1SMateusz PiotrowskiThe 121f4f02fa1SMateusz Piotrowski.Ar type Ns s 122f4f02fa1SMateusz Piotrowskiand their associated 123f4f02fa1SMateusz Piotrowski.Ar format 124f4f02fa1SMateusz Piotrowskistrings are: 125f4f02fa1SMateusz Piotrowski.Bl -tag -width ether 126f4f02fa1SMateusz Piotrowski.It Cm addr 127f4f02fa1SMateusz PiotrowskiAdjust the display of inet and inet6 addresses: 128f4f02fa1SMateusz Piotrowski.Bl -tag -width default 129f4f02fa1SMateusz Piotrowski.It Cm default 130f4f02fa1SMateusz PiotrowskiDisplay inet and inet6 addresses in the default format, 131f4f02fa1SMateusz Piotrowski.Cm numeric 132f4f02fa1SMateusz Piotrowski.It Cm fqdn 133f4f02fa1SMateusz PiotrowskiDisplay inet and inet6 addresses as fully qualified domain names 134f4f02fa1SMateusz Piotrowski.Pq FQDN 135f4f02fa1SMateusz Piotrowski.It Cm host 136f4f02fa1SMateusz PiotrowskiDisplay inet and inet6 addresses as unqualified hostnames 137f4f02fa1SMateusz Piotrowski.It Cm numeric 138f4f02fa1SMateusz PiotrowskiDisplay inet and inet6 addresses in numeric format 139f4f02fa1SMateusz Piotrowski.El 140f4f02fa1SMateusz Piotrowski.It Cm ether 141f4f02fa1SMateusz PiotrowskiAdjust the display of link-level ethernet (MAC) addresses: 142f4f02fa1SMateusz Piotrowski.Bl -tag -width default 143f4f02fa1SMateusz Piotrowski.It Cm colon 144f4f02fa1SMateusz PiotrowskiSeparate address segments with a colon 145f4f02fa1SMateusz Piotrowski.It Cm dash 146f4f02fa1SMateusz PiotrowskiSeparate address segments with a dash 147f4f02fa1SMateusz Piotrowski.It Cm default 148f4f02fa1SMateusz PiotrowskiDisplay ethernet addresses in the default format, 149f4f02fa1SMateusz Piotrowski.Cm colon 150f4f02fa1SMateusz Piotrowski.El 151f4f02fa1SMateusz Piotrowski.It Cm inet 152f4f02fa1SMateusz PiotrowskiAdjust the display of inet address subnet masks: 153f4f02fa1SMateusz Piotrowski.Bl -tag -width default 154f4f02fa1SMateusz Piotrowski.It Cm cidr 155f4f02fa1SMateusz PiotrowskiDisplay subnet masks in CIDR notation, for example: 156f4f02fa1SMateusz Piotrowski.Dl 10.0.0.0/8 157f4f02fa1SMateusz Piotrowskior 158f4f02fa1SMateusz Piotrowski.Dl 203.0.113.224/26 159f4f02fa1SMateusz Piotrowski.It Cm default 160f4f02fa1SMateusz PiotrowskiDisplay subnet masks in the default format, 161f4f02fa1SMateusz Piotrowski.Cm hex 162f4f02fa1SMateusz Piotrowski.It Cm dotted 163f4f02fa1SMateusz PiotrowskiDisplay subnet masks in dotted quad notation, for example: 164f4f02fa1SMateusz Piotrowski.Dl 255.255.0.0 165f4f02fa1SMateusz Piotrowskior 166f4f02fa1SMateusz Piotrowski.Dl 255.255.255.192 167f4f02fa1SMateusz Piotrowski.It Cm hex 168f4f02fa1SMateusz PiotrowskiDisplay subnet masks in hexadecimal, for example: 169f4f02fa1SMateusz Piotrowski.Dl 0xffff0000 170f4f02fa1SMateusz Piotrowskior 171f4f02fa1SMateusz Piotrowski.Dl 0xffffffc0 172f4f02fa1SMateusz Piotrowski.El 173f4f02fa1SMateusz Piotrowski.It Cm inet6 174f4f02fa1SMateusz PiotrowskiAdjust the display of inet6 address prefixes (subnet masks): 175f4f02fa1SMateusz Piotrowski.Bl -tag -width default 176f4f02fa1SMateusz Piotrowski.It Cm cidr 177f4f02fa1SMateusz PiotrowskiDisplay subnet prefix in CIDR notation, for example: 178f4f02fa1SMateusz Piotrowski.Dl ::1/128 179f4f02fa1SMateusz Piotrowskior 180f4f02fa1SMateusz Piotrowski.Dl fe80::1%lo0/64 181f4f02fa1SMateusz Piotrowski.It Cm default 182f4f02fa1SMateusz PiotrowskiDisplay subnet prefix in the default format 183f4f02fa1SMateusz Piotrowski.Cm numeric 184f4f02fa1SMateusz Piotrowski.It Sy numeric 185f4f02fa1SMateusz PiotrowskiDisplay subnet prefix in integer format, for example: 186f4f02fa1SMateusz Piotrowski.Dl prefixlen 64 187f4f02fa1SMateusz Piotrowski.El 188f4f02fa1SMateusz Piotrowski.El 18978759908SMateusz Piotrowski.It Fl G Ar groupname 19078759908SMateusz PiotrowskiExclude members of the specified 19178759908SMateusz Piotrowski.Ar groupname 19278759908SMateusz Piotrowskifrom the output. 19378759908SMateusz Piotrowski.Ar groupname . 19478759908SMateusz Piotrowski.Pp 19578759908SMateusz PiotrowskiOnly one option 19678759908SMateusz Piotrowski.Fl G 19778759908SMateusz Piotrowskishould be specified as later override previous ones 19878759908SMateusz Piotrowski.Ar groupname 19978759908SMateusz Piotrowskimay contain shell patterns in which case it should be quoted. 20078759908SMateusz Piotrowski.It Fl g Ar groupname 20178759908SMateusz PiotrowskiLimit the output to the members of the specified 20278759908SMateusz Piotrowski.Ar groupname . 20378759908SMateusz Piotrowski.Pp 20478759908SMateusz PiotrowskiOnly one option 20578759908SMateusz Piotrowski.Fl g 20678759908SMateusz Piotrowskishould be specified as later override previous ones 20778759908SMateusz Piotrowski.Ar groupname 20878759908SMateusz Piotrowskimay contain shell patterns in which case it should be quoted. 2099076f99bSMateusz Piotrowski.It Fl k 2109076f99bSMateusz PiotrowskiPrint keying information for the 2119076f99bSMateusz Piotrowski.Ar interface , 2129076f99bSMateusz Piotrowskiif available. 2139076f99bSMateusz Piotrowski.Pp 2149076f99bSMateusz PiotrowskiFor example, the values of 802.11 WEP keys and 2159076f99bSMateusz Piotrowski.Xr carp 4 2169076f99bSMateusz Piotrowskipassphrases will be printed, if accessible to the current user. 2179076f99bSMateusz Piotrowski.Pp 2189076f99bSMateusz PiotrowskiThis information is not printed by default, as it may be considered 2199076f99bSMateusz Piotrowskisensitive. 22019c1b75fSMateusz Piotrowski.It Fl L 22119c1b75fSMateusz PiotrowskiDisplay address lifetime for IPv6 addresses as time offset string. 222fe1e3b55SMateusz Piotrowski.It Fl l 223fe1e3b55SMateusz PiotrowskiList all available interfaces on the system, 224fe1e3b55SMateusz Piotrowskiwith no other additional information. 22519c1b75fSMateusz Piotrowski.Pp 226fe1e3b55SMateusz PiotrowskiIf an 227fe1e3b55SMateusz Piotrowski.Ar address_family 228fe1e3b55SMateusz Piotrowskiis specified, only interfaces of that type will be listed. 229fe1e3b55SMateusz Piotrowski.Ql ifconfig -l ether 230fe1e3b55SMateusz Piotrowskiwill list only Ethernet adapters, excluding the loopback interface. 231fe1e3b55SMateusz Piotrowski.Pp 232fe1e3b55SMateusz PiotrowskiUse of this flag is mutually exclusive 233fe1e3b55SMateusz Piotrowskiwith all other flags and commands, except for 234fe1e3b55SMateusz Piotrowski.Fl d 235fe1e3b55SMateusz Piotrowskiand 236fe1e3b55SMateusz Piotrowski.Fl u . 237b56e4224SMateusz Piotrowski.It Fl m 238b56e4224SMateusz PiotrowskiDisplay the capability list and all 239b56e4224SMateusz Piotrowskiof the supported media for the specified interface. 240186a372fSMateusz Piotrowski.It Fl n 241186a372fSMateusz PiotrowskiDisable automatic loading of network interface drivers. 242186a372fSMateusz Piotrowski.Pp 243186a372fSMateusz PiotrowskiIf the network interface driver is not present in the kernel then 244186a372fSMateusz Piotrowski.Nm 245186a372fSMateusz Piotrowskiwill attempt to load it. 246186a372fSMateusz PiotrowskiThis flag disables this behavior. 2470625c313SMateusz Piotrowski.It Fl u 2480625c313SMateusz PiotrowskiDisplay only the interfaces that are up. 24959cdaadcSMateusz Piotrowski.It Fl v 25059cdaadcSMateusz PiotrowskiGet more verbose status for an interface. 251e333b944SPhilippe Charnier.It Ar address 25244c4affaSMateusz PiotrowskiFor the DARPA-Internet family, 2538fae3551SRodney W. Grimesthe address is either a host name present in the host name data 2548fae3551SRodney W. Grimesbase, 2558fae3551SRodney W. Grimes.Xr hosts 5 , 25644c4affaSMateusz Piotrowskior a DARPA Internet address expressed in the Internet standard 2578fae3551SRodney W. Grimes.Dq dot notation . 25812813062SJesper Skriver.Pp 25912813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the 26012813062SJesper Skriverslash notation) to include the netmask. 26112813062SJesper SkriverThat is, one can specify an address like 26219fe4826SRuslan Ermilov.Li 192.168.0.1/16 . 2639f1741caSRuslan Ermilov.Pp 2644f1fb109SGiorgos KeramidasFor the 2659f1741caSRuslan Ermilov.Dq inet6 2669f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash 2679f1741caSRuslan Ermilovnotation, like 2689f1741caSRuslan Ermilov.Li ::1/128 . 2699f1741caSRuslan ErmilovSee the 2709f1741caSRuslan Ermilov.Cm prefixlen 2719f1741caSRuslan Ermilovparameter below for more information. 272cbc17e71SGarrett Wollman.\" For the Xerox Network Systems(tm) family, 273cbc17e71SGarrett Wollman.\" addresses are 274cbc17e71SGarrett Wollman.\" .Ar net:a.b.c.d.e.f , 275cbc17e71SGarrett Wollman.\" where 276cbc17e71SGarrett Wollman.\" .Ar net 277cbc17e71SGarrett Wollman.\" is the assigned network number (in decimal), 278cbc17e71SGarrett Wollman.\" and each of the six bytes of the host number, 279cbc17e71SGarrett Wollman.\" .Ar a 280cbc17e71SGarrett Wollman.\" through 281cbc17e71SGarrett Wollman.\" .Ar f , 282cbc17e71SGarrett Wollman.\" are specified in hexadecimal. 283b80875bcSDima Dorfman.\" The host number may be omitted on IEEE 802 protocol 284b80875bcSDima Dorfman.\" (Ethernet, FDDI, and Token Ring) interfaces, 285cbc17e71SGarrett Wollman.\" which use the hardware physical address, 286cbc17e71SGarrett Wollman.\" and on interfaces other than the first. 28744c4affaSMateusz Piotrowski.\" For the ISO family, addresses are specified as a long hexadecimal string, 288b09b4efbSRuslan Ermilov.\" as in the Xerox family. 289b09b4efbSRuslan Ermilov.\" However, two consecutive dots imply a zero 2900761cb29SGarrett Wollman.\" byte, and the dots are optional, if the user wishes to (carefully) 2910761cb29SGarrett Wollman.\" count out long strings of digits in network byte order. 2921876df83SRuslan Ermilov.Pp 2931876df83SRuslan ErmilovThe link-level 2941876df83SRuslan Ermilov.Pq Dq link 2951876df83SRuslan Ermilovaddress 2961876df83SRuslan Ermilovis specified as a series of colon-separated hex digits. 29796db02f2SAllan JudeThis can be used to, for example, 29896db02f2SAllan Judeset a new MAC address on an Ethernet interface, though the 29996db02f2SAllan Judemechanism used is not Ethernet specific. 300e700bef2SMarcelo AraujoUse the 301e700bef2SMarcelo Araujo.Pq Dq random 302e700bef2SMarcelo Araujokeyword to set a randomly generated MAC address. 303e700bef2SMarcelo AraujoA randomly-generated MAC address might be the same as one already in use 304e700bef2SMarcelo Araujoin the network. 305e700bef2SMarcelo AraujoSuch duplications are extremely unlikely. 3061876df83SRuslan ErmilovIf the interface is already 3071876df83SRuslan Ermilovup when this option is used, it will be briefly brought down and 3081876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive 30996db02f2SAllan Judefilter in the underlying Ethernet hardware is properly reprogrammed. 3108fae3551SRodney W. Grimes.It Ar address_family 311e333b944SPhilippe CharnierSpecify the 312b09b4efbSRuslan Ermilovaddress family 3138fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters. 3148fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols 315e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended. 3168fae3551SRodney W. GrimesThe address or protocol families currently 3178fae3551SRodney W. Grimessupported are 318e05f2836SJulian Elischer.Dq inet , 319cfa1ca9dSYoshinobu Inoue.Dq inet6 , 3208fae3551SRodney W. Grimesand 3211876df83SRuslan Ermilov.Dq link . 3225af3fa9aSBjoern A. ZeebThe default if available is 3235af3fa9aSBjoern A. Zeeb.Dq inet 3245af3fa9aSBjoern A. Zeebor otherwise 3255af3fa9aSBjoern A. Zeeb.Dq link . 3261876df83SRuslan Ermilov.Dq ether 3271876df83SRuslan Ermilovand 3281876df83SRuslan Ermilov.Dq lladdr 3291876df83SRuslan Ermilovare synonyms for 3301876df83SRuslan Ermilov.Dq link . 3311d28cd26SAllan JudeWhen using the 3321d28cd26SAllan Jude.Fl l 3331d28cd26SAllan Judeflag, the 3341d28cd26SAllan Jude.Dq ether 3351d28cd26SAllan Judeaddress family has special meaning and is no longer synonymous with 3361d28cd26SAllan Jude.Dq link 3371d28cd26SAllan Judeor 3381d28cd26SAllan Jude.Dq lladdr . 3391d28cd26SAllan JudeSpecifying 3401d28cd26SAllan Jude.Fl l Dq ether 34196db02f2SAllan Judewill list only Ethernet interfaces, excluding all other interface types, 3421d28cd26SAllan Judeincluding the loopback interface. 343e333b944SPhilippe Charnier.It Ar dest_address 344e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end 345e333b944SPhilippe Charnierof a point to point link. 346e333b944SPhilippe Charnier.It Ar interface 347e333b944SPhilippe CharnierThis 3488fae3551SRodney W. Grimesparameter is a string of the form 3498fae3551SRodney W. Grimes.Dq name unit , 3508fae3551SRodney W. Grimesfor example, 351ffda6790SBrooks Davis.Dq Li em0 . 3528fae3551SRodney W. Grimes.El 3538fae3551SRodney W. Grimes.Pp 354f15eed7cSMateusz PiotrowskiThe 355f15eed7cSMateusz Piotrowski.Nm 356f15eed7cSMateusz Piotrowskiutility displays the current configuration for a network interface 357f15eed7cSMateusz Piotrowskiwhen no optional parameters are supplied. 358f15eed7cSMateusz PiotrowskiIf a protocol family is specified, 359f15eed7cSMateusz Piotrowski.Nm 360f15eed7cSMateusz Piotrowskiwill report only the details specific to that protocol family. 361f15eed7cSMateusz Piotrowski.Pp 362f15eed7cSMateusz PiotrowskiWhen no arguments are given, 363f15eed7cSMateusz Piotrowski.Fl a 364f15eed7cSMateusz Piotrowskiis implied. 365f15eed7cSMateusz Piotrowski.Pp 366f15eed7cSMateusz PiotrowskiOnly the super-user may modify the configuration of a network interface. 3670e2045b2SMateusz Piotrowski.Sh PARAMETERS 3680e2045b2SMateusz PiotrowskiThe following 3690e2045b2SMateusz Piotrowski.Ar parameter Ns s 3700e2045b2SMateusz Piotrowskimay be set with 3717c7fb079SRuslan Ermilov.Nm : 372e333b944SPhilippe Charnier.Bl -tag -width indent 373d6d1cb48SRobert Watson.It Cm add 374d0353b83SRuslan ErmilovAnother name for the 375d0353b83SRuslan Ermilov.Cm alias 376d0353b83SRuslan Ermilovparameter. 377d0353b83SRuslan ErmilovIntroduced for compatibility 378b09b4efbSRuslan Ermilovwith 379b09b4efbSRuslan Ermilov.Bsx . 3808fae3551SRodney W. Grimes.It Cm alias 3818fae3551SRodney W. GrimesEstablish an additional network address for this interface. 3828fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and 3838fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface. 38499aa831bSChris CostelloIf the address is on the same subnet as the first network address 385aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given. 386aaa34889SBrian SomersUsually 387b09b4efbSRuslan Ermilov.Li 0xffffffff 388aaa34889SBrian Somersis most appropriate. 389fac3d981SDavid E. O'Brien.It Fl alias 390fac3d981SDavid E. O'BrienRemove the network address specified. 391fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it 392fac3d981SDavid E. O'Brienwas no longer needed. 393fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect 394fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will 395fac3d981SDavid E. O'Brienallow you to respecify the host portion. 396cfa1ca9dSYoshinobu Inoue.It Cm anycast 397b09b4efbSRuslan Ermilov(Inet6 only.) 398cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address. 399cfa1ca9dSYoshinobu InoueBased on the current specification, 400cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses. 401cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing 402cfa1ca9dSYoshinobu InoueIPv6 packets. 4038fae3551SRodney W. Grimes.It Cm arp 404b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol 405b09b4efbSRuslan Ermilov.Pq Xr arp 4 406b09b4efbSRuslan Ermilovin mapping 4078fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default). 40844c4affaSMateusz PiotrowskiThis is currently implemented for mapping between DARPA Internet addresses 40944c4affaSMateusz Piotrowskiand IEEE 802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses). 4108fae3551SRodney W. Grimes.It Fl arp 411b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol 412b09b4efbSRuslan Ermilov.Pq Xr arp 4 . 413deb62e28SRuslan Ermilov.It Cm staticarp 414deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 415deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses, 416deb62e28SRuslan Ermilovand will never send any requests. 417deb62e28SRuslan Ermilov.It Fl staticarp 418deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 419deb62e28SRuslan Ermilovthe host will perform normally, 420deb62e28SRuslan Ermilovsending out requests and listening for replies. 4218fae3551SRodney W. Grimes.It Cm broadcast 422b09b4efbSRuslan Ermilov(Inet only.) 4238fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the 4248fae3551SRodney W. Grimesnetwork. 4258fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's. 4268fae3551SRodney W. Grimes.It Cm debug 4278fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on 4288fae3551SRodney W. Grimesextra console error logging. 4298fae3551SRodney W. Grimes.It Fl debug 4308fae3551SRodney W. GrimesDisable driver dependent debugging code. 431ffb079beSMaxim Sobolev.It Cm promisc 432ffb079beSMaxim SobolevPut interface into permanently promiscuous mode. 433ffb079beSMaxim Sobolev.It Fl promisc 434ffb079beSMaxim SobolevDisable permanently promiscuous mode. 4358fae3551SRodney W. Grimes.It Cm delete 436d0353b83SRuslan ErmilovAnother name for the 437d0353b83SRuslan Ermilov.Fl alias 438d0353b83SRuslan Ermilovparameter. 439215940b3SXin LI.It Cm description Ar value , Cm descr Ar value 440215940b3SXin LISpecify a description of the interface. 441215940b3SXin LIThis can be used to label interfaces in situations where they may 442215940b3SXin LIotherwise be difficult to distinguish. 443215940b3SXin LI.It Cm -description , Cm -descr 444215940b3SXin LIClear the interface description. 4458fae3551SRodney W. Grimes.It Cm down 446d0353b83SRuslan ErmilovMark an interface 447d0353b83SRuslan Ermilov.Dq down . 448d0353b83SRuslan ErmilovWhen an interface is marked 449d0353b83SRuslan Ermilov.Dq down , 450d0353b83SRuslan Ermilovthe system will not attempt to 4518fae3551SRodney W. Grimestransmit messages through that interface. 4528fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well. 4538fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface. 45448773728SEugene Grosbein.It Cm group Ar groupname 4550dad3f0eSMax LaierAssign the interface to a 4560dad3f0eSMax Laier.Dq group . 4570dad3f0eSMax LaierAny interface can be in multiple groups. 4580dad3f0eSMax Laier.Pp 4590dad3f0eSMax LaierCloned interfaces are members of their interface family group by default. 4600dad3f0eSMax LaierFor example, a PPP interface such as 4610dad3f0eSMax Laier.Em ppp0 4620dad3f0eSMax Laieris a member of the PPP interface family group, 4630dad3f0eSMax Laier.Em ppp . 4640dad3f0eSMax Laier.\" The interface(s) the default route(s) point to are members of the 4650dad3f0eSMax Laier.\" .Em egress 4660dad3f0eSMax Laier.\" interface group. 46748773728SEugene Grosbein.It Cm -group Ar groupname 4680dad3f0eSMax LaierRemove the interface from the given 4690dad3f0eSMax Laier.Dq group . 470331a2db8SHajimu UMEMOTO.It Cm eui64 471331a2db8SHajimu UMEMOTO(Inet6 only.) 472331a2db8SHajimu UMEMOTOFill interface index 473a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address) 474331a2db8SHajimu UMEMOTOautomatically. 47535fd7bc0SBjoern A. Zeeb.It Cm fib Ar fib_number 47635fd7bc0SBjoern A. ZeebSpecify interface FIB. 47735fd7bc0SBjoern A. ZeebA FIB 47835fd7bc0SBjoern A. Zeeb.Ar fib_number 47935fd7bc0SBjoern A. Zeebis assigned to all frames or packets received on that interface. 480818b39edSWarren BlockThe FIB is not inherited, e.g., vlans or other sub-interfaces will use 48135fd7bc0SBjoern A. Zeebthe default FIB (0) irrespective of the parent interface's FIB. 48235fd7bc0SBjoern A. ZeebThe kernel needs to be tuned to support more than the default FIB 48335fd7bc0SBjoern A. Zeebusing the 48435fd7bc0SBjoern A. Zeeb.Va ROUTETABLES 48535fd7bc0SBjoern A. Zeebkernel configuration option, or the 48635fd7bc0SBjoern A. Zeeb.Va net.fibs 48735fd7bc0SBjoern A. Zeebtunable. 488eccfe69aSAndrey V. Elsukov.It Cm tunnelfib Ar fib_number 489eccfe69aSAndrey V. ElsukovSpecify tunnel FIB. 490eccfe69aSAndrey V. ElsukovA FIB 491eccfe69aSAndrey V. Elsukov.Ar fib_number 492eccfe69aSAndrey V. Elsukovis assigned to all packets encapsulated by tunnel interface, e.g., 493eccfe69aSAndrey V. Elsukov.Xr gif 4 494eccfe69aSAndrey V. Elsukovand 495eccfe69aSAndrey V. Elsukov.Xr gre 4 . 49676b4b15fSChris Costello.It Cm maclabel Ar label 49776b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel, 49876b4b15fSChris Costelloset the MAC label to 49976b4b15fSChris Costello.Ar label . 50076b4b15fSChris Costello.\" (see 50176b4b15fSChris Costello.\" .Xr maclabel 7 ) . 502b5436146SPeter Wemm.It Cm media Ar type 503920de530SPeter WemmIf the driver supports the media selection system, set the media type 504920de530SPeter Wemmof the interface to 505b5436146SPeter Wemm.Ar type . 506b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several 507b09b4efbSRuslan Ermilovdifferent physical media connectors. 5084e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet 50944c4affaSMateusz Piotrowskiinterface might support the use of either AUI 510b09b4efbSRuslan Ermilovor twisted pair connectors. 511b09b4efbSRuslan ErmilovSetting the media type to 5124e9e907dSRuslan Ermilov.Cm 10base5/AUI 513b5436146SPeter Wemmwould change the currently active connector to the AUI port. 514b5436146SPeter WemmSetting it to 5154e9e907dSRuslan Ermilov.Cm 10baseT/UTP 516b09b4efbSRuslan Ermilovwould activate twisted pair. 517b09b4efbSRuslan ErmilovRefer to the interfaces' driver 518920de530SPeter Wemmspecific documentation or man page for a complete list of the 519920de530SPeter Wemmavailable types. 520b5436146SPeter Wemm.It Cm mediaopt Ar opts 521920de530SPeter WemmIf the driver supports the media selection system, set the specified 522920de530SPeter Wemmmedia options on the interface. 523b09b4efbSRuslan ErmilovThe 524b09b4efbSRuslan Ermilov.Ar opts 525b09b4efbSRuslan Ermilovargument 526b5436146SPeter Wemmis a comma delimited list of options to apply to the interface. 527b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete 528b5436146SPeter Wemmlist of available options. 529b5436146SPeter Wemm.It Fl mediaopt Ar opts 530920de530SPeter WemmIf the driver supports the media selection system, disable the 531920de530SPeter Wemmspecified media options on the interface. 532e519b1a5SSam Leffler.It Cm mode Ar mode 533e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified 534e519b1a5SSam Leffleroperating mode on the interface to 535e519b1a5SSam Leffler.Ar mode . 536e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes 537eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a 5384e9e907dSRuslan Ermilov.Pq Cm 11a , 539eb9a85caSRuslan Ermilov802.11b 5404e9e907dSRuslan Ermilov.Pq Cm 11b , 541eb9a85caSRuslan Ermilovand 802.11g 5424e9e907dSRuslan Ermilov.Pq Cm 11g 543e519b1a5SSam Leffleroperating modes. 544f3e7afe2SHans Petter Selasky.It Cm txrtlmt 545f3e7afe2SHans Petter SelaskySet if the driver supports TX rate limiting. 54611139493SMarius Strobl.It Cm inst Ar minst , Cm instance Ar minst 54711139493SMarius StroblSet the media instance to 54811139493SMarius Strobl.Ar minst . 54911139493SMarius StroblThis is useful for devices which have multiple physical layer interfaces 55011139493SMarius Strobl.Pq PHYs . 55197bebf0aSBrooks Davis.It Cm name Ar name 55297bebf0aSBrooks DavisSet the interface name to 55397bebf0aSBrooks Davis.Ar name . 554356ab07eSBjoern A. Zeeb.It Cm rxcsum , txcsum , rxcsum6 , txcsum6 5558fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 5568fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface. 557356ab07eSBjoern A. ZeebThe feature can be turned on selectively per protocol family. 558356ab07eSBjoern A. ZeebUse 559356ab07eSBjoern A. Zeeb.Cm rxcsum6 , txcsum6 560356ab07eSBjoern A. Zeebfor 561356ab07eSBjoern A. Zeeb.Xr ip6 4 562356ab07eSBjoern A. Zeebor 563356ab07eSBjoern A. Zeeb.Cm rxcsum , txcsum 564356ab07eSBjoern A. Zeebotherwise. 5658fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently 5668fbad60dSRuslan Ermilovof each other, so setting one may also set the other. 5678fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably 5688fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers. 569356ab07eSBjoern A. Zeeb.It Fl rxcsum , txcsum , rxcsum6 , txcsum6 5708fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 5718fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface. 572356ab07eSBjoern A. ZeebThe feature can be turned off selectively per protocol family. 573356ab07eSBjoern A. ZeebUse 574356ab07eSBjoern A. Zeeb.Fl rxcsum6 , txcsum6 575356ab07eSBjoern A. Zeebfor 576356ab07eSBjoern A. Zeeb.Xr ip6 4 577356ab07eSBjoern A. Zeebor 578356ab07eSBjoern A. Zeeb.Fl rxcsum , txcsum 579356ab07eSBjoern A. Zeebotherwise. 5808fbad60dSRuslan ErmilovThese settings may not always be independent of each other. 581d7097da4SAndre Oppermann.It Cm tso 582d7097da4SAndre OppermannIf the driver supports 583d7097da4SAndre Oppermann.Xr tcp 4 584d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface. 585d7097da4SAndre OppermannSome drivers may not be able to support TSO for 586d7097da4SAndre Oppermann.Xr ip 4 587d7097da4SAndre Oppermannand 588d7097da4SAndre Oppermann.Xr ip6 4 589d7097da4SAndre Oppermannpackets, so they may enable only one of them. 590d7097da4SAndre Oppermann.It Fl tso 591d7097da4SAndre OppermannIf the driver supports 592d7097da4SAndre Oppermann.Xr tcp 4 593d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface. 594d7097da4SAndre OppermannIt will always disable TSO for 595d7097da4SAndre Oppermann.Xr ip 4 596d7097da4SAndre Oppermannand 597d7097da4SAndre Oppermann.Xr ip6 4 . 5981623284fSBjoern A. Zeeb.It Cm tso6 , tso4 5991623284fSBjoern A. ZeebIf the driver supports 6001623284fSBjoern A. Zeeb.Xr tcp 4 6011623284fSBjoern A. Zeebsegmentation offloading for 6021623284fSBjoern A. Zeeb.Xr ip6 4 6031623284fSBjoern A. Zeebor 6041623284fSBjoern A. Zeeb.Xr ip 4 6051623284fSBjoern A. Zeebuse one of these to selectively enabled it only for one protocol family. 6061623284fSBjoern A. Zeeb.It Fl tso6 , tso4 6071623284fSBjoern A. ZeebIf the driver supports 6081623284fSBjoern A. Zeeb.Xr tcp 4 6091623284fSBjoern A. Zeebsegmentation offloading for 6101623284fSBjoern A. Zeeb.Xr ip6 4 6111623284fSBjoern A. Zeebor 6121623284fSBjoern A. Zeeb.Xr ip 4 6131623284fSBjoern A. Zeebuse one of these to selectively disable it only for one protocol family. 614a6575bfcSAndre Oppermann.It Cm lro 615a6575bfcSAndre OppermannIf the driver supports 616a6575bfcSAndre Oppermann.Xr tcp 4 617a6575bfcSAndre Oppermannlarge receive offloading, enable LRO on the interface. 618a6575bfcSAndre Oppermann.It Fl lro 619a6575bfcSAndre OppermannIf the driver supports 620a6575bfcSAndre Oppermann.Xr tcp 4 621a6575bfcSAndre Oppermannlarge receive offloading, disable LRO on the interface. 622b2e60773SJohn Baldwin.It Cm txtls 623b2e60773SJohn BaldwinTransmit TLS offload encrypts Transport Layer Security (TLS) records and 624b2e60773SJohn Baldwinsegments the encrypted record into one or more 625b2e60773SJohn Baldwin.Xr tcp 4 626b2e60773SJohn Baldwinsegments over either 627b2e60773SJohn Baldwin.Xr ip 4 628b2e60773SJohn Baldwinor 629b2e60773SJohn Baldwin.Xr ip6 4 . 630b2e60773SJohn BaldwinIf the driver supports transmit TLS offload, 631b2e60773SJohn Baldwinenable transmit TLS offload on the interface. 632b2e60773SJohn BaldwinSome drivers may not be able to support transmit TLS offload for 633b2e60773SJohn Baldwin.Xr ip 4 634b2e60773SJohn Baldwinand 635b2e60773SJohn Baldwin.Xr ip6 4 636b2e60773SJohn Baldwinpackets, so they may enable only one of them. 637b2e60773SJohn Baldwin.It Fl txtls 638b2e60773SJohn BaldwinIf the driver supports transmit TLS offload, 639b2e60773SJohn Baldwindisable transmit TLS offload on the interface. 640b2e60773SJohn BaldwinIt will always disable TLS for 641b2e60773SJohn Baldwin.Xr ip 4 642b2e60773SJohn Baldwinand 643b2e60773SJohn Baldwin.Xr ip6 4 . 644521eac97SJohn Baldwin.It Cm txtlsrtlmt 645521eac97SJohn BaldwinEnable use of rate limiting (packet pacing) for TLS offload. 646521eac97SJohn Baldwin.It Fl txtlsrtlmt 647521eac97SJohn BaldwinDisable use of rate limiting for TLS offload. 6483f43ada9SGleb Smirnoff.It Cm mextpg 6493f43ada9SGleb SmirnoffIf the driver supports extended multi-page 6503f43ada9SGleb Smirnoff.Xr mbuf 9 6513f43ada9SGleb Smirnoffbuffers, enable them on the interface. 6523f43ada9SGleb Smirnoff.It Fl mextpg 6533f43ada9SGleb SmirnoffIf the driver supports extended multi-page 6543f43ada9SGleb Smirnoff.Xr mbuf 9 6553f43ada9SGleb Smirnoffbiffers, disable them on the interface. 656de0abf19SSam Leffler.It Cm wol , wol_ucast , wol_mcast , wol_magic 657de0abf19SSam LefflerEnable Wake On Lan (WOL) support, if available. 658de0abf19SSam LefflerWOL is a facility whereby a machine in a low power state may be woken 659de0abf19SSam Lefflerin response to a received packet. 660de0abf19SSam LefflerThere are three types of packets that may wake a system: 661de0abf19SSam Lefflerucast (directed solely to the machine's mac address), 662de0abf19SSam Lefflermcast (directed to a broadcast or multicast address), 663de0abf19SSam Leffleror 664*67d77afbSMateusz Piotrowskimagic 665*67d77afbSMateusz Piotrowski.Po unicast or multicast frames with a 666*67d77afbSMateusz Piotrowski.Dq magic contents Pc . 667de0abf19SSam LefflerNot all devices support WOL, those that do indicate the mechanisms 668de0abf19SSam Lefflerthey support in their capabilities. 669de0abf19SSam Leffler.Cm wol 670de0abf19SSam Leffleris a synonym for enabling all available WOL mechanisms. 671de0abf19SSam LefflerTo disable WOL use 672de0abf19SSam Leffler.Fl wol . 6739b776960SBjoern A. Zeeb.It Cm vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso 674163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable 6750f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 6769b776960SBjoern A. Zeebframe filtering in hardware, checksum offloading, or TSO on VLAN, 677163653e8SYaroslav Tykhiyrespectively. 678830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with 679163653e8SYaroslav Tykhiy.Xr vlan 4 , 680163653e8SYaroslav Tykhiynot on a 681163653e8SYaroslav Tykhiy.Xr vlan 4 682163653e8SYaroslav Tykhiyinterface itself. 68355b0acc0SZhenlei Huang.It Fl vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso 684163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable 6850f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 68655b0acc0SZhenlei Huangframe filtering in hardware, checksum offloading, or TSO on VLAN, 687163653e8SYaroslav Tykhiyrespectively. 688830edb45SNavdeep Parhar.It Cm vxlanhwcsum , vxlanhwtso 689830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, enable inner checksum 690830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively. 691830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with 692830edb45SNavdeep Parhar.Xr vxlan 4 , 693830edb45SNavdeep Parharnot on a 694830edb45SNavdeep Parhar.Xr vxlan 4 695830edb45SNavdeep Parharinterface itself. 696830edb45SNavdeep ParharThe physical interface is either the interface specified as the vxlandev 697830edb45SNavdeep Parharor the interface hosting the vxlanlocal address. 698830edb45SNavdeep ParharThe driver will offload as much checksum work and TSO as it can reliably 699830edb45SNavdeep Parharsupport, the exact level of offloading may vary between drivers. 700830edb45SNavdeep Parhar.It Fl vxlanhwcsum , vxlanhwtso 701830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, disable checksum 702830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively. 7035061de23SJamie Gritton.It Cm vnet Ar jail 7045061de23SJamie GrittonMove the interface to the 7055061de23SJamie Gritton.Xr jail 8 , 7065061de23SJamie Grittonspecified by name or JID. 7075061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 7085061de23SJamie Grittonfrom the current environment and become visible to the jail. 7095061de23SJamie Gritton.It Fl vnet Ar jail 7105061de23SJamie GrittonReclaim the interface from the 7115061de23SJamie Gritton.Xr jail 8 , 7125061de23SJamie Grittonspecified by name or JID. 7135061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 7145061de23SJamie Grittonfrom the jail, and become visible to the current network environment. 7153a3b019aSRuslan Ermilov.It Cm polling 7161f8f09b0SGleb SmirnoffTurn on 7173a3b019aSRuslan Ermilov.Xr polling 4 7181f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports 7191f8f09b0SGleb Smirnoffthis mode. 7203a3b019aSRuslan Ermilov.It Fl polling 7211f8f09b0SGleb SmirnoffTurn off 7223a3b019aSRuslan Ermilov.Xr polling 4 7231f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface. 7243e61dca0SBrooks Davis.It Cm create 7253e61dca0SBrooks DavisCreate the specified network pseudo-device. 7263e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new 7273e61dca0SBrooks Davisdevice with an arbitrary unit number. 728525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is 72997bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed 73097bebf0aSBrooks Davisin the same 73197bebf0aSBrooks Davis.Nm 73297bebf0aSBrooks Davisinvocation. 7333e61dca0SBrooks Davis.It Cm destroy 7343e61dca0SBrooks DavisDestroy the specified network pseudo-device. 7353e61dca0SBrooks Davis.It Cm plumb 7363e61dca0SBrooks DavisAnother name for the 737b8a7fd3fSYaroslav Tykhiy.Cm create 7383e61dca0SBrooks Davisparameter. 73944c4affaSMateusz PiotrowskiIncluded for Solaris compatibility. 7403e61dca0SBrooks Davis.It Cm unplumb 7413e61dca0SBrooks DavisAnother name for the 742b8a7fd3fSYaroslav Tykhiy.Cm destroy 7433e61dca0SBrooks Davisparameter. 74444c4affaSMateusz PiotrowskiIncluded for Solaris compatibility. 7458fae3551SRodney W. Grimes.It Cm metric Ar n 7468fae3551SRodney W. GrimesSet the routing metric of the interface to 7478fae3551SRodney W. Grimes.Ar n , 7488fae3551SRodney W. Grimesdefault 0. 7498fae3551SRodney W. GrimesThe routing metric is used by the routing protocol 7508fae3551SRodney W. Grimes.Pq Xr routed 8 . 7518fae3551SRodney W. GrimesHigher metrics have the effect of making a route 75209a66bdaSJens Schweikhardtless favorable; metrics are counted as additional hops 7538fae3551SRodney W. Grimesto the destination network or host. 7544db32b03SDavid Greenman.It Cm mtu Ar n 7554db32b03SDavid GreenmanSet the maximum transmission unit of the interface to 7564db32b03SDavid Greenman.Ar n , 7574db32b03SDavid Greenmandefault is interface specific. 758b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an 7594db32b03SDavid Greenmaninterface. 760b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have 7614db32b03SDavid Greenmanrange restrictions. 7628fae3551SRodney W. Grimes.It Cm netmask Ar mask 763b09b4efbSRuslan Ermilov.\" (Inet and ISO.) 764b09b4efbSRuslan Ermilov(Inet only.) 7658fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing 7668fae3551SRodney W. Grimesnetworks into sub-networks. 7678fae3551SRodney W. GrimesThe mask includes the network part of the local address 7688fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address. 7698fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number 770b09b4efbSRuslan Ermilovwith a leading 771b09b4efbSRuslan Ermilov.Ql 0x , 772b09b4efbSRuslan Ermilovwith a dot-notation Internet address, 7738fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table 7748fae3551SRodney W. Grimes.Xr networks 5 . 7758fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address 7768fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts, 7778fae3551SRodney W. Grimesand 0's for the host part. 7788fae3551SRodney W. GrimesThe mask should contain at least the standard network portion, 7798fae3551SRodney W. Grimesand the subnet field should be contiguous with the network 7808fae3551SRodney W. Grimesportion. 78112813062SJesper Skriver.Pp 78212813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address. 78312813062SJesper SkriverSee the 78412813062SJesper Skriver.Ar address 78512813062SJesper Skriveroption above for more information. 786cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len 787b09b4efbSRuslan Ermilov(Inet6 only.) 788cfa1ca9dSYoshinobu InoueSpecify that 789cfa1ca9dSYoshinobu Inoue.Ar len 790cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks. 791cfa1ca9dSYoshinobu InoueThe 792cfa1ca9dSYoshinobu Inoue.Ar len 793cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128. 794cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule. 795bfc03b18SStephen McKayIf the parameter is omitted, 64 is used. 7969f1741caSRuslan Ermilov.Pp 7979f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address. 7989f1741caSRuslan ErmilovSee the 7999f1741caSRuslan Ermilov.Ar address 8009f1741caSRuslan Ermilovoption above for more information. 801d6d1cb48SRobert Watson.It Cm remove 802d0353b83SRuslan ErmilovAnother name for the 803d0353b83SRuslan Ermilov.Fl alias 804d0353b83SRuslan Ermilovparameter. 805d0353b83SRuslan ErmilovIntroduced for compatibility 806b09b4efbSRuslan Ermilovwith 807b09b4efbSRuslan Ermilov.Bsx . 808b09b4efbSRuslan Ermilov.Sm off 809b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2 810b09b4efbSRuslan Ermilov.Sm on 8118fae3551SRodney W. GrimesEnable special processing of the link level of the interface. 8128fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however, 813ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation. 814ef8f7ac9SSheldon HearnAn example 815b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type 816b09b4efbSRuslan Ermilovfor some Ethernet cards. 817b09b4efbSRuslan ErmilovRefer to the man page for the specific driver 818b5436146SPeter Wemmfor more information. 819b09b4efbSRuslan Ermilov.Sm off 820b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2 821b09b4efbSRuslan Ermilov.Sm on 8228fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface. 823afbe3a0fSPoul-Henning Kamp.It Cm monitor 824afbe3a0fSPoul-Henning KampPut the interface in monitor mode. 8253706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after 826afbe3a0fSPoul-Henning Kamp.Xr bpf 4 827afbe3a0fSPoul-Henning Kampprocessing. 828afbe3a0fSPoul-Henning Kamp.It Fl monitor 829afbe3a0fSPoul-Henning KampTake the interface out of monitor mode. 830a521fa63SJohn-Mark Gurney.It Cm pcp Ar priority_code_point 831a521fa63SJohn-Mark GurneyPriority code point 832a521fa63SJohn-Mark Gurney.Pq Dv PCP 833a521fa63SJohn-Mark Gurneyis an 3-bit field which refers to the IEEE 802.1p 834a521fa63SJohn-Mark Gurneyclass of service and maps to the frame priority level. 835a521fa63SJohn-Mark Gurney.It Fl pcp 836a521fa63SJohn-Mark GurneyStop tagging packets on the interface w/ the priority code point. 8378fae3551SRodney W. Grimes.It Cm up 838e333b944SPhilippe CharnierMark an interface 839e333b944SPhilippe Charnier.Dq up . 840e333b944SPhilippe CharnierThis may be used to enable an interface after an 841b09b4efbSRuslan Ermilov.Dq Nm Cm down . 8428fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface. 8438fae3551SRodney W. GrimesIf the interface was reset when previously marked down, 8448fae3551SRodney W. Grimesthe hardware will be re-initialized. 8455faf8dcbSSam Leffler.El 8460e2045b2SMateusz Piotrowski.Ss ICMPv6 Neighbor Discovery Protocol Parameters 847f6ac2391SJoel DahlThe following parameters are for ICMPv6 Neighbor Discovery Protocol. 8482e77c5abSHiroki SatoNote that the address family keyword 8492e77c5abSHiroki Sato.Dq Li inet6 8502e77c5abSHiroki Satois needed for them: 851a283298cSHiroki Sato.Bl -tag -width indent 852a283298cSHiroki Sato.It Cm accept_rtadv 853a283298cSHiroki SatoSet a flag to enable accepting ICMPv6 Router Advertisement messages. 8545ed65977SHiroki SatoThe 8555ed65977SHiroki Sato.Xr sysctl 8 8565ed65977SHiroki Satovariable 8575ed65977SHiroki Sato.Va net.inet6.ip6.accept_rtadv 8585ed65977SHiroki Satocontrols whether this flag is set by default or not. 859a283298cSHiroki Sato.It Cm -accept_rtadv 860a283298cSHiroki SatoClear a flag 861a283298cSHiroki Sato.Cm accept_rtadv . 8625ed65977SHiroki Sato.It Cm no_radr 8635ed65977SHiroki SatoSet a flag to control whether routers from which the system accepts 8645ed65977SHiroki SatoRouter Advertisement messages will be added to the Default Router List 8655ed65977SHiroki Satoor not. 8665ed65977SHiroki SatoWhen the 8675ed65977SHiroki Sato.Cm accept_rtadv 8685ed65977SHiroki Satoflag is disabled, this flag has no effect. 8695ed65977SHiroki SatoThe 8705ed65977SHiroki Sato.Xr sysctl 8 8715ed65977SHiroki Satovariable 8725ed65977SHiroki Sato.Va net.inet6.ip6.no_radr 8735ed65977SHiroki Satocontrols whether this flag is set by default or not. 8745ed65977SHiroki Sato.It Cm -no_radr 8755ed65977SHiroki SatoClear a flag 8765ed65977SHiroki Sato.Cm no_radr . 877a283298cSHiroki Sato.It Cm auto_linklocal 878a283298cSHiroki SatoSet a flag to perform automatic link-local address configuration when 879a53bb70bSJoel Dahlthe interface becomes available. 8805ed65977SHiroki SatoThe 8815ed65977SHiroki Sato.Xr sysctl 8 8825ed65977SHiroki Satovariable 8835ed65977SHiroki Sato.Va net.inet6.ip6.auto_linklocal 8845ed65977SHiroki Satocontrols whether this flag is set by default or not. 885a283298cSHiroki Sato.It Cm -auto_linklocal 886a283298cSHiroki SatoClear a flag 887a283298cSHiroki Sato.Cm auto_linklocal . 888a283298cSHiroki Sato.It Cm defaultif 889a283298cSHiroki SatoSet the specified interface as the default route when there is no 890a283298cSHiroki Satodefault router. 891a283298cSHiroki Sato.It Cm -defaultif 892a283298cSHiroki SatoClear a flag 893a283298cSHiroki Sato.Cm defaultif . 894a283298cSHiroki Sato.It Cm ifdisabled 895a283298cSHiroki SatoSet a flag to disable all of IPv6 network communications on the 89696db02f2SAllan Judespecified interface. 89796db02f2SAllan JudeNote that if there are already configured IPv6 8982e77c5abSHiroki Satoaddresses on that interface, all of them are marked as 8992e77c5abSHiroki Sato.Dq tentative 9002e77c5abSHiroki Satoand DAD will be performed when this flag is cleared. 901a283298cSHiroki Sato.It Cm -ifdisabled 902a283298cSHiroki SatoClear a flag 903a283298cSHiroki Sato.Cm ifdisabled . 904a283298cSHiroki SatoWhen this flag is cleared and 905a283298cSHiroki Sato.Cm auto_linklocal 906a283298cSHiroki Satoflag is enabled, automatic configuration of a link-local address is 907a283298cSHiroki Satoperformed. 908a283298cSHiroki Sato.It Cm nud 909a283298cSHiroki SatoSet a flag to enable Neighbor Unreachability Detection. 910a283298cSHiroki Sato.It Cm -nud 911a283298cSHiroki SatoClear a flag 912a283298cSHiroki Sato.Cm nud . 913164051ceSHajimu UMEMOTO.It Cm no_prefer_iface 9140c7b5530SJeremie Le HenSet a flag to not honor rule 5 of source address selection in RFC 3484. 9150c7b5530SJeremie Le HenIn practice this means the address on the outgoing interface will not be 9160c7b5530SJeremie Le Henpreferred, effectively yielding the decision to the address selection 9170c7b5530SJeremie Le Henpolicy table, configurable with 9180c7b5530SJeremie Le Hen.Xr ip6addrctl 8 . 919164051ceSHajimu UMEMOTO.It Cm -no_prefer_iface 920164051ceSHajimu UMEMOTOClear a flag 921164051ceSHajimu UMEMOTO.Cm no_prefer_iface . 92223e9ffb0SHiroki Sato.It Cm no_dad 92323e9ffb0SHiroki SatoSet a flag to disable Duplicate Address Detection. 92423e9ffb0SHiroki Sato.It Cm -no_dad 92523e9ffb0SHiroki SatoClear a flag 92623e9ffb0SHiroki Sato.Cm no_dad . 927a283298cSHiroki Sato.El 9280e2045b2SMateusz Piotrowski.Ss IPv6 Parameters 9295dbfa43fSAndrey V. ElsukovThe following parameters are specific for IPv6 addresses. 9305dbfa43fSAndrey V. ElsukovNote that the address family keyword 9315dbfa43fSAndrey V. Elsukov.Dq Li inet6 9325dbfa43fSAndrey V. Elsukovis needed for them: 9335dbfa43fSAndrey V. Elsukov.Bl -tag -width indent 934a6c0b9d0SEdward Tomasz Napierala.It Cm autoconf 935a6c0b9d0SEdward Tomasz NapieralaSet the IPv6 autoconfigured address bit. 936a6c0b9d0SEdward Tomasz Napierala.It Fl autoconf 937a6c0b9d0SEdward Tomasz NapieralaClear the IPv6 autoconfigured address bit. 93867135128SAllan Jude.It Cm deprecated 93967135128SAllan JudeSet the IPv6 deprecated address bit. 94067135128SAllan Jude.It Fl deprecated 94167135128SAllan JudeClear the IPv6 deprecated address bit. 94267135128SAllan Jude.It Cm pltime Ar n 94367135128SAllan JudeSet preferred lifetime for the address. 9445dbfa43fSAndrey V. Elsukov.It Cm prefer_source 9455dbfa43fSAndrey V. ElsukovSet a flag to prefer address as a candidate of the source address for 9465dbfa43fSAndrey V. Elsukovoutgoing packets. 9475dbfa43fSAndrey V. Elsukov.It Cm -prefer_source 9485dbfa43fSAndrey V. ElsukovClear a flag 9495dbfa43fSAndrey V. Elsukov.Cm prefer_source . 95067135128SAllan Jude.It Cm vltime Ar n 95167135128SAllan JudeSet valid lifetime for the address. 9525dbfa43fSAndrey V. Elsukov.El 9530e2045b2SMateusz Piotrowski.Ss IEEE 802.11 Wireless Interfaces Cloning Parameters 954b032f27cSSam LefflerThe following parameters are specific to cloning 955b032f27cSSam LefflerIEEE 802.11 wireless interfaces with the 956b032f27cSSam Leffler.Cm create 957b032f27cSSam Lefflerrequest: 9585faf8dcbSSam Leffler.Bl -tag -width indent 959b032f27cSSam Leffler.It Cm wlandev Ar device 960b032f27cSSam LefflerUse 961b032f27cSSam Leffler.Ar device 962b032f27cSSam Leffleras the parent for the cloned device. 963b032f27cSSam Leffler.It Cm wlanmode Ar mode 964b032f27cSSam LefflerSpecify the operating mode for this cloned device. 965b032f27cSSam Leffler.Ar mode 966b032f27cSSam Leffleris one of 967b032f27cSSam Leffler.Cm sta , 968b032f27cSSam Leffler.Cm ahdemo 969b032f27cSSam Leffler(or 970b032f27cSSam Leffler.Cm adhoc-demo ) , 971527d10a5SMateusz Piotrowski.Cm ibss 972b032f27cSSam Leffler(or 973b032f27cSSam Leffler.Cm adhoc ) , 974527d10a5SMateusz Piotrowski.Cm ap 975b032f27cSSam Leffler(or 976b032f27cSSam Leffler.Cm hostap ) , 977b032f27cSSam Leffler.Cm wds , 97810ad9a77SSam Leffler.Cm tdma , 97959aa14a9SRui Paulo.Cm mesh , 980b032f27cSSam Lefflerand 981b032f27cSSam Leffler.Cm monitor . 982b032f27cSSam LefflerThe operating mode of a cloned interface cannot be changed. 98310ad9a77SSam LefflerThe 98410ad9a77SSam Leffler.Cm tdma 98510ad9a77SSam Lefflermode is actually implemented as an 98610ad9a77SSam Leffler.Cm adhoc-demo 98710ad9a77SSam Lefflerinterface with special properties. 988b032f27cSSam Leffler.It Cm wlanbssid Ar bssid 989b032f27cSSam LefflerThe 802.11 mac address to use for the bssid. 990b032f27cSSam LefflerThis must be specified at create time for a legacy 991b032f27cSSam Leffler.Cm wds 992b032f27cSSam Lefflerdevice. 993b032f27cSSam Leffler.It Cm wlanaddr Ar address 994b032f27cSSam LefflerThe local mac address. 995b032f27cSSam LefflerIf this is not specified then a mac address will automatically be assigned 996b032f27cSSam Lefflerto the cloned device. 997b032f27cSSam LefflerTypically this address is the same as the address of the parent device 998b032f27cSSam Lefflerbut if the 999b032f27cSSam Leffler.Cm bssid 1000b032f27cSSam Lefflerparameter is specified then the driver will craft a unique address for 1001b032f27cSSam Lefflerthe device (if supported). 1002b032f27cSSam Leffler.It Cm wdslegacy 1003b032f27cSSam LefflerMark a 1004b032f27cSSam Leffler.Cm wds 1005*67d77afbSMateusz Piotrowskidevice as operating in 1006*67d77afbSMateusz Piotrowski.Dq legacy mode . 1007b032f27cSSam LefflerLegacy 1008b032f27cSSam Leffler.Cm wds 1009b032f27cSSam Lefflerdevices have a fixed peer relationship and do not, for example, roam 1010b032f27cSSam Lefflerif their peer stops communicating. 1011b032f27cSSam LefflerFor completeness a Dynamic WDS (DWDS) interface may marked as 1012b032f27cSSam Leffler.Fl wdslegacy . 1013b032f27cSSam Leffler.It Cm bssid 1014b032f27cSSam LefflerRequest a unique local mac address for the cloned device. 1015b032f27cSSam LefflerThis is only possible if the device supports multiple mac addresses. 1016b032f27cSSam LefflerTo force use of the parent's mac address use 1017b032f27cSSam Leffler.Fl bssid . 1018b032f27cSSam Leffler.It Cm beacons 1019b032f27cSSam LefflerMark the cloned interface as depending on hardware support to 1020b032f27cSSam Lefflertrack received beacons. 1021b032f27cSSam LefflerTo have beacons tracked in software use 1022b032f27cSSam Leffler.Fl beacons . 1023b032f27cSSam LefflerFor 1024b032f27cSSam Leffler.Cm hostap 1025b032f27cSSam Lefflermode 1026b032f27cSSam Leffler.Fl beacons 1027b032f27cSSam Lefflercan also be used to indicate no beacons should 1028b032f27cSSam Lefflerbe transmitted; this can be useful when creating a WDS configuration but 1029b032f27cSSam Leffler.Cm wds 1030b032f27cSSam Lefflerinterfaces can only be created as companions to an access point. 1031b032f27cSSam Leffler.El 10320e2045b2SMateusz Piotrowski.Ss Cloned IEEE 802.11 Wireless Interface Parameters 1033b032f27cSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces 1034b032f27cSSam Lefflercloned with a 1035b032f27cSSam Leffler.Cm create 1036b032f27cSSam Leffleroperation: 1037b032f27cSSam Leffler.Bl -tag -width indent 1038b032f27cSSam Leffler.It Cm ampdu 1039b032f27cSSam LefflerEnable sending and receiving AMPDU frames when using 802.11n (default). 1040b032f27cSSam LefflerThe 802.11n specification states a compliant station must be capable 1041a53bb70bSJoel Dahlof receiving AMPDU frames but transmission is optional. 1042b032f27cSSam LefflerUse 1043b032f27cSSam Leffler.Fl ampdu 1044b032f27cSSam Lefflerto disable all use of AMPDU with 802.11n. 1045b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 1046b032f27cSSam Leffler.Cm ampdutx 1047b032f27cSSam Lefflerand 1048b032f27cSSam Leffler.Cm ampdurx 1049b032f27cSSam Lefflerto control use of AMPDU in one direction. 1050b032f27cSSam Leffler.It Cm ampdudensity Ar density 1051b032f27cSSam LefflerSet the AMPDU density parameter used when operating with 802.11n. 1052b032f27cSSam LefflerThis parameter controls the inter-packet gap for AMPDU frames. 1053b032f27cSSam LefflerThe sending device normally controls this setting but a receiving station 1054b032f27cSSam Lefflermay request wider gaps. 1055b032f27cSSam LefflerLegal values for 1056b032f27cSSam Leffler.Ar density 1057b032f27cSSam Lefflerare 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds). 1058b032f27cSSam LefflerA value of 1059b032f27cSSam Leffler.Cm - 1060b032f27cSSam Leffleris treated the same as 0. 1061b032f27cSSam Leffler.It Cm ampdulimit Ar limit 1062b032f27cSSam LefflerSet the limit on packet size for receiving AMPDU frames when operating 1063b032f27cSSam Lefflerwith 802.11n. 1064b032f27cSSam LefflerLegal values for 1065b032f27cSSam Leffler.Ar limit 1066b032f27cSSam Lefflerare 8192, 16384, 32768, and 65536 but one can also specify 1067b032f27cSSam Lefflerjust the unique prefix: 8, 16, 32, 64. 1068b032f27cSSam LefflerNote the sender may limit the size of AMPDU frames to be less 1069b032f27cSSam Lefflerthan the maximum specified by the receiving station. 1070b032f27cSSam Leffler.It Cm amsdu 1071b032f27cSSam LefflerEnable sending and receiving AMSDU frames when using 802.11n. 1072b032f27cSSam LefflerBy default AMSDU is received but not transmitted. 1073b032f27cSSam LefflerUse 1074b032f27cSSam Leffler.Fl amsdu 1075b032f27cSSam Lefflerto disable all use of AMSDU with 802.11n. 1076b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 1077b032f27cSSam Leffler.Cm amsdutx 1078b032f27cSSam Lefflerand 1079b032f27cSSam Leffler.Cm amsdurx 1080b032f27cSSam Lefflerto control use of AMSDU in one direction. 1081b032f27cSSam Leffler.It Cm amsdulimit Ar limit 1082b032f27cSSam LefflerSet the limit on packet size for sending and receiving AMSDU frames 1083b032f27cSSam Lefflerwhen operating with 802.11n. 1084b032f27cSSam LefflerLegal values for 1085b032f27cSSam Leffler.Ar limit 1086b032f27cSSam Lefflerare 7935 and 3839 (bytes). 1087b032f27cSSam LefflerNote the sender may limit the size of AMSDU frames to be less 1088b032f27cSSam Lefflerthan the maximum specified by the receiving station. 1089b032f27cSSam LefflerNote also that devices are not required to support the 7935 limit, 1090b032f27cSSam Leffleronly 3839 is required by the specification and the larger value 1091b032f27cSSam Lefflermay require more memory to be dedicated to support functionality 1092b032f27cSSam Lefflerthat is rarely used. 10935faf8dcbSSam Leffler.It Cm apbridge 109421414470SRuslan ErmilovWhen operating as an access point, pass packets between 10955faf8dcbSSam Lefflerwireless clients directly (default). 10965faf8dcbSSam LefflerTo instead let them pass up through the 109721414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use 109821414470SRuslan Ermilov.Fl apbridge . 10995faf8dcbSSam LefflerDisabling the internal bridging 11005faf8dcbSSam Leffleris useful when traffic is to be processed with 11015faf8dcbSSam Lefflerpacket filtering. 1102419d8080SPoul-Henning Kamp.It Cm authmode Ar mode 11035faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode. 1104b032f27cSSam LefflerNot all adapters support all modes. 1105b09b4efbSRuslan ErmilovThe set of 1106419d8080SPoul-Henning Kampvalid modes is 11074e9e907dSRuslan Ermilov.Cm none , open , shared 110821414470SRuslan Ermilov(shared key), 11094e9e907dSRuslan Ermilov.Cm 8021x 111021414470SRuslan Ermilov(IEEE 802.1x), 1111aeffcba3SSam Lefflerand 11124e9e907dSRuslan Ermilov.Cm wpa 111321414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i). 11145faf8dcbSSam LefflerThe 11154e9e907dSRuslan Ermilov.Cm 8021x 1116419d8080SPoul-Henning Kampand 11174e9e907dSRuslan Ermilov.Cm wpa 1118aeffcba3SSam Lefflermodes are only useful when using an authentication service 11195faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when 11205faf8dcbSSam Leffleroperating as an access point). 1121419d8080SPoul-Henning KampModes are case insensitive. 1122fdef6accSSam Leffler.It Cm bgscan 1123fdef6accSSam LefflerEnable background scanning when operating as a station. 1124fdef6accSSam LefflerBackground scanning is a technique whereby a station associated to 1125fdef6accSSam Leffleran access point will temporarily leave the channel to scan for 1126fdef6accSSam Lefflerneighboring stations. 1127fdef6accSSam LefflerThis allows a station to maintain a cache of nearby access points 1128d592cd38SSam Lefflerso that roaming between access points can be done without 1129fdef6accSSam Lefflera lengthy scan operation. 1130fdef6accSSam LefflerBackground scanning is done only when a station is not busy and 1131fdef6accSSam Lefflerany outbound traffic will cancel a scan operation. 1132fdef6accSSam LefflerBackground scanning should never cause packets to be lost though 1133fdef6accSSam Lefflerthere may be some small latency if outbound traffic interrupts a 1134fdef6accSSam Lefflerscan operation. 1135fdef6accSSam LefflerBy default background scanning is enabled if the device is capable. 1136fdef6accSSam LefflerTo disable background scanning, use 1137fdef6accSSam Leffler.Fl bgscan . 1138fdef6accSSam LefflerBackground scanning is controlled by the 1139fdef6accSSam Leffler.Cm bgscanidle 1140fdef6accSSam Lefflerand 1141fdef6accSSam Leffler.Cm bgscanintvl 1142fdef6accSSam Lefflerparameters. 1143fdef6accSSam LefflerBackground scanning must be enabled for roaming; this is an artifact 1144fdef6accSSam Lefflerof the current implementation and may not be required in the future. 1145fdef6accSSam Leffler.It Cm bgscanidle Ar idletime 1146fdef6accSSam LefflerSet the minimum time a station must be idle (not transmitting or 1147fdef6accSSam Lefflerreceiving frames) before a background scan is initiated. 1148fdef6accSSam LefflerThe 1149fdef6accSSam Leffler.Ar idletime 1150fdef6accSSam Lefflerparameter is specified in milliseconds. 1151fdef6accSSam LefflerBy default a station must be idle at least 250 milliseconds before 1152fdef6accSSam Lefflera background scan is initiated. 1153fdef6accSSam LefflerThe idle time may not be set to less than 100 milliseconds. 1154fdef6accSSam Leffler.It Cm bgscanintvl Ar interval 1155fdef6accSSam LefflerSet the interval at which background scanning is attempted. 1156fdef6accSSam LefflerThe 1157fdef6accSSam Leffler.Ar interval 1158fdef6accSSam Lefflerparameter is specified in seconds. 1159d592cd38SSam LefflerBy default a background scan is considered every 300 seconds (5 minutes). 1160fdef6accSSam LefflerThe 1161fdef6accSSam Leffler.Ar interval 1162fdef6accSSam Lefflermay not be set to less than 15 seconds. 1163aeffcba3SSam Leffler.It Cm bintval Ar interval 1164aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in 1165aeffcba3SSam Lefflerad-hoc or ap mode. 1166aeffcba3SSam LefflerThe 1167aeffcba3SSam Leffler.Ar interval 11688f3591a5SSam Lefflerparameter is specified in TU's (1024 usecs). 1169aeffcba3SSam LefflerBy default beacon frames are transmitted every 100 TU's. 1170d7ccef33SSam Leffler.It Cm bmissthreshold Ar count 1171d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station 11728266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point). 1173d7ccef33SSam LefflerThe 1174d7ccef33SSam Leffler.Ar count 11758266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the 11768266d476SRuslan Ermilovupper bound may be reduced according to device capabilities. 1177d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but 1178d7ccef33SSam Lefflerthis may be overridden by the device driver. 1179d7ccef33SSam LefflerAnother name for the 1180d7ccef33SSam Leffler.Cm bmissthreshold 1181d7ccef33SSam Lefflerparameter is 1182d7ccef33SSam Leffler.Cm bmiss . 11835faf8dcbSSam Leffler.It Cm bssid Ar address 11845faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating 11855faf8dcbSSam Leffleras a station in a BSS network. 11865faf8dcbSSam LefflerThis overrides any automatic selection done by the system. 118721414470SRuslan ErmilovTo disable a previously selected access point, supply 11884e9e907dSRuslan Ermilov.Cm any , none , 11895faf8dcbSSam Leffleror 11904e9e907dSRuslan Ermilov.Cm - 11915faf8dcbSSam Lefflerfor the address. 119209a66bdaSJens SchweikhardtThis option is useful when more than one access point uses the same SSID. 11935faf8dcbSSam LefflerAnother name for the 11945faf8dcbSSam Leffler.Cm bssid 11955faf8dcbSSam Lefflerparameter is 11965faf8dcbSSam Leffler.Cm ap . 119729d58c71SSam Leffler.It Cm burst 119829d58c71SSam LefflerEnable packet bursting. 119929d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless 120029d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe 120129d58c71SSam Lefflerspacing is reduced. 120229d58c71SSam LefflerThis technique can significantly increase throughput by reducing 120329d58c71SSam Lefflertransmission overhead. 120429d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification 120529d58c71SSam Lefflerand some devices that do not support QoS may still be capable. 120629d58c71SSam LefflerBy default packet bursting is enabled if a device is capable 120729d58c71SSam Lefflerof doing it. 120829d58c71SSam LefflerTo disable packet bursting, use 120929d58c71SSam Leffler.Fl burst . 12105faf8dcbSSam Leffler.It Cm chanlist Ar channels 12115faf8dcbSSam LefflerSet the desired channels to use when scanning for access 12125faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied 12135faf8dcbSSam Lefflerchannels when operating as an access point. 12145faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with 121521414470SRuslan Ermiloveach element in the list representing either a single channel number or a range 12165faf8dcbSSam Lefflerof the form 12175faf8dcbSSam Leffler.Dq Li a-b . 12185faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible 12195faf8dcbSSam Leffleraccording to the operating characteristics of the device. 12205faf8dcbSSam Leffler.It Cm channel Ar number 12215faf8dcbSSam LefflerSet a single desired channel. 12225faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available 12235faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for. 12245faf8dcbSSam LefflerSetting 12255faf8dcbSSam Lefflerthe channel to 1226ce038463SMateusz Piotrowski.Cm any , 12275faf8dcbSSam Leffleror 1228ce038463SMateusz Piotrowski.Dq Cm - 12294a5184dcSSam Lefflerwill clear any desired channel and, if the device is marked up, 12304a5184dcSSam Lefflerforce a scan for a channel to operate on. 12315faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified 12325faf8dcbSSam Lefflerinstead of the channel number. 12338f3591a5SSam Leffler.Pp 12348f3591a5SSam LefflerWhen there are several ways to use a channel the channel 12358f3591a5SSam Lefflernumber/frequency may be appended with attributes to clarify. 12368f3591a5SSam LefflerFor example, if a device is capable of operating on channel 6 12378f3591a5SSam Lefflerwith 802.11n and 802.11g then one can specify that g-only use 1238ce038463SMateusz Piotrowskishould be used by specifying 1239ce038463SMateusz Piotrowski.Cm 6:g . 12408f3591a5SSam LefflerSimilarly the channel width can be specified by appending it 1241ce038463SMateusz Piotrowskiwith 1242ce038463SMateusz Piotrowski.Dq Cm \&/ ; 1243ce038463SMateusz Piotrowskie.g., 1244ce038463SMateusz Piotrowski.Cm 6/40 1245ce038463SMateusz Piotrowskispecifies a 40MHz wide channel. 1246ce038463SMateusz PiotrowskiThese attributes can be combined as in: 1247ce038463SMateusz Piotrowski.Cm 6:ht/40 . 1248ce038463SMateusz Piotrowski.Pp 1249ce038463SMateusz PiotrowskiThe full set of flags specified following a 1250ce038463SMateusz Piotrowski.Dq Cm \&: 1251ce038463SMateusz Piotrowskiare: 1252ce038463SMateusz Piotrowski.Pp 1253ce038463SMateusz Piotrowski.Bl -tag -compact 1254ce038463SMateusz Piotrowski.It Cm a 1255ce038463SMateusz Piotrowski802.11a 1256ce038463SMateusz Piotrowski.It Cm b 1257ce038463SMateusz Piotrowski802.11b 1258ce038463SMateusz Piotrowski.It Cm d 1259ce038463SMateusz PiotrowskiAtheros Dynamic Turbo mode 1260ce038463SMateusz Piotrowski.It Cm g 1261ce038463SMateusz Piotrowski802.11g 1262ce038463SMateusz Piotrowski.It Cm h 1263ce038463SMateusz PiotrowskiSame as 12648f3591a5SSam Leffler.Cm n 1265ce038463SMateusz Piotrowski.It Cm n 1266ce038463SMateusz Piotrowski802.11n aka HT 1267ce038463SMateusz Piotrowski.It Cm s 1268ce038463SMateusz PiotrowskiAtheros Static Turbo mode 1269ce038463SMateusz Piotrowski.It Cm t 1270ce038463SMateusz PiotrowskiAtheros Dynamic Turbo mode, or appended to 1271ce038463SMateusz Piotrowski.Cm st 12728f3591a5SSam Lefflerand 1273ce038463SMateusz Piotrowski.Cm dt 1274ce038463SMateusz Piotrowski.El 1275ce038463SMateusz Piotrowski.Pp 1276ce038463SMateusz PiotrowskiThe full set of channel widths following a 1277ce038463SMateusz Piotrowski.Cm \&/ 1278ce038463SMateusz Piotrowskiare: 1279ce038463SMateusz Piotrowski.Pp 1280ce038463SMateusz Piotrowski.Bl -tag -compact 1281ce038463SMateusz Piotrowski.It Cm 5 1282ce038463SMateusz Piotrowski5MHz aka quarter-rate channel 1283ce038463SMateusz Piotrowski.It Cm 10 1284ce038463SMateusz Piotrowski10MHz aka half-rate channel 1285ce038463SMateusz Piotrowski.It Cm 20 1286ce038463SMateusz Piotrowski20MHz mostly for use in specifying 1287ce038463SMateusz Piotrowski.Cm ht20 1288ce038463SMateusz Piotrowski.It Cm 40 1289ce038463SMateusz Piotrowski40MHz mostly for use in specifying 1290ce038463SMateusz Piotrowski.Cm ht40 1291ce038463SMateusz Piotrowski.El 1292ce038463SMateusz Piotrowski.Pp 12938f3591a5SSam LefflerIn addition, 12948f3591a5SSam Lefflera 40MHz HT channel specification may include the location 1295ce038463SMateusz Piotrowskiof the extension channel by appending 1296ce038463SMateusz Piotrowski.Dq Cm \&+ 1297ce038463SMateusz Piotrowskior 1298ce038463SMateusz Piotrowski.Dq Cm \&- 1299ce038463SMateusz Piotrowskifor above and below, 1300ce038463SMateusz Piotrowskirespectively; e.g., 1301ce038463SMateusz Piotrowski.Cm 2437:ht/40+ 1302ce038463SMateusz Piotrowskispecifies 40MHz wide HT operation 13038f3591a5SSam Lefflerwith the center channel at frequency 2437 and the extension channel above. 1304b032f27cSSam Leffler.It Cm country Ar name 1305b032f27cSSam LefflerSet the country code to use in calculating the regulatory constraints 1306b032f27cSSam Lefflerfor operation. 1307b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1308b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1309b032f27cSSam Lefflercan be used on a channel are defined by this setting. 1310b032f27cSSam LefflerCountry/Region codes are specified as a 2-character abbreviation 1311b032f27cSSam Lefflerdefined by ISO 3166 or using a longer, but possibly ambiguous, spelling; 1312818b39edSWarren Blocke.g., "ES" and "Spain". 131337b983c0SJoel DahlThe set of country codes are taken from 131437b983c0SJoel Dahl.Pa /etc/regdomain.xml 131537b983c0SJoel Dahland can also 1316*67d77afbSMateusz Piotrowskibe viewed with the 1317*67d77afbSMateusz Piotrowski.Cm list countries 1318*67d77afbSMateusz Piotrowskirequest. 1319b032f27cSSam LefflerNote that not all devices support changing the country code from a default 1320b032f27cSSam Lefflersetting; typically stored in EEPROM. 1321b032f27cSSam LefflerSee also 1322b032f27cSSam Leffler.Cm regdomain , 1323b032f27cSSam Leffler.Cm indoor , 1324b032f27cSSam Leffler.Cm outdoor , 1325b032f27cSSam Lefflerand 1326b032f27cSSam Leffler.Cm anywhere . 1327b032f27cSSam Leffler.It Cm dfs 1328b032f27cSSam LefflerEnable Dynamic Frequency Selection (DFS) as specified in 802.11h. 1329b032f27cSSam LefflerDFS embodies several facilities including detection of overlapping 1330b032f27cSSam Lefflerradar signals, dynamic transmit power control, and channel selection 1331b032f27cSSam Leffleraccording to a least-congested criteria. 13321748d1e5SGavin AtkinsonDFS support is mandatory for some 5GHz frequencies in certain 1333818b39edSWarren Blocklocales (e.g., ETSI). 1334b032f27cSSam LefflerBy default DFS is enabled according to the regulatory definitions 133537b983c0SJoel Dahlspecified in 133637b983c0SJoel Dahl.Pa /etc/regdomain.xml 133737b983c0SJoel Dahland the current country code, regdomain, 1338b032f27cSSam Lefflerand channel. 1339b032f27cSSam LefflerNote the underlying device (and driver) must support radar detection 1340b032f27cSSam Lefflerfor full DFS support to work. 1341b032f27cSSam LefflerTo be fully compliant with the local regulatory agency frequencies that 1342b032f27cSSam Lefflerrequire DFS should not be used unless it is fully supported. 1343b032f27cSSam LefflerUse 1344b032f27cSSam Leffler.Fl dfs 1345b032f27cSSam Lefflerto disable this functionality for testing. 1346b032f27cSSam Leffler.It Cm dotd 1347b032f27cSSam LefflerEnable support for the 802.11d specification (default). 1348b032f27cSSam LefflerWhen this support is enabled in station mode, beacon frames that advertise 1349b032f27cSSam Lefflera country code different than the currently configured country code will 1350b032f27cSSam Lefflercause an event to be dispatched to user applications. 1351b032f27cSSam LefflerThis event can be used by the station to adopt that country code and 1352b032f27cSSam Leffleroperate according to the associated regulatory constraints. 1353b032f27cSSam LefflerWhen operating as an access point with 802.11d enabled the beacon and 1354b032f27cSSam Lefflerprobe response frames transmitted will advertise the current regulatory 1355b032f27cSSam Lefflerdomain settings. 1356b032f27cSSam LefflerTo disable 802.11d use 1357b032f27cSSam Leffler.Fl dotd . 1358fdef6accSSam Leffler.It Cm doth 1359b032f27cSSam LefflerEnable 802.11h support including spectrum management. 1360b032f27cSSam LefflerWhen 802.11h is enabled beacon and probe response frames will have 1361b032f27cSSam Lefflerthe SpectrumMgt bit set in the capabilities field and 1362b032f27cSSam Lefflercountry and power constraint information elements will be present. 1363b032f27cSSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA) 1364b032f27cSSam Lefflerwhich are a mechanism to coordinate channel changes by an access point. 1365fdef6accSSam LefflerBy default 802.11h is enabled if the device is capable. 1366fdef6accSSam LefflerTo disable 802.11h use 1367fdef6accSSam Leffler.Fl doth . 13684e0a8f0dSSam Leffler.It Cm deftxkey Ar index 13694e0a8f0dSSam LefflerSet the default key to use for transmission. 13704e0a8f0dSSam LefflerTypically this is only set when using WEP encryption. 13715ce09a9eSSam LefflerNote that you must set a default transmit key 13725ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 13734e0a8f0dSSam LefflerThe 13744e0a8f0dSSam Leffler.Cm weptxkey 13754e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility. 1376aeffcba3SSam Leffler.It Cm dtimperiod Ar period 1377aeffcba3SSam LefflerSet the 1378aeffcba3SSam LefflerDTIM 1379aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when 1380aeffcba3SSam Leffleroperating in ap mode. 1381aeffcba3SSam LefflerThe 1382aeffcba3SSam Leffler.Ar period 1383aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM 1384aeffcba3SSam Lefflerand must be in the range 1 to 15. 13854e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon). 13866edc611eSAdrian Chadd.It Cm quiet 138796db02f2SAllan JudeEnable the use of quiet IE. 138896db02f2SAllan JudeHostap will use this to silence other 13896edc611eSAdrian Chaddstations to reduce interference for radar detection when 13901748d1e5SGavin Atkinsonoperating on 5GHz frequency and doth support is enabled. 13916edc611eSAdrian ChaddUse 13926edc611eSAdrian Chadd.Fl quiet 13936edc611eSAdrian Chaddto disable this functionality. 13946edc611eSAdrian Chadd.It Cm quiet_period Ar period 13956edc611eSAdrian ChaddSet the QUIET 13966edc611eSAdrian Chadd.Ar period 13976edc611eSAdrian Chaddto the number of beacon intervals between the start of regularly 13986edc611eSAdrian Chaddscheduled quiet intervals defined by Quiet element. 13996edc611eSAdrian Chadd.It Cm quiet_count Ar count 14006edc611eSAdrian ChaddSet the QUIET 14016edc611eSAdrian Chadd.Ar count 14026edc611eSAdrian Chaddto the number of TBTTs until the beacon interval during which the 140396db02f2SAllan Judenext quiet interval shall start. 140496db02f2SAllan JudeA value of 1 indicates the quiet 14056edc611eSAdrian Chaddinterval will start during the beacon interval starting at the next 140696db02f2SAllan JudeTBTT. 140796db02f2SAllan JudeA value 0 is reserved. 14086edc611eSAdrian Chadd.It Cm quiet_offset Ar offset 14096edc611eSAdrian ChaddSet the QUIET 14106edc611eSAdrian Chadd.Ar offset 14116edc611eSAdrian Chaddto the offset of the start of the quiet interval from the TBTT 14126edc611eSAdrian Chaddspecified by the Quiet count, expressed in TUs. 14136edc611eSAdrian ChaddThe value of the 14146edc611eSAdrian Chadd.Ar offset 14156edc611eSAdrian Chaddshall be less than one beacon interval. 14166edc611eSAdrian Chadd.It Cm quiet_duration Ar dur 14176edc611eSAdrian ChaddSet the QUIET 14186edc611eSAdrian Chadd.Ar dur 14196edc611eSAdrian Chaddto the duration of the Quiet interval, expressed in TUs. 14206edc611eSAdrian ChaddThe value should be less than beacon interval. 1421fdef6accSSam Leffler.It Cm dturbo 1422fdef6accSSam LefflerEnable the use of Atheros Dynamic Turbo mode when communicating with 1423fdef6accSSam Leffleranother Dynamic Turbo-capable station. 1424fdef6accSSam LefflerDynamic Turbo mode is an Atheros-specific mechanism by which 1425*67d77afbSMateusz Piotrowskistations switch between normal 802.11 operation and a 1426*67d77afbSMateusz Piotrowski.Dq boosted 1427fdef6accSSam Lefflermode in which a 40MHz wide channel is used for communication. 1428fdef6accSSam LefflerStations using Dynamic Turbo mode operate boosted only when the 1429fdef6accSSam Lefflerchannel is free of non-dturbo stations; when a non-dturbo station 1430fdef6accSSam Leffleris identified on the channel all stations will automatically drop 1431fdef6accSSam Lefflerback to normal operation. 1432fdef6accSSam LefflerBy default, Dynamic Turbo mode is not enabled, even if the device is capable. 1433fdef6accSSam LefflerNote that turbo mode (dynamic or static) is only allowed on some 1434fdef6accSSam Lefflerchannels depending on the regulatory constraints; use the 1435fdef6accSSam Leffler.Cm list chan 1436fdef6accSSam Lefflercommand to identify the channels where turbo mode may be used. 1437fdef6accSSam LefflerTo disable Dynamic Turbo mode use 1438fdef6accSSam Leffler.Fl dturbo . 1439b032f27cSSam Leffler.It Cm dwds 1440b032f27cSSam LefflerEnable Dynamic WDS (DWDS) support. 1441b032f27cSSam LefflerDWDS is a facility by which 4-address traffic can be carried between 1442b032f27cSSam Lefflerstations operating in infrastructure mode. 1443b032f27cSSam LefflerA station first associates to an access point and authenticates using 1444818b39edSWarren Blocknormal procedures (e.g., WPA). 1445b032f27cSSam LefflerThen 4-address frames are passed to carry traffic for stations 1446b032f27cSSam Leffleroperating on either side of the wireless link. 1447b032f27cSSam LefflerDWDS extends the normal WDS mechanism by leveraging existing security 1448b032f27cSSam Lefflerprotocols and eliminating static binding. 1449b032f27cSSam Leffler.Pp 1450b032f27cSSam LefflerWhen DWDS is enabled on an access point 4-address frames received from 1451*67d77afbSMateusz Piotrowskian authorized station will generate a 1452*67d77afbSMateusz Piotrowski.Dq DWDS discovery 1453*67d77afbSMateusz Piotrowskievent to user 1454b032f27cSSam Lefflerapplications. 1455b032f27cSSam LefflerThis event should be used to create a WDS interface that is bound 1456b032f27cSSam Lefflerto the remote station (and usually plumbed into a bridge). 1457b032f27cSSam LefflerOnce the WDS interface is up and running 4-address traffic then logically 1458b032f27cSSam Lefflerflows through that interface. 1459b032f27cSSam Leffler.Pp 1460b032f27cSSam LefflerWhen DWDS is enabled on a station, traffic with a destination address 1461b032f27cSSam Lefflerdifferent from the peer station are encapsulated in a 4-address frame 1462b032f27cSSam Lefflerand transmitted to the peer. 1463b032f27cSSam LefflerAll 4-address traffic uses the security information of the stations 1464818b39edSWarren Block(e.g., cryptographic keys). 1465b032f27cSSam LefflerA station is associated using 802.11n facilities may transport 1466b032f27cSSam Leffler4-address traffic using these same mechanisms; this depends on available 1467b032f27cSSam Lefflerresources and capabilities of the device. 1468b032f27cSSam LefflerThe DWDS implementation guards against layer 2 routing loops of 1469b032f27cSSam Lefflermulticast traffic. 1470fdef6accSSam Leffler.It Cm ff 1471d592cd38SSam LefflerEnable the use of Atheros Fast Frames when communicating with 1472fdef6accSSam Leffleranother Fast Frames-capable station. 1473fdef6accSSam LefflerFast Frames are an encapsulation technique by which two 802.3 1474fdef6accSSam Lefflerframes are transmitted in a single 802.11 frame. 1475fdef6accSSam LefflerThis can noticeably improve throughput but requires that the 1476fdef6accSSam Lefflerreceiving station understand how to decapsulate the frame. 1477fdef6accSSam LefflerFast frame use is negotiated using the Atheros 802.11 vendor-specific 1478fdef6accSSam Lefflerprotocol extension so enabling use is safe when communicating with 1479fdef6accSSam Lefflernon-Atheros devices. 1480fdef6accSSam LefflerBy default, use of fast frames is enabled if the device is capable. 1481fdef6accSSam LefflerTo explicitly disable fast frames, use 1482fdef6accSSam Leffler.Fl ff . 1483b032f27cSSam Leffler.It Cm fragthreshold Ar length 1484b032f27cSSam LefflerSet the threshold for which transmitted frames are broken into fragments. 1485b032f27cSSam LefflerThe 1486b032f27cSSam Leffler.Ar length 1487b032f27cSSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346. 1488b032f27cSSam LefflerSetting 1489b032f27cSSam Leffler.Ar length 1490b032f27cSSam Lefflerto 1491b032f27cSSam Leffler.Li 2346 , 1492b032f27cSSam Leffler.Cm any , 1493b032f27cSSam Leffleror 1494b032f27cSSam Leffler.Cm - 1495b032f27cSSam Lefflerdisables transmit fragmentation. 1496b032f27cSSam LefflerNot all adapters honor the fragmentation threshold. 1497b032f27cSSam Leffler.It Cm hidessid 1498b032f27cSSam LefflerWhen operating as an access point, do not broadcast the SSID 1499b032f27cSSam Lefflerin beacon frames or respond to probe request frames unless 1500b032f27cSSam Lefflerthey are directed to the ap (i.e., they include the ap's SSID). 1501b032f27cSSam LefflerBy default, the SSID is included in beacon frames and 1502b032f27cSSam Lefflerundirected probe request frames are answered. 1503b032f27cSSam LefflerTo re-enable the broadcast of the SSID etc., use 1504b032f27cSSam Leffler.Fl hidessid . 1505b032f27cSSam Leffler.It Cm ht 1506b032f27cSSam LefflerEnable use of High Throughput (HT) when using 802.11n (default). 1507b032f27cSSam LefflerThe 802.11n specification includes mechanisms for operation 1508b032f27cSSam Leffleron 20MHz and 40MHz wide channels using different signalling mechanisms 1509b032f27cSSam Lefflerthan specified in 802.11b, 802.11g, and 802.11a. 1510b032f27cSSam LefflerStations negotiate use of these facilities, termed HT20 and HT40, 1511b032f27cSSam Lefflerwhen they associate. 1512b032f27cSSam LefflerTo disable all use of 802.11n use 1513b032f27cSSam Leffler.Fl ht . 1514818b39edSWarren BlockTo disable use of HT20 (e.g., to force only HT40 use) use 1515b032f27cSSam Leffler.Fl ht20 . 1516b032f27cSSam LefflerTo disable use of HT40 use 1517b032f27cSSam Leffler.Fl ht40 . 1518b032f27cSSam Leffler.Pp 1519*67d77afbSMateusz PiotrowskiHT configuration is used to 1520*67d77afbSMateusz Piotrowski.Dq auto promote 1521*67d77afbSMateusz Piotrowskioperation 1522b032f27cSSam Lefflerwhen several choices are available. 1523b032f27cSSam LefflerFor example, if a station associates to an 11n-capable access point 1524b032f27cSSam Lefflerit controls whether the station uses legacy operation, HT20, or HT40. 1525b032f27cSSam LefflerWhen an 11n-capable device is setup as an access point and 1526b032f27cSSam LefflerAuto Channel Selection is used to locate a channel to operate on, 1527b032f27cSSam LefflerHT configuration controls whether legacy, HT20, or HT40 operation is setup 1528b032f27cSSam Leffleron the selected channel. 1529b032f27cSSam LefflerIf a fixed channel is specified for a station then HT configuration can 1530818b39edSWarren Blockbe given as part of the channel specification; e.g., 6:ht/20 to setup 1531b032f27cSSam LefflerHT20 operation on channel 6. 1532b032f27cSSam Leffler.It Cm htcompat 1533b032f27cSSam LefflerEnable use of compatibility support for pre-802.11n devices (default). 1534b032f27cSSam LefflerThe 802.11n protocol specification went through several incompatible iterations. 1535b032f27cSSam LefflerSome vendors implemented 11n support to older specifications that 1536b032f27cSSam Lefflerwill not interoperate with a purely 11n-compliant station. 1537b032f27cSSam LefflerIn particular the information elements included in management frames 1538b032f27cSSam Lefflerfor old devices are different. 1539b032f27cSSam LefflerWhen compatibility support is enabled both standard and compatible data 1540b032f27cSSam Lefflerwill be provided. 1541f30f9d40SRui PauloStations that associate using the compatibility mechanisms are flagged 1542*67d77afbSMateusz Piotrowskiin 1543*67d77afbSMateusz Piotrowski.Cm list sta . 1544f30f9d40SRui PauloTo disable compatibility support use 1545b032f27cSSam Leffler.Fl htcompat . 1546b032f27cSSam Leffler.It Cm htprotmode Ar technique 1547b032f27cSSam LefflerFor interfaces operating in 802.11n, use the specified 1548b032f27cSSam Leffler.Ar technique 1549b032f27cSSam Lefflerfor protecting HT frames in a mixed legacy/HT network. 1550b032f27cSSam LefflerThe set of valid techniques is 1551b032f27cSSam Leffler.Cm off , 1552b032f27cSSam Lefflerand 1553b032f27cSSam Leffler.Cm rts 1554b032f27cSSam Leffler(RTS/CTS, default). 1555b032f27cSSam LefflerTechnique names are case insensitive. 1556b032f27cSSam Leffler.It Cm inact 1557b032f27cSSam LefflerEnable inactivity processing for stations associated to an 1558b032f27cSSam Leffleraccess point (default). 1559b032f27cSSam LefflerWhen operating as an access point the 802.11 layer monitors 1560b032f27cSSam Lefflerthe activity of each associated station. 1561b032f27cSSam LefflerWhen a station is inactive for 5 minutes it will send several 1562*67d77afbSMateusz Piotrowski.Dq probe frames 1563*67d77afbSMateusz Piotrowskito see if the station is still present. 1564b032f27cSSam LefflerIf no response is received then the station is deauthenticated. 1565b032f27cSSam LefflerApplications that prefer to handle this work can disable this 1566b032f27cSSam Lefflerfacility by using 1567b032f27cSSam Leffler.Fl inact . 1568b032f27cSSam Leffler.It Cm indoor 1569b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1570b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1571b032f27cSSam Lefflerwhen 802.11d is enabled with 1572b032f27cSSam Leffler.Cm dotd . 1573b032f27cSSam LefflerSee also 1574b032f27cSSam Leffler.Cm outdoor , 1575b032f27cSSam Leffler.Cm anywhere , 1576b032f27cSSam Leffler.Cm country , 1577b032f27cSSam Lefflerand 1578b032f27cSSam Leffler.Cm regdomain . 15794e9e907dSRuslan Ermilov.It Cm list active 1580aeffcba3SSam LefflerDisplay the list of channels available for use taking into account 1581aeffcba3SSam Lefflerany restrictions set with the 15824e9e907dSRuslan Ermilov.Cm chanlist 1583451486b5SSam Lefflerdirective. 1584451486b5SSam LefflerSee the description of 1585451486b5SSam Leffler.Cm list chan 1586451486b5SSam Lefflerfor more information. 15874e9e907dSRuslan Ermilov.It Cm list caps 1588aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating 1589aeffcba3SSam Lefflermodes supported. 15904e9e907dSRuslan Ermilov.It Cm list chan 1591aeffcba3SSam LefflerDisplay the list of channels available for use. 1592451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent 1593451486b5SSam Lefflerfrequency, and usage modes. 1594451486b5SSam LefflerChannels identified as 1595451486b5SSam Leffler.Ql 11g 1596451486b5SSam Lefflerare also usable in 1597451486b5SSam Leffler.Ql 11b 1598451486b5SSam Lefflermode. 1599451486b5SSam LefflerChannels identified as 1600451486b5SSam Leffler.Ql 11a Turbo 1601451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode 16028266d476SRuslan Ermilov(specified with 16038266d476SRuslan Ermilov. Cm mediaopt turbo ) . 1604451486b5SSam LefflerChannels marked with a 1605451486b5SSam Leffler.Ql * 1606451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned. 1607451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until 1608451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication; 1609451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating 1610451486b5SSam Leffleron the channel. 16114e9e907dSRuslan Ermilov.Cm list freq 1612aeffcba3SSam Leffleris another way of requesting this information. 1613d592cd38SSam LefflerBy default a compacted list of channels is displayed; if the 1614d592cd38SSam Leffler.Fl v 1615d592cd38SSam Leffleroption is specified then all channels are shown. 1616b032f27cSSam Leffler.It Cm list countries 1617b032f27cSSam LefflerDisplay the set of country codes and regulatory domains that can be 1618b032f27cSSam Lefflerused in regulatory configuration. 16194e9e907dSRuslan Ermilov.It Cm list mac 162029f0e929SSam LefflerDisplay the current MAC Access Control List state. 162129f0e929SSam LefflerEach address is prefixed with a character that indicates the 162229f0e929SSam Lefflercurrent policy applied to it: 16234e9e907dSRuslan Ermilov.Ql + 162429f0e929SSam Lefflerindicates the address is allowed access, 16254e9e907dSRuslan Ermilov.Ql - 162629f0e929SSam Lefflerindicates the address is denied access, 16274e9e907dSRuslan Ermilov.Ql * 162829f0e929SSam Lefflerindicates the address is present but the current policy open 16294e9e907dSRuslan Ermilov(so the ACL is not consulted). 163059aa14a9SRui Paulo.It Cm list mesh 163159aa14a9SRui PauloDisplays the mesh routing table, used for forwarding packets on a mesh 163259aa14a9SRui Paulonetwork. 1633b032f27cSSam Leffler.It Cm list regdomain 1634b032f27cSSam LefflerDisplay the current regulatory settings including the available channels 1635b032f27cSSam Lefflerand transmit power caps. 1636b032f27cSSam Leffler.It Cm list roam 1637b032f27cSSam LefflerDisplay the parameters that govern roaming operation. 1638b032f27cSSam Leffler.It Cm list txparam 1639b032f27cSSam LefflerDisplay the parameters that govern transmit operation. 1640b032f27cSSam Leffler.It Cm list txpower 1641b032f27cSSam LefflerDisplay the transmit power caps for each channel. 16424e9e907dSRuslan Ermilov.It Cm list scan 1643aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors 1644aeffcba3SSam Lefflerlocated in the vicinity. 1645b032f27cSSam LefflerThis information may be updated automatically by the adapter 1646b032f27cSSam Lefflerwith a 16474e9e907dSRuslan Ermilov.Cm scan 1648fdef6accSSam Lefflerrequest or through background scanning. 1649b032f27cSSam LefflerDepending on the capabilities of the stations the following 165005621e0bSMateusz Piotrowskiflags (capability codes) can be included in the output: 1651b032f27cSSam Leffler.Bl -tag -width 3n 1652b032f27cSSam Leffler.It Li A 1653f95cfecbSAndriy GaponChannel agility. 1654f95cfecbSAndriy Gapon.It Li B 1655f95cfecbSAndriy GaponPBCC modulation. 1656f95cfecbSAndriy Gapon.It Li C 1657f95cfecbSAndriy GaponPoll request capability. 1658f95cfecbSAndriy Gapon.It Li D 1659f95cfecbSAndriy GaponDSSS/OFDM capability. 1660b032f27cSSam Leffler.It Li E 1661f95cfecbSAndriy GaponExtended Service Set (ESS). 166205621e0bSMateusz PiotrowskiIndicates that the station is part of an infrastructure network 166305621e0bSMateusz Piotrowskirather than an IBSS/ad-hoc network. 1664f95cfecbSAndriy Gapon.It Li I 1665f95cfecbSAndriy GaponIndependent Basic Service Set (IBSS). 166605621e0bSMateusz PiotrowskiIndicates that the station is part of an ad-hoc network 166705621e0bSMateusz Piotrowskirather than an ESS network. 1668b032f27cSSam Leffler.It Li P 1669f95cfecbSAndriy GaponPrivacy capability. 167005621e0bSMateusz PiotrowskiThe station requires authentication and encryption 167105621e0bSMateusz Piotrowskifor all data frames exchanged within the BSS using cryptographic means 167205621e0bSMateusz Piotrowskisuch as WEP, TKIP, or AES-CCMP. 1673f95cfecbSAndriy Gapon.It Li R 1674f95cfecbSAndriy GaponRobust Secure Network (RSN). 167568a63039SBjoern A. Zeeb.It Li S 167668a63039SBjoern A. ZeebShort Preamble. 167705621e0bSMateusz PiotrowskiIndicates that the network is using short preambles, 167805621e0bSMateusz Piotrowskidefined in 802.11b High Rate/DSSS PHY, 167905621e0bSMateusz Piotrowskiand utilizes a 56 bit sync field 168005621e0bSMateusz Piotrowskirather than the 128 bit field used in long preamble mode. 168105621e0bSMateusz PiotrowskiShort preambles are used to optionally 168268a63039SBjoern A. Zeebimprove throughput performance with 802.11g and 802.11b. 1683f95cfecbSAndriy Gapon.It Li c 1684f95cfecbSAndriy GaponPollable capability. 1685f95cfecbSAndriy Gapon.It Li s 1686f95cfecbSAndriy GaponShort slot time capability. 168705621e0bSMateusz PiotrowskiIndicates that the 802.11g network is using a short slot time 168805621e0bSMateusz Piotrowskibecause there are no legacy (802.11b) stations present. 1689b032f27cSSam Leffler.El 1690b032f27cSSam Leffler.Pp 1691b032f27cSSam LefflerBy default interesting information elements captured from the neighboring 1692b032f27cSSam Lefflerstations are displayed at the end of each row. 1693b032f27cSSam LefflerPossible elements include: 1694b032f27cSSam Leffler.Cm WME 1695b032f27cSSam Leffler(station supports WME), 1696b032f27cSSam Leffler.Cm WPA 1697b032f27cSSam Leffler(station supports WPA), 1698ed8b5a93SSam Leffler.Cm WPS 1699ed8b5a93SSam Leffler(station supports WPS), 1700b032f27cSSam Leffler.Cm RSN 1701b032f27cSSam Leffler(station supports 802.11i/RSN), 1702b032f27cSSam Leffler.Cm HTCAP 1703b032f27cSSam Leffler(station supports 802.11n/HT communication), 1704b032f27cSSam Leffler.Cm ATH 1705116c00fbSMaxim Konovalov(station supports Atheros protocol extensions), 1706b032f27cSSam Leffler.Cm VEN 1707b032f27cSSam Leffler(station supports unknown vendor-specific extensions). 1708b032f27cSSam LefflerIf the 1709b032f27cSSam Leffler.Fl v 1710b032f27cSSam Lefflerflag is used all the information elements and their 1711b032f27cSSam Lefflercontents will be shown. 17124f1fb109SGiorgos KeramidasSpecifying the 1713b032f27cSSam Leffler.Fl v 1714b032f27cSSam Lefflerflag also enables display of long SSIDs. 17154f1fb109SGiorgos KeramidasThe 17164e9e907dSRuslan Ermilov.Cm list ap 17174f1fb109SGiorgos Keramidascommand is another way of requesting this information. 17184e9e907dSRuslan Ermilov.It Cm list sta 1719aeffcba3SSam LefflerWhen operating as an access point display the stations that are 1720aeffcba3SSam Lefflercurrently associated. 1721aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as 1722aeffcba3SSam Lefflerneighbors in the IBSS. 172359aa14a9SRui PauloWhen operating in mesh mode display stations identified as 172459aa14a9SRui Pauloneighbors in the MBSS. 1725fdef6accSSam LefflerWhen operating in station mode display the access point. 172697d7b28eSSam LefflerCapabilities advertised by the stations are described under 172797d7b28eSSam Lefflerthe 172897d7b28eSSam Leffler.Cm scan 172997d7b28eSSam Lefflerrequest. 1730f95cfecbSAndriy GaponThe following flags can be included in the output: 173197d7b28eSSam Leffler.Bl -tag -width 3n 173297d7b28eSSam Leffler.It Li A 173397d7b28eSSam LefflerAuthorized. 173497d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames. 173597d7b28eSSam Leffler.It Li E 173697d7b28eSSam LefflerExtended Rate Phy (ERP). 173797d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network 173897d7b28eSSam Lefflerusing extended transmit rates. 1739fdef6accSSam Leffler.It Li H 1740fdef6accSSam LefflerHigh Throughput (HT). 1741b032f27cSSam LefflerIndicates that the station is using HT transmit rates. 1742f95cfecbSAndriy GaponIf a 1743f95cfecbSAndriy Gapon.Sq Li + 1744f95cfecbSAndriy Gaponfollows immediately after then the station associated 1745b032f27cSSam Lefflerusing deprecated mechanisms supported only when 1746b032f27cSSam Leffler.Cm htcompat 1747b032f27cSSam Leffleris enabled. 174897d7b28eSSam Leffler.It Li P 174997d7b28eSSam LefflerPower Save. 175097d7b28eSSam LefflerIndicates that the station is operating in power save mode. 175197d7b28eSSam Leffler.It Li Q 175297d7b28eSSam LefflerQuality of Service (QoS). 175397d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for 175497d7b28eSSam Lefflerdata frame. 175597d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled. 175668a63039SBjoern A. Zeeb.It Li S 1757f95cfecbSAndriy GaponShort GI in HT 40MHz mode enabled. 1758f95cfecbSAndriy GaponIf a 1759f95cfecbSAndriy Gapon.Sq Li + 1760f95cfecbSAndriy Gaponfollows immediately after then short GI in HT 20MHz mode is enabled as well. 1761b032f27cSSam Leffler.It Li T 1762b032f27cSSam LefflerTransitional Security Network (TSN). 1763b032f27cSSam LefflerIndicates that the station associated using TSN; see also 1764b032f27cSSam Leffler.Cm tsn 1765b032f27cSSam Lefflerbelow. 1766b032f27cSSam Leffler.It Li W 1767b032f27cSSam LefflerWi-Fi Protected Setup (WPS). 1768b032f27cSSam LefflerIndicates that the station associated using WPS. 1769f95cfecbSAndriy Gapon.It Li s 1770f95cfecbSAndriy GaponShort GI in HT 20MHz mode enabled. 177197d7b28eSSam Leffler.El 1772d592cd38SSam Leffler.Pp 1773d592cd38SSam LefflerBy default information elements received from associated stations 1774d592cd38SSam Lefflerare displayed in a short form; the 1775d592cd38SSam Leffler.Fl v 1776116c00fbSMaxim Konovalovflag causes this information to be displayed symbolically. 17774e9e907dSRuslan Ermilov.It Cm list wme 177887a8e294SSam LefflerDisplay the current channel parameters to use when operating in WME mode. 177987a8e294SSam LefflerIf the 178087a8e294SSam Leffler.Fl v 178187a8e294SSam Leffleroption is specified then both channel and BSS parameters are displayed 178287a8e294SSam Lefflerfor each AC (first channel, then BSS). 1783aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be 1784aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful 1785aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled. 1786aeffcba3SSam LefflerSee the description of the 17874e9e907dSRuslan Ermilov.Cm wme 1788aeffcba3SSam Lefflerdirective for information on the various parameters. 1789b032f27cSSam Leffler.It Cm maxretry Ar count 1790b032f27cSSam LefflerSet the maximum number of tries to use in sending unicast frames. 1791b032f27cSSam LefflerThe default setting is 6 but drivers may override this with a value 1792b032f27cSSam Lefflerthey choose. 1793439b4702SSam Leffler.It Cm mcastrate Ar rate 1794439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames. 1795818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1796439b4702SSam LefflerThis rate should be valid for the current operating conditions; 1797439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an 1798439b4702SSam Lefflerappropriate rate. 1799b032f27cSSam Leffler.It Cm mgtrate Ar rate 1800b032f27cSSam LefflerSet the rate for transmitting management and/or control frames. 1801818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1802b032f27cSSam Leffler.It Cm outdoor 1803b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1804b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1805b032f27cSSam Lefflerwhen 802.11d is enabled with 1806b032f27cSSam Leffler.Cm dotd . 1807b032f27cSSam LefflerSee also 1808b032f27cSSam Leffler.Cm anywhere , 1809b032f27cSSam Leffler.Cm country , 1810b032f27cSSam Leffler.Cm indoor , 1811b032f27cSSam Lefflerand 1812b032f27cSSam Leffler.Cm regdomain . 1813419d8080SPoul-Henning Kamp.It Cm powersave 18145faf8dcbSSam LefflerEnable powersave operation. 181521414470SRuslan ErmilovWhen operating as a client, the station will conserve power by 18165faf8dcbSSam Lefflerperiodically turning off the radio and listening for 18175faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting. 18185faf8dcbSSam LefflerThe station must then retrieve the packets. 1819fdef6accSSam LefflerNot all devices support power save operation as a client. 1820fdef6accSSam LefflerThe 802.11 specification requires that all access points support 1821fdef6accSSam Lefflerpower save but some drivers do not. 18225faf8dcbSSam LefflerUse 18235faf8dcbSSam Leffler.Fl powersave 1824fdef6accSSam Lefflerto disable powersave operation when operating as a client. 1825419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep 18268f3591a5SSam LefflerSet the desired max powersave sleep time in TU's (1024 usecs). 18278f3591a5SSam LefflerBy default the max powersave sleep time is 100 TU's. 1828a6b03f42SSam Leffler.It Cm protmode Ar technique 18295faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified 1830d04b5dfeSRuslan Ermilov.Ar technique 1831d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network. 1832a6b03f42SSam LefflerThe set of valid techniques is 18334e9e907dSRuslan Ermilov.Cm off , cts 1834a6b03f42SSam Leffler(CTS to self), 1835a6b03f42SSam Lefflerand 18364e9e907dSRuslan Ermilov.Cm rtscts 1837a6b03f42SSam Leffler(RTS/CTS). 1838a6b03f42SSam LefflerTechnique names are case insensitive. 1839fdef6accSSam LefflerNot all devices support 1840fdef6accSSam Leffler.Cm cts 1841fdef6accSSam Leffleras a protection technique. 1842fa56f745SSam Leffler.It Cm pureg 1843fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only 1844fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not 1845fa56f745SSam Lefflerpermitted to associate). 1846fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use 1847fa56f745SSam Leffler.Fl pureg . 1848b032f27cSSam Leffler.It Cm puren 1849b032f27cSSam LefflerWhen operating as an access point in 802.11n mode allow only 1850b032f27cSSam LefflerHT-capable stations to associate (legacy stations are not 1851b032f27cSSam Lefflerpermitted to associate). 1852b032f27cSSam LefflerTo allow both HT and legacy stations to associate, use 1853b032f27cSSam Leffler.Fl puren . 1854b032f27cSSam Leffler.It Cm regdomain Ar sku 1855b032f27cSSam LefflerSet the regulatory domain to use in calculating the regulatory constraints 1856b032f27cSSam Lefflerfor operation. 1857b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1858b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1859b032f27cSSam Lefflercan be used on a channel are defined by this setting. 186037b983c0SJoel DahlRegdomain codes (SKU's) are taken from 186137b983c0SJoel Dahl.Pa /etc/regdomain.xml 186237b983c0SJoel Dahland can also 1863*67d77afbSMateusz Piotrowskibe viewed with the 1864*67d77afbSMateusz Piotrowski.Cm list countries 1865*67d77afbSMateusz Piotrowskirequest. 1866b032f27cSSam LefflerNote that not all devices support changing the regdomain from a default 1867b032f27cSSam Lefflersetting; typically stored in EEPROM. 1868b032f27cSSam LefflerSee also 1869b032f27cSSam Leffler.Cm country , 1870b032f27cSSam Leffler.Cm indoor , 1871b032f27cSSam Leffler.Cm outdoor , 1872b032f27cSSam Lefflerand 1873b032f27cSSam Leffler.Cm anywhere . 187451947cb6SSam Leffler.It Cm rifs 187551947cb6SSam LefflerEnable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n 187651947cb6SSam Leffleron an HT channel. 187751947cb6SSam LefflerNote that RIFS must be supported by both the station and access point 187851947cb6SSam Lefflerfor it to be used. 187951947cb6SSam LefflerTo disable RIFS use 188051947cb6SSam Leffler.Fl rifs . 1881b032f27cSSam Leffler.It Cm roam:rate Ar rate 1882b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1883b032f27cSSam LefflerThe 1884b032f27cSSam Leffler.Ar rate 1885b032f27cSSam Lefflerparameter specifies the transmit rate in megabits 1886b032f27cSSam Lefflerat which roaming should be considered. 1887b032f27cSSam LefflerIf the current transmit rate drops below this setting and background scanning 1888b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1889b032f27cSSam Leffleravailable and switch over to it. 1890b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1891b032f27cSSam Lefflervalid according to the 1892b032f27cSSam Leffler.Cm scanvalid 1893b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1894b032f27cSSam Lefflerany selection occurs. 1895b032f27cSSam LefflerEach channel type has a separate rate threshold; the default values are: 1896b032f27cSSam Leffler12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng). 1897b032f27cSSam Leffler.It Cm roam:rssi Ar rssi 1898b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1899b032f27cSSam LefflerThe 1900b032f27cSSam Leffler.Ar rssi 1901b032f27cSSam Lefflerparameter specifies the receive signal strength in dBm units 1902b032f27cSSam Lefflerat which roaming should be considered. 1903b032f27cSSam LefflerIf the current rssi drops below this setting and background scanning 1904b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1905b032f27cSSam Leffleravailable and switch over to it. 1906b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1907b032f27cSSam Lefflervalid according to the 1908b032f27cSSam Leffler.Cm scanvalid 1909b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1910b032f27cSSam Lefflerany selection occurs. 1911b3c97464SRui PauloEach channel type has a separate rssi threshold; the default values are 1912b032f27cSSam Lefflerall 7 dBm. 19135faf8dcbSSam Leffler.It Cm roaming Ar mode 19145faf8dcbSSam LefflerWhen operating as a station, control how the system will 19155faf8dcbSSam Lefflerbehave when communication with the current access point 19165faf8dcbSSam Leffleris broken. 191721414470SRuslan ErmilovThe 191821414470SRuslan Ermilov.Ar mode 191921414470SRuslan Ermilovargument may be one of 19204e9e907dSRuslan Ermilov.Cm device 19215faf8dcbSSam Leffler(leave it to the hardware device to decide), 19224e9e907dSRuslan Ermilov.Cm auto 192321414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate), 19244e9e907dSRuslan Ermilov.Cm manual 19255faf8dcbSSam Leffler(do nothing until explicitly instructed). 192621414470SRuslan ErmilovBy default, the device is left to handle this if it is 192721414470SRuslan Ermilovcapable; otherwise, the operating system will automatically 19285faf8dcbSSam Lefflerattempt to reestablish communication. 1929fdef6accSSam LefflerManual mode is used by applications such as 1930fdef6accSSam Leffler.Xr wpa_supplicant 8 1931fdef6accSSam Lefflerthat want to control the selection of an access point. 1932a6b03f42SSam Leffler.It Cm rtsthreshold Ar length 19335faf8dcbSSam LefflerSet the threshold for which 1934a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an 1935a6b03f42SSam LefflerRTS 1936a6b03f42SSam Lefflercontrol frame. 1937d04b5dfeSRuslan ErmilovThe 1938d04b5dfeSRuslan Ermilov.Ar length 1939d04b5dfeSRuslan Ermilovargument 1940aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346. 1941aeffcba3SSam LefflerSetting 1942aeffcba3SSam Leffler.Ar length 1943aeffcba3SSam Lefflerto 19444e9e907dSRuslan Ermilov.Li 2346 , 19454e9e907dSRuslan Ermilov.Cm any , 1946aeffcba3SSam Leffleror 19474e9e907dSRuslan Ermilov.Cm - 1948aeffcba3SSam Lefflerdisables transmission of RTS frames. 1949b032f27cSSam LefflerNot all adapters support setting the RTS threshold. 19505faf8dcbSSam Leffler.It Cm scan 1951aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and 1952aeffcba3SSam Lefflerdisplay all stations found. 1953aeffcba3SSam LefflerOnly the super-user can initiate a scan. 1954b032f27cSSam LefflerSee 1955b032f27cSSam Leffler.Cm list scan 1956b032f27cSSam Lefflerfor information on the display. 1957b032f27cSSam LefflerBy default a background scan is done; otherwise a foreground 1958b032f27cSSam Lefflerscan is done and the station may roam to a different access point. 1959aeffcba3SSam LefflerThe 19604e9e907dSRuslan Ermilov.Cm list scan 1961aeffcba3SSam Lefflerrequest can be used to show recent scan results without 1962aeffcba3SSam Lefflerinitiating a new scan. 1963fdef6accSSam Leffler.It Cm scanvalid Ar threshold 1964fdef6accSSam LefflerSet the maximum time the scan cache contents are considered valid; 1965818b39edSWarren Blocki.e., will be used without first triggering a scan operation to 1966fdef6accSSam Lefflerrefresh the data. 1967fdef6accSSam LefflerThe 1968fdef6accSSam Leffler.Ar threshold 1969fdef6accSSam Lefflerparameter is specified in seconds and defaults to 60 seconds. 1970fdef6accSSam LefflerThe minimum setting for 1971fdef6accSSam Leffler.Ar threshold 1972fdef6accSSam Leffleris 10 seconds. 1973fdef6accSSam LefflerOne should take care setting this threshold; if it is set too low 1974fdef6accSSam Lefflerthen attempts to roam to another access point may trigger unnecessary 1975fdef6accSSam Lefflerbackground scan operations. 1976b032f27cSSam Leffler.It Cm shortgi 1977b032f27cSSam LefflerEnable use of Short Guard Interval when operating in 802.11n 1978b032f27cSSam Leffleron an HT channel. 1979b032f27cSSam LefflerNB: this currently enables Short GI on both HT40 and HT20 channels. 1980b032f27cSSam LefflerTo disable Short GI use 1981b032f27cSSam Leffler.Fl shortgi . 198251947cb6SSam Leffler.It Cm smps 198351947cb6SSam LefflerEnable use of Static Spatial Multiplexing Power Save (SMPS) 198451947cb6SSam Lefflerwhen operating in 802.11n. 198551947cb6SSam LefflerA station operating with Static SMPS maintains only a single 198651947cb6SSam Lefflerreceive chain active (this can significantly reduce power consumption). 198751947cb6SSam LefflerTo disable SMPS use 198851947cb6SSam Leffler.Fl smps . 198951947cb6SSam Leffler.It Cm smpsdyn 199051947cb6SSam LefflerEnable use of Dynamic Spatial Multiplexing Power Save (SMPS) 199151947cb6SSam Lefflerwhen operating in 802.11n. 199251947cb6SSam LefflerA station operating with Dynamic SMPS maintains only a single 199351947cb6SSam Lefflerreceive chain active but switches to multiple receive chains when it 199451947cb6SSam Lefflerreceives an RTS frame (this can significantly reduce power consumption). 199551947cb6SSam LefflerNote that stations cannot distinguish between RTS/CTS intended to 199651947cb6SSam Lefflerenable multiple receive chains and those used for other purposes. 199751947cb6SSam LefflerTo disable SMPS use 199851947cb6SSam Leffler.Fl smps . 1999b032f27cSSam Leffler.It Cm ssid Ar ssid 2000b032f27cSSam LefflerSet the desired Service Set Identifier (aka network name). 2001b032f27cSSam LefflerThe SSID is a string up to 32 characters 2002b032f27cSSam Lefflerin length and may be specified as either a normal string or in 2003b032f27cSSam Lefflerhexadecimal when preceded by 2004b032f27cSSam Leffler.Ql 0x . 2005b032f27cSSam LefflerAdditionally, the SSID may be cleared by setting it to 2006b032f27cSSam Leffler.Ql - . 200710ad9a77SSam Leffler.It Cm tdmaslot Ar slot 200810ad9a77SSam LefflerWhen operating with TDMA, use the specified 200910ad9a77SSam Leffler.Ar slot 201010ad9a77SSam Lefflerconfiguration. 201110ad9a77SSam LefflerThe 201210ad9a77SSam Leffler.Ar slot 201310ad9a77SSam Leffleris a number between 0 and the maximum number of slots in the BSS. 201410ad9a77SSam LefflerNote that a station configured as slot 0 is a master and 201510ad9a77SSam Lefflerwill broadcast beacon frames advertising the BSS; 201610ad9a77SSam Lefflerstations configured to use other slots will always 201710ad9a77SSam Lefflerscan to locate a master before they ever transmit. 201810ad9a77SSam LefflerBy default 201910ad9a77SSam Leffler.Cm tdmaslot 202010ad9a77SSam Leffleris set to 1. 202110ad9a77SSam Leffler.It Cm tdmaslotcnt Ar cnt 202210ad9a77SSam LefflerWhen operating with TDMA, setup a BSS with 202310ad9a77SSam Leffler.Ar cnt 202410ad9a77SSam Lefflerslots. 202510ad9a77SSam LefflerThe slot count may be at most 8. 202610ad9a77SSam LefflerThe current implementation is only tested with two stations 2027818b39edSWarren Block(i.e., point to point applications). 202810ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 202910ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 203010ad9a77SSam LefflerBy default 203110ad9a77SSam Leffler.Cm tdmaslotcnt 203210ad9a77SSam Leffleris set to 2. 203310ad9a77SSam Leffler.It Cm tdmaslotlen Ar len 203410ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that each station has a slot 203510ad9a77SSam Leffler.Ar len 203610ad9a77SSam Lefflermicroseconds long. 203710ad9a77SSam LefflerThe slot length must be at least 150 microseconds (1/8 TU) 203810ad9a77SSam Lefflerand no more than 65 milliseconds. 203910ad9a77SSam LefflerNote that setting too small a slot length may result in poor channel 204010ad9a77SSam Lefflerbandwidth utilization due to factors such as timer granularity and 204110ad9a77SSam Lefflerguard time. 204210ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 204310ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 204410ad9a77SSam LefflerBy default 204510ad9a77SSam Leffler.Cm tdmaslotlen 204610ad9a77SSam Leffleris set to 10 milliseconds. 204710ad9a77SSam Leffler.It Cm tdmabintval Ar intval 204810ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that beacons are transmitted every 204910ad9a77SSam Leffler.Ar intval 205010ad9a77SSam Lefflersuperframes to synchronize the TDMA slot timing. 2051818b39edSWarren BlockA superframe is defined as the number of slots times the slot length; e.g., 205210ad9a77SSam Lefflera BSS with two slots of 10 milliseconds has a 20 millisecond superframe. 205310ad9a77SSam LefflerThe beacon interval may not be zero. 205410ad9a77SSam LefflerA lower setting of 205510ad9a77SSam Leffler.Cm tdmabintval 205610ad9a77SSam Lefflercauses the timers to be resynchronized more often; this can be help if 205710ad9a77SSam Lefflersignificant timer drift is observed. 205810ad9a77SSam LefflerBy default 205910ad9a77SSam Leffler.Cm tdmabintval 206010ad9a77SSam Leffleris set to 5. 2061b032f27cSSam Leffler.It Cm tsn 2062b032f27cSSam LefflerWhen operating as an access point with WPA/802.11i allow legacy 2063b032f27cSSam Lefflerstations to associate using static key WEP and open authentication. 2064b032f27cSSam LefflerTo disallow legacy station use of WEP, use 2065b032f27cSSam Leffler.Fl tsn . 2066a6b03f42SSam Leffler.It Cm txpower Ar power 20675faf8dcbSSam LefflerSet the power used to transmit frames. 2068d04b5dfeSRuslan ErmilovThe 2069d04b5dfeSRuslan Ermilov.Ar power 2070d592cd38SSam Lefflerargument is specified in .5 dBm units. 2071a6b03f42SSam LefflerOut of range values are truncated. 2072a6b03f42SSam LefflerTypically only a few discreet power settings are available and 2073a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value. 2074b032f27cSSam LefflerNot all adapters support changing the transmit power. 2075b032f27cSSam Leffler.It Cm ucastrate Ar rate 2076b032f27cSSam LefflerSet a fixed rate for transmitting unicast frames. 2077818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 2078b032f27cSSam LefflerThis rate should be valid for the current operating conditions; 2079b032f27cSSam Lefflerif an invalid rate is specified drivers are free to chose an 2080b032f27cSSam Lefflerappropriate rate. 2081419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode 20825faf8dcbSSam LefflerSet the desired WEP mode. 2083b032f27cSSam LefflerNot all adapters support all modes. 2084b09b4efbSRuslan ErmilovThe set of valid modes is 20854e9e907dSRuslan Ermilov.Cm off , on , 2086419d8080SPoul-Henning Kampand 20874e9e907dSRuslan Ermilov.Cm mixed . 2088d04b5dfeSRuslan ErmilovThe 20894e9e907dSRuslan Ermilov.Cm mixed 2090419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access 2091b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic. 2092b032f27cSSam LefflerOn these adapters, 20934e9e907dSRuslan Ermilov.Cm on 2094b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections. 2095b032f27cSSam LefflerOn other adapters, 20964e9e907dSRuslan Ermilov.Cm on 2097419d8080SPoul-Henning Kampis generally another name for 20984e9e907dSRuslan Ermilov.Cm mixed . 2099419d8080SPoul-Henning KampModes are case insensitive. 2100419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index 21015faf8dcbSSam LefflerSet the WEP key to be used for transmission. 21024e0a8f0dSSam LefflerThis is the same as setting the default transmission key with 21034e0a8f0dSSam Leffler.Cm deftxkey . 2104b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key 21055faf8dcbSSam LefflerSet the selected WEP key. 2106b09b4efbSRuslan ErmilovIf an 2107419d8080SPoul-Henning Kamp.Ar index 2108b09b4efbSRuslan Ermilovis not given, key 1 is set. 2109b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13 2110c2025a76SJoel Dahlcharacters (40 or 104 bits) depending on the local network and the 2111b09b4efbSRuslan Ermilovcapabilities of the adaptor. 2112b09b4efbSRuslan ErmilovIt may be specified either as a plain 2113e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by 2114b09b4efbSRuslan Ermilov.Ql 0x . 2115d8f2e345SWarner LoshFor maximum portability, hex keys are recommended; 2116d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific. 211744c4affaSMateusz PiotrowskiIn particular, the Windows drivers do this mapping differently to 2118a61d9c47SRuslan Ermilov.Fx . 2119419d8080SPoul-Henning KampA key may be cleared by setting it to 2120b09b4efbSRuslan Ermilov.Ql - . 2121b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys. 2122b032f27cSSam LefflerSome adapters support more than four keys. 2123b09b4efbSRuslan ErmilovIf that is the case, then the first four keys 2124419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor 2125419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM. 21265ce09a9eSSam Leffler.Pp 21275ce09a9eSSam LefflerNote that you must set a default transmit key with 21285ce09a9eSSam Leffler.Cm deftxkey 21295ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 21305faf8dcbSSam Leffler.It Cm wme 2131aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available, 21325faf8dcbSSam Lefflerfor the specified interface. 21335faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the 21345faf8dcbSSam Lefflerefficient communication of realtime and multimedia data. 213521414470SRuslan ErmilovTo disable WME support, use 21365faf8dcbSSam Leffler.Fl wme . 2137b032f27cSSam LefflerAnother name for this parameter is 2138b032f27cSSam Leffler.Cm wmm . 2139aeffcba3SSam Leffler.Pp 2140aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use. 2141aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and 2142aeffcba3SSam Lefflersplit into those that are used by a station when acting 2143aeffcba3SSam Leffleras an access point and those for client stations in the BSS. 2144aeffcba3SSam LefflerThe latter are received from the access point and may not be changed 2145aeffcba3SSam Leffler(at the station). 2146aeffcba3SSam LefflerThe following Access Categories are recognized: 2147aeffcba3SSam Leffler.Pp 21484e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact 2149aeffcba3SSam Leffler.It Cm AC_BE 21504e9e907dSRuslan Ermilov(or 21514e9e907dSRuslan Ermilov.Cm BE ) 21524e9e907dSRuslan Ermilovbest effort delivery, 2153aeffcba3SSam Leffler.It Cm AC_BK 21544e9e907dSRuslan Ermilov(or 21554e9e907dSRuslan Ermilov.Cm BK ) 21564e9e907dSRuslan Ermilovbackground traffic, 2157aeffcba3SSam Leffler.It Cm AC_VI 21584e9e907dSRuslan Ermilov(or 21594e9e907dSRuslan Ermilov.Cm VI ) 21604e9e907dSRuslan Ermilovvideo traffic, 2161aeffcba3SSam Leffler.It Cm AC_VO 21624e9e907dSRuslan Ermilov(or 21634e9e907dSRuslan Ermilov.Cm VO ) 21644e9e907dSRuslan Ermilovvoice traffic. 21655faf8dcbSSam Leffler.El 21665faf8dcbSSam Leffler.Pp 2167aeffcba3SSam LefflerAC parameters are case-insensitive. 2168aeffcba3SSam LefflerTraffic classification is done in the operating system using the 2169aeffcba3SSam Lefflervlan priority associated with data frames or the 2170aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames. 21714e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the 2172aeffcba3SSam LefflerBest Effort (BE) category. 2173aeffcba3SSam Leffler.Bl -tag -width indent 2174aeffcba3SSam Leffler.It Cm ack Ar ac 2175aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station; 2176aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station 2177aeffcba3SSam Lefflerrequire an ACK response from the receiving station. 2178aeffcba3SSam LefflerTo disable waiting for an ACK use 2179aeffcba3SSam Leffler.Fl ack . 2180aeffcba3SSam LefflerThis parameter is applied only to the local station. 2181aeffcba3SSam Leffler.It Cm acm Ar ac 2182aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism 2183aeffcba3SSam Lefflerfor transmissions by the local station. 2184aeffcba3SSam LefflerTo disable the ACM use 2185aeffcba3SSam Leffler.Fl acm . 2186aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2187aeffcba3SSam Lefflerthe setting received from the access point. 2188aeffcba3SSam LefflerNB: ACM is not supported right now. 2189aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count 2190aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS) 2191aeffcba3SSam Lefflerchannel access parameter to use for transmissions 2192aeffcba3SSam Lefflerby the local station. 2193aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2194aeffcba3SSam Lefflerthe setting received from the access point. 2195aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count 2196aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions 2197aeffcba3SSam Lefflerby the local station. 2198aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2199aeffcba3SSam Lefflerthe setting received from the access point. 2200aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count 2201aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions 2202aeffcba3SSam Lefflerby the local station. 2203aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2204aeffcba3SSam Lefflerthe setting received from the access point. 2205aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit 2206aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter 2207aeffcba3SSam Lefflerto use for transmissions by the local station. 2208aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station 2209aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium. 2210aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2211aeffcba3SSam Lefflerthe setting received from the access point. 2212aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count 2213aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS. 2214aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2215aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count 2216aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS. 2217aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2218aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count 2219aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS. 2220aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2221aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit 2222aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS. 2223aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2224aeffcba3SSam Leffler.El 2225b032f27cSSam Leffler.It Cm wps 2226b032f27cSSam LefflerEnable Wireless Privacy Subscriber support. 2227b032f27cSSam LefflerNote that WPS support requires a WPS-capable supplicant. 2228b032f27cSSam LefflerTo disable this function use 2229b032f27cSSam Leffler.Fl wps . 2230aeffcba3SSam Leffler.El 22310e2045b2SMateusz Piotrowski.Ss MAC-Based Access Control List Parameters 2232aeffcba3SSam LefflerThe following parameters support an optional access control list 2233b032f27cSSam Lefflerfeature available with some adapters when operating in ap mode; see 2234aeffcba3SSam Leffler.Xr wlan_acl 4 . 2235aeffcba3SSam LefflerThis facility allows an access point to accept/deny association 2236aeffcba3SSam Lefflerrequests based on the MAC address of the station. 2237aeffcba3SSam LefflerNote that this feature does not significantly enhance security 2238aeffcba3SSam Leffleras MAC address spoofing is easy to do. 2239aeffcba3SSam Leffler.Bl -tag -width indent 2240aeffcba3SSam Leffler.It Cm mac:add Ar address 2241aeffcba3SSam LefflerAdd the specified MAC address to the database. 2242aeffcba3SSam LefflerDepending on the policy setting association requests from the 2243aeffcba3SSam Lefflerspecified station will be allowed or denied. 2244aeffcba3SSam Leffler.It Cm mac:allow 2245aeffcba3SSam LefflerSet the ACL policy to permit association only by 2246aeffcba3SSam Lefflerstations registered in the database. 2247e70fcb23SSam Leffler.It Cm mac:del Ar address 2248aeffcba3SSam LefflerDelete the specified MAC address from the database. 2249aeffcba3SSam Leffler.It Cm mac:deny 2250aeffcba3SSam LefflerSet the ACL policy to deny association only by 2251aeffcba3SSam Lefflerstations registered in the database. 2252e70fcb23SSam Leffler.It Cm mac:kick Ar address 225329f0e929SSam LefflerForce the specified station to be deauthenticated. 225429f0e929SSam LefflerThis typically is done to block a station after updating the 225529f0e929SSam Leffleraddress database. 2256aeffcba3SSam Leffler.It Cm mac:open 2257aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate. 2258aeffcba3SSam Leffler.It Cm mac:flush 2259aeffcba3SSam LefflerDelete all entries in the database. 2260b032f27cSSam Leffler.It Cm mac:radius 2261b032f27cSSam LefflerSet the ACL policy to permit association only by 2262b032f27cSSam Lefflerstations approved by a RADIUS server. 2263b032f27cSSam LefflerNote that this feature requires the 2264b032f27cSSam Leffler.Xr hostapd 8 2265b032f27cSSam Lefflerprogram be configured to do the right thing 2266b032f27cSSam Leffleras it handles the RADIUS processing 2267b032f27cSSam Leffler(and marks stations as authorized). 2268aeffcba3SSam Leffler.El 22690e2045b2SMateusz Piotrowski.Ss Mesh Mode Wireless Interface Parameters 227059aa14a9SRui PauloThe following parameters are related to a wireless interface operating in mesh 227159aa14a9SRui Paulomode: 227259aa14a9SRui Paulo.Bl -tag -width indent 227359aa14a9SRui Paulo.It Cm meshid Ar meshid 227459aa14a9SRui PauloSet the desired Mesh Identifier. 227559aa14a9SRui PauloThe Mesh ID is a string up to 32 characters in length. 227659aa14a9SRui PauloA mesh interface must have a Mesh Identifier specified 227759aa14a9SRui Pauloto reach an operational state. 227859aa14a9SRui Paulo.It Cm meshttl Ar ttl 2279*67d77afbSMateusz PiotrowskiSet the desired 2280*67d77afbSMateusz Piotrowski.Dq time to live 2281*67d77afbSMateusz Piotrowskifor mesh forwarded packets; 228259aa14a9SRui Paulothis is the number of hops a packet may be forwarded before 228359aa14a9SRui Pauloit is discarded. 228459aa14a9SRui PauloThe default setting for 228559aa14a9SRui Paulo.Cm meshttl 228659aa14a9SRui Paulois 31. 228759aa14a9SRui Paulo.It Cm meshpeering 228859aa14a9SRui PauloEnable or disable peering with neighbor mesh stations. 228959aa14a9SRui PauloStations must peer before any data packets can be exchanged. 229059aa14a9SRui PauloBy default 229159aa14a9SRui Paulo.Cm meshpeering 229259aa14a9SRui Paulois enabled. 229359aa14a9SRui Paulo.It Cm meshforward 229459aa14a9SRui PauloEnable or disable forwarding packets by a mesh interface. 229559aa14a9SRui PauloBy default 229659aa14a9SRui Paulo.Cm meshforward 229759aa14a9SRui Paulois enabled. 2298e6e06eb8SMonthadar Al Jaberi.It Cm meshgate 2299e6e06eb8SMonthadar Al JaberiThis attribute specifies whether or not the mesh STA activates mesh gate 2300e6e06eb8SMonthadar Al Jaberiannouncements. 2301e6e06eb8SMonthadar Al JaberiBy default 2302e6e06eb8SMonthadar Al Jaberi.Cm meshgate 2303e6e06eb8SMonthadar Al Jaberiis disabled. 230459aa14a9SRui Paulo.It Cm meshmetric Ar protocol 230559aa14a9SRui PauloSet the specified 230659aa14a9SRui Paulo.Ar protocol 230759aa14a9SRui Pauloas the link metric protocol used on a mesh network. 230859aa14a9SRui PauloThe default protocol is called 230959aa14a9SRui Paulo.Ar AIRTIME . 231059aa14a9SRui PauloThe mesh interface will restart after changing this setting. 231159aa14a9SRui Paulo.It Cm meshpath Ar protocol 231259aa14a9SRui PauloSet the specified 231359aa14a9SRui Paulo.Ar protocol 231459aa14a9SRui Pauloas the path selection protocol used on a mesh network. 231559aa14a9SRui PauloThe only available protocol at the moment is called 231659aa14a9SRui Paulo.Ar HWMP 231759aa14a9SRui Paulo(Hybrid Wireless Mesh Protocol). 231859aa14a9SRui PauloThe mesh interface will restart after changing this setting. 231959aa14a9SRui Paulo.It Cm hwmprootmode Ar mode 2320*67d77afbSMateusz PiotrowskiStations on a mesh network can operate as 2321*67d77afbSMateusz Piotrowski.Dq root nodes . 232259aa14a9SRui PauloRoot nodes try to find paths to all mesh nodes and advertise themselves 232359aa14a9SRui Pauloregularly. 232459aa14a9SRui PauloWhen there is a root mesh node on a network, other mesh nodes can setup 232559aa14a9SRui Paulopaths between themselves faster because they can use the root node 232659aa14a9SRui Pauloto find the destination. 232759aa14a9SRui PauloThis path may not be the best, but on-demand 232859aa14a9SRui Paulorouting will eventually find the best path. 232959aa14a9SRui PauloThe following modes are recognized: 233059aa14a9SRui Paulo.Pp 233159aa14a9SRui Paulo.Bl -tag -width ".Cm PROACTIVE" -compact 233259aa14a9SRui Paulo.It Cm DISABLED 233359aa14a9SRui PauloDisable root mode. 233459aa14a9SRui Paulo.It Cm NORMAL 233559aa14a9SRui PauloSend broadcast path requests every two seconds. 233659aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 233759aa14a9SRui Paulodiscover a path to us. 233859aa14a9SRui Paulo.It Cm PROACTIVE 2339a4dec862SJoel DahlSend broadcast path requests every two seconds and every node must reply 2340c2025a76SJoel Dahlwith a path reply even if it already has a path to this root mesh station. 234159aa14a9SRui Paulo.It Cm RANN 2342a53bb70bSJoel DahlSend broadcast root announcement (RANN) frames. 234359aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 234459aa14a9SRui Paulodiscover a path to us. 234559aa14a9SRui Paulo.El 234659aa14a9SRui PauloBy default 234759aa14a9SRui Paulo.Cm hwmprootmode 234859aa14a9SRui Paulois set to 234959aa14a9SRui Paulo.Ar DISABLED . 235059aa14a9SRui Paulo.It Cm hwmpmaxhops Ar cnt 235159aa14a9SRui PauloSet the maximum number of hops allowed in an HMWP path to 235259aa14a9SRui Paulo.Ar cnt . 235359aa14a9SRui PauloThe default setting for 235459aa14a9SRui Paulo.Cm hwmpmaxhops 235559aa14a9SRui Paulois 31. 235659aa14a9SRui Paulo.El 23570e2045b2SMateusz Piotrowski.Ss Compatibility Parameters 2358aeffcba3SSam LefflerThe following parameters are for compatibility with other systems: 23595faf8dcbSSam Leffler.Bl -tag -width indent 23605faf8dcbSSam Leffler.It Cm nwid Ar ssid 23615faf8dcbSSam LefflerAnother name for the 23625faf8dcbSSam Leffler.Cm ssid 23635faf8dcbSSam Lefflerparameter. 23645faf8dcbSSam LefflerIncluded for 23655faf8dcbSSam Leffler.Nx 23665faf8dcbSSam Lefflercompatibility. 2367b032f27cSSam Leffler.It Cm stationname Ar name 2368b032f27cSSam LefflerSet the name of this station. 2369b032f27cSSam LefflerThe station name is not part of the IEEE 802.11 2370b032f27cSSam Lefflerprotocol though some interfaces support it. 2371b032f27cSSam LefflerAs such it only 2372b032f27cSSam Lefflerseems to be meaningful to identical or virtually identical equipment. 2373b032f27cSSam LefflerSetting the station name is identical in syntax to setting the SSID. 2374b032f27cSSam LefflerOne can also use 2375b032f27cSSam Leffler.Cm station 2376b032f27cSSam Lefflerfor 23775faf8dcbSSam Leffler.Bsx 23785faf8dcbSSam Lefflercompatibility. 2379419d8080SPoul-Henning Kamp.It Cm wep 2380419d8080SPoul-Henning KampAnother way of saying 2381b09b4efbSRuslan Ermilov.Cm wepmode on . 2382b09b4efbSRuslan ErmilovIncluded for 2383b09b4efbSRuslan Ermilov.Bsx 2384b09b4efbSRuslan Ermilovcompatibility. 2385b09b4efbSRuslan Ermilov.It Fl wep 2386419d8080SPoul-Henning KampAnother way of saying 2387b09b4efbSRuslan Ermilov.Cm wepmode off . 2388b09b4efbSRuslan ErmilovIncluded for 2389b09b4efbSRuslan Ermilov.Bsx 2390b09b4efbSRuslan Ermilovcompatibility. 2391419d8080SPoul-Henning Kamp.It Cm nwkey key 2392419d8080SPoul-Henning KampAnother way of saying: 2393b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" . 2394b09b4efbSRuslan ErmilovIncluded for 2395b09b4efbSRuslan Ermilov.Nx 2396b09b4efbSRuslan Ermilovcompatibility. 2397b09b4efbSRuslan Ermilov.It Cm nwkey Xo 2398b09b4efbSRuslan Ermilov.Sm off 2399b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4 2400b09b4efbSRuslan Ermilov.Sm on 2401b09b4efbSRuslan Ermilov.Xc 2402419d8080SPoul-Henning KampAnother way of saying 2403b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" . 2404b09b4efbSRuslan ErmilovIncluded for 2405b09b4efbSRuslan Ermilov.Nx 2406b09b4efbSRuslan Ermilovcompatibility. 2407b09b4efbSRuslan Ermilov.It Fl nwkey 2408419d8080SPoul-Henning KampAnother way of saying 2409b09b4efbSRuslan Ermilov.Cm wepmode off . 2410b09b4efbSRuslan ErmilovIncluded for 2411b09b4efbSRuslan Ermilov.Nx 2412b09b4efbSRuslan Ermilovcompatibility. 24138fae3551SRodney W. Grimes.El 24140e2045b2SMateusz Piotrowski.Ss Bridge Interface Parameters 24157afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces: 24167afc53b8SAndrew Thompson.Bl -tag -width indent 24177afc53b8SAndrew Thompson.It Cm addm Ar interface 24187afc53b8SAndrew ThompsonAdd the interface named by 24197afc53b8SAndrew Thompson.Ar interface 24207afc53b8SAndrew Thompsonas a member of the bridge. 24217afc53b8SAndrew ThompsonThe interface is put into promiscuous mode 24227afc53b8SAndrew Thompsonso that it can receive every packet sent on the network. 24237afc53b8SAndrew Thompson.It Cm deletem Ar interface 24247afc53b8SAndrew ThompsonRemove the interface named by 24257afc53b8SAndrew Thompson.Ar interface 24267afc53b8SAndrew Thompsonfrom the bridge. 24277afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when 24287afc53b8SAndrew Thompsonit is removed from the bridge. 24297afc53b8SAndrew Thompson.It Cm maxaddr Ar size 24307afc53b8SAndrew ThompsonSet the size of the bridge address cache to 24317afc53b8SAndrew Thompson.Ar size . 24325640c372SChristian BruefferThe default is 2000 entries. 24337afc53b8SAndrew Thompson.It Cm timeout Ar seconds 24347afc53b8SAndrew ThompsonSet the timeout of address cache entries to 24357afc53b8SAndrew Thompson.Ar seconds 24367afc53b8SAndrew Thompsonseconds. 24377afc53b8SAndrew ThompsonIf 24387afc53b8SAndrew Thompson.Ar seconds 24397afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired. 24405640c372SChristian BruefferThe default is 1200 seconds. 2441db7d6dc1SAndrew Thompson.It Cm addr 2442db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge. 2443db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address 2444db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to 2445db7d6dc1SAndrew Thompson.Ar interface-name . 2446db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the 2447db7d6dc1SAndrew Thompsonaddress is seen on a different interface. 24487afc53b8SAndrew Thompson.It Cm deladdr Ar address 24497afc53b8SAndrew ThompsonDelete 24507afc53b8SAndrew Thompson.Ar address 24517afc53b8SAndrew Thompsonfrom the address cache. 24527afc53b8SAndrew Thompson.It Cm flush 24537afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache. 24547afc53b8SAndrew Thompson.It Cm flushall 24557afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache. 24567afc53b8SAndrew Thompson.It Cm discover Ar interface 24577afc53b8SAndrew ThompsonMark an interface as a 24587afc53b8SAndrew Thompson.Dq discovering 24597afc53b8SAndrew Thompsoninterface. 24607afc53b8SAndrew ThompsonWhen the bridge has no address cache entry 24617afc53b8SAndrew Thompson(either dynamic or static) 24627afc53b8SAndrew Thompsonfor the destination address of a packet, 24637afc53b8SAndrew Thompsonthe bridge will forward the packet to all 24647afc53b8SAndrew Thompsonmember interfaces marked as 24657afc53b8SAndrew Thompson.Dq discovering . 24667afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24677afc53b8SAndrew Thompson.It Cm -discover Ar interface 24687afc53b8SAndrew ThompsonClear the 24697afc53b8SAndrew Thompson.Dq discovering 24707afc53b8SAndrew Thompsonattribute on a member interface. 24717afc53b8SAndrew ThompsonFor packets without the 24727afc53b8SAndrew Thompson.Dq discovering 24737afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast 24747afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address 24757afc53b8SAndrew Thompsonis known to be on the interface's segment. 24767afc53b8SAndrew Thompson.It Cm learn Ar interface 24777afc53b8SAndrew ThompsonMark an interface as a 24787afc53b8SAndrew Thompson.Dq learning 24797afc53b8SAndrew Thompsoninterface. 24807afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source 24817afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a 24827afc53b8SAndrew Thompsondestination address on the interface's segment. 24837afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24847afc53b8SAndrew Thompson.It Cm -learn Ar interface 24857afc53b8SAndrew ThompsonClear the 24867afc53b8SAndrew Thompson.Dq learning 24877afc53b8SAndrew Thompsonattribute on a member interface. 24883df7fad0SAndrew Thompson.It Cm sticky Ar interface 24893df7fad0SAndrew ThompsonMark an interface as a 24903df7fad0SAndrew Thompson.Dq sticky 24913df7fad0SAndrew Thompsoninterface. 24923df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into 24933df7fad0SAndrew Thompsonthe cache. 24943df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the 24953df7fad0SAndrew Thompsonaddress is seen on a different interface. 24963df7fad0SAndrew Thompson.It Cm -sticky Ar interface 24973df7fad0SAndrew ThompsonClear the 24983df7fad0SAndrew Thompson.Dq sticky 24993df7fad0SAndrew Thompsonattribute on a member interface. 250085ce7297SAndrew Thompson.It Cm private Ar interface 250185ce7297SAndrew ThompsonMark an interface as a 250285ce7297SAndrew Thompson.Dq private 250385ce7297SAndrew Thompsoninterface. 250485ce7297SAndrew ThompsonA private interface does not forward any traffic to any other port that is also 250585ce7297SAndrew Thompsona private interface. 250685ce7297SAndrew Thompson.It Cm -private Ar interface 250785ce7297SAndrew ThompsonClear the 250885ce7297SAndrew Thompson.Dq private 250985ce7297SAndrew Thompsonattribute on a member interface. 251091f6764eSAndrew Thompson.It Cm span Ar interface 251191f6764eSAndrew ThompsonAdd the interface named by 251291f6764eSAndrew Thompson.Ar interface 251391f6764eSAndrew Thompsonas a span port on the bridge. 251491f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge. 251591f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on 251691f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge. 251791f6764eSAndrew Thompson.It Cm -span Ar interface 251891f6764eSAndrew ThompsonDelete the interface named by 251991f6764eSAndrew Thompson.Ar interface 252091f6764eSAndrew Thompsonfrom the list of span ports of the bridge. 25217afc53b8SAndrew Thompson.It Cm stp Ar interface 25227afc53b8SAndrew ThompsonEnable Spanning Tree protocol on 25237afc53b8SAndrew Thompson.Ar interface . 25247afc53b8SAndrew ThompsonThe 25257afc53b8SAndrew Thompson.Xr if_bridge 4 25267afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP). 25277afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology. 25287afc53b8SAndrew Thompson.It Cm -stp Ar interface 25297afc53b8SAndrew ThompsonDisable Spanning Tree protocol on 25307afc53b8SAndrew Thompson.Ar interface . 25317afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 25323fab7669SAndrew Thompson.It Cm edge Ar interface 25333fab7669SAndrew ThompsonSet 25343fab7669SAndrew Thompson.Ar interface 25353fab7669SAndrew Thompsonas an edge port. 25363fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging 25373fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding. 25383fab7669SAndrew Thompson.It Cm -edge Ar interface 25393fab7669SAndrew ThompsonDisable edge status on 25403fab7669SAndrew Thompson.Ar interface . 25413fab7669SAndrew Thompson.It Cm autoedge Ar interface 25423fab7669SAndrew ThompsonAllow 25433fab7669SAndrew Thompson.Ar interface 25443fab7669SAndrew Thompsonto automatically detect edge status. 25453fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge. 25463fab7669SAndrew Thompson.It Cm -autoedge Ar interface 25473fab7669SAndrew ThompsonDisable automatic edge status on 25483fab7669SAndrew Thompson.Ar interface . 254978709605SAndrew Thompson.It Cm ptp Ar interface 2550153f9b00SAndrew ThompsonSet the 2551153f9b00SAndrew Thompson.Ar interface 2552153f9b00SAndrew Thompsonas a point to point link. 2553153f9b00SAndrew ThompsonThis is required for straight transitions to forwarding and 2554153f9b00SAndrew Thompsonshould be enabled on a direct link to another RSTP capable switch. 255578709605SAndrew Thompson.It Cm -ptp Ar interface 2556153f9b00SAndrew ThompsonDisable point to point link status on 2557153f9b00SAndrew Thompson.Ar interface . 2558153f9b00SAndrew ThompsonThis should be disabled for a half duplex link and for an interface 2559153f9b00SAndrew Thompsonconnected to a shared network segment, 2560153f9b00SAndrew Thompsonlike a hub or a wireless network. 256178709605SAndrew Thompson.It Cm autoptp Ar interface 2562153f9b00SAndrew ThompsonAutomatically detect the point to point status on 2563153f9b00SAndrew Thompson.Ar interface 2564153f9b00SAndrew Thompsonby checking the full duplex link status. 2565153f9b00SAndrew ThompsonThis is the default for interfaces added to the bridge. 256678709605SAndrew Thompson.It Cm -autoptp Ar interface 2567153f9b00SAndrew ThompsonDisable automatic point to point link detection on 2568153f9b00SAndrew Thompson.Ar interface . 25697afc53b8SAndrew Thompson.It Cm maxage Ar seconds 25707afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid. 25717afc53b8SAndrew ThompsonThe default is 20 seconds. 25723fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds. 25737afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds 25747afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding 25757afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled. 25767afc53b8SAndrew ThompsonThe default is 15 seconds. 25773fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds. 25787afc53b8SAndrew Thompson.It Cm hellotime Ar seconds 25797afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol 25807afc53b8SAndrew Thompsonconfiguration messages. 25813fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode. 25827afc53b8SAndrew ThompsonThe default is 2 seconds. 25833fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds. 25847afc53b8SAndrew Thompson.It Cm priority Ar value 25857afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree. 25867afc53b8SAndrew ThompsonThe default is 32768. 25873fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440. 258899469fe2SAndrew Thompson.It Cm proto Ar value 25893fab7669SAndrew ThompsonSet the Spanning Tree protocol. 25903fab7669SAndrew ThompsonThe default is rstp. 25913fab7669SAndrew ThompsonThe available options are stp and rstp. 25921dfd31abSAndrew Thompson.It Cm holdcnt Ar value 25933fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree. 25943fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited. 25953fab7669SAndrew ThompsonThe default is 6. 25963fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10. 25977afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value 25987afc53b8SAndrew ThompsonSet the Spanning Tree priority of 25997afc53b8SAndrew Thompson.Ar interface 26007afc53b8SAndrew Thompsonto 26017afc53b8SAndrew Thompson.Ar value . 26027afc53b8SAndrew ThompsonThe default is 128. 26033fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240. 26047afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value 26057afc53b8SAndrew ThompsonSet the Spanning Tree path cost of 26067afc53b8SAndrew Thompson.Ar interface 26077afc53b8SAndrew Thompsonto 26087afc53b8SAndrew Thompson.Ar value . 26093fab7669SAndrew ThompsonThe default is calculated from the link speed. 26103fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the 26113fab7669SAndrew Thompsoncost to 0. 26123fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000. 26135f33ec7bSAndrew Thompson.It Cm ifmaxaddr Ar interface Ar size 26145f33ec7bSAndrew ThompsonSet the maximum number of hosts allowed from an interface, packets with unknown 26155f33ec7bSAndrew Thompsonsource addresses are dropped until an existing host cache entry expires or is 26165f33ec7bSAndrew Thompsonremoved. 26175f33ec7bSAndrew ThompsonSet to 0 to disable. 26187afc53b8SAndrew Thompson.El 26190e2045b2SMateusz Piotrowski.Ss Link Aggregation and Link Failover Parameters 262018242d3bSAndrew ThompsonThe following parameters are specific to lagg interfaces: 26217b62d98bSAndrew Thompson.Bl -tag -width indent 2622a92c4bb6SHans Petter Selasky.It Cm laggtype Ar type 2623a92c4bb6SHans Petter SelaskyWhen creating a lagg interface the type can be specified as either 2624a92c4bb6SHans Petter Selasky.Cm ethernet 2625a92c4bb6SHans Petter Selaskyor 2626a92c4bb6SHans Petter Selasky.Cm infiniband . 2627a92c4bb6SHans Petter SelaskyIf not specified ethernet is the default lagg type. 262818242d3bSAndrew Thompson.It Cm laggport Ar interface 26297b62d98bSAndrew ThompsonAdd the interface named by 26307b62d98bSAndrew Thompson.Ar interface 263118242d3bSAndrew Thompsonas a port of the aggregation interface. 263218242d3bSAndrew Thompson.It Cm -laggport Ar interface 26337b62d98bSAndrew ThompsonRemove the interface named by 26347b62d98bSAndrew Thompson.Ar interface 263518242d3bSAndrew Thompsonfrom the aggregation interface. 263618242d3bSAndrew Thompson.It Cm laggproto Ar proto 263718242d3bSAndrew ThompsonSet the aggregation protocol. 2638939a050aSHiroki SatoThe default is 2639939a050aSHiroki Sato.Li failover . 2640939a050aSHiroki SatoThe available options are 2641939a050aSHiroki Sato.Li failover , 2642939a050aSHiroki Sato.Li lacp , 2643939a050aSHiroki Sato.Li loadbalance , 2644939a050aSHiroki Sato.Li roundrobin , 2645939a050aSHiroki Sato.Li broadcast 2646939a050aSHiroki Satoand 2647939a050aSHiroki Sato.Li none . 264886f67641SAndrew Thompson.It Cm lagghash Ar option Ns Oo , Ns Ar option Oc 264986f67641SAndrew ThompsonSet the packet layers to hash for aggregation protocols which load balance. 265086f67641SAndrew ThompsonThe default is 265186f67641SAndrew Thompson.Dq l2,l3,l4 . 265286f67641SAndrew ThompsonThe options can be combined using commas. 265386f67641SAndrew Thompson.Pp 265486f67641SAndrew Thompson.Bl -tag -width ".Cm l2" -compact 265586f67641SAndrew Thompson.It Cm l2 265686f67641SAndrew Thompsonsrc/dst mac address and optional vlan number. 265786f67641SAndrew Thompson.It Cm l3 265886f67641SAndrew Thompsonsrc/dst address for IPv4 or IPv6. 265986f67641SAndrew Thompson.It Cm l4 2660a0778b71SAndrew Thompsonsrc/dst port for TCP/UDP/SCTP. 266186f67641SAndrew Thompson.El 26628ebaf584SEugene Grosbein.It Cm -use_flowid 2663939a050aSHiroki SatoEnable local hash computation for RSS hash on the interface. 2664939a050aSHiroki SatoThe 2665939a050aSHiroki Sato.Li loadbalance 2666939a050aSHiroki Satoand 2667939a050aSHiroki Sato.Li lacp 2668939a050aSHiroki Satomodes will use the RSS hash from the network card if available 2669939a050aSHiroki Satoto avoid computing one, this may give poor traffic distribution 2670939a050aSHiroki Satoif the hash is invalid or uses less of the protocol header information. 26718ebaf584SEugene Grosbein.Cm -use_flowid 2672939a050aSHiroki Satodisables use of RSS hash from the network card. 2673939a050aSHiroki SatoThe default value can be set via the 2674939a050aSHiroki Sato.Va net.link.lagg.default_use_flowid 2675939a050aSHiroki Sato.Xr sysctl 8 2676939a050aSHiroki Satovariable. 2677939a050aSHiroki Sato.Li 0 2678939a050aSHiroki Satomeans 2679939a050aSHiroki Sato.Dq disabled 2680939a050aSHiroki Satoand 2681939a050aSHiroki Sato.Li 1 2682939a050aSHiroki Satomeans 2683939a050aSHiroki Sato.Dq enabled . 26848ebaf584SEugene Grosbein.It Cm use_flowid 26858ebaf584SEugene GrosbeinUse the RSS hash from the network card if available. 2686939a050aSHiroki Sato.It Cm flowid_shift Ar number 2687939a050aSHiroki SatoSet a shift parameter for RSS local hash computation. 2688939a050aSHiroki SatoHash is calculated by using flowid bits in a packet header mbuf 2689939a050aSHiroki Satowhich are shifted by the number of this parameter. 269035961dceSAndrew Gallatin.It Cm use_numa 269135961dceSAndrew GallatinEnable selection of egress ports based on the native 269235961dceSAndrew Gallatin.Xr NUMA 4 269335961dceSAndrew Gallatindomain for the packets being transmitted. 269435961dceSAndrew GallatinThis is currently only implemented for lacp mode. 269535961dceSAndrew GallatinThis works only on 269635961dceSAndrew Gallatin.Xr NUMA 4 269735961dceSAndrew Gallatinhardware, running a kernel compiled with the 269835961dceSAndrew Gallatin.Xr NUMA 4 269935961dceSAndrew Gallatinoption, and when interfaces from multiple 270035961dceSAndrew Gallatin.Xr NUMA 4 270135961dceSAndrew Gallatindomains are ports of the aggregation interface. 270235961dceSAndrew Gallatin.It Cm -use_numa 270335961dceSAndrew GallatinDisable selection of egress ports based on the native 270435961dceSAndrew Gallatin.Xr NUMA 4 270535961dceSAndrew Gallatindomain for the packets being transmitted. 27060e02b43aSHiren Panchasara.It Cm lacp_fast_timeout 27070e02b43aSHiren PanchasaraEnable lacp fast-timeout on the interface. 27080e02b43aSHiren Panchasara.It Cm -lacp_fast_timeout 27090e02b43aSHiren PanchasaraDisable lacp fast-timeout on the interface. 2710c1be893cSSteven Hartland.It Cm lacp_strict 2711c1be893cSSteven HartlandEnable lacp strict compliance on the interface. 2712c1be893cSSteven HartlandThe default value can be set via the 2713c1be893cSSteven Hartland.Va net.link.lagg.lacp.default_strict_mode 2714c1be893cSSteven Hartland.Xr sysctl 8 2715c1be893cSSteven Hartlandvariable. 2716c1be893cSSteven Hartland.Li 0 2717c1be893cSSteven Hartlandmeans 2718c1be893cSSteven Hartland.Dq disabled 2719c1be893cSSteven Hartlandand 2720c1be893cSSteven Hartland.Li 1 2721c1be893cSSteven Hartlandmeans 2722c1be893cSSteven Hartland.Dq enabled . 2723c1be893cSSteven Hartland.It Cm -lacp_strict 2724c1be893cSSteven HartlandDisable lacp strict compliance on the interface. 2725c104c299SMark Johnston.It Cm rr_limit Ar number 2726c104c299SMark JohnstonConfigure a stride for an interface in round-robin mode. 2727c104c299SMark JohnstonThe default stride is 1. 27287b62d98bSAndrew Thompson.El 27290e2045b2SMateusz Piotrowski.Ss Generic IP Tunnel Parameters 2730f8824f7bSMark FelderThe following parameters apply to IP tunnel interfaces, 2731163653e8SYaroslav Tykhiy.Xr gif 4 : 2732163653e8SYaroslav Tykhiy.Bl -tag -width indent 2733163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr 2734163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel 2735163653e8SYaroslav Tykhiyinterfaces. 2736163653e8SYaroslav TykhiyThe arguments 2737163653e8SYaroslav Tykhiy.Ar src_addr 2738163653e8SYaroslav Tykhiyand 2739163653e8SYaroslav Tykhiy.Ar dest_addr 2740163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating 2741163653e8SYaroslav TykhiyIPv4/IPv6 header. 27429e241c5eSYaroslav Tykhiy.It Fl tunnel 2743163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel 2744163653e8SYaroslav Tykhiyinterfaces previously configured with 2745163653e8SYaroslav Tykhiy.Cm tunnel . 27469e241c5eSYaroslav Tykhiy.It Cm deletetunnel 27479e241c5eSYaroslav TykhiyAnother name for the 27489e241c5eSYaroslav Tykhiy.Fl tunnel 27499e241c5eSYaroslav Tykhiyparameter. 27506dcd0ad8SHiroki Sato.It Cm accept_rev_ethip_ver 2751a53bb70bSJoel DahlSet a flag to accept both correct EtherIP packets and ones 275296db02f2SAllan Judewith reversed version field. 275396db02f2SAllan JudeEnabled by default. 27546dcd0ad8SHiroki SatoThis is for backward compatibility with 27556dcd0ad8SHiroki Sato.Fx 6.1 , 27566dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 27576dcd0ad8SHiroki Sato.It Cm -accept_rev_ethip_ver 27586dcd0ad8SHiroki SatoClear a flag 27596dcd0ad8SHiroki Sato.Cm accept_rev_ethip_ver . 2760c1b4f79dSAndrey V. Elsukov.It Cm ignore_source 2761c1b4f79dSAndrey V. ElsukovSet a flag to accept encapsulated packets destined to this host 2762c1b4f79dSAndrey V. Elsukovindependently from source address. 2763c1b4f79dSAndrey V. ElsukovThis may be useful for hosts, that receive encapsulated packets 2764c1b4f79dSAndrey V. Elsukovfrom the load balancers. 2765c1b4f79dSAndrey V. Elsukov.It Cm -ignore_source 2766c1b4f79dSAndrey V. ElsukovClear a flag 2767c1b4f79dSAndrey V. Elsukov.Cm ignore_source . 27686dcd0ad8SHiroki Sato.It Cm send_rev_ethip_ver 27696dcd0ad8SHiroki SatoSet a flag to send EtherIP packets with reversed version 277096db02f2SAllan Judefield intentionally. 277196db02f2SAllan JudeDisabled by default. 27726dcd0ad8SHiroki SatoThis is for backward compatibility with 27736dcd0ad8SHiroki Sato.Fx 6.1 , 27746dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 27756dcd0ad8SHiroki Sato.It Cm -send_rev_ethip_ver 27766dcd0ad8SHiroki SatoClear a flag 27776dcd0ad8SHiroki Sato.Cm send_rev_ethip_ver . 2778163653e8SYaroslav Tykhiy.El 27790e2045b2SMateusz Piotrowski.Ss GRE Tunnel Parameters 2780f8824f7bSMark FelderThe following parameters apply to GRE tunnel interfaces, 2781131c55bcSAndrew Thompson.Xr gre 4 : 2782131c55bcSAndrew Thompson.Bl -tag -width indent 2783f8824f7bSMark Felder.It Cm tunnel Ar src_addr dest_addr 2784f8824f7bSMark FelderConfigure the physical source and destination address for GRE tunnel 2785f8824f7bSMark Felderinterfaces. 2786f8824f7bSMark FelderThe arguments 2787f8824f7bSMark Felder.Ar src_addr 2788f8824f7bSMark Felderand 2789f8824f7bSMark Felder.Ar dest_addr 2790f8824f7bSMark Felderare interpreted as the outer source/destination for the encapsulating 2791f8824f7bSMark FelderIPv4/IPv6 header. 2792f8824f7bSMark Felder.It Fl tunnel 2793f8824f7bSMark FelderUnconfigure the physical source and destination address for GRE tunnel 2794f8824f7bSMark Felderinterfaces previously configured with 2795f8824f7bSMark Felder.Cm tunnel . 2796f8824f7bSMark Felder.It Cm deletetunnel 2797f8824f7bSMark FelderAnother name for the 2798f8824f7bSMark Felder.Fl tunnel 2799f8824f7bSMark Felderparameter. 2800131c55bcSAndrew Thompson.It Cm grekey Ar key 2801131c55bcSAndrew ThompsonConfigure the GRE key to be used for outgoing packets. 2802131c55bcSAndrew ThompsonNote that 2803131c55bcSAndrew Thompson.Xr gre 4 will always accept GRE packets with invalid or absent keys. 2804131c55bcSAndrew ThompsonThis command will result in a four byte MTU reduction on the interface. 2805131c55bcSAndrew Thompson.El 28060e2045b2SMateusz Piotrowski.Ss Packet Filter State Table Sychronisation Parameters 2807163653e8SYaroslav TykhiyThe following parameters are specific to 2808ced42c6cSCeri Davies.Xr pfsync 4 2809ced42c6cSCeri Daviesinterfaces: 2810ced42c6cSCeri Davies.Bl -tag -width indent 281179f6687dSGleb Smirnoff.It Cm syncdev Ar iface 281279f6687dSGleb SmirnoffUse the specified interface 281379f6687dSGleb Smirnoffto send and receive pfsync state synchronisation messages. 281479f6687dSGleb Smirnoff.It Fl syncdev 281579f6687dSGleb SmirnoffStop sending pfsync state synchronisation messages over the network. 281679f6687dSGleb Smirnoff.It Cm syncpeer Ar peer_address 281779f6687dSGleb SmirnoffMake the pfsync link point-to-point rather than using 281879f6687dSGleb Smirnoffmulticast to broadcast the state synchronisation messages. 281979f6687dSGleb SmirnoffThe peer_address is the IP address of the other host taking part in 282079f6687dSGleb Smirnoffthe pfsync cluster. 282179f6687dSGleb Smirnoff.It Fl syncpeer 282279f6687dSGleb SmirnoffBroadcast the packets using multicast. 2823ced42c6cSCeri Davies.It Cm maxupd Ar n 2824ced42c6cSCeri DaviesSet the maximum number of updates for a single state which 2825ced42c6cSCeri Daviescan be collapsed into one. 2826ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128. 282779f6687dSGleb Smirnoff.It Cm defer 282879f6687dSGleb SmirnoffDefer transmission of the first packet in a state until a peer has 282979f6687dSGleb Smirnoffacknowledged that the associated state has been inserted. 283079f6687dSGleb Smirnoff.It Fl defer 283179f6687dSGleb SmirnoffDo not defer the first packet in a state. 283279f6687dSGleb SmirnoffThis is the default. 2833ced42c6cSCeri Davies.El 28340e2045b2SMateusz Piotrowski.Ss VLAN Parameters 2835ced42c6cSCeri DaviesThe following parameters are specific to 2836163653e8SYaroslav Tykhiy.Xr vlan 4 2837163653e8SYaroslav Tykhiyinterfaces: 2838163653e8SYaroslav Tykhiy.Bl -tag -width indent 2839163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag 2840163653e8SYaroslav TykhiySet the VLAN tag value to 2841163653e8SYaroslav Tykhiy.Ar vlan_tag . 2842f3f28e69SRobert WatsonThis value is a 12-bit VLAN Identifier (VID) which is used to create an 802.1Q 2843c7cffd65SAlexander V. Chernikovor 802.1ad VLAN header for packets sent from the 2844163653e8SYaroslav Tykhiy.Xr vlan 4 2845163653e8SYaroslav Tykhiyinterface. 2846163653e8SYaroslav TykhiyNote that 2847163653e8SYaroslav Tykhiy.Cm vlan 2848163653e8SYaroslav Tykhiyand 2849163653e8SYaroslav Tykhiy.Cm vlandev 2850163653e8SYaroslav Tykhiymust both be set at the same time. 2851c7cffd65SAlexander V. Chernikov.It Cm vlanproto Ar vlan_proto 2852c7cffd65SAlexander V. ChernikovSet the VLAN encapsulation protocol to 2853c7cffd65SAlexander V. Chernikov.Ar vlan_proto . 2854c7cffd65SAlexander V. ChernikovSupported encapsulation protocols are currently 2855c7cffd65SAlexander V. Chernikov.Dq 802.1Q 2856c7cffd65SAlexander V. Chernikovand 2857c7cffd65SAlexander V. Chernikov.Dq 802.1ad . 2858c7cffd65SAlexander V. ChernikovThe default encapsulation protocol is 2859c7cffd65SAlexander V. Chernikov.Dq 802.1Q . 2860b84d0aaaSAllan JudeThe 2861b84d0aaaSAllan Jude.Dq 802.1ad 2862b84d0aaaSAllan Judeprotocol is also commonly known as 2863b84d0aaaSAllan Jude.Dq QinQ ; 2864b84d0aaaSAllan Judeeither name can be used. 28652ccbbd06SMarcelo Araujo.It Cm vlanpcp Ar priority_code_point 28662ccbbd06SMarcelo AraujoPriority code point 28672ccbbd06SMarcelo Araujo.Pq Dv PCP 28682ccbbd06SMarcelo Araujois an 3-bit field which refers to the IEEE 802.1p 28692ccbbd06SMarcelo Araujoclass of service and maps to the frame priority level. 28702ccbbd06SMarcelo Araujo.Pp 28712ccbbd06SMarcelo AraujoValues in order of priority are: 28722ccbbd06SMarcelo Araujo.Cm 1 28732ccbbd06SMarcelo Araujo.Pq Dv Background (lowest) , 28742ccbbd06SMarcelo Araujo.Cm 0 28752ccbbd06SMarcelo Araujo.Pq Dv Best effort (default) , 28762ccbbd06SMarcelo Araujo.Cm 2 28772ccbbd06SMarcelo Araujo.Pq Dv Excellent effort , 28782ccbbd06SMarcelo Araujo.Cm 3 28792ccbbd06SMarcelo Araujo.Pq Dv Critical applications , 28802ccbbd06SMarcelo Araujo.Cm 4 28810ea8a7f3SJose Luis Duran.Pq Dv Video, < 100ms latency and jitter , 28822ccbbd06SMarcelo Araujo.Cm 5 28830ea8a7f3SJose Luis Duran.Pq Dv Voice, < 10ms latency and jitter , 28842ccbbd06SMarcelo Araujo.Cm 6 28852ccbbd06SMarcelo Araujo.Pq Dv Internetwork control , 28862ccbbd06SMarcelo Araujo.Cm 7 28872ccbbd06SMarcelo Araujo.Pq Dv Network control (highest) . 2888163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface 2889163653e8SYaroslav TykhiyAssociate the physical interface 2890163653e8SYaroslav Tykhiy.Ar iface 2891163653e8SYaroslav Tykhiywith a 2892163653e8SYaroslav Tykhiy.Xr vlan 4 2893163653e8SYaroslav Tykhiyinterface. 2894163653e8SYaroslav TykhiyPackets transmitted through the 2895163653e8SYaroslav Tykhiy.Xr vlan 4 2896163653e8SYaroslav Tykhiyinterface will be 2897163653e8SYaroslav Tykhiydiverted to the specified physical interface 2898163653e8SYaroslav Tykhiy.Ar iface 2899163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation. 2900163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received 2901f3f28e69SRobert Watsonby the parent interface with the correct VLAN Identifier will be diverted to 2902163653e8SYaroslav Tykhiythe associated 2903163653e8SYaroslav Tykhiy.Xr vlan 4 2904163653e8SYaroslav Tykhiypseudo-interface. 2905163653e8SYaroslav TykhiyThe 2906163653e8SYaroslav Tykhiy.Xr vlan 4 2907163653e8SYaroslav Tykhiyinterface is assigned a 290896db02f2SAllan Judecopy of the parent interface's flags and the parent's Ethernet address. 2909163653e8SYaroslav TykhiyThe 2910163653e8SYaroslav Tykhiy.Cm vlandev 2911163653e8SYaroslav Tykhiyand 2912163653e8SYaroslav Tykhiy.Cm vlan 2913163653e8SYaroslav Tykhiymust both be set at the same time. 2914163653e8SYaroslav TykhiyIf the 2915163653e8SYaroslav Tykhiy.Xr vlan 4 2916163653e8SYaroslav Tykhiyinterface already has 2917163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail. 2918163653e8SYaroslav TykhiyTo 2919163653e8SYaroslav Tykhiychange the association to another physical interface, the existing 2920163653e8SYaroslav Tykhiyassociation must be cleared first. 2921163653e8SYaroslav Tykhiy.Pp 2922163653e8SYaroslav TykhiyNote: if the hardware tagging capability 2923163653e8SYaroslav Tykhiyis set on the parent interface, the 2924163653e8SYaroslav Tykhiy.Xr vlan 4 2925163653e8SYaroslav Tykhiypseudo 2926163653e8SYaroslav Tykhiyinterface's behavior changes: 2927163653e8SYaroslav Tykhiythe 2928163653e8SYaroslav Tykhiy.Xr vlan 4 2929163653e8SYaroslav Tykhiyinterface recognizes that the 2930163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its 2931163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from 2932163653e8SYaroslav Tykhiythe parent unaltered. 2933b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface 2934163653e8SYaroslav TykhiyIf the driver is a 2935163653e8SYaroslav Tykhiy.Xr vlan 4 2936b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it. 2937163653e8SYaroslav TykhiyThis breaks the link between the 2938163653e8SYaroslav Tykhiy.Xr vlan 4 2939163653e8SYaroslav Tykhiyinterface and its parent, 2940f3f28e69SRobert Watsonclears its VLAN Identifier, flags and its link address and shuts the interface 2941f3f28e69SRobert Watsondown. 2942b0dcc11cSYaroslav TykhiyThe 2943b0dcc11cSYaroslav Tykhiy.Ar iface 2944b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated. 2945163653e8SYaroslav Tykhiy.El 29460e2045b2SMateusz Piotrowski.Ss Virtual eXtensible LAN Parameters 294708b68b0eSGleb SmirnoffThe following parameters are used to configure 2948007054f0SBryan Venteicher.Xr vxlan 4 2949007054f0SBryan Venteicherinterfaces. 2950007054f0SBryan Venteicher.Bl -tag -width indent 2951c6e32006SBryan Venteicher.It Cm vxlanid Ar identifier 2952007054f0SBryan VenteicherThis value is a 24-bit VXLAN Network Identifier (VNI) that identifies the 2953007054f0SBryan Venteichervirtual network segment membership of the interface. 2954c6e32006SBryan Venteicher.It Cm vxlanlocal Ar address 2955007054f0SBryan VenteicherThe source address used in the encapsulating IPv4/IPv6 header. 2956007054f0SBryan VenteicherThe address should already be assigned to an existing interface. 2957007054f0SBryan VenteicherWhen the interface is configured in unicast mode, the listening socket 2958007054f0SBryan Venteicheris bound to this address. 2959c6e32006SBryan Venteicher.It Cm vxlanremote Ar address 2960007054f0SBryan VenteicherThe interface can be configured in a unicast, or point-to-point, mode 2961007054f0SBryan Venteicherto create a tunnel between two hosts. 2962007054f0SBryan VenteicherThis is the IP address of the remote end of the tunnel. 2963c6e32006SBryan Venteicher.It Cm vxlangroup Ar address 2964007054f0SBryan VenteicherThe interface can be configured in a multicast mode 2965007054f0SBryan Venteicherto create a virtual network of hosts. 2966007054f0SBryan VenteicherThis is the IP multicast group address the interface will join. 2967c6e32006SBryan Venteicher.It Cm vxlanlocalport Ar port 2968007054f0SBryan VenteicherThe port number the interface will listen on. 2969007054f0SBryan VenteicherThe default port number is 4789. 2970c6e32006SBryan Venteicher.It Cm vxlanremoteport Ar port 2971007054f0SBryan VenteicherThe destination port number used in the encapsulating IPv4/IPv6 header. 2972007054f0SBryan VenteicherThe remote host should be listening on this port. 2973007054f0SBryan VenteicherThe default port number is 4789. 2974007054f0SBryan VenteicherNote some other implementations, such as Linux, 2975007054f0SBryan Venteicherdo not default to the IANA assigned port, 2976007054f0SBryan Venteicherbut instead listen on port 8472. 2977c6e32006SBryan Venteicher.It Cm vxlanportrange Ar low high 2978007054f0SBryan VenteicherThe range of source ports used in the encapsulating IPv4/IPv6 header. 2979007054f0SBryan VenteicherThe port selected within the range is based on a hash of the inner frame. 2980007054f0SBryan VenteicherA range is useful to provide entropy within the outer IP header 2981007054f0SBryan Venteicherfor more effective load balancing. 2982007054f0SBryan VenteicherThe default range is between the 2983007054f0SBryan Venteicher.Xr sysctl 8 2984007054f0SBryan Venteichervariables 2985007054f0SBryan Venteicher.Va net.inet.ip.portrange.first 2986007054f0SBryan Venteicherand 2987007054f0SBryan Venteicher.Va net.inet.ip.portrange.last 2988c6e32006SBryan Venteicher.It Cm vxlantimeout Ar timeout 2989007054f0SBryan VenteicherThe maximum time, in seconds, before an entry in the forwarding table 2990007054f0SBryan Venteicheris pruned. 2991007054f0SBryan VenteicherThe default is 1200 seconds (20 minutes). 2992c6e32006SBryan Venteicher.It Cm vxlanmaxaddr Ar max 2993007054f0SBryan VenteicherThe maximum number of entries in the forwarding table. 2994007054f0SBryan VenteicherThe default is 2000. 2995007054f0SBryan Venteicher.It Cm vxlandev Ar dev 2996007054f0SBryan VenteicherWhen the interface is configured in multicast mode, the 2997007054f0SBryan Venteicher.Cm dev 2998007054f0SBryan Venteicherinterface is used to transmit IP multicast packets. 2999c6e32006SBryan Venteicher.It Cm vxlanttl Ar ttl 3000007054f0SBryan VenteicherThe TTL used in the encapsulating IPv4/IPv6 header. 3001007054f0SBryan VenteicherThe default is 64. 3002c6e32006SBryan Venteicher.It Cm vxlanlearn 3003007054f0SBryan VenteicherThe source IP address and inner source Ethernet MAC address of 3004007054f0SBryan Venteicherreceived packets are used to dynamically populate the forwarding table. 3005007054f0SBryan VenteicherWhen in multicast mode, an entry in the forwarding table allows the 3006007054f0SBryan Venteicherinterface to send the frame directly to the remote host instead of 3007007054f0SBryan Venteicherbroadcasting the frame to the multicast group. 3008007054f0SBryan VenteicherThis is the default. 3009c6e32006SBryan Venteicher.It Fl vxlanlearn 3010e700bef2SMarcelo AraujoThe forwarding table is not populated by received packets. 3011c6e32006SBryan Venteicher.It Cm vxlanflush 3012007054f0SBryan VenteicherDelete all dynamically-learned addresses from the forwarding table. 3013c6e32006SBryan Venteicher.It Cm vxlanflushall 3014007054f0SBryan VenteicherDelete all addresses, including static addresses, from the forwarding table. 3015007054f0SBryan Venteicher.El 30160e2045b2SMateusz Piotrowski.Ss CARP Parameters 3017007054f0SBryan VenteicherThe following parameters are used to configure 3018556c9a4cSJesus R. Camou.Xr carp 4 301908b68b0eSGleb Smirnoffprotocol on an interface: 3020556c9a4cSJesus R. Camou.Bl -tag -width indent 302108b68b0eSGleb Smirnoff.It Cm vhid Ar n 302208b68b0eSGleb SmirnoffSet the virtual host ID. 302308b68b0eSGleb SmirnoffThis is a required setting to initiate 302408b68b0eSGleb Smirnoff.Xr carp 4 . 3025818b39edSWarren BlockIf the virtual host ID does not exist yet, it is created and attached to the 302608b68b0eSGleb Smirnoffinterface, otherwise configuration of an existing vhid is adjusted. 302708b68b0eSGleb SmirnoffIf the 302808b68b0eSGleb Smirnoff.Cm vhid 302908b68b0eSGleb Smirnoffkeyword is supplied along with an 303008b68b0eSGleb Smirnoff.Dq inet6 303108b68b0eSGleb Smirnoffor 303208b68b0eSGleb Smirnoff.Dq inet 303308b68b0eSGleb Smirnoffaddress, then this address is configured to be run under control of the 303408b68b0eSGleb Smirnoffspecified vhid. 303508b68b0eSGleb SmirnoffWhenever a last address that refers to a particular vhid is removed from an 303608b68b0eSGleb Smirnoffinterface, the vhid is automatically removed from interface and destroyed. 303708b68b0eSGleb SmirnoffAny other configuration parameters for the 303808b68b0eSGleb Smirnoff.Xr carp 4 303908b68b0eSGleb Smirnoffprotocol should be supplied along with the 304008b68b0eSGleb Smirnoff.Cm vhid 304108b68b0eSGleb Smirnoffkeyword. 304208b68b0eSGleb SmirnoffAcceptable values for vhid are 1 to 255. 3043556c9a4cSJesus R. Camou.It Cm advbase Ar seconds 3044556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds. 3045556c9a4cSJesus R. CamouThe acceptable values are 1 to 255. 3046556c9a4cSJesus R. CamouThe default value is 1. 3047556c9a4cSJesus R. Camou.It Cm advskew Ar interval 3048556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to 3049556c9a4cSJesus R. Camoumake one host advertise slower than another host. 3050556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds. 3051556c9a4cSJesus R. CamouThe acceptable values are 1 to 254. 3052556c9a4cSJesus R. CamouThe default value is 0. 3053556c9a4cSJesus R. Camou.It Cm pass Ar phrase 3054556c9a4cSJesus R. CamouSet the authentication key to 3055556c9a4cSJesus R. Camou.Ar phrase . 305608b68b0eSGleb Smirnoff.It Cm state Ar MASTER|BACKUP 305708b68b0eSGleb SmirnoffForcibly change state of a given vhid. 3058556c9a4cSJesus R. Camou.El 3059f4f02fa1SMateusz Piotrowski.Sh ENVIRONMENT 3060f4f02fa1SMateusz PiotrowskiThe following environment variables affect the execution of 3061f4f02fa1SMateusz Piotrowski.Nm : 3062f4f02fa1SMateusz Piotrowski.Bl -tag -width IFCONFIG_FORMAT 3063f4f02fa1SMateusz Piotrowski.It Ev IFCONFIG_FORMAT 3064f4f02fa1SMateusz PiotrowskiThis variable can contain a specification of the output format. 3065f4f02fa1SMateusz PiotrowskiSee the description of the 3066f4f02fa1SMateusz Piotrowski.Fl f 3067f4f02fa1SMateusz Piotrowskiflag for more details. 3068f4f02fa1SMateusz Piotrowski.El 30699bad5f37SBruce M Simpson.Sh EXAMPLES 30709bad5f37SBruce M SimpsonAssign the IPv4 address 30719bb9973cSBruce M Simpson.Li 192.0.2.10 , 30729bad5f37SBruce M Simpsonwith a network mask of 30739bad5f37SBruce M Simpson.Li 255.255.255.0 , 30749bad5f37SBruce M Simpsonto the interface 3075ffda6790SBrooks Davis.Li em0 : 3076ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.10 netmask 255.255.255.0 30779bad5f37SBruce M Simpson.Pp 30789bb9973cSBruce M SimpsonAdd the IPv4 address 30799bb9973cSBruce M Simpson.Li 192.0.2.45 , 30809bad5f37SBruce M Simpsonwith the CIDR network prefix 30819bb9973cSBruce M Simpson.Li /28 , 30829bad5f37SBruce M Simpsonto the interface 3083ffda6790SBrooks Davis.Li em0 , 30849bb9973cSBruce M Simpsonusing 30859bb9973cSBruce M Simpson.Cm add 30869bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 30879bb9973cSBruce M Simpson.Cm alias : 3088ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.45/28 add 30899bad5f37SBruce M Simpson.Pp 30909bb9973cSBruce M SimpsonRemove the IPv4 address 30919bb9973cSBruce M Simpson.Li 192.0.2.45 30929bb9973cSBruce M Simpsonfrom the interface 3093ffda6790SBrooks Davis.Li em0 : 3094ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.45 -alias 30959bb9973cSBruce M Simpson.Pp 3096a283298cSHiroki SatoEnable IPv6 functionality of the interface: 3097a283298cSHiroki Sato.Dl # ifconfig em0 inet6 -ifdisabled 3098a283298cSHiroki Sato.Pp 30999bb9973cSBruce M SimpsonAdd the IPv6 address 31009bb9973cSBruce M Simpson.Li 2001:DB8:DBDB::123/48 31019bad5f37SBruce M Simpsonto the interface 31029bad5f37SBruce M Simpson.Li em0 : 31039bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias 31049bb9973cSBruce M SimpsonNote that lower case hexadecimal IPv6 addresses are acceptable. 31059bad5f37SBruce M Simpson.Pp 31069bad5f37SBruce M SimpsonRemove the IPv6 address added in the above example, 31079bad5f37SBruce M Simpsonusing the 31089bad5f37SBruce M Simpson.Li / 31099bb9973cSBruce M Simpsoncharacter as shorthand for the network prefix, 31109bb9973cSBruce M Simpsonand using 31119bb9973cSBruce M Simpson.Cm delete 31129bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 31139bb9973cSBruce M Simpson.Fl alias : 31149bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete 31159bad5f37SBruce M Simpson.Pp 311608b68b0eSGleb SmirnoffConfigure a single CARP redundant address on igb0, and then switch it 311708b68b0eSGleb Smirnoffto be master: 31182e25a531SGleb Smirnoff.Dl # ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up 311908b68b0eSGleb Smirnoff.Dl # ifconfig igb0 vhid 1 state master 312008b68b0eSGleb Smirnoff.Pp 31219bad5f37SBruce M SimpsonConfigure the interface 31229bad5f37SBruce M Simpson.Li xl0 , 31239bad5f37SBruce M Simpsonto use 100baseTX, full duplex Ethernet media options: 31249bad5f37SBruce M Simpson.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex 31259bad5f37SBruce M Simpson.Pp 3126215940b3SXin LILabel the em0 interface as an uplink: 3127215940b3SXin LI.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&" 3128215940b3SXin LI.Pp 31299bad5f37SBruce M SimpsonCreate the software network interface 31309bad5f37SBruce M Simpson.Li gif1 : 31319bad5f37SBruce M Simpson.Dl # ifconfig gif1 create 31329bad5f37SBruce M Simpson.Pp 31339bad5f37SBruce M SimpsonDestroy the software network interface 31349bad5f37SBruce M Simpson.Li gif1 : 31359bad5f37SBruce M Simpson.Dl # ifconfig gif1 destroy 313648141d37SGlen Barber.Pp 313766e0e139SGlen BarberDisplay available wireless networks using 313848141d37SGlen Barber.Li wlan0 : 3139a34287fbSGlen Barber.Dl # ifconfig wlan0 list scan 31407c2aa744SAllan Jude.Pp 31417c2aa744SAllan JudeDisplay inet and inet6 address subnet masks in CIDR notation 31427c2aa744SAllan Jude.Dl # ifconfig -f inet:cidr,inet6:cidr 31438e725dacSEugene Grosbein.Pp 31448e725dacSEugene GrosbeinDisplay interfaces that are up with the exception of loopback 31458e725dacSEugene Grosbein.Dl # ifconfig -a -u -G lo 31468fae3551SRodney W. Grimes.Sh DIAGNOSTICS 314720d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the 31488fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and 31498fae3551SRodney W. Grimestried to alter an interface's configuration. 31508fae3551SRodney W. Grimes.Sh SEE ALSO 31518fae3551SRodney W. Grimes.Xr netstat 1 , 31524029efa5SChristian Brueffer.Xr carp 4 , 31536dcd0ad8SHiroki Sato.Xr gif 4 , 31548fae3551SRodney W. Grimes.Xr netintro 4 , 3155ced42c6cSCeri Davies.Xr pfsync 4 , 31564029efa5SChristian Brueffer.Xr polling 4 , 3157588e78c5SYaroslav Tykhiy.Xr vlan 4 , 3158007054f0SBryan Venteicher.Xr vxlan 4 , 3159fd9635efSWarren Block.Xr devd.conf 5 , 3160b09b4efbSRuslan Ermilov.\" .Xr eon 5 , 3161fd9635efSWarren Block.Xr devd 8 , 3162c09eb466SJoel Dahl.Xr jail 8 , 31638fae3551SRodney W. Grimes.Xr rc 8 , 31644b32efacSBruce M Simpson.Xr routed 8 , 31654b32efacSBruce M Simpson.Xr sysctl 8 31668fae3551SRodney W. Grimes.Sh HISTORY 31678fae3551SRodney W. GrimesThe 31688fae3551SRodney W. Grimes.Nm 3169e1205e80SPhilippe Charnierutility appeared in 31708fae3551SRodney W. Grimes.Bx 4.2 . 31716087df9eSRuslan Ermilov.Sh BUGS 31726087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each 31736087df9eSRuslan Ermilovinterface configured for IPv6. 31746087df9eSRuslan ErmilovNormally, such an address is automatically configured by the 3175a283298cSHiroki Satokernel on each interface added to the system or enabled; this behavior may 3176a283298cSHiroki Satobe disabled by setting per-interface flag 3177a283298cSHiroki Sato.Cm -auto_linklocal . 3178a283298cSHiroki SatoThe default value of this flag is 1 and can be disabled by using the sysctl 3179a283298cSHiroki SatoMIB variable 3180a283298cSHiroki Sato.Va net.inet6.ip6.auto_linklocal . 31816087df9eSRuslan Ermilov.Pp 3182a283298cSHiroki SatoDo not configure IPv6 addresses with no link-local address by using 3183a283298cSHiroki Sato.Nm . 3184a283298cSHiroki SatoIt can result in unexpected behaviors of the kernel. 3185