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 85e333b944SPhilippe Charnier.It Ar address 8644c4affaSMateusz PiotrowskiFor the DARPA-Internet family, 878fae3551SRodney W. Grimesthe address is either a host name present in the host name data 888fae3551SRodney W. Grimesbase, 898fae3551SRodney W. Grimes.Xr hosts 5 , 9044c4affaSMateusz Piotrowskior a DARPA Internet address expressed in the Internet standard 918fae3551SRodney W. Grimes.Dq dot notation . 9212813062SJesper Skriver.Pp 9312813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the 9412813062SJesper Skriverslash notation) to include the netmask. 9512813062SJesper SkriverThat is, one can specify an address like 9619fe4826SRuslan Ermilov.Li 192.168.0.1/16 . 979f1741caSRuslan Ermilov.Pp 984f1fb109SGiorgos KeramidasFor the 999f1741caSRuslan Ermilov.Dq inet6 1009f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash 1019f1741caSRuslan Ermilovnotation, like 1029f1741caSRuslan Ermilov.Li ::1/128 . 1039f1741caSRuslan ErmilovSee the 1049f1741caSRuslan Ermilov.Cm prefixlen 1059f1741caSRuslan Ermilovparameter below for more information. 106cbc17e71SGarrett Wollman.\" For the Xerox Network Systems(tm) family, 107cbc17e71SGarrett Wollman.\" addresses are 108cbc17e71SGarrett Wollman.\" .Ar net:a.b.c.d.e.f , 109cbc17e71SGarrett Wollman.\" where 110cbc17e71SGarrett Wollman.\" .Ar net 111cbc17e71SGarrett Wollman.\" is the assigned network number (in decimal), 112cbc17e71SGarrett Wollman.\" and each of the six bytes of the host number, 113cbc17e71SGarrett Wollman.\" .Ar a 114cbc17e71SGarrett Wollman.\" through 115cbc17e71SGarrett Wollman.\" .Ar f , 116cbc17e71SGarrett Wollman.\" are specified in hexadecimal. 117b80875bcSDima Dorfman.\" The host number may be omitted on IEEE 802 protocol 118b80875bcSDima Dorfman.\" (Ethernet, FDDI, and Token Ring) interfaces, 119cbc17e71SGarrett Wollman.\" which use the hardware physical address, 120cbc17e71SGarrett Wollman.\" and on interfaces other than the first. 12144c4affaSMateusz Piotrowski.\" For the ISO family, addresses are specified as a long hexadecimal string, 122b09b4efbSRuslan Ermilov.\" as in the Xerox family. 123b09b4efbSRuslan Ermilov.\" However, two consecutive dots imply a zero 1240761cb29SGarrett Wollman.\" byte, and the dots are optional, if the user wishes to (carefully) 1250761cb29SGarrett Wollman.\" count out long strings of digits in network byte order. 1261876df83SRuslan Ermilov.Pp 1271876df83SRuslan ErmilovThe link-level 1281876df83SRuslan Ermilov.Pq Dq link 1291876df83SRuslan Ermilovaddress 1301876df83SRuslan Ermilovis specified as a series of colon-separated hex digits. 13196db02f2SAllan JudeThis can be used to, for example, 13296db02f2SAllan Judeset a new MAC address on an Ethernet interface, though the 13396db02f2SAllan Judemechanism used is not Ethernet specific. 134e700bef2SMarcelo AraujoUse the 135e700bef2SMarcelo Araujo.Pq Dq random 136e700bef2SMarcelo Araujokeyword to set a randomly generated MAC address. 137e700bef2SMarcelo AraujoA randomly-generated MAC address might be the same as one already in use 138e700bef2SMarcelo Araujoin the network. 139e700bef2SMarcelo AraujoSuch duplications are extremely unlikely. 1401876df83SRuslan ErmilovIf the interface is already 1411876df83SRuslan Ermilovup when this option is used, it will be briefly brought down and 1421876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive 14396db02f2SAllan Judefilter in the underlying Ethernet hardware is properly reprogrammed. 1448fae3551SRodney W. Grimes.It Ar address_family 145e333b944SPhilippe CharnierSpecify the 146b09b4efbSRuslan Ermilovaddress family 1478fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters. 1488fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols 149e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended. 1508fae3551SRodney W. GrimesThe address or protocol families currently 1518fae3551SRodney W. Grimessupported are 152e05f2836SJulian Elischer.Dq inet , 153cfa1ca9dSYoshinobu Inoue.Dq inet6 , 1548fae3551SRodney W. Grimesand 1551876df83SRuslan Ermilov.Dq link . 1565af3fa9aSBjoern A. ZeebThe default if available is 1575af3fa9aSBjoern A. Zeeb.Dq inet 1585af3fa9aSBjoern A. Zeebor otherwise 1595af3fa9aSBjoern A. Zeeb.Dq link . 1601876df83SRuslan Ermilov.Dq ether 1611876df83SRuslan Ermilovand 1621876df83SRuslan Ermilov.Dq lladdr 1631876df83SRuslan Ermilovare synonyms for 1641876df83SRuslan Ermilov.Dq link . 1651d28cd26SAllan JudeWhen using the 1661d28cd26SAllan Jude.Fl l 1671d28cd26SAllan Judeflag, the 1681d28cd26SAllan Jude.Dq ether 1691d28cd26SAllan Judeaddress family has special meaning and is no longer synonymous with 1701d28cd26SAllan Jude.Dq link 1711d28cd26SAllan Judeor 1721d28cd26SAllan Jude.Dq lladdr . 1731d28cd26SAllan JudeSpecifying 1741d28cd26SAllan Jude.Fl l Dq ether 17596db02f2SAllan Judewill list only Ethernet interfaces, excluding all other interface types, 1761d28cd26SAllan Judeincluding the loopback interface. 177e333b944SPhilippe Charnier.It Ar dest_address 178e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end 179e333b944SPhilippe Charnierof a point to point link. 180e333b944SPhilippe Charnier.It Ar interface 181e333b944SPhilippe CharnierThis 1828fae3551SRodney W. Grimesparameter is a string of the form 1838fae3551SRodney W. Grimes.Dq name unit , 1848fae3551SRodney W. Grimesfor example, 185ffda6790SBrooks Davis.Dq Li em0 . 1868fae3551SRodney W. Grimes.El 1878fae3551SRodney W. Grimes.Pp 1887c2aa744SAllan JudeThe output format of 1897c2aa744SAllan Jude.Nm 1907c2aa744SAllan Judecan be controlled using the 1917c2aa744SAllan Jude.Fl f 1927c2aa744SAllan Judeflag or the 1937c2aa744SAllan Jude.Ev IFCONFIG_FORMAT 1947c2aa744SAllan Judeenvironment variable. 1957c2aa744SAllan JudeThe format is specified as a comma separated list of 1967c2aa744SAllan Jude.Sy type:format 1977c2aa744SAllan Judepairs. 19852ec8807SMateusz PiotrowskiThe 19952ec8807SMateusz Piotrowski.Fl f 20052ec8807SMateusz Piotrowskiflag can be supplied multiple times. 2017c2aa744SAllan JudeSee the 2027c2aa744SAllan Jude.Sx EXAMPLES 2037c2aa744SAllan Judesection for more information. 2047c2aa744SAllan JudeThe 2057c2aa744SAllan Jude.Sy types 2067c2aa744SAllan Judeand their associated 2077c2aa744SAllan Jude.Sy format 2087c2aa744SAllan Judestrings are: 209776db16aSAllan Jude.Bl -tag -width ether 2107c2aa744SAllan Jude.It Sy addr 2117c2aa744SAllan JudeAdjust the display of inet and inet6 addresses 2127c2aa744SAllan Jude.Bl -tag -width default 2137c2aa744SAllan Jude.It Sy default 2147c2aa744SAllan JudeDisplay inet and inet6 addresses in the default format, 2157c2aa744SAllan Jude.Sy numeric 2167c2aa744SAllan Jude.It Sy fqdn 2177c2aa744SAllan JudeDisplay inet and inet6 addresses as fully qualified domain names 2187c2aa744SAllan Jude.Pq FQDN 2197c2aa744SAllan Jude.It Sy host 2207c2aa744SAllan JudeDisplay inet and inet6 addresses as unqualified hostnames 2217c2aa744SAllan Jude.It Sy numeric 2227c2aa744SAllan JudeDisplay inet and inet6 addresses in numeric format 2237c2aa744SAllan Jude.El 2247c2aa744SAllan Jude.It Sy ether 2257c2aa744SAllan JudeAdjust the display of link-level ethernet (MAC) addresses 2267c2aa744SAllan Jude.Bl -tag -width default 2277c2aa744SAllan Jude.It Sy colon 2287c2aa744SAllan JudeSeparate address segments with a colon 2297c2aa744SAllan Jude.It Sy dash 2307c2aa744SAllan JudeSeparate address segments with a dash 2317c2aa744SAllan Jude.It Sy default 2327c2aa744SAllan JudeDisplay ethernet addresses in the default format, 2337c2aa744SAllan Jude.Sy colon 2347c2aa744SAllan Jude.El 2357c2aa744SAllan Jude.It Sy inet 2367c2aa744SAllan JudeAdjust the display of inet address subnet masks: 2377c2aa744SAllan Jude.Bl -tag -width default 2387c2aa744SAllan Jude.It Sy cidr 2397c2aa744SAllan JudeDisplay subnet masks in CIDR notation, for example: 2407c2aa744SAllan Jude.br 2417c2aa744SAllan Jude10.0.0.0/8 or 203.0.113.224/26 2427c2aa744SAllan Jude.It Sy default 2437c2aa744SAllan JudeDisplay subnet masks in the default format, 2447c2aa744SAllan Jude.Sy hex 2457c2aa744SAllan Jude.It Sy dotted 2467c2aa744SAllan JudeDisplay subnet masks in dotted quad notation, for example: 2477c2aa744SAllan Jude.br 2487c2aa744SAllan Jude255.255.0.0 or 255.255.255.192 2497c2aa744SAllan Jude.It Sy hex 250e700bef2SMarcelo AraujoDisplay subnet masks in hexadecimal, for example: 2517c2aa744SAllan Jude.br 2527c2aa744SAllan Jude0xffff0000 or 0xffffffc0 2537c2aa744SAllan Jude.El 2547c2aa744SAllan Jude.It Sy inet6 2557c2aa744SAllan JudeAdjust the display of inet6 address prefixes (subnet masks): 2567c2aa744SAllan Jude.Bl -tag -width default 2577c2aa744SAllan Jude.It Sy cidr 2587c2aa744SAllan JudeDisplay subnet prefix in CIDR notation, for example: 2597c2aa744SAllan Jude.br 2607c2aa744SAllan Jude::1/128 or fe80::1%lo0/64 2617c2aa744SAllan Jude.It Sy default 2627c2aa744SAllan JudeDisplay subnet prefix in the default format 2637c2aa744SAllan Jude.Sy numeric 2647c2aa744SAllan Jude.It Sy numeric 2657c2aa744SAllan JudeDisplay subnet prefix in integer format, for example: 2667c2aa744SAllan Jude.br 2677c2aa744SAllan Judeprefixlen 64 2687c2aa744SAllan Jude.El 2697c2aa744SAllan Jude.El 2707c2aa744SAllan Jude.Pp 271*f15eed7cSMateusz PiotrowskiThe 272*f15eed7cSMateusz Piotrowski.Nm 273*f15eed7cSMateusz Piotrowskiutility displays the current configuration for a network interface 274*f15eed7cSMateusz Piotrowskiwhen no optional parameters are supplied. 275*f15eed7cSMateusz PiotrowskiIf a protocol family is specified, 276*f15eed7cSMateusz Piotrowski.Nm 277*f15eed7cSMateusz Piotrowskiwill report only the details specific to that protocol family. 278*f15eed7cSMateusz Piotrowski.Pp 279*f15eed7cSMateusz PiotrowskiIf the 280*f15eed7cSMateusz Piotrowski.Fl m 281*f15eed7cSMateusz Piotrowskiflag is passed before an interface name, 282*f15eed7cSMateusz Piotrowski.Nm 283*f15eed7cSMateusz Piotrowskiwill display the capability list and all 284*f15eed7cSMateusz Piotrowskiof the supported media for the specified interface. 285*f15eed7cSMateusz PiotrowskiIf 286*f15eed7cSMateusz Piotrowski.Fl L 287*f15eed7cSMateusz Piotrowskiflag is supplied, address lifetime is displayed for IPv6 addresses, 288*f15eed7cSMateusz Piotrowskias time offset string. 289*f15eed7cSMateusz Piotrowski.Pp 290*f15eed7cSMateusz PiotrowskiOptionally, the 291*f15eed7cSMateusz Piotrowski.Fl a 292*f15eed7cSMateusz Piotrowskiflag may be used instead of an interface name. 293*f15eed7cSMateusz PiotrowskiThis flag instructs 294*f15eed7cSMateusz Piotrowski.Nm 295*f15eed7cSMateusz Piotrowskito display information about all interfaces in the system. 296*f15eed7cSMateusz PiotrowskiThe 297*f15eed7cSMateusz Piotrowski.Fl d 298*f15eed7cSMateusz Piotrowskiflag limits this to interfaces that are down, 299*f15eed7cSMateusz Piotrowski.Fl u 300*f15eed7cSMateusz Piotrowskilimits this to interfaces that are up, 301*f15eed7cSMateusz Piotrowski.Fl g 302*f15eed7cSMateusz Piotrowskilimits this to members of the specified group of interfaces, and 303*f15eed7cSMateusz Piotrowski.Fl G 304*f15eed7cSMateusz Piotrowskiexcludes members of the specified group from the list. 305*f15eed7cSMateusz PiotrowskiBoth 306*f15eed7cSMateusz Piotrowski.Fl g 307*f15eed7cSMateusz Piotrowskiand 308*f15eed7cSMateusz Piotrowski.Fl G 309*f15eed7cSMateusz Piotrowskiflags may be specified to apply both conditions. 310*f15eed7cSMateusz PiotrowskiOnly one option 311*f15eed7cSMateusz Piotrowski.Fl g 312*f15eed7cSMateusz Piotrowskishould be specified as later override previous ones 313*f15eed7cSMateusz Piotrowski(same for 314*f15eed7cSMateusz Piotrowski.Fl G ) . 315*f15eed7cSMateusz Piotrowski.Sy groupname 316*f15eed7cSMateusz Piotrowskimay contain shell patterns in which case it should be quoted. 317*f15eed7cSMateusz PiotrowskiWhen no arguments are given, 318*f15eed7cSMateusz Piotrowski.Fl a 319*f15eed7cSMateusz Piotrowskiis implied. 320*f15eed7cSMateusz Piotrowski.Pp 321*f15eed7cSMateusz PiotrowskiThe 322*f15eed7cSMateusz Piotrowski.Fl l 323*f15eed7cSMateusz Piotrowskiflag may be used to list all available interfaces on the system, with 324*f15eed7cSMateusz Piotrowskino other additional information. 325*f15eed7cSMateusz PiotrowskiIf an 326*f15eed7cSMateusz Piotrowski.Ar address_family 327*f15eed7cSMateusz Piotrowskiis specified, only interfaces of that type will be listed. 328*f15eed7cSMateusz Piotrowski.Fl l Dq ether 329*f15eed7cSMateusz Piotrowskiwill list only Ethernet adapters, excluding the loopback interface. 330*f15eed7cSMateusz PiotrowskiUse of this flag is mutually exclusive 331*f15eed7cSMateusz Piotrowskiwith all other flags and commands, except for 332*f15eed7cSMateusz Piotrowski.Fl d 333*f15eed7cSMateusz Piotrowski(only list interfaces that are down) 334*f15eed7cSMateusz Piotrowskiand 335*f15eed7cSMateusz Piotrowski.Fl u 336*f15eed7cSMateusz Piotrowski(only list interfaces that are up). 337*f15eed7cSMateusz Piotrowski.Pp 338*f15eed7cSMateusz PiotrowskiThe 339*f15eed7cSMateusz Piotrowski.Fl v 340*f15eed7cSMateusz Piotrowskiflag may be used to get more verbose status for an interface. 341*f15eed7cSMateusz Piotrowski.Pp 342*f15eed7cSMateusz PiotrowskiThe 343*f15eed7cSMateusz Piotrowski.Fl C 344*f15eed7cSMateusz Piotrowskiflag may be used to list all of the interface cloners available on 345*f15eed7cSMateusz Piotrowskithe system, with no additional information. 346*f15eed7cSMateusz PiotrowskiUse of this flag is mutually exclusive with all other flags and commands. 347*f15eed7cSMateusz Piotrowski.Pp 348*f15eed7cSMateusz PiotrowskiThe 349*f15eed7cSMateusz Piotrowski.Fl k 350*f15eed7cSMateusz Piotrowskiflag causes keying information for the interface, if available, to be 351*f15eed7cSMateusz Piotrowskiprinted. 352*f15eed7cSMateusz PiotrowskiFor example, the values of 802.11 WEP keys and 353*f15eed7cSMateusz Piotrowski.Xr carp 4 354*f15eed7cSMateusz Piotrowskipassphrases will be printed, if accessible to the current user. 355*f15eed7cSMateusz PiotrowskiThis information is not printed by default, as it may be considered 356*f15eed7cSMateusz Piotrowskisensitive. 357*f15eed7cSMateusz Piotrowski.Pp 358*f15eed7cSMateusz PiotrowskiIf the network interface driver is not present in the kernel then 359*f15eed7cSMateusz Piotrowski.Nm 360*f15eed7cSMateusz Piotrowskiwill attempt to load it. 361*f15eed7cSMateusz PiotrowskiThe 362*f15eed7cSMateusz Piotrowski.Fl n 363*f15eed7cSMateusz Piotrowskiflag disables this behavior. 364*f15eed7cSMateusz Piotrowski.Pp 365*f15eed7cSMateusz PiotrowskiOnly the super-user may modify the configuration of a network interface. 366*f15eed7cSMateusz Piotrowski.Pp 3678fae3551SRodney W. GrimesThe following parameters may be set with 3687c7fb079SRuslan Ermilov.Nm : 369e333b944SPhilippe Charnier.Bl -tag -width indent 370d6d1cb48SRobert Watson.It Cm add 371d0353b83SRuslan ErmilovAnother name for the 372d0353b83SRuslan Ermilov.Cm alias 373d0353b83SRuslan Ermilovparameter. 374d0353b83SRuslan ErmilovIntroduced for compatibility 375b09b4efbSRuslan Ermilovwith 376b09b4efbSRuslan Ermilov.Bsx . 3778fae3551SRodney W. Grimes.It Cm alias 3788fae3551SRodney W. GrimesEstablish an additional network address for this interface. 3798fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and 3808fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface. 38199aa831bSChris CostelloIf the address is on the same subnet as the first network address 382aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given. 383aaa34889SBrian SomersUsually 384b09b4efbSRuslan Ermilov.Li 0xffffffff 385aaa34889SBrian Somersis most appropriate. 386fac3d981SDavid E. O'Brien.It Fl alias 387fac3d981SDavid E. O'BrienRemove the network address specified. 388fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it 389fac3d981SDavid E. O'Brienwas no longer needed. 390fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect 391fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will 392fac3d981SDavid E. O'Brienallow you to respecify the host portion. 393cfa1ca9dSYoshinobu Inoue.It Cm anycast 394b09b4efbSRuslan Ermilov(Inet6 only.) 395cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address. 396cfa1ca9dSYoshinobu InoueBased on the current specification, 397cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses. 398cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing 399cfa1ca9dSYoshinobu InoueIPv6 packets. 4008fae3551SRodney W. Grimes.It Cm arp 401b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol 402b09b4efbSRuslan Ermilov.Pq Xr arp 4 403b09b4efbSRuslan Ermilovin mapping 4048fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default). 40544c4affaSMateusz PiotrowskiThis is currently implemented for mapping between DARPA Internet addresses 40644c4affaSMateusz Piotrowskiand IEEE 802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses). 4078fae3551SRodney W. Grimes.It Fl arp 408b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol 409b09b4efbSRuslan Ermilov.Pq Xr arp 4 . 410deb62e28SRuslan Ermilov.It Cm staticarp 411deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 412deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses, 413deb62e28SRuslan Ermilovand will never send any requests. 414deb62e28SRuslan Ermilov.It Fl staticarp 415deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 416deb62e28SRuslan Ermilovthe host will perform normally, 417deb62e28SRuslan Ermilovsending out requests and listening for replies. 4188fae3551SRodney W. Grimes.It Cm broadcast 419b09b4efbSRuslan Ermilov(Inet only.) 4208fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the 4218fae3551SRodney W. Grimesnetwork. 4228fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's. 4238fae3551SRodney W. Grimes.It Cm debug 4248fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on 4258fae3551SRodney W. Grimesextra console error logging. 4268fae3551SRodney W. Grimes.It Fl debug 4278fae3551SRodney W. GrimesDisable driver dependent debugging code. 428ffb079beSMaxim Sobolev.It Cm promisc 429ffb079beSMaxim SobolevPut interface into permanently promiscuous mode. 430ffb079beSMaxim Sobolev.It Fl promisc 431ffb079beSMaxim SobolevDisable permanently promiscuous mode. 4328fae3551SRodney W. Grimes.It Cm delete 433d0353b83SRuslan ErmilovAnother name for the 434d0353b83SRuslan Ermilov.Fl alias 435d0353b83SRuslan Ermilovparameter. 436215940b3SXin LI.It Cm description Ar value , Cm descr Ar value 437215940b3SXin LISpecify a description of the interface. 438215940b3SXin LIThis can be used to label interfaces in situations where they may 439215940b3SXin LIotherwise be difficult to distinguish. 440215940b3SXin LI.It Cm -description , Cm -descr 441215940b3SXin LIClear the interface description. 4428fae3551SRodney W. Grimes.It Cm down 443d0353b83SRuslan ErmilovMark an interface 444d0353b83SRuslan Ermilov.Dq down . 445d0353b83SRuslan ErmilovWhen an interface is marked 446d0353b83SRuslan Ermilov.Dq down , 447d0353b83SRuslan Ermilovthe system will not attempt to 4488fae3551SRodney W. Grimestransmit messages through that interface. 4498fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well. 4508fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface. 45148773728SEugene Grosbein.It Cm group Ar groupname 4520dad3f0eSMax LaierAssign the interface to a 4530dad3f0eSMax Laier.Dq group . 4540dad3f0eSMax LaierAny interface can be in multiple groups. 4550dad3f0eSMax Laier.Pp 4560dad3f0eSMax LaierCloned interfaces are members of their interface family group by default. 4570dad3f0eSMax LaierFor example, a PPP interface such as 4580dad3f0eSMax Laier.Em ppp0 4590dad3f0eSMax Laieris a member of the PPP interface family group, 4600dad3f0eSMax Laier.Em ppp . 4610dad3f0eSMax Laier.\" The interface(s) the default route(s) point to are members of the 4620dad3f0eSMax Laier.\" .Em egress 4630dad3f0eSMax Laier.\" interface group. 46448773728SEugene Grosbein.It Cm -group Ar groupname 4650dad3f0eSMax LaierRemove the interface from the given 4660dad3f0eSMax Laier.Dq group . 467331a2db8SHajimu UMEMOTO.It Cm eui64 468331a2db8SHajimu UMEMOTO(Inet6 only.) 469331a2db8SHajimu UMEMOTOFill interface index 470a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address) 471331a2db8SHajimu UMEMOTOautomatically. 47235fd7bc0SBjoern A. Zeeb.It Cm fib Ar fib_number 47335fd7bc0SBjoern A. ZeebSpecify interface FIB. 47435fd7bc0SBjoern A. ZeebA FIB 47535fd7bc0SBjoern A. Zeeb.Ar fib_number 47635fd7bc0SBjoern A. Zeebis assigned to all frames or packets received on that interface. 477818b39edSWarren BlockThe FIB is not inherited, e.g., vlans or other sub-interfaces will use 47835fd7bc0SBjoern A. Zeebthe default FIB (0) irrespective of the parent interface's FIB. 47935fd7bc0SBjoern A. ZeebThe kernel needs to be tuned to support more than the default FIB 48035fd7bc0SBjoern A. Zeebusing the 48135fd7bc0SBjoern A. Zeeb.Va ROUTETABLES 48235fd7bc0SBjoern A. Zeebkernel configuration option, or the 48335fd7bc0SBjoern A. Zeeb.Va net.fibs 48435fd7bc0SBjoern A. Zeebtunable. 485eccfe69aSAndrey V. Elsukov.It Cm tunnelfib Ar fib_number 486eccfe69aSAndrey V. ElsukovSpecify tunnel FIB. 487eccfe69aSAndrey V. ElsukovA FIB 488eccfe69aSAndrey V. Elsukov.Ar fib_number 489eccfe69aSAndrey V. Elsukovis assigned to all packets encapsulated by tunnel interface, e.g., 490eccfe69aSAndrey V. Elsukov.Xr gif 4 491eccfe69aSAndrey V. Elsukovand 492eccfe69aSAndrey V. Elsukov.Xr gre 4 . 49376b4b15fSChris Costello.It Cm maclabel Ar label 49476b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel, 49576b4b15fSChris Costelloset the MAC label to 49676b4b15fSChris Costello.Ar label . 49776b4b15fSChris Costello.\" (see 49876b4b15fSChris Costello.\" .Xr maclabel 7 ) . 499b5436146SPeter Wemm.It Cm media Ar type 500920de530SPeter WemmIf the driver supports the media selection system, set the media type 501920de530SPeter Wemmof the interface to 502b5436146SPeter Wemm.Ar type . 503b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several 504b09b4efbSRuslan Ermilovdifferent physical media connectors. 5054e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet 50644c4affaSMateusz Piotrowskiinterface might support the use of either AUI 507b09b4efbSRuslan Ermilovor twisted pair connectors. 508b09b4efbSRuslan ErmilovSetting the media type to 5094e9e907dSRuslan Ermilov.Cm 10base5/AUI 510b5436146SPeter Wemmwould change the currently active connector to the AUI port. 511b5436146SPeter WemmSetting it to 5124e9e907dSRuslan Ermilov.Cm 10baseT/UTP 513b09b4efbSRuslan Ermilovwould activate twisted pair. 514b09b4efbSRuslan ErmilovRefer to the interfaces' driver 515920de530SPeter Wemmspecific documentation or man page for a complete list of the 516920de530SPeter Wemmavailable types. 517b5436146SPeter Wemm.It Cm mediaopt Ar opts 518920de530SPeter WemmIf the driver supports the media selection system, set the specified 519920de530SPeter Wemmmedia options on the interface. 520b09b4efbSRuslan ErmilovThe 521b09b4efbSRuslan Ermilov.Ar opts 522b09b4efbSRuslan Ermilovargument 523b5436146SPeter Wemmis a comma delimited list of options to apply to the interface. 524b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete 525b5436146SPeter Wemmlist of available options. 526b5436146SPeter Wemm.It Fl mediaopt Ar opts 527920de530SPeter WemmIf the driver supports the media selection system, disable the 528920de530SPeter Wemmspecified media options on the interface. 529e519b1a5SSam Leffler.It Cm mode Ar mode 530e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified 531e519b1a5SSam Leffleroperating mode on the interface to 532e519b1a5SSam Leffler.Ar mode . 533e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes 534eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a 5354e9e907dSRuslan Ermilov.Pq Cm 11a , 536eb9a85caSRuslan Ermilov802.11b 5374e9e907dSRuslan Ermilov.Pq Cm 11b , 538eb9a85caSRuslan Ermilovand 802.11g 5394e9e907dSRuslan Ermilov.Pq Cm 11g 540e519b1a5SSam Leffleroperating modes. 541f3e7afe2SHans Petter Selasky.It Cm txrtlmt 542f3e7afe2SHans Petter SelaskySet if the driver supports TX rate limiting. 54311139493SMarius Strobl.It Cm inst Ar minst , Cm instance Ar minst 54411139493SMarius StroblSet the media instance to 54511139493SMarius Strobl.Ar minst . 54611139493SMarius StroblThis is useful for devices which have multiple physical layer interfaces 54711139493SMarius Strobl.Pq PHYs . 54897bebf0aSBrooks Davis.It Cm name Ar name 54997bebf0aSBrooks DavisSet the interface name to 55097bebf0aSBrooks Davis.Ar name . 551356ab07eSBjoern A. Zeeb.It Cm rxcsum , txcsum , rxcsum6 , txcsum6 5528fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 5538fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface. 554356ab07eSBjoern A. ZeebThe feature can be turned on selectively per protocol family. 555356ab07eSBjoern A. ZeebUse 556356ab07eSBjoern A. Zeeb.Cm rxcsum6 , txcsum6 557356ab07eSBjoern A. Zeebfor 558356ab07eSBjoern A. Zeeb.Xr ip6 4 559356ab07eSBjoern A. Zeebor 560356ab07eSBjoern A. Zeeb.Cm rxcsum , txcsum 561356ab07eSBjoern A. Zeebotherwise. 5628fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently 5638fbad60dSRuslan Ermilovof each other, so setting one may also set the other. 5648fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably 5658fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers. 566356ab07eSBjoern A. Zeeb.It Fl rxcsum , txcsum , rxcsum6 , txcsum6 5678fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 5688fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface. 569356ab07eSBjoern A. ZeebThe feature can be turned off selectively per protocol family. 570356ab07eSBjoern A. ZeebUse 571356ab07eSBjoern A. Zeeb.Fl rxcsum6 , txcsum6 572356ab07eSBjoern A. Zeebfor 573356ab07eSBjoern A. Zeeb.Xr ip6 4 574356ab07eSBjoern A. Zeebor 575356ab07eSBjoern A. Zeeb.Fl rxcsum , txcsum 576356ab07eSBjoern A. Zeebotherwise. 5778fbad60dSRuslan ErmilovThese settings may not always be independent of each other. 578d7097da4SAndre Oppermann.It Cm tso 579d7097da4SAndre OppermannIf the driver supports 580d7097da4SAndre Oppermann.Xr tcp 4 581d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface. 582d7097da4SAndre OppermannSome drivers may not be able to support TSO for 583d7097da4SAndre Oppermann.Xr ip 4 584d7097da4SAndre Oppermannand 585d7097da4SAndre Oppermann.Xr ip6 4 586d7097da4SAndre Oppermannpackets, so they may enable only one of them. 587d7097da4SAndre Oppermann.It Fl tso 588d7097da4SAndre OppermannIf the driver supports 589d7097da4SAndre Oppermann.Xr tcp 4 590d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface. 591d7097da4SAndre OppermannIt will always disable TSO for 592d7097da4SAndre Oppermann.Xr ip 4 593d7097da4SAndre Oppermannand 594d7097da4SAndre Oppermann.Xr ip6 4 . 5951623284fSBjoern A. Zeeb.It Cm tso6 , tso4 5961623284fSBjoern A. ZeebIf the driver supports 5971623284fSBjoern A. Zeeb.Xr tcp 4 5981623284fSBjoern A. Zeebsegmentation offloading for 5991623284fSBjoern A. Zeeb.Xr ip6 4 6001623284fSBjoern A. Zeebor 6011623284fSBjoern A. Zeeb.Xr ip 4 6021623284fSBjoern A. Zeebuse one of these to selectively enabled it only for one protocol family. 6031623284fSBjoern A. Zeeb.It Fl tso6 , tso4 6041623284fSBjoern A. ZeebIf the driver supports 6051623284fSBjoern A. Zeeb.Xr tcp 4 6061623284fSBjoern A. Zeebsegmentation offloading for 6071623284fSBjoern A. Zeeb.Xr ip6 4 6081623284fSBjoern A. Zeebor 6091623284fSBjoern A. Zeeb.Xr ip 4 6101623284fSBjoern A. Zeebuse one of these to selectively disable it only for one protocol family. 611a6575bfcSAndre Oppermann.It Cm lro 612a6575bfcSAndre OppermannIf the driver supports 613a6575bfcSAndre Oppermann.Xr tcp 4 614a6575bfcSAndre Oppermannlarge receive offloading, enable LRO on the interface. 615a6575bfcSAndre Oppermann.It Fl lro 616a6575bfcSAndre OppermannIf the driver supports 617a6575bfcSAndre Oppermann.Xr tcp 4 618a6575bfcSAndre Oppermannlarge receive offloading, disable LRO on the interface. 619b2e60773SJohn Baldwin.It Cm txtls 620b2e60773SJohn BaldwinTransmit TLS offload encrypts Transport Layer Security (TLS) records and 621b2e60773SJohn Baldwinsegments the encrypted record into one or more 622b2e60773SJohn Baldwin.Xr tcp 4 623b2e60773SJohn Baldwinsegments over either 624b2e60773SJohn Baldwin.Xr ip 4 625b2e60773SJohn Baldwinor 626b2e60773SJohn Baldwin.Xr ip6 4 . 627b2e60773SJohn BaldwinIf the driver supports transmit TLS offload, 628b2e60773SJohn Baldwinenable transmit TLS offload on the interface. 629b2e60773SJohn BaldwinSome drivers may not be able to support transmit TLS offload for 630b2e60773SJohn Baldwin.Xr ip 4 631b2e60773SJohn Baldwinand 632b2e60773SJohn Baldwin.Xr ip6 4 633b2e60773SJohn Baldwinpackets, so they may enable only one of them. 634b2e60773SJohn Baldwin.It Fl txtls 635b2e60773SJohn BaldwinIf the driver supports transmit TLS offload, 636b2e60773SJohn Baldwindisable transmit TLS offload on the interface. 637b2e60773SJohn BaldwinIt will always disable TLS for 638b2e60773SJohn Baldwin.Xr ip 4 639b2e60773SJohn Baldwinand 640b2e60773SJohn Baldwin.Xr ip6 4 . 641521eac97SJohn Baldwin.It Cm txtlsrtlmt 642521eac97SJohn BaldwinEnable use of rate limiting (packet pacing) for TLS offload. 643521eac97SJohn Baldwin.It Fl txtlsrtlmt 644521eac97SJohn BaldwinDisable use of rate limiting for TLS offload. 6453f43ada9SGleb Smirnoff.It Cm mextpg 6463f43ada9SGleb SmirnoffIf the driver supports extended multi-page 6473f43ada9SGleb Smirnoff.Xr mbuf 9 6483f43ada9SGleb Smirnoffbuffers, enable them on the interface. 6493f43ada9SGleb Smirnoff.It Fl mextpg 6503f43ada9SGleb SmirnoffIf the driver supports extended multi-page 6513f43ada9SGleb Smirnoff.Xr mbuf 9 6523f43ada9SGleb Smirnoffbiffers, disable them on the interface. 653de0abf19SSam Leffler.It Cm wol , wol_ucast , wol_mcast , wol_magic 654de0abf19SSam LefflerEnable Wake On Lan (WOL) support, if available. 655de0abf19SSam LefflerWOL is a facility whereby a machine in a low power state may be woken 656de0abf19SSam Lefflerin response to a received packet. 657de0abf19SSam LefflerThere are three types of packets that may wake a system: 658de0abf19SSam Lefflerucast (directed solely to the machine's mac address), 659de0abf19SSam Lefflermcast (directed to a broadcast or multicast address), 660de0abf19SSam Leffleror 661de0abf19SSam Lefflermagic (unicast or multicast frames with a ``magic contents''). 662de0abf19SSam LefflerNot all devices support WOL, those that do indicate the mechanisms 663de0abf19SSam Lefflerthey support in their capabilities. 664de0abf19SSam Leffler.Cm wol 665de0abf19SSam Leffleris a synonym for enabling all available WOL mechanisms. 666de0abf19SSam LefflerTo disable WOL use 667de0abf19SSam Leffler.Fl wol . 6689b776960SBjoern A. Zeeb.It Cm vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso 669163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable 6700f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 6719b776960SBjoern A. Zeebframe filtering in hardware, checksum offloading, or TSO on VLAN, 672163653e8SYaroslav Tykhiyrespectively. 673830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with 674163653e8SYaroslav Tykhiy.Xr vlan 4 , 675163653e8SYaroslav Tykhiynot on a 676163653e8SYaroslav Tykhiy.Xr vlan 4 677163653e8SYaroslav Tykhiyinterface itself. 67855b0acc0SZhenlei Huang.It Fl vlanmtu , vlanhwtag , vlanhwfilter , vlanhwcsum , vlanhwtso 679163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable 6800f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 68155b0acc0SZhenlei Huangframe filtering in hardware, checksum offloading, or TSO on VLAN, 682163653e8SYaroslav Tykhiyrespectively. 683830edb45SNavdeep Parhar.It Cm vxlanhwcsum , vxlanhwtso 684830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, enable inner checksum 685830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively. 686830edb45SNavdeep ParharNote that this must be configured on a physical interface associated with 687830edb45SNavdeep Parhar.Xr vxlan 4 , 688830edb45SNavdeep Parharnot on a 689830edb45SNavdeep Parhar.Xr vxlan 4 690830edb45SNavdeep Parharinterface itself. 691830edb45SNavdeep ParharThe physical interface is either the interface specified as the vxlandev 692830edb45SNavdeep Parharor the interface hosting the vxlanlocal address. 693830edb45SNavdeep ParharThe driver will offload as much checksum work and TSO as it can reliably 694830edb45SNavdeep Parharsupport, the exact level of offloading may vary between drivers. 695830edb45SNavdeep Parhar.It Fl vxlanhwcsum , vxlanhwtso 696830edb45SNavdeep ParharIf the driver offers user-configurable VXLAN support, disable checksum 697830edb45SNavdeep Parharoffloading (receive and transmit) or TSO on VXLAN, respectively. 6985061de23SJamie Gritton.It Cm vnet Ar jail 6995061de23SJamie GrittonMove the interface to the 7005061de23SJamie Gritton.Xr jail 8 , 7015061de23SJamie Grittonspecified by name or JID. 7025061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 7035061de23SJamie Grittonfrom the current environment and become visible to the jail. 7045061de23SJamie Gritton.It Fl vnet Ar jail 7055061de23SJamie GrittonReclaim the interface from the 7065061de23SJamie Gritton.Xr jail 8 , 7075061de23SJamie Grittonspecified by name or JID. 7085061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 7095061de23SJamie Grittonfrom the jail, and become visible to the current network environment. 7103a3b019aSRuslan Ermilov.It Cm polling 7111f8f09b0SGleb SmirnoffTurn on 7123a3b019aSRuslan Ermilov.Xr polling 4 7131f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports 7141f8f09b0SGleb Smirnoffthis mode. 7153a3b019aSRuslan Ermilov.It Fl polling 7161f8f09b0SGleb SmirnoffTurn off 7173a3b019aSRuslan Ermilov.Xr polling 4 7181f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface. 7193e61dca0SBrooks Davis.It Cm create 7203e61dca0SBrooks DavisCreate the specified network pseudo-device. 7213e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new 7223e61dca0SBrooks Davisdevice with an arbitrary unit number. 723525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is 72497bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed 72597bebf0aSBrooks Davisin the same 72697bebf0aSBrooks Davis.Nm 72797bebf0aSBrooks Davisinvocation. 7283e61dca0SBrooks Davis.It Cm destroy 7293e61dca0SBrooks DavisDestroy the specified network pseudo-device. 7303e61dca0SBrooks Davis.It Cm plumb 7313e61dca0SBrooks DavisAnother name for the 732b8a7fd3fSYaroslav Tykhiy.Cm create 7333e61dca0SBrooks Davisparameter. 73444c4affaSMateusz PiotrowskiIncluded for Solaris compatibility. 7353e61dca0SBrooks Davis.It Cm unplumb 7363e61dca0SBrooks DavisAnother name for the 737b8a7fd3fSYaroslav Tykhiy.Cm destroy 7383e61dca0SBrooks Davisparameter. 73944c4affaSMateusz PiotrowskiIncluded for Solaris compatibility. 7408fae3551SRodney W. Grimes.It Cm metric Ar n 7418fae3551SRodney W. GrimesSet the routing metric of the interface to 7428fae3551SRodney W. Grimes.Ar n , 7438fae3551SRodney W. Grimesdefault 0. 7448fae3551SRodney W. GrimesThe routing metric is used by the routing protocol 7458fae3551SRodney W. Grimes.Pq Xr routed 8 . 7468fae3551SRodney W. GrimesHigher metrics have the effect of making a route 74709a66bdaSJens Schweikhardtless favorable; metrics are counted as additional hops 7488fae3551SRodney W. Grimesto the destination network or host. 7494db32b03SDavid Greenman.It Cm mtu Ar n 7504db32b03SDavid GreenmanSet the maximum transmission unit of the interface to 7514db32b03SDavid Greenman.Ar n , 7524db32b03SDavid Greenmandefault is interface specific. 753b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an 7544db32b03SDavid Greenmaninterface. 755b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have 7564db32b03SDavid Greenmanrange restrictions. 7578fae3551SRodney W. Grimes.It Cm netmask Ar mask 758b09b4efbSRuslan Ermilov.\" (Inet and ISO.) 759b09b4efbSRuslan Ermilov(Inet only.) 7608fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing 7618fae3551SRodney W. Grimesnetworks into sub-networks. 7628fae3551SRodney W. GrimesThe mask includes the network part of the local address 7638fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address. 7648fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number 765b09b4efbSRuslan Ermilovwith a leading 766b09b4efbSRuslan Ermilov.Ql 0x , 767b09b4efbSRuslan Ermilovwith a dot-notation Internet address, 7688fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table 7698fae3551SRodney W. Grimes.Xr networks 5 . 7708fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address 7718fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts, 7728fae3551SRodney W. Grimesand 0's for the host part. 7738fae3551SRodney W. GrimesThe mask should contain at least the standard network portion, 7748fae3551SRodney W. Grimesand the subnet field should be contiguous with the network 7758fae3551SRodney W. Grimesportion. 77612813062SJesper Skriver.Pp 77712813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address. 77812813062SJesper SkriverSee the 77912813062SJesper Skriver.Ar address 78012813062SJesper Skriveroption above for more information. 781cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len 782b09b4efbSRuslan Ermilov(Inet6 only.) 783cfa1ca9dSYoshinobu InoueSpecify that 784cfa1ca9dSYoshinobu Inoue.Ar len 785cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks. 786cfa1ca9dSYoshinobu InoueThe 787cfa1ca9dSYoshinobu Inoue.Ar len 788cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128. 789cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule. 790bfc03b18SStephen McKayIf the parameter is omitted, 64 is used. 7919f1741caSRuslan Ermilov.Pp 7929f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address. 7939f1741caSRuslan ErmilovSee the 7949f1741caSRuslan Ermilov.Ar address 7959f1741caSRuslan Ermilovoption above for more information. 796d6d1cb48SRobert Watson.It Cm remove 797d0353b83SRuslan ErmilovAnother name for the 798d0353b83SRuslan Ermilov.Fl alias 799d0353b83SRuslan Ermilovparameter. 800d0353b83SRuslan ErmilovIntroduced for compatibility 801b09b4efbSRuslan Ermilovwith 802b09b4efbSRuslan Ermilov.Bsx . 803b09b4efbSRuslan Ermilov.Sm off 804b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2 805b09b4efbSRuslan Ermilov.Sm on 8068fae3551SRodney W. GrimesEnable special processing of the link level of the interface. 8078fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however, 808ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation. 809ef8f7ac9SSheldon HearnAn example 810b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type 811b09b4efbSRuslan Ermilovfor some Ethernet cards. 812b09b4efbSRuslan ErmilovRefer to the man page for the specific driver 813b5436146SPeter Wemmfor more information. 814b09b4efbSRuslan Ermilov.Sm off 815b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2 816b09b4efbSRuslan Ermilov.Sm on 8178fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface. 818afbe3a0fSPoul-Henning Kamp.It Cm monitor 819afbe3a0fSPoul-Henning KampPut the interface in monitor mode. 8203706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after 821afbe3a0fSPoul-Henning Kamp.Xr bpf 4 822afbe3a0fSPoul-Henning Kampprocessing. 823afbe3a0fSPoul-Henning Kamp.It Fl monitor 824afbe3a0fSPoul-Henning KampTake the interface out of monitor mode. 825a521fa63SJohn-Mark Gurney.It Cm pcp Ar priority_code_point 826a521fa63SJohn-Mark GurneyPriority code point 827a521fa63SJohn-Mark Gurney.Pq Dv PCP 828a521fa63SJohn-Mark Gurneyis an 3-bit field which refers to the IEEE 802.1p 829a521fa63SJohn-Mark Gurneyclass of service and maps to the frame priority level. 830a521fa63SJohn-Mark Gurney.It Fl pcp 831a521fa63SJohn-Mark GurneyStop tagging packets on the interface w/ the priority code point. 8328fae3551SRodney W. Grimes.It Cm up 833e333b944SPhilippe CharnierMark an interface 834e333b944SPhilippe Charnier.Dq up . 835e333b944SPhilippe CharnierThis may be used to enable an interface after an 836b09b4efbSRuslan Ermilov.Dq Nm Cm down . 8378fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface. 8388fae3551SRodney W. GrimesIf the interface was reset when previously marked down, 8398fae3551SRodney W. Grimesthe hardware will be re-initialized. 8405faf8dcbSSam Leffler.El 8415faf8dcbSSam Leffler.Pp 842f6ac2391SJoel DahlThe following parameters are for ICMPv6 Neighbor Discovery Protocol. 8432e77c5abSHiroki SatoNote that the address family keyword 8442e77c5abSHiroki Sato.Dq Li inet6 8452e77c5abSHiroki Satois needed for them: 846a283298cSHiroki Sato.Bl -tag -width indent 847a283298cSHiroki Sato.It Cm accept_rtadv 848a283298cSHiroki SatoSet a flag to enable accepting ICMPv6 Router Advertisement messages. 8495ed65977SHiroki SatoThe 8505ed65977SHiroki Sato.Xr sysctl 8 8515ed65977SHiroki Satovariable 8525ed65977SHiroki Sato.Va net.inet6.ip6.accept_rtadv 8535ed65977SHiroki Satocontrols whether this flag is set by default or not. 854a283298cSHiroki Sato.It Cm -accept_rtadv 855a283298cSHiroki SatoClear a flag 856a283298cSHiroki Sato.Cm accept_rtadv . 8575ed65977SHiroki Sato.It Cm no_radr 8585ed65977SHiroki SatoSet a flag to control whether routers from which the system accepts 8595ed65977SHiroki SatoRouter Advertisement messages will be added to the Default Router List 8605ed65977SHiroki Satoor not. 8615ed65977SHiroki SatoWhen the 8625ed65977SHiroki Sato.Cm accept_rtadv 8635ed65977SHiroki Satoflag is disabled, this flag has no effect. 8645ed65977SHiroki SatoThe 8655ed65977SHiroki Sato.Xr sysctl 8 8665ed65977SHiroki Satovariable 8675ed65977SHiroki Sato.Va net.inet6.ip6.no_radr 8685ed65977SHiroki Satocontrols whether this flag is set by default or not. 8695ed65977SHiroki Sato.It Cm -no_radr 8705ed65977SHiroki SatoClear a flag 8715ed65977SHiroki Sato.Cm no_radr . 872a283298cSHiroki Sato.It Cm auto_linklocal 873a283298cSHiroki SatoSet a flag to perform automatic link-local address configuration when 874a53bb70bSJoel Dahlthe interface becomes available. 8755ed65977SHiroki SatoThe 8765ed65977SHiroki Sato.Xr sysctl 8 8775ed65977SHiroki Satovariable 8785ed65977SHiroki Sato.Va net.inet6.ip6.auto_linklocal 8795ed65977SHiroki Satocontrols whether this flag is set by default or not. 880a283298cSHiroki Sato.It Cm -auto_linklocal 881a283298cSHiroki SatoClear a flag 882a283298cSHiroki Sato.Cm auto_linklocal . 883a283298cSHiroki Sato.It Cm defaultif 884a283298cSHiroki SatoSet the specified interface as the default route when there is no 885a283298cSHiroki Satodefault router. 886a283298cSHiroki Sato.It Cm -defaultif 887a283298cSHiroki SatoClear a flag 888a283298cSHiroki Sato.Cm defaultif . 889a283298cSHiroki Sato.It Cm ifdisabled 890a283298cSHiroki SatoSet a flag to disable all of IPv6 network communications on the 89196db02f2SAllan Judespecified interface. 89296db02f2SAllan JudeNote that if there are already configured IPv6 8932e77c5abSHiroki Satoaddresses on that interface, all of them are marked as 8942e77c5abSHiroki Sato.Dq tentative 8952e77c5abSHiroki Satoand DAD will be performed when this flag is cleared. 896a283298cSHiroki Sato.It Cm -ifdisabled 897a283298cSHiroki SatoClear a flag 898a283298cSHiroki Sato.Cm ifdisabled . 899a283298cSHiroki SatoWhen this flag is cleared and 900a283298cSHiroki Sato.Cm auto_linklocal 901a283298cSHiroki Satoflag is enabled, automatic configuration of a link-local address is 902a283298cSHiroki Satoperformed. 903a283298cSHiroki Sato.It Cm nud 904a283298cSHiroki SatoSet a flag to enable Neighbor Unreachability Detection. 905a283298cSHiroki Sato.It Cm -nud 906a283298cSHiroki SatoClear a flag 907a283298cSHiroki Sato.Cm nud . 908164051ceSHajimu UMEMOTO.It Cm no_prefer_iface 9090c7b5530SJeremie Le HenSet a flag to not honor rule 5 of source address selection in RFC 3484. 9100c7b5530SJeremie Le HenIn practice this means the address on the outgoing interface will not be 9110c7b5530SJeremie Le Henpreferred, effectively yielding the decision to the address selection 9120c7b5530SJeremie Le Henpolicy table, configurable with 9130c7b5530SJeremie Le Hen.Xr ip6addrctl 8 . 914164051ceSHajimu UMEMOTO.It Cm -no_prefer_iface 915164051ceSHajimu UMEMOTOClear a flag 916164051ceSHajimu UMEMOTO.Cm no_prefer_iface . 91723e9ffb0SHiroki Sato.It Cm no_dad 91823e9ffb0SHiroki SatoSet a flag to disable Duplicate Address Detection. 91923e9ffb0SHiroki Sato.It Cm -no_dad 92023e9ffb0SHiroki SatoClear a flag 92123e9ffb0SHiroki Sato.Cm no_dad . 922a283298cSHiroki Sato.El 923a283298cSHiroki Sato.Pp 9245dbfa43fSAndrey V. ElsukovThe following parameters are specific for IPv6 addresses. 9255dbfa43fSAndrey V. ElsukovNote that the address family keyword 9265dbfa43fSAndrey V. Elsukov.Dq Li inet6 9275dbfa43fSAndrey V. Elsukovis needed for them: 9285dbfa43fSAndrey V. Elsukov.Bl -tag -width indent 929a6c0b9d0SEdward Tomasz Napierala.It Cm autoconf 930a6c0b9d0SEdward Tomasz NapieralaSet the IPv6 autoconfigured address bit. 931a6c0b9d0SEdward Tomasz Napierala.It Fl autoconf 932a6c0b9d0SEdward Tomasz NapieralaClear the IPv6 autoconfigured address bit. 93367135128SAllan Jude.It Cm deprecated 93467135128SAllan JudeSet the IPv6 deprecated address bit. 93567135128SAllan Jude.It Fl deprecated 93667135128SAllan JudeClear the IPv6 deprecated address bit. 93767135128SAllan Jude.It Cm pltime Ar n 93867135128SAllan JudeSet preferred lifetime for the address. 9395dbfa43fSAndrey V. Elsukov.It Cm prefer_source 9405dbfa43fSAndrey V. ElsukovSet a flag to prefer address as a candidate of the source address for 9415dbfa43fSAndrey V. Elsukovoutgoing packets. 9425dbfa43fSAndrey V. Elsukov.It Cm -prefer_source 9435dbfa43fSAndrey V. ElsukovClear a flag 9445dbfa43fSAndrey V. Elsukov.Cm prefer_source . 94567135128SAllan Jude.It Cm vltime Ar n 94667135128SAllan JudeSet valid lifetime for the address. 9475dbfa43fSAndrey V. Elsukov.El 9485dbfa43fSAndrey V. Elsukov.Pp 949b032f27cSSam LefflerThe following parameters are specific to cloning 950b032f27cSSam LefflerIEEE 802.11 wireless interfaces with the 951b032f27cSSam Leffler.Cm create 952b032f27cSSam Lefflerrequest: 9535faf8dcbSSam Leffler.Bl -tag -width indent 954b032f27cSSam Leffler.It Cm wlandev Ar device 955b032f27cSSam LefflerUse 956b032f27cSSam Leffler.Ar device 957b032f27cSSam Leffleras the parent for the cloned device. 958b032f27cSSam Leffler.It Cm wlanmode Ar mode 959b032f27cSSam LefflerSpecify the operating mode for this cloned device. 960b032f27cSSam Leffler.Ar mode 961b032f27cSSam Leffleris one of 962b032f27cSSam Leffler.Cm sta , 963b032f27cSSam Leffler.Cm ahdemo 964b032f27cSSam Leffler(or 965b032f27cSSam Leffler.Cm adhoc-demo ) , 966527d10a5SMateusz Piotrowski.Cm ibss 967b032f27cSSam Leffler(or 968b032f27cSSam Leffler.Cm adhoc ) , 969527d10a5SMateusz Piotrowski.Cm ap 970b032f27cSSam Leffler(or 971b032f27cSSam Leffler.Cm hostap ) , 972b032f27cSSam Leffler.Cm wds , 97310ad9a77SSam Leffler.Cm tdma , 97459aa14a9SRui Paulo.Cm mesh , 975b032f27cSSam Lefflerand 976b032f27cSSam Leffler.Cm monitor . 977b032f27cSSam LefflerThe operating mode of a cloned interface cannot be changed. 97810ad9a77SSam LefflerThe 97910ad9a77SSam Leffler.Cm tdma 98010ad9a77SSam Lefflermode is actually implemented as an 98110ad9a77SSam Leffler.Cm adhoc-demo 98210ad9a77SSam Lefflerinterface with special properties. 983b032f27cSSam Leffler.It Cm wlanbssid Ar bssid 984b032f27cSSam LefflerThe 802.11 mac address to use for the bssid. 985b032f27cSSam LefflerThis must be specified at create time for a legacy 986b032f27cSSam Leffler.Cm wds 987b032f27cSSam Lefflerdevice. 988b032f27cSSam Leffler.It Cm wlanaddr Ar address 989b032f27cSSam LefflerThe local mac address. 990b032f27cSSam LefflerIf this is not specified then a mac address will automatically be assigned 991b032f27cSSam Lefflerto the cloned device. 992b032f27cSSam LefflerTypically this address is the same as the address of the parent device 993b032f27cSSam Lefflerbut if the 994b032f27cSSam Leffler.Cm bssid 995b032f27cSSam Lefflerparameter is specified then the driver will craft a unique address for 996b032f27cSSam Lefflerthe device (if supported). 997b032f27cSSam Leffler.It Cm wdslegacy 998b032f27cSSam LefflerMark a 999b032f27cSSam Leffler.Cm wds 1000b032f27cSSam Lefflerdevice as operating in ``legacy mode''. 1001b032f27cSSam LefflerLegacy 1002b032f27cSSam Leffler.Cm wds 1003b032f27cSSam Lefflerdevices have a fixed peer relationship and do not, for example, roam 1004b032f27cSSam Lefflerif their peer stops communicating. 1005b032f27cSSam LefflerFor completeness a Dynamic WDS (DWDS) interface may marked as 1006b032f27cSSam Leffler.Fl wdslegacy . 1007b032f27cSSam Leffler.It Cm bssid 1008b032f27cSSam LefflerRequest a unique local mac address for the cloned device. 1009b032f27cSSam LefflerThis is only possible if the device supports multiple mac addresses. 1010b032f27cSSam LefflerTo force use of the parent's mac address use 1011b032f27cSSam Leffler.Fl bssid . 1012b032f27cSSam Leffler.It Cm beacons 1013b032f27cSSam LefflerMark the cloned interface as depending on hardware support to 1014b032f27cSSam Lefflertrack received beacons. 1015b032f27cSSam LefflerTo have beacons tracked in software use 1016b032f27cSSam Leffler.Fl beacons . 1017b032f27cSSam LefflerFor 1018b032f27cSSam Leffler.Cm hostap 1019b032f27cSSam Lefflermode 1020b032f27cSSam Leffler.Fl beacons 1021b032f27cSSam Lefflercan also be used to indicate no beacons should 1022b032f27cSSam Lefflerbe transmitted; this can be useful when creating a WDS configuration but 1023b032f27cSSam Leffler.Cm wds 1024b032f27cSSam Lefflerinterfaces can only be created as companions to an access point. 1025b032f27cSSam Leffler.El 1026b032f27cSSam Leffler.Pp 1027b032f27cSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces 1028b032f27cSSam Lefflercloned with a 1029b032f27cSSam Leffler.Cm create 1030b032f27cSSam Leffleroperation: 1031b032f27cSSam Leffler.Bl -tag -width indent 1032b032f27cSSam Leffler.It Cm ampdu 1033b032f27cSSam LefflerEnable sending and receiving AMPDU frames when using 802.11n (default). 1034b032f27cSSam LefflerThe 802.11n specification states a compliant station must be capable 1035a53bb70bSJoel Dahlof receiving AMPDU frames but transmission is optional. 1036b032f27cSSam LefflerUse 1037b032f27cSSam Leffler.Fl ampdu 1038b032f27cSSam Lefflerto disable all use of AMPDU with 802.11n. 1039b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 1040b032f27cSSam Leffler.Cm ampdutx 1041b032f27cSSam Lefflerand 1042b032f27cSSam Leffler.Cm ampdurx 1043b032f27cSSam Lefflerto control use of AMPDU in one direction. 1044b032f27cSSam Leffler.It Cm ampdudensity Ar density 1045b032f27cSSam LefflerSet the AMPDU density parameter used when operating with 802.11n. 1046b032f27cSSam LefflerThis parameter controls the inter-packet gap for AMPDU frames. 1047b032f27cSSam LefflerThe sending device normally controls this setting but a receiving station 1048b032f27cSSam Lefflermay request wider gaps. 1049b032f27cSSam LefflerLegal values for 1050b032f27cSSam Leffler.Ar density 1051b032f27cSSam Lefflerare 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds). 1052b032f27cSSam LefflerA value of 1053b032f27cSSam Leffler.Cm - 1054b032f27cSSam Leffleris treated the same as 0. 1055b032f27cSSam Leffler.It Cm ampdulimit Ar limit 1056b032f27cSSam LefflerSet the limit on packet size for receiving AMPDU frames when operating 1057b032f27cSSam Lefflerwith 802.11n. 1058b032f27cSSam LefflerLegal values for 1059b032f27cSSam Leffler.Ar limit 1060b032f27cSSam Lefflerare 8192, 16384, 32768, and 65536 but one can also specify 1061b032f27cSSam Lefflerjust the unique prefix: 8, 16, 32, 64. 1062b032f27cSSam LefflerNote the sender may limit the size of AMPDU frames to be less 1063b032f27cSSam Lefflerthan the maximum specified by the receiving station. 1064b032f27cSSam Leffler.It Cm amsdu 1065b032f27cSSam LefflerEnable sending and receiving AMSDU frames when using 802.11n. 1066b032f27cSSam LefflerBy default AMSDU is received but not transmitted. 1067b032f27cSSam LefflerUse 1068b032f27cSSam Leffler.Fl amsdu 1069b032f27cSSam Lefflerto disable all use of AMSDU with 802.11n. 1070b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 1071b032f27cSSam Leffler.Cm amsdutx 1072b032f27cSSam Lefflerand 1073b032f27cSSam Leffler.Cm amsdurx 1074b032f27cSSam Lefflerto control use of AMSDU in one direction. 1075b032f27cSSam Leffler.It Cm amsdulimit Ar limit 1076b032f27cSSam LefflerSet the limit on packet size for sending and receiving AMSDU frames 1077b032f27cSSam Lefflerwhen operating with 802.11n. 1078b032f27cSSam LefflerLegal values for 1079b032f27cSSam Leffler.Ar limit 1080b032f27cSSam Lefflerare 7935 and 3839 (bytes). 1081b032f27cSSam LefflerNote the sender may limit the size of AMSDU frames to be less 1082b032f27cSSam Lefflerthan the maximum specified by the receiving station. 1083b032f27cSSam LefflerNote also that devices are not required to support the 7935 limit, 1084b032f27cSSam Leffleronly 3839 is required by the specification and the larger value 1085b032f27cSSam Lefflermay require more memory to be dedicated to support functionality 1086b032f27cSSam Lefflerthat is rarely used. 10875faf8dcbSSam Leffler.It Cm apbridge 108821414470SRuslan ErmilovWhen operating as an access point, pass packets between 10895faf8dcbSSam Lefflerwireless clients directly (default). 10905faf8dcbSSam LefflerTo instead let them pass up through the 109121414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use 109221414470SRuslan Ermilov.Fl apbridge . 10935faf8dcbSSam LefflerDisabling the internal bridging 10945faf8dcbSSam Leffleris useful when traffic is to be processed with 10955faf8dcbSSam Lefflerpacket filtering. 1096419d8080SPoul-Henning Kamp.It Cm authmode Ar mode 10975faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode. 1098b032f27cSSam LefflerNot all adapters support all modes. 1099b09b4efbSRuslan ErmilovThe set of 1100419d8080SPoul-Henning Kampvalid modes is 11014e9e907dSRuslan Ermilov.Cm none , open , shared 110221414470SRuslan Ermilov(shared key), 11034e9e907dSRuslan Ermilov.Cm 8021x 110421414470SRuslan Ermilov(IEEE 802.1x), 1105aeffcba3SSam Lefflerand 11064e9e907dSRuslan Ermilov.Cm wpa 110721414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i). 11085faf8dcbSSam LefflerThe 11094e9e907dSRuslan Ermilov.Cm 8021x 1110419d8080SPoul-Henning Kampand 11114e9e907dSRuslan Ermilov.Cm wpa 1112aeffcba3SSam Lefflermodes are only useful when using an authentication service 11135faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when 11145faf8dcbSSam Leffleroperating as an access point). 1115419d8080SPoul-Henning KampModes are case insensitive. 1116fdef6accSSam Leffler.It Cm bgscan 1117fdef6accSSam LefflerEnable background scanning when operating as a station. 1118fdef6accSSam LefflerBackground scanning is a technique whereby a station associated to 1119fdef6accSSam Leffleran access point will temporarily leave the channel to scan for 1120fdef6accSSam Lefflerneighboring stations. 1121fdef6accSSam LefflerThis allows a station to maintain a cache of nearby access points 1122d592cd38SSam Lefflerso that roaming between access points can be done without 1123fdef6accSSam Lefflera lengthy scan operation. 1124fdef6accSSam LefflerBackground scanning is done only when a station is not busy and 1125fdef6accSSam Lefflerany outbound traffic will cancel a scan operation. 1126fdef6accSSam LefflerBackground scanning should never cause packets to be lost though 1127fdef6accSSam Lefflerthere may be some small latency if outbound traffic interrupts a 1128fdef6accSSam Lefflerscan operation. 1129fdef6accSSam LefflerBy default background scanning is enabled if the device is capable. 1130fdef6accSSam LefflerTo disable background scanning, use 1131fdef6accSSam Leffler.Fl bgscan . 1132fdef6accSSam LefflerBackground scanning is controlled by the 1133fdef6accSSam Leffler.Cm bgscanidle 1134fdef6accSSam Lefflerand 1135fdef6accSSam Leffler.Cm bgscanintvl 1136fdef6accSSam Lefflerparameters. 1137fdef6accSSam LefflerBackground scanning must be enabled for roaming; this is an artifact 1138fdef6accSSam Lefflerof the current implementation and may not be required in the future. 1139fdef6accSSam Leffler.It Cm bgscanidle Ar idletime 1140fdef6accSSam LefflerSet the minimum time a station must be idle (not transmitting or 1141fdef6accSSam Lefflerreceiving frames) before a background scan is initiated. 1142fdef6accSSam LefflerThe 1143fdef6accSSam Leffler.Ar idletime 1144fdef6accSSam Lefflerparameter is specified in milliseconds. 1145fdef6accSSam LefflerBy default a station must be idle at least 250 milliseconds before 1146fdef6accSSam Lefflera background scan is initiated. 1147fdef6accSSam LefflerThe idle time may not be set to less than 100 milliseconds. 1148fdef6accSSam Leffler.It Cm bgscanintvl Ar interval 1149fdef6accSSam LefflerSet the interval at which background scanning is attempted. 1150fdef6accSSam LefflerThe 1151fdef6accSSam Leffler.Ar interval 1152fdef6accSSam Lefflerparameter is specified in seconds. 1153d592cd38SSam LefflerBy default a background scan is considered every 300 seconds (5 minutes). 1154fdef6accSSam LefflerThe 1155fdef6accSSam Leffler.Ar interval 1156fdef6accSSam Lefflermay not be set to less than 15 seconds. 1157aeffcba3SSam Leffler.It Cm bintval Ar interval 1158aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in 1159aeffcba3SSam Lefflerad-hoc or ap mode. 1160aeffcba3SSam LefflerThe 1161aeffcba3SSam Leffler.Ar interval 11628f3591a5SSam Lefflerparameter is specified in TU's (1024 usecs). 1163aeffcba3SSam LefflerBy default beacon frames are transmitted every 100 TU's. 1164d7ccef33SSam Leffler.It Cm bmissthreshold Ar count 1165d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station 11668266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point). 1167d7ccef33SSam LefflerThe 1168d7ccef33SSam Leffler.Ar count 11698266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the 11708266d476SRuslan Ermilovupper bound may be reduced according to device capabilities. 1171d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but 1172d7ccef33SSam Lefflerthis may be overridden by the device driver. 1173d7ccef33SSam LefflerAnother name for the 1174d7ccef33SSam Leffler.Cm bmissthreshold 1175d7ccef33SSam Lefflerparameter is 1176d7ccef33SSam Leffler.Cm bmiss . 11775faf8dcbSSam Leffler.It Cm bssid Ar address 11785faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating 11795faf8dcbSSam Leffleras a station in a BSS network. 11805faf8dcbSSam LefflerThis overrides any automatic selection done by the system. 118121414470SRuslan ErmilovTo disable a previously selected access point, supply 11824e9e907dSRuslan Ermilov.Cm any , none , 11835faf8dcbSSam Leffleror 11844e9e907dSRuslan Ermilov.Cm - 11855faf8dcbSSam Lefflerfor the address. 118609a66bdaSJens SchweikhardtThis option is useful when more than one access point uses the same SSID. 11875faf8dcbSSam LefflerAnother name for the 11885faf8dcbSSam Leffler.Cm bssid 11895faf8dcbSSam Lefflerparameter is 11905faf8dcbSSam Leffler.Cm ap . 119129d58c71SSam Leffler.It Cm burst 119229d58c71SSam LefflerEnable packet bursting. 119329d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless 119429d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe 119529d58c71SSam Lefflerspacing is reduced. 119629d58c71SSam LefflerThis technique can significantly increase throughput by reducing 119729d58c71SSam Lefflertransmission overhead. 119829d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification 119929d58c71SSam Lefflerand some devices that do not support QoS may still be capable. 120029d58c71SSam LefflerBy default packet bursting is enabled if a device is capable 120129d58c71SSam Lefflerof doing it. 120229d58c71SSam LefflerTo disable packet bursting, use 120329d58c71SSam Leffler.Fl burst . 12045faf8dcbSSam Leffler.It Cm chanlist Ar channels 12055faf8dcbSSam LefflerSet the desired channels to use when scanning for access 12065faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied 12075faf8dcbSSam Lefflerchannels when operating as an access point. 12085faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with 120921414470SRuslan Ermiloveach element in the list representing either a single channel number or a range 12105faf8dcbSSam Lefflerof the form 12115faf8dcbSSam Leffler.Dq Li a-b . 12125faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible 12135faf8dcbSSam Leffleraccording to the operating characteristics of the device. 12145faf8dcbSSam Leffler.It Cm channel Ar number 12155faf8dcbSSam LefflerSet a single desired channel. 12165faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available 12175faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for. 12185faf8dcbSSam LefflerSetting 12195faf8dcbSSam Lefflerthe channel to 12204a5184dcSSam Leffler.Li any , 12215faf8dcbSSam Leffleror 12224e9e907dSRuslan Ermilov.Cm - 12234a5184dcSSam Lefflerwill clear any desired channel and, if the device is marked up, 12244a5184dcSSam Lefflerforce a scan for a channel to operate on. 12255faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified 12265faf8dcbSSam Lefflerinstead of the channel number. 12278f3591a5SSam Leffler.Pp 12288f3591a5SSam LefflerWhen there are several ways to use a channel the channel 12298f3591a5SSam Lefflernumber/frequency may be appended with attributes to clarify. 12308f3591a5SSam LefflerFor example, if a device is capable of operating on channel 6 12318f3591a5SSam Lefflerwith 802.11n and 802.11g then one can specify that g-only use 12328f3591a5SSam Lefflershould be used by specifying ``6:g''. 12338f3591a5SSam LefflerSimilarly the channel width can be specified by appending it 1234818b39edSWarren Blockwith ``/''; e.g., ``6/40'' specifies a 40MHz wide channel, 12358f3591a5SSam LefflerThese attributes can be combined as in: ``6:ht/40''. 1236c2025a76SJoel DahlThe full set of flags specified following a ``:'' are: 12378f3591a5SSam Leffler.Cm a 12388f3591a5SSam Leffler(802.11a), 12398f3591a5SSam Leffler.Cm b 12408f3591a5SSam Leffler(802.11b), 12418f3591a5SSam Leffler.Cm d 12428f3591a5SSam Leffler(Atheros Dynamic Turbo mode), 12438f3591a5SSam Leffler.Cm g 12448f3591a5SSam Leffler(802.11g), 12458f3591a5SSam Leffler.Cm h 12468f3591a5SSam Leffleror 12478f3591a5SSam Leffler.Cm n 12488f3591a5SSam Leffler(802.11n aka HT), 12498f3591a5SSam Leffler.Cm s 12508f3591a5SSam Leffler(Atheros Static Turbo mode), 12518f3591a5SSam Lefflerand 12528f3591a5SSam Leffler.Cm t 1253fdef6accSSam Leffler(Atheros Dynamic Turbo mode, or appended to ``st'' and ``dt''). 12548f3591a5SSam LefflerThe full set of channel widths following a '/' are: 12558f3591a5SSam Leffler.Cm 5 12568f3591a5SSam Leffler(5MHz aka quarter-rate channel), 12578f3591a5SSam Leffler.Cm 10 12588f3591a5SSam Leffler(10MHz aka half-rate channel), 12598f3591a5SSam Leffler.Cm 20 12608f3591a5SSam Leffler(20MHz mostly for use in specifying ht20), 12618f3591a5SSam Lefflerand 12628f3591a5SSam Leffler.Cm 40 1263c2025a76SJoel Dahl(40MHz mostly for use in specifying ht40). 12648f3591a5SSam LefflerIn addition, 12658f3591a5SSam Lefflera 40MHz HT channel specification may include the location 12668f3591a5SSam Lefflerof the extension channel by appending ``+'' or ``-'' for above and below, 1267818b39edSWarren Blockrespectively; e.g., ``2437:ht/40+'' specifies 40MHz wide HT operation 12688f3591a5SSam Lefflerwith the center channel at frequency 2437 and the extension channel above. 1269b032f27cSSam Leffler.It Cm country Ar name 1270b032f27cSSam LefflerSet the country code to use in calculating the regulatory constraints 1271b032f27cSSam Lefflerfor operation. 1272b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1273b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1274b032f27cSSam Lefflercan be used on a channel are defined by this setting. 1275b032f27cSSam LefflerCountry/Region codes are specified as a 2-character abbreviation 1276b032f27cSSam Lefflerdefined by ISO 3166 or using a longer, but possibly ambiguous, spelling; 1277818b39edSWarren Blocke.g., "ES" and "Spain". 127837b983c0SJoel DahlThe set of country codes are taken from 127937b983c0SJoel Dahl.Pa /etc/regdomain.xml 128037b983c0SJoel Dahland can also 1281b032f27cSSam Lefflerbe viewed with the ``list countries'' request. 1282b032f27cSSam LefflerNote that not all devices support changing the country code from a default 1283b032f27cSSam Lefflersetting; typically stored in EEPROM. 1284b032f27cSSam LefflerSee also 1285b032f27cSSam Leffler.Cm regdomain , 1286b032f27cSSam Leffler.Cm indoor , 1287b032f27cSSam Leffler.Cm outdoor , 1288b032f27cSSam Lefflerand 1289b032f27cSSam Leffler.Cm anywhere . 1290b032f27cSSam Leffler.It Cm dfs 1291b032f27cSSam LefflerEnable Dynamic Frequency Selection (DFS) as specified in 802.11h. 1292b032f27cSSam LefflerDFS embodies several facilities including detection of overlapping 1293b032f27cSSam Lefflerradar signals, dynamic transmit power control, and channel selection 1294b032f27cSSam Leffleraccording to a least-congested criteria. 12951748d1e5SGavin AtkinsonDFS support is mandatory for some 5GHz frequencies in certain 1296818b39edSWarren Blocklocales (e.g., ETSI). 1297b032f27cSSam LefflerBy default DFS is enabled according to the regulatory definitions 129837b983c0SJoel Dahlspecified in 129937b983c0SJoel Dahl.Pa /etc/regdomain.xml 130037b983c0SJoel Dahland the current country code, regdomain, 1301b032f27cSSam Lefflerand channel. 1302b032f27cSSam LefflerNote the underlying device (and driver) must support radar detection 1303b032f27cSSam Lefflerfor full DFS support to work. 1304b032f27cSSam LefflerTo be fully compliant with the local regulatory agency frequencies that 1305b032f27cSSam Lefflerrequire DFS should not be used unless it is fully supported. 1306b032f27cSSam LefflerUse 1307b032f27cSSam Leffler.Fl dfs 1308b032f27cSSam Lefflerto disable this functionality for testing. 1309b032f27cSSam Leffler.It Cm dotd 1310b032f27cSSam LefflerEnable support for the 802.11d specification (default). 1311b032f27cSSam LefflerWhen this support is enabled in station mode, beacon frames that advertise 1312b032f27cSSam Lefflera country code different than the currently configured country code will 1313b032f27cSSam Lefflercause an event to be dispatched to user applications. 1314b032f27cSSam LefflerThis event can be used by the station to adopt that country code and 1315b032f27cSSam Leffleroperate according to the associated regulatory constraints. 1316b032f27cSSam LefflerWhen operating as an access point with 802.11d enabled the beacon and 1317b032f27cSSam Lefflerprobe response frames transmitted will advertise the current regulatory 1318b032f27cSSam Lefflerdomain settings. 1319b032f27cSSam LefflerTo disable 802.11d use 1320b032f27cSSam Leffler.Fl dotd . 1321fdef6accSSam Leffler.It Cm doth 1322b032f27cSSam LefflerEnable 802.11h support including spectrum management. 1323b032f27cSSam LefflerWhen 802.11h is enabled beacon and probe response frames will have 1324b032f27cSSam Lefflerthe SpectrumMgt bit set in the capabilities field and 1325b032f27cSSam Lefflercountry and power constraint information elements will be present. 1326b032f27cSSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA) 1327b032f27cSSam Lefflerwhich are a mechanism to coordinate channel changes by an access point. 1328fdef6accSSam LefflerBy default 802.11h is enabled if the device is capable. 1329fdef6accSSam LefflerTo disable 802.11h use 1330fdef6accSSam Leffler.Fl doth . 13314e0a8f0dSSam Leffler.It Cm deftxkey Ar index 13324e0a8f0dSSam LefflerSet the default key to use for transmission. 13334e0a8f0dSSam LefflerTypically this is only set when using WEP encryption. 13345ce09a9eSSam LefflerNote that you must set a default transmit key 13355ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 13364e0a8f0dSSam LefflerThe 13374e0a8f0dSSam Leffler.Cm weptxkey 13384e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility. 1339aeffcba3SSam Leffler.It Cm dtimperiod Ar period 1340aeffcba3SSam LefflerSet the 1341aeffcba3SSam LefflerDTIM 1342aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when 1343aeffcba3SSam Leffleroperating in ap mode. 1344aeffcba3SSam LefflerThe 1345aeffcba3SSam Leffler.Ar period 1346aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM 1347aeffcba3SSam Lefflerand must be in the range 1 to 15. 13484e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon). 13496edc611eSAdrian Chadd.It Cm quiet 135096db02f2SAllan JudeEnable the use of quiet IE. 135196db02f2SAllan JudeHostap will use this to silence other 13526edc611eSAdrian Chaddstations to reduce interference for radar detection when 13531748d1e5SGavin Atkinsonoperating on 5GHz frequency and doth support is enabled. 13546edc611eSAdrian ChaddUse 13556edc611eSAdrian Chadd.Fl quiet 13566edc611eSAdrian Chaddto disable this functionality. 13576edc611eSAdrian Chadd.It Cm quiet_period Ar period 13586edc611eSAdrian ChaddSet the QUIET 13596edc611eSAdrian Chadd.Ar period 13606edc611eSAdrian Chaddto the number of beacon intervals between the start of regularly 13616edc611eSAdrian Chaddscheduled quiet intervals defined by Quiet element. 13626edc611eSAdrian Chadd.It Cm quiet_count Ar count 13636edc611eSAdrian ChaddSet the QUIET 13646edc611eSAdrian Chadd.Ar count 13656edc611eSAdrian Chaddto the number of TBTTs until the beacon interval during which the 136696db02f2SAllan Judenext quiet interval shall start. 136796db02f2SAllan JudeA value of 1 indicates the quiet 13686edc611eSAdrian Chaddinterval will start during the beacon interval starting at the next 136996db02f2SAllan JudeTBTT. 137096db02f2SAllan JudeA value 0 is reserved. 13716edc611eSAdrian Chadd.It Cm quiet_offset Ar offset 13726edc611eSAdrian ChaddSet the QUIET 13736edc611eSAdrian Chadd.Ar offset 13746edc611eSAdrian Chaddto the offset of the start of the quiet interval from the TBTT 13756edc611eSAdrian Chaddspecified by the Quiet count, expressed in TUs. 13766edc611eSAdrian ChaddThe value of the 13776edc611eSAdrian Chadd.Ar offset 13786edc611eSAdrian Chaddshall be less than one beacon interval. 13796edc611eSAdrian Chadd.It Cm quiet_duration Ar dur 13806edc611eSAdrian ChaddSet the QUIET 13816edc611eSAdrian Chadd.Ar dur 13826edc611eSAdrian Chaddto the duration of the Quiet interval, expressed in TUs. 13836edc611eSAdrian ChaddThe value should be less than beacon interval. 1384fdef6accSSam Leffler.It Cm dturbo 1385fdef6accSSam LefflerEnable the use of Atheros Dynamic Turbo mode when communicating with 1386fdef6accSSam Leffleranother Dynamic Turbo-capable station. 1387fdef6accSSam LefflerDynamic Turbo mode is an Atheros-specific mechanism by which 1388fdef6accSSam Lefflerstations switch between normal 802.11 operation and a ``boosted'' 1389fdef6accSSam Lefflermode in which a 40MHz wide channel is used for communication. 1390fdef6accSSam LefflerStations using Dynamic Turbo mode operate boosted only when the 1391fdef6accSSam Lefflerchannel is free of non-dturbo stations; when a non-dturbo station 1392fdef6accSSam Leffleris identified on the channel all stations will automatically drop 1393fdef6accSSam Lefflerback to normal operation. 1394fdef6accSSam LefflerBy default, Dynamic Turbo mode is not enabled, even if the device is capable. 1395fdef6accSSam LefflerNote that turbo mode (dynamic or static) is only allowed on some 1396fdef6accSSam Lefflerchannels depending on the regulatory constraints; use the 1397fdef6accSSam Leffler.Cm list chan 1398fdef6accSSam Lefflercommand to identify the channels where turbo mode may be used. 1399fdef6accSSam LefflerTo disable Dynamic Turbo mode use 1400fdef6accSSam Leffler.Fl dturbo . 1401b032f27cSSam Leffler.It Cm dwds 1402b032f27cSSam LefflerEnable Dynamic WDS (DWDS) support. 1403b032f27cSSam LefflerDWDS is a facility by which 4-address traffic can be carried between 1404b032f27cSSam Lefflerstations operating in infrastructure mode. 1405b032f27cSSam LefflerA station first associates to an access point and authenticates using 1406818b39edSWarren Blocknormal procedures (e.g., WPA). 1407b032f27cSSam LefflerThen 4-address frames are passed to carry traffic for stations 1408b032f27cSSam Leffleroperating on either side of the wireless link. 1409b032f27cSSam LefflerDWDS extends the normal WDS mechanism by leveraging existing security 1410b032f27cSSam Lefflerprotocols and eliminating static binding. 1411b032f27cSSam Leffler.Pp 1412b032f27cSSam LefflerWhen DWDS is enabled on an access point 4-address frames received from 1413b032f27cSSam Leffleran authorized station will generate a ``DWDS discovery'' event to user 1414b032f27cSSam Lefflerapplications. 1415b032f27cSSam LefflerThis event should be used to create a WDS interface that is bound 1416b032f27cSSam Lefflerto the remote station (and usually plumbed into a bridge). 1417b032f27cSSam LefflerOnce the WDS interface is up and running 4-address traffic then logically 1418b032f27cSSam Lefflerflows through that interface. 1419b032f27cSSam Leffler.Pp 1420b032f27cSSam LefflerWhen DWDS is enabled on a station, traffic with a destination address 1421b032f27cSSam Lefflerdifferent from the peer station are encapsulated in a 4-address frame 1422b032f27cSSam Lefflerand transmitted to the peer. 1423b032f27cSSam LefflerAll 4-address traffic uses the security information of the stations 1424818b39edSWarren Block(e.g., cryptographic keys). 1425b032f27cSSam LefflerA station is associated using 802.11n facilities may transport 1426b032f27cSSam Leffler4-address traffic using these same mechanisms; this depends on available 1427b032f27cSSam Lefflerresources and capabilities of the device. 1428b032f27cSSam LefflerThe DWDS implementation guards against layer 2 routing loops of 1429b032f27cSSam Lefflermulticast traffic. 1430fdef6accSSam Leffler.It Cm ff 1431d592cd38SSam LefflerEnable the use of Atheros Fast Frames when communicating with 1432fdef6accSSam Leffleranother Fast Frames-capable station. 1433fdef6accSSam LefflerFast Frames are an encapsulation technique by which two 802.3 1434fdef6accSSam Lefflerframes are transmitted in a single 802.11 frame. 1435fdef6accSSam LefflerThis can noticeably improve throughput but requires that the 1436fdef6accSSam Lefflerreceiving station understand how to decapsulate the frame. 1437fdef6accSSam LefflerFast frame use is negotiated using the Atheros 802.11 vendor-specific 1438fdef6accSSam Lefflerprotocol extension so enabling use is safe when communicating with 1439fdef6accSSam Lefflernon-Atheros devices. 1440fdef6accSSam LefflerBy default, use of fast frames is enabled if the device is capable. 1441fdef6accSSam LefflerTo explicitly disable fast frames, use 1442fdef6accSSam Leffler.Fl ff . 1443b032f27cSSam Leffler.It Cm fragthreshold Ar length 1444b032f27cSSam LefflerSet the threshold for which transmitted frames are broken into fragments. 1445b032f27cSSam LefflerThe 1446b032f27cSSam Leffler.Ar length 1447b032f27cSSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346. 1448b032f27cSSam LefflerSetting 1449b032f27cSSam Leffler.Ar length 1450b032f27cSSam Lefflerto 1451b032f27cSSam Leffler.Li 2346 , 1452b032f27cSSam Leffler.Cm any , 1453b032f27cSSam Leffleror 1454b032f27cSSam Leffler.Cm - 1455b032f27cSSam Lefflerdisables transmit fragmentation. 1456b032f27cSSam LefflerNot all adapters honor the fragmentation threshold. 1457b032f27cSSam Leffler.It Cm hidessid 1458b032f27cSSam LefflerWhen operating as an access point, do not broadcast the SSID 1459b032f27cSSam Lefflerin beacon frames or respond to probe request frames unless 1460b032f27cSSam Lefflerthey are directed to the ap (i.e., they include the ap's SSID). 1461b032f27cSSam LefflerBy default, the SSID is included in beacon frames and 1462b032f27cSSam Lefflerundirected probe request frames are answered. 1463b032f27cSSam LefflerTo re-enable the broadcast of the SSID etc., use 1464b032f27cSSam Leffler.Fl hidessid . 1465b032f27cSSam Leffler.It Cm ht 1466b032f27cSSam LefflerEnable use of High Throughput (HT) when using 802.11n (default). 1467b032f27cSSam LefflerThe 802.11n specification includes mechanisms for operation 1468b032f27cSSam Leffleron 20MHz and 40MHz wide channels using different signalling mechanisms 1469b032f27cSSam Lefflerthan specified in 802.11b, 802.11g, and 802.11a. 1470b032f27cSSam LefflerStations negotiate use of these facilities, termed HT20 and HT40, 1471b032f27cSSam Lefflerwhen they associate. 1472b032f27cSSam LefflerTo disable all use of 802.11n use 1473b032f27cSSam Leffler.Fl ht . 1474818b39edSWarren BlockTo disable use of HT20 (e.g., to force only HT40 use) use 1475b032f27cSSam Leffler.Fl ht20 . 1476b032f27cSSam LefflerTo disable use of HT40 use 1477b032f27cSSam Leffler.Fl ht40 . 1478b032f27cSSam Leffler.Pp 1479b032f27cSSam LefflerHT configuration is used to ``auto promote'' operation 1480b032f27cSSam Lefflerwhen several choices are available. 1481b032f27cSSam LefflerFor example, if a station associates to an 11n-capable access point 1482b032f27cSSam Lefflerit controls whether the station uses legacy operation, HT20, or HT40. 1483b032f27cSSam LefflerWhen an 11n-capable device is setup as an access point and 1484b032f27cSSam LefflerAuto Channel Selection is used to locate a channel to operate on, 1485b032f27cSSam LefflerHT configuration controls whether legacy, HT20, or HT40 operation is setup 1486b032f27cSSam Leffleron the selected channel. 1487b032f27cSSam LefflerIf a fixed channel is specified for a station then HT configuration can 1488818b39edSWarren Blockbe given as part of the channel specification; e.g., 6:ht/20 to setup 1489b032f27cSSam LefflerHT20 operation on channel 6. 1490b032f27cSSam Leffler.It Cm htcompat 1491b032f27cSSam LefflerEnable use of compatibility support for pre-802.11n devices (default). 1492b032f27cSSam LefflerThe 802.11n protocol specification went through several incompatible iterations. 1493b032f27cSSam LefflerSome vendors implemented 11n support to older specifications that 1494b032f27cSSam Lefflerwill not interoperate with a purely 11n-compliant station. 1495b032f27cSSam LefflerIn particular the information elements included in management frames 1496b032f27cSSam Lefflerfor old devices are different. 1497b032f27cSSam LefflerWhen compatibility support is enabled both standard and compatible data 1498b032f27cSSam Lefflerwill be provided. 1499f30f9d40SRui PauloStations that associate using the compatibility mechanisms are flagged 1500b032f27cSSam Lefflerin ``list sta''. 1501f30f9d40SRui PauloTo disable compatibility support use 1502b032f27cSSam Leffler.Fl htcompat . 1503b032f27cSSam Leffler.It Cm htprotmode Ar technique 1504b032f27cSSam LefflerFor interfaces operating in 802.11n, use the specified 1505b032f27cSSam Leffler.Ar technique 1506b032f27cSSam Lefflerfor protecting HT frames in a mixed legacy/HT network. 1507b032f27cSSam LefflerThe set of valid techniques is 1508b032f27cSSam Leffler.Cm off , 1509b032f27cSSam Lefflerand 1510b032f27cSSam Leffler.Cm rts 1511b032f27cSSam Leffler(RTS/CTS, default). 1512b032f27cSSam LefflerTechnique names are case insensitive. 1513b032f27cSSam Leffler.It Cm inact 1514b032f27cSSam LefflerEnable inactivity processing for stations associated to an 1515b032f27cSSam Leffleraccess point (default). 1516b032f27cSSam LefflerWhen operating as an access point the 802.11 layer monitors 1517b032f27cSSam Lefflerthe activity of each associated station. 1518b032f27cSSam LefflerWhen a station is inactive for 5 minutes it will send several 1519b032f27cSSam Leffler``probe frames'' to see if the station is still present. 1520b032f27cSSam LefflerIf no response is received then the station is deauthenticated. 1521b032f27cSSam LefflerApplications that prefer to handle this work can disable this 1522b032f27cSSam Lefflerfacility by using 1523b032f27cSSam Leffler.Fl inact . 1524b032f27cSSam Leffler.It Cm indoor 1525b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1526b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1527b032f27cSSam Lefflerwhen 802.11d is enabled with 1528b032f27cSSam Leffler.Cm dotd . 1529b032f27cSSam LefflerSee also 1530b032f27cSSam Leffler.Cm outdoor , 1531b032f27cSSam Leffler.Cm anywhere , 1532b032f27cSSam Leffler.Cm country , 1533b032f27cSSam Lefflerand 1534b032f27cSSam Leffler.Cm regdomain . 15354e9e907dSRuslan Ermilov.It Cm list active 1536aeffcba3SSam LefflerDisplay the list of channels available for use taking into account 1537aeffcba3SSam Lefflerany restrictions set with the 15384e9e907dSRuslan Ermilov.Cm chanlist 1539451486b5SSam Lefflerdirective. 1540451486b5SSam LefflerSee the description of 1541451486b5SSam Leffler.Cm list chan 1542451486b5SSam Lefflerfor more information. 15434e9e907dSRuslan Ermilov.It Cm list caps 1544aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating 1545aeffcba3SSam Lefflermodes supported. 15464e9e907dSRuslan Ermilov.It Cm list chan 1547aeffcba3SSam LefflerDisplay the list of channels available for use. 1548451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent 1549451486b5SSam Lefflerfrequency, and usage modes. 1550451486b5SSam LefflerChannels identified as 1551451486b5SSam Leffler.Ql 11g 1552451486b5SSam Lefflerare also usable in 1553451486b5SSam Leffler.Ql 11b 1554451486b5SSam Lefflermode. 1555451486b5SSam LefflerChannels identified as 1556451486b5SSam Leffler.Ql 11a Turbo 1557451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode 15588266d476SRuslan Ermilov(specified with 15598266d476SRuslan Ermilov. Cm mediaopt turbo ) . 1560451486b5SSam LefflerChannels marked with a 1561451486b5SSam Leffler.Ql * 1562451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned. 1563451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until 1564451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication; 1565451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating 1566451486b5SSam Leffleron the channel. 15674e9e907dSRuslan Ermilov.Cm list freq 1568aeffcba3SSam Leffleris another way of requesting this information. 1569d592cd38SSam LefflerBy default a compacted list of channels is displayed; if the 1570d592cd38SSam Leffler.Fl v 1571d592cd38SSam Leffleroption is specified then all channels are shown. 1572b032f27cSSam Leffler.It Cm list countries 1573b032f27cSSam LefflerDisplay the set of country codes and regulatory domains that can be 1574b032f27cSSam Lefflerused in regulatory configuration. 15754e9e907dSRuslan Ermilov.It Cm list mac 157629f0e929SSam LefflerDisplay the current MAC Access Control List state. 157729f0e929SSam LefflerEach address is prefixed with a character that indicates the 157829f0e929SSam Lefflercurrent policy applied to it: 15794e9e907dSRuslan Ermilov.Ql + 158029f0e929SSam Lefflerindicates the address is allowed access, 15814e9e907dSRuslan Ermilov.Ql - 158229f0e929SSam Lefflerindicates the address is denied access, 15834e9e907dSRuslan Ermilov.Ql * 158429f0e929SSam Lefflerindicates the address is present but the current policy open 15854e9e907dSRuslan Ermilov(so the ACL is not consulted). 158659aa14a9SRui Paulo.It Cm list mesh 158759aa14a9SRui PauloDisplays the mesh routing table, used for forwarding packets on a mesh 158859aa14a9SRui Paulonetwork. 1589b032f27cSSam Leffler.It Cm list regdomain 1590b032f27cSSam LefflerDisplay the current regulatory settings including the available channels 1591b032f27cSSam Lefflerand transmit power caps. 1592b032f27cSSam Leffler.It Cm list roam 1593b032f27cSSam LefflerDisplay the parameters that govern roaming operation. 1594b032f27cSSam Leffler.It Cm list txparam 1595b032f27cSSam LefflerDisplay the parameters that govern transmit operation. 1596b032f27cSSam Leffler.It Cm list txpower 1597b032f27cSSam LefflerDisplay the transmit power caps for each channel. 15984e9e907dSRuslan Ermilov.It Cm list scan 1599aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors 1600aeffcba3SSam Lefflerlocated in the vicinity. 1601b032f27cSSam LefflerThis information may be updated automatically by the adapter 1602b032f27cSSam Lefflerwith a 16034e9e907dSRuslan Ermilov.Cm scan 1604fdef6accSSam Lefflerrequest or through background scanning. 1605b032f27cSSam LefflerDepending on the capabilities of the stations the following 160605621e0bSMateusz Piotrowskiflags (capability codes) can be included in the output: 1607b032f27cSSam Leffler.Bl -tag -width 3n 1608b032f27cSSam Leffler.It Li A 1609f95cfecbSAndriy GaponChannel agility. 1610f95cfecbSAndriy Gapon.It Li B 1611f95cfecbSAndriy GaponPBCC modulation. 1612f95cfecbSAndriy Gapon.It Li C 1613f95cfecbSAndriy GaponPoll request capability. 1614f95cfecbSAndriy Gapon.It Li D 1615f95cfecbSAndriy GaponDSSS/OFDM capability. 1616b032f27cSSam Leffler.It Li E 1617f95cfecbSAndriy GaponExtended Service Set (ESS). 161805621e0bSMateusz PiotrowskiIndicates that the station is part of an infrastructure network 161905621e0bSMateusz Piotrowskirather than an IBSS/ad-hoc network. 1620f95cfecbSAndriy Gapon.It Li I 1621f95cfecbSAndriy GaponIndependent Basic Service Set (IBSS). 162205621e0bSMateusz PiotrowskiIndicates that the station is part of an ad-hoc network 162305621e0bSMateusz Piotrowskirather than an ESS network. 1624b032f27cSSam Leffler.It Li P 1625f95cfecbSAndriy GaponPrivacy capability. 162605621e0bSMateusz PiotrowskiThe station requires authentication and encryption 162705621e0bSMateusz Piotrowskifor all data frames exchanged within the BSS using cryptographic means 162805621e0bSMateusz Piotrowskisuch as WEP, TKIP, or AES-CCMP. 1629f95cfecbSAndriy Gapon.It Li R 1630f95cfecbSAndriy GaponRobust Secure Network (RSN). 163168a63039SBjoern A. Zeeb.It Li S 163268a63039SBjoern A. ZeebShort Preamble. 163305621e0bSMateusz PiotrowskiIndicates that the network is using short preambles, 163405621e0bSMateusz Piotrowskidefined in 802.11b High Rate/DSSS PHY, 163505621e0bSMateusz Piotrowskiand utilizes a 56 bit sync field 163605621e0bSMateusz Piotrowskirather than the 128 bit field used in long preamble mode. 163705621e0bSMateusz PiotrowskiShort preambles are used to optionally 163868a63039SBjoern A. Zeebimprove throughput performance with 802.11g and 802.11b. 1639f95cfecbSAndriy Gapon.It Li c 1640f95cfecbSAndriy GaponPollable capability. 1641f95cfecbSAndriy Gapon.It Li s 1642f95cfecbSAndriy GaponShort slot time capability. 164305621e0bSMateusz PiotrowskiIndicates that the 802.11g network is using a short slot time 164405621e0bSMateusz Piotrowskibecause there are no legacy (802.11b) stations present. 1645b032f27cSSam Leffler.El 1646b032f27cSSam Leffler.Pp 1647b032f27cSSam LefflerBy default interesting information elements captured from the neighboring 1648b032f27cSSam Lefflerstations are displayed at the end of each row. 1649b032f27cSSam LefflerPossible elements include: 1650b032f27cSSam Leffler.Cm WME 1651b032f27cSSam Leffler(station supports WME), 1652b032f27cSSam Leffler.Cm WPA 1653b032f27cSSam Leffler(station supports WPA), 1654ed8b5a93SSam Leffler.Cm WPS 1655ed8b5a93SSam Leffler(station supports WPS), 1656b032f27cSSam Leffler.Cm RSN 1657b032f27cSSam Leffler(station supports 802.11i/RSN), 1658b032f27cSSam Leffler.Cm HTCAP 1659b032f27cSSam Leffler(station supports 802.11n/HT communication), 1660b032f27cSSam Leffler.Cm ATH 1661116c00fbSMaxim Konovalov(station supports Atheros protocol extensions), 1662b032f27cSSam Leffler.Cm VEN 1663b032f27cSSam Leffler(station supports unknown vendor-specific extensions). 1664b032f27cSSam LefflerIf the 1665b032f27cSSam Leffler.Fl v 1666b032f27cSSam Lefflerflag is used all the information elements and their 1667b032f27cSSam Lefflercontents will be shown. 16684f1fb109SGiorgos KeramidasSpecifying the 1669b032f27cSSam Leffler.Fl v 1670b032f27cSSam Lefflerflag also enables display of long SSIDs. 16714f1fb109SGiorgos KeramidasThe 16724e9e907dSRuslan Ermilov.Cm list ap 16734f1fb109SGiorgos Keramidascommand is another way of requesting this information. 16744e9e907dSRuslan Ermilov.It Cm list sta 1675aeffcba3SSam LefflerWhen operating as an access point display the stations that are 1676aeffcba3SSam Lefflercurrently associated. 1677aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as 1678aeffcba3SSam Lefflerneighbors in the IBSS. 167959aa14a9SRui PauloWhen operating in mesh mode display stations identified as 168059aa14a9SRui Pauloneighbors in the MBSS. 1681fdef6accSSam LefflerWhen operating in station mode display the access point. 168297d7b28eSSam LefflerCapabilities advertised by the stations are described under 168397d7b28eSSam Lefflerthe 168497d7b28eSSam Leffler.Cm scan 168597d7b28eSSam Lefflerrequest. 1686f95cfecbSAndriy GaponThe following flags can be included in the output: 168797d7b28eSSam Leffler.Bl -tag -width 3n 168897d7b28eSSam Leffler.It Li A 168997d7b28eSSam LefflerAuthorized. 169097d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames. 169197d7b28eSSam Leffler.It Li E 169297d7b28eSSam LefflerExtended Rate Phy (ERP). 169397d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network 169497d7b28eSSam Lefflerusing extended transmit rates. 1695fdef6accSSam Leffler.It Li H 1696fdef6accSSam LefflerHigh Throughput (HT). 1697b032f27cSSam LefflerIndicates that the station is using HT transmit rates. 1698f95cfecbSAndriy GaponIf a 1699f95cfecbSAndriy Gapon.Sq Li + 1700f95cfecbSAndriy Gaponfollows immediately after then the station associated 1701b032f27cSSam Lefflerusing deprecated mechanisms supported only when 1702b032f27cSSam Leffler.Cm htcompat 1703b032f27cSSam Leffleris enabled. 170497d7b28eSSam Leffler.It Li P 170597d7b28eSSam LefflerPower Save. 170697d7b28eSSam LefflerIndicates that the station is operating in power save mode. 170797d7b28eSSam Leffler.It Li Q 170897d7b28eSSam LefflerQuality of Service (QoS). 170997d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for 171097d7b28eSSam Lefflerdata frame. 171197d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled. 171268a63039SBjoern A. Zeeb.It Li S 1713f95cfecbSAndriy GaponShort GI in HT 40MHz mode enabled. 1714f95cfecbSAndriy GaponIf a 1715f95cfecbSAndriy Gapon.Sq Li + 1716f95cfecbSAndriy Gaponfollows immediately after then short GI in HT 20MHz mode is enabled as well. 1717b032f27cSSam Leffler.It Li T 1718b032f27cSSam LefflerTransitional Security Network (TSN). 1719b032f27cSSam LefflerIndicates that the station associated using TSN; see also 1720b032f27cSSam Leffler.Cm tsn 1721b032f27cSSam Lefflerbelow. 1722b032f27cSSam Leffler.It Li W 1723b032f27cSSam LefflerWi-Fi Protected Setup (WPS). 1724b032f27cSSam LefflerIndicates that the station associated using WPS. 1725f95cfecbSAndriy Gapon.It Li s 1726f95cfecbSAndriy GaponShort GI in HT 20MHz mode enabled. 172797d7b28eSSam Leffler.El 1728d592cd38SSam Leffler.Pp 1729d592cd38SSam LefflerBy default information elements received from associated stations 1730d592cd38SSam Lefflerare displayed in a short form; the 1731d592cd38SSam Leffler.Fl v 1732116c00fbSMaxim Konovalovflag causes this information to be displayed symbolically. 17334e9e907dSRuslan Ermilov.It Cm list wme 173487a8e294SSam LefflerDisplay the current channel parameters to use when operating in WME mode. 173587a8e294SSam LefflerIf the 173687a8e294SSam Leffler.Fl v 173787a8e294SSam Leffleroption is specified then both channel and BSS parameters are displayed 173887a8e294SSam Lefflerfor each AC (first channel, then BSS). 1739aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be 1740aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful 1741aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled. 1742aeffcba3SSam LefflerSee the description of the 17434e9e907dSRuslan Ermilov.Cm wme 1744aeffcba3SSam Lefflerdirective for information on the various parameters. 1745b032f27cSSam Leffler.It Cm maxretry Ar count 1746b032f27cSSam LefflerSet the maximum number of tries to use in sending unicast frames. 1747b032f27cSSam LefflerThe default setting is 6 but drivers may override this with a value 1748b032f27cSSam Lefflerthey choose. 1749439b4702SSam Leffler.It Cm mcastrate Ar rate 1750439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames. 1751818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1752439b4702SSam LefflerThis rate should be valid for the current operating conditions; 1753439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an 1754439b4702SSam Lefflerappropriate rate. 1755b032f27cSSam Leffler.It Cm mgtrate Ar rate 1756b032f27cSSam LefflerSet the rate for transmitting management and/or control frames. 1757818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1758b032f27cSSam Leffler.It Cm outdoor 1759b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1760b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1761b032f27cSSam Lefflerwhen 802.11d is enabled with 1762b032f27cSSam Leffler.Cm dotd . 1763b032f27cSSam LefflerSee also 1764b032f27cSSam Leffler.Cm anywhere , 1765b032f27cSSam Leffler.Cm country , 1766b032f27cSSam Leffler.Cm indoor , 1767b032f27cSSam Lefflerand 1768b032f27cSSam Leffler.Cm regdomain . 1769419d8080SPoul-Henning Kamp.It Cm powersave 17705faf8dcbSSam LefflerEnable powersave operation. 177121414470SRuslan ErmilovWhen operating as a client, the station will conserve power by 17725faf8dcbSSam Lefflerperiodically turning off the radio and listening for 17735faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting. 17745faf8dcbSSam LefflerThe station must then retrieve the packets. 1775fdef6accSSam LefflerNot all devices support power save operation as a client. 1776fdef6accSSam LefflerThe 802.11 specification requires that all access points support 1777fdef6accSSam Lefflerpower save but some drivers do not. 17785faf8dcbSSam LefflerUse 17795faf8dcbSSam Leffler.Fl powersave 1780fdef6accSSam Lefflerto disable powersave operation when operating as a client. 1781419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep 17828f3591a5SSam LefflerSet the desired max powersave sleep time in TU's (1024 usecs). 17838f3591a5SSam LefflerBy default the max powersave sleep time is 100 TU's. 1784a6b03f42SSam Leffler.It Cm protmode Ar technique 17855faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified 1786d04b5dfeSRuslan Ermilov.Ar technique 1787d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network. 1788a6b03f42SSam LefflerThe set of valid techniques is 17894e9e907dSRuslan Ermilov.Cm off , cts 1790a6b03f42SSam Leffler(CTS to self), 1791a6b03f42SSam Lefflerand 17924e9e907dSRuslan Ermilov.Cm rtscts 1793a6b03f42SSam Leffler(RTS/CTS). 1794a6b03f42SSam LefflerTechnique names are case insensitive. 1795fdef6accSSam LefflerNot all devices support 1796fdef6accSSam Leffler.Cm cts 1797fdef6accSSam Leffleras a protection technique. 1798fa56f745SSam Leffler.It Cm pureg 1799fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only 1800fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not 1801fa56f745SSam Lefflerpermitted to associate). 1802fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use 1803fa56f745SSam Leffler.Fl pureg . 1804b032f27cSSam Leffler.It Cm puren 1805b032f27cSSam LefflerWhen operating as an access point in 802.11n mode allow only 1806b032f27cSSam LefflerHT-capable stations to associate (legacy stations are not 1807b032f27cSSam Lefflerpermitted to associate). 1808b032f27cSSam LefflerTo allow both HT and legacy stations to associate, use 1809b032f27cSSam Leffler.Fl puren . 1810b032f27cSSam Leffler.It Cm regdomain Ar sku 1811b032f27cSSam LefflerSet the regulatory domain to use in calculating the regulatory constraints 1812b032f27cSSam Lefflerfor operation. 1813b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1814b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1815b032f27cSSam Lefflercan be used on a channel are defined by this setting. 181637b983c0SJoel DahlRegdomain codes (SKU's) are taken from 181737b983c0SJoel Dahl.Pa /etc/regdomain.xml 181837b983c0SJoel Dahland can also 1819b032f27cSSam Lefflerbe viewed with the ``list countries'' request. 1820b032f27cSSam LefflerNote that not all devices support changing the regdomain from a default 1821b032f27cSSam Lefflersetting; typically stored in EEPROM. 1822b032f27cSSam LefflerSee also 1823b032f27cSSam Leffler.Cm country , 1824b032f27cSSam Leffler.Cm indoor , 1825b032f27cSSam Leffler.Cm outdoor , 1826b032f27cSSam Lefflerand 1827b032f27cSSam Leffler.Cm anywhere . 182851947cb6SSam Leffler.It Cm rifs 182951947cb6SSam LefflerEnable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n 183051947cb6SSam Leffleron an HT channel. 183151947cb6SSam LefflerNote that RIFS must be supported by both the station and access point 183251947cb6SSam Lefflerfor it to be used. 183351947cb6SSam LefflerTo disable RIFS use 183451947cb6SSam Leffler.Fl rifs . 1835b032f27cSSam Leffler.It Cm roam:rate Ar rate 1836b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1837b032f27cSSam LefflerThe 1838b032f27cSSam Leffler.Ar rate 1839b032f27cSSam Lefflerparameter specifies the transmit rate in megabits 1840b032f27cSSam Lefflerat which roaming should be considered. 1841b032f27cSSam LefflerIf the current transmit rate drops below this setting and background scanning 1842b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1843b032f27cSSam Leffleravailable and switch over to it. 1844b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1845b032f27cSSam Lefflervalid according to the 1846b032f27cSSam Leffler.Cm scanvalid 1847b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1848b032f27cSSam Lefflerany selection occurs. 1849b032f27cSSam LefflerEach channel type has a separate rate threshold; the default values are: 1850b032f27cSSam Leffler12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng). 1851b032f27cSSam Leffler.It Cm roam:rssi Ar rssi 1852b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1853b032f27cSSam LefflerThe 1854b032f27cSSam Leffler.Ar rssi 1855b032f27cSSam Lefflerparameter specifies the receive signal strength in dBm units 1856b032f27cSSam Lefflerat which roaming should be considered. 1857b032f27cSSam LefflerIf the current rssi drops below this setting and background scanning 1858b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1859b032f27cSSam Leffleravailable and switch over to it. 1860b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1861b032f27cSSam Lefflervalid according to the 1862b032f27cSSam Leffler.Cm scanvalid 1863b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1864b032f27cSSam Lefflerany selection occurs. 1865b3c97464SRui PauloEach channel type has a separate rssi threshold; the default values are 1866b032f27cSSam Lefflerall 7 dBm. 18675faf8dcbSSam Leffler.It Cm roaming Ar mode 18685faf8dcbSSam LefflerWhen operating as a station, control how the system will 18695faf8dcbSSam Lefflerbehave when communication with the current access point 18705faf8dcbSSam Leffleris broken. 187121414470SRuslan ErmilovThe 187221414470SRuslan Ermilov.Ar mode 187321414470SRuslan Ermilovargument may be one of 18744e9e907dSRuslan Ermilov.Cm device 18755faf8dcbSSam Leffler(leave it to the hardware device to decide), 18764e9e907dSRuslan Ermilov.Cm auto 187721414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate), 18784e9e907dSRuslan Ermilov.Cm manual 18795faf8dcbSSam Leffler(do nothing until explicitly instructed). 188021414470SRuslan ErmilovBy default, the device is left to handle this if it is 188121414470SRuslan Ermilovcapable; otherwise, the operating system will automatically 18825faf8dcbSSam Lefflerattempt to reestablish communication. 1883fdef6accSSam LefflerManual mode is used by applications such as 1884fdef6accSSam Leffler.Xr wpa_supplicant 8 1885fdef6accSSam Lefflerthat want to control the selection of an access point. 1886a6b03f42SSam Leffler.It Cm rtsthreshold Ar length 18875faf8dcbSSam LefflerSet the threshold for which 1888a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an 1889a6b03f42SSam LefflerRTS 1890a6b03f42SSam Lefflercontrol frame. 1891d04b5dfeSRuslan ErmilovThe 1892d04b5dfeSRuslan Ermilov.Ar length 1893d04b5dfeSRuslan Ermilovargument 1894aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346. 1895aeffcba3SSam LefflerSetting 1896aeffcba3SSam Leffler.Ar length 1897aeffcba3SSam Lefflerto 18984e9e907dSRuslan Ermilov.Li 2346 , 18994e9e907dSRuslan Ermilov.Cm any , 1900aeffcba3SSam Leffleror 19014e9e907dSRuslan Ermilov.Cm - 1902aeffcba3SSam Lefflerdisables transmission of RTS frames. 1903b032f27cSSam LefflerNot all adapters support setting the RTS threshold. 19045faf8dcbSSam Leffler.It Cm scan 1905aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and 1906aeffcba3SSam Lefflerdisplay all stations found. 1907aeffcba3SSam LefflerOnly the super-user can initiate a scan. 1908b032f27cSSam LefflerSee 1909b032f27cSSam Leffler.Cm list scan 1910b032f27cSSam Lefflerfor information on the display. 1911b032f27cSSam LefflerBy default a background scan is done; otherwise a foreground 1912b032f27cSSam Lefflerscan is done and the station may roam to a different access point. 1913aeffcba3SSam LefflerThe 19144e9e907dSRuslan Ermilov.Cm list scan 1915aeffcba3SSam Lefflerrequest can be used to show recent scan results without 1916aeffcba3SSam Lefflerinitiating a new scan. 1917fdef6accSSam Leffler.It Cm scanvalid Ar threshold 1918fdef6accSSam LefflerSet the maximum time the scan cache contents are considered valid; 1919818b39edSWarren Blocki.e., will be used without first triggering a scan operation to 1920fdef6accSSam Lefflerrefresh the data. 1921fdef6accSSam LefflerThe 1922fdef6accSSam Leffler.Ar threshold 1923fdef6accSSam Lefflerparameter is specified in seconds and defaults to 60 seconds. 1924fdef6accSSam LefflerThe minimum setting for 1925fdef6accSSam Leffler.Ar threshold 1926fdef6accSSam Leffleris 10 seconds. 1927fdef6accSSam LefflerOne should take care setting this threshold; if it is set too low 1928fdef6accSSam Lefflerthen attempts to roam to another access point may trigger unnecessary 1929fdef6accSSam Lefflerbackground scan operations. 1930b032f27cSSam Leffler.It Cm shortgi 1931b032f27cSSam LefflerEnable use of Short Guard Interval when operating in 802.11n 1932b032f27cSSam Leffleron an HT channel. 1933b032f27cSSam LefflerNB: this currently enables Short GI on both HT40 and HT20 channels. 1934b032f27cSSam LefflerTo disable Short GI use 1935b032f27cSSam Leffler.Fl shortgi . 193651947cb6SSam Leffler.It Cm smps 193751947cb6SSam LefflerEnable use of Static Spatial Multiplexing Power Save (SMPS) 193851947cb6SSam Lefflerwhen operating in 802.11n. 193951947cb6SSam LefflerA station operating with Static SMPS maintains only a single 194051947cb6SSam Lefflerreceive chain active (this can significantly reduce power consumption). 194151947cb6SSam LefflerTo disable SMPS use 194251947cb6SSam Leffler.Fl smps . 194351947cb6SSam Leffler.It Cm smpsdyn 194451947cb6SSam LefflerEnable use of Dynamic Spatial Multiplexing Power Save (SMPS) 194551947cb6SSam Lefflerwhen operating in 802.11n. 194651947cb6SSam LefflerA station operating with Dynamic SMPS maintains only a single 194751947cb6SSam Lefflerreceive chain active but switches to multiple receive chains when it 194851947cb6SSam Lefflerreceives an RTS frame (this can significantly reduce power consumption). 194951947cb6SSam LefflerNote that stations cannot distinguish between RTS/CTS intended to 195051947cb6SSam Lefflerenable multiple receive chains and those used for other purposes. 195151947cb6SSam LefflerTo disable SMPS use 195251947cb6SSam Leffler.Fl smps . 1953b032f27cSSam Leffler.It Cm ssid Ar ssid 1954b032f27cSSam LefflerSet the desired Service Set Identifier (aka network name). 1955b032f27cSSam LefflerThe SSID is a string up to 32 characters 1956b032f27cSSam Lefflerin length and may be specified as either a normal string or in 1957b032f27cSSam Lefflerhexadecimal when preceded by 1958b032f27cSSam Leffler.Ql 0x . 1959b032f27cSSam LefflerAdditionally, the SSID may be cleared by setting it to 1960b032f27cSSam Leffler.Ql - . 196110ad9a77SSam Leffler.It Cm tdmaslot Ar slot 196210ad9a77SSam LefflerWhen operating with TDMA, use the specified 196310ad9a77SSam Leffler.Ar slot 196410ad9a77SSam Lefflerconfiguration. 196510ad9a77SSam LefflerThe 196610ad9a77SSam Leffler.Ar slot 196710ad9a77SSam Leffleris a number between 0 and the maximum number of slots in the BSS. 196810ad9a77SSam LefflerNote that a station configured as slot 0 is a master and 196910ad9a77SSam Lefflerwill broadcast beacon frames advertising the BSS; 197010ad9a77SSam Lefflerstations configured to use other slots will always 197110ad9a77SSam Lefflerscan to locate a master before they ever transmit. 197210ad9a77SSam LefflerBy default 197310ad9a77SSam Leffler.Cm tdmaslot 197410ad9a77SSam Leffleris set to 1. 197510ad9a77SSam Leffler.It Cm tdmaslotcnt Ar cnt 197610ad9a77SSam LefflerWhen operating with TDMA, setup a BSS with 197710ad9a77SSam Leffler.Ar cnt 197810ad9a77SSam Lefflerslots. 197910ad9a77SSam LefflerThe slot count may be at most 8. 198010ad9a77SSam LefflerThe current implementation is only tested with two stations 1981818b39edSWarren Block(i.e., point to point applications). 198210ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 198310ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 198410ad9a77SSam LefflerBy default 198510ad9a77SSam Leffler.Cm tdmaslotcnt 198610ad9a77SSam Leffleris set to 2. 198710ad9a77SSam Leffler.It Cm tdmaslotlen Ar len 198810ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that each station has a slot 198910ad9a77SSam Leffler.Ar len 199010ad9a77SSam Lefflermicroseconds long. 199110ad9a77SSam LefflerThe slot length must be at least 150 microseconds (1/8 TU) 199210ad9a77SSam Lefflerand no more than 65 milliseconds. 199310ad9a77SSam LefflerNote that setting too small a slot length may result in poor channel 199410ad9a77SSam Lefflerbandwidth utilization due to factors such as timer granularity and 199510ad9a77SSam Lefflerguard time. 199610ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 199710ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 199810ad9a77SSam LefflerBy default 199910ad9a77SSam Leffler.Cm tdmaslotlen 200010ad9a77SSam Leffleris set to 10 milliseconds. 200110ad9a77SSam Leffler.It Cm tdmabintval Ar intval 200210ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that beacons are transmitted every 200310ad9a77SSam Leffler.Ar intval 200410ad9a77SSam Lefflersuperframes to synchronize the TDMA slot timing. 2005818b39edSWarren BlockA superframe is defined as the number of slots times the slot length; e.g., 200610ad9a77SSam Lefflera BSS with two slots of 10 milliseconds has a 20 millisecond superframe. 200710ad9a77SSam LefflerThe beacon interval may not be zero. 200810ad9a77SSam LefflerA lower setting of 200910ad9a77SSam Leffler.Cm tdmabintval 201010ad9a77SSam Lefflercauses the timers to be resynchronized more often; this can be help if 201110ad9a77SSam Lefflersignificant timer drift is observed. 201210ad9a77SSam LefflerBy default 201310ad9a77SSam Leffler.Cm tdmabintval 201410ad9a77SSam Leffleris set to 5. 2015b032f27cSSam Leffler.It Cm tsn 2016b032f27cSSam LefflerWhen operating as an access point with WPA/802.11i allow legacy 2017b032f27cSSam Lefflerstations to associate using static key WEP and open authentication. 2018b032f27cSSam LefflerTo disallow legacy station use of WEP, use 2019b032f27cSSam Leffler.Fl tsn . 2020a6b03f42SSam Leffler.It Cm txpower Ar power 20215faf8dcbSSam LefflerSet the power used to transmit frames. 2022d04b5dfeSRuslan ErmilovThe 2023d04b5dfeSRuslan Ermilov.Ar power 2024d592cd38SSam Lefflerargument is specified in .5 dBm units. 2025a6b03f42SSam LefflerOut of range values are truncated. 2026a6b03f42SSam LefflerTypically only a few discreet power settings are available and 2027a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value. 2028b032f27cSSam LefflerNot all adapters support changing the transmit power. 2029b032f27cSSam Leffler.It Cm ucastrate Ar rate 2030b032f27cSSam LefflerSet a fixed rate for transmitting unicast frames. 2031818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 2032b032f27cSSam LefflerThis rate should be valid for the current operating conditions; 2033b032f27cSSam Lefflerif an invalid rate is specified drivers are free to chose an 2034b032f27cSSam Lefflerappropriate rate. 2035419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode 20365faf8dcbSSam LefflerSet the desired WEP mode. 2037b032f27cSSam LefflerNot all adapters support all modes. 2038b09b4efbSRuslan ErmilovThe set of valid modes is 20394e9e907dSRuslan Ermilov.Cm off , on , 2040419d8080SPoul-Henning Kampand 20414e9e907dSRuslan Ermilov.Cm mixed . 2042d04b5dfeSRuslan ErmilovThe 20434e9e907dSRuslan Ermilov.Cm mixed 2044419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access 2045b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic. 2046b032f27cSSam LefflerOn these adapters, 20474e9e907dSRuslan Ermilov.Cm on 2048b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections. 2049b032f27cSSam LefflerOn other adapters, 20504e9e907dSRuslan Ermilov.Cm on 2051419d8080SPoul-Henning Kampis generally another name for 20524e9e907dSRuslan Ermilov.Cm mixed . 2053419d8080SPoul-Henning KampModes are case insensitive. 2054419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index 20555faf8dcbSSam LefflerSet the WEP key to be used for transmission. 20564e0a8f0dSSam LefflerThis is the same as setting the default transmission key with 20574e0a8f0dSSam Leffler.Cm deftxkey . 2058b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key 20595faf8dcbSSam LefflerSet the selected WEP key. 2060b09b4efbSRuslan ErmilovIf an 2061419d8080SPoul-Henning Kamp.Ar index 2062b09b4efbSRuslan Ermilovis not given, key 1 is set. 2063b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13 2064c2025a76SJoel Dahlcharacters (40 or 104 bits) depending on the local network and the 2065b09b4efbSRuslan Ermilovcapabilities of the adaptor. 2066b09b4efbSRuslan ErmilovIt may be specified either as a plain 2067e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by 2068b09b4efbSRuslan Ermilov.Ql 0x . 2069d8f2e345SWarner LoshFor maximum portability, hex keys are recommended; 2070d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific. 207144c4affaSMateusz PiotrowskiIn particular, the Windows drivers do this mapping differently to 2072a61d9c47SRuslan Ermilov.Fx . 2073419d8080SPoul-Henning KampA key may be cleared by setting it to 2074b09b4efbSRuslan Ermilov.Ql - . 2075b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys. 2076b032f27cSSam LefflerSome adapters support more than four keys. 2077b09b4efbSRuslan ErmilovIf that is the case, then the first four keys 2078419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor 2079419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM. 20805ce09a9eSSam Leffler.Pp 20815ce09a9eSSam LefflerNote that you must set a default transmit key with 20825ce09a9eSSam Leffler.Cm deftxkey 20835ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 20845faf8dcbSSam Leffler.It Cm wme 2085aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available, 20865faf8dcbSSam Lefflerfor the specified interface. 20875faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the 20885faf8dcbSSam Lefflerefficient communication of realtime and multimedia data. 208921414470SRuslan ErmilovTo disable WME support, use 20905faf8dcbSSam Leffler.Fl wme . 2091b032f27cSSam LefflerAnother name for this parameter is 2092b032f27cSSam Leffler.Cm wmm . 2093aeffcba3SSam Leffler.Pp 2094aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use. 2095aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and 2096aeffcba3SSam Lefflersplit into those that are used by a station when acting 2097aeffcba3SSam Leffleras an access point and those for client stations in the BSS. 2098aeffcba3SSam LefflerThe latter are received from the access point and may not be changed 2099aeffcba3SSam Leffler(at the station). 2100aeffcba3SSam LefflerThe following Access Categories are recognized: 2101aeffcba3SSam Leffler.Pp 21024e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact 2103aeffcba3SSam Leffler.It Cm AC_BE 21044e9e907dSRuslan Ermilov(or 21054e9e907dSRuslan Ermilov.Cm BE ) 21064e9e907dSRuslan Ermilovbest effort delivery, 2107aeffcba3SSam Leffler.It Cm AC_BK 21084e9e907dSRuslan Ermilov(or 21094e9e907dSRuslan Ermilov.Cm BK ) 21104e9e907dSRuslan Ermilovbackground traffic, 2111aeffcba3SSam Leffler.It Cm AC_VI 21124e9e907dSRuslan Ermilov(or 21134e9e907dSRuslan Ermilov.Cm VI ) 21144e9e907dSRuslan Ermilovvideo traffic, 2115aeffcba3SSam Leffler.It Cm AC_VO 21164e9e907dSRuslan Ermilov(or 21174e9e907dSRuslan Ermilov.Cm VO ) 21184e9e907dSRuslan Ermilovvoice traffic. 21195faf8dcbSSam Leffler.El 21205faf8dcbSSam Leffler.Pp 2121aeffcba3SSam LefflerAC parameters are case-insensitive. 2122aeffcba3SSam LefflerTraffic classification is done in the operating system using the 2123aeffcba3SSam Lefflervlan priority associated with data frames or the 2124aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames. 21254e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the 2126aeffcba3SSam LefflerBest Effort (BE) category. 2127aeffcba3SSam Leffler.Bl -tag -width indent 2128aeffcba3SSam Leffler.It Cm ack Ar ac 2129aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station; 2130aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station 2131aeffcba3SSam Lefflerrequire an ACK response from the receiving station. 2132aeffcba3SSam LefflerTo disable waiting for an ACK use 2133aeffcba3SSam Leffler.Fl ack . 2134aeffcba3SSam LefflerThis parameter is applied only to the local station. 2135aeffcba3SSam Leffler.It Cm acm Ar ac 2136aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism 2137aeffcba3SSam Lefflerfor transmissions by the local station. 2138aeffcba3SSam LefflerTo disable the ACM use 2139aeffcba3SSam Leffler.Fl acm . 2140aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2141aeffcba3SSam Lefflerthe setting received from the access point. 2142aeffcba3SSam LefflerNB: ACM is not supported right now. 2143aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count 2144aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS) 2145aeffcba3SSam Lefflerchannel access parameter to use for transmissions 2146aeffcba3SSam Lefflerby the local station. 2147aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2148aeffcba3SSam Lefflerthe setting received from the access point. 2149aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count 2150aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions 2151aeffcba3SSam Lefflerby the local station. 2152aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2153aeffcba3SSam Lefflerthe setting received from the access point. 2154aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count 2155aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions 2156aeffcba3SSam Lefflerby the local station. 2157aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2158aeffcba3SSam Lefflerthe setting received from the access point. 2159aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit 2160aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter 2161aeffcba3SSam Lefflerto use for transmissions by the local station. 2162aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station 2163aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium. 2164aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2165aeffcba3SSam Lefflerthe setting received from the access point. 2166aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count 2167aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS. 2168aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2169aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count 2170aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS. 2171aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2172aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count 2173aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS. 2174aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2175aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit 2176aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS. 2177aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2178aeffcba3SSam Leffler.El 2179b032f27cSSam Leffler.It Cm wps 2180b032f27cSSam LefflerEnable Wireless Privacy Subscriber support. 2181b032f27cSSam LefflerNote that WPS support requires a WPS-capable supplicant. 2182b032f27cSSam LefflerTo disable this function use 2183b032f27cSSam Leffler.Fl wps . 2184aeffcba3SSam Leffler.El 2185aeffcba3SSam Leffler.Pp 2186aeffcba3SSam LefflerThe following parameters support an optional access control list 2187b032f27cSSam Lefflerfeature available with some adapters when operating in ap mode; see 2188aeffcba3SSam Leffler.Xr wlan_acl 4 . 2189aeffcba3SSam LefflerThis facility allows an access point to accept/deny association 2190aeffcba3SSam Lefflerrequests based on the MAC address of the station. 2191aeffcba3SSam LefflerNote that this feature does not significantly enhance security 2192aeffcba3SSam Leffleras MAC address spoofing is easy to do. 2193aeffcba3SSam Leffler.Bl -tag -width indent 2194aeffcba3SSam Leffler.It Cm mac:add Ar address 2195aeffcba3SSam LefflerAdd the specified MAC address to the database. 2196aeffcba3SSam LefflerDepending on the policy setting association requests from the 2197aeffcba3SSam Lefflerspecified station will be allowed or denied. 2198aeffcba3SSam Leffler.It Cm mac:allow 2199aeffcba3SSam LefflerSet the ACL policy to permit association only by 2200aeffcba3SSam Lefflerstations registered in the database. 2201e70fcb23SSam Leffler.It Cm mac:del Ar address 2202aeffcba3SSam LefflerDelete the specified MAC address from the database. 2203aeffcba3SSam Leffler.It Cm mac:deny 2204aeffcba3SSam LefflerSet the ACL policy to deny association only by 2205aeffcba3SSam Lefflerstations registered in the database. 2206e70fcb23SSam Leffler.It Cm mac:kick Ar address 220729f0e929SSam LefflerForce the specified station to be deauthenticated. 220829f0e929SSam LefflerThis typically is done to block a station after updating the 220929f0e929SSam Leffleraddress database. 2210aeffcba3SSam Leffler.It Cm mac:open 2211aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate. 2212aeffcba3SSam Leffler.It Cm mac:flush 2213aeffcba3SSam LefflerDelete all entries in the database. 2214b032f27cSSam Leffler.It Cm mac:radius 2215b032f27cSSam LefflerSet the ACL policy to permit association only by 2216b032f27cSSam Lefflerstations approved by a RADIUS server. 2217b032f27cSSam LefflerNote that this feature requires the 2218b032f27cSSam Leffler.Xr hostapd 8 2219b032f27cSSam Lefflerprogram be configured to do the right thing 2220b032f27cSSam Leffleras it handles the RADIUS processing 2221b032f27cSSam Leffler(and marks stations as authorized). 2222aeffcba3SSam Leffler.El 2223aeffcba3SSam Leffler.Pp 222459aa14a9SRui PauloThe following parameters are related to a wireless interface operating in mesh 222559aa14a9SRui Paulomode: 222659aa14a9SRui Paulo.Bl -tag -width indent 222759aa14a9SRui Paulo.It Cm meshid Ar meshid 222859aa14a9SRui PauloSet the desired Mesh Identifier. 222959aa14a9SRui PauloThe Mesh ID is a string up to 32 characters in length. 223059aa14a9SRui PauloA mesh interface must have a Mesh Identifier specified 223159aa14a9SRui Pauloto reach an operational state. 223259aa14a9SRui Paulo.It Cm meshttl Ar ttl 223359aa14a9SRui PauloSet the desired ``time to live'' for mesh forwarded packets; 223459aa14a9SRui Paulothis is the number of hops a packet may be forwarded before 223559aa14a9SRui Pauloit is discarded. 223659aa14a9SRui PauloThe default setting for 223759aa14a9SRui Paulo.Cm meshttl 223859aa14a9SRui Paulois 31. 223959aa14a9SRui Paulo.It Cm meshpeering 224059aa14a9SRui PauloEnable or disable peering with neighbor mesh stations. 224159aa14a9SRui PauloStations must peer before any data packets can be exchanged. 224259aa14a9SRui PauloBy default 224359aa14a9SRui Paulo.Cm meshpeering 224459aa14a9SRui Paulois enabled. 224559aa14a9SRui Paulo.It Cm meshforward 224659aa14a9SRui PauloEnable or disable forwarding packets by a mesh interface. 224759aa14a9SRui PauloBy default 224859aa14a9SRui Paulo.Cm meshforward 224959aa14a9SRui Paulois enabled. 2250e6e06eb8SMonthadar Al Jaberi.It Cm meshgate 2251e6e06eb8SMonthadar Al JaberiThis attribute specifies whether or not the mesh STA activates mesh gate 2252e6e06eb8SMonthadar Al Jaberiannouncements. 2253e6e06eb8SMonthadar Al JaberiBy default 2254e6e06eb8SMonthadar Al Jaberi.Cm meshgate 2255e6e06eb8SMonthadar Al Jaberiis disabled. 225659aa14a9SRui Paulo.It Cm meshmetric Ar protocol 225759aa14a9SRui PauloSet the specified 225859aa14a9SRui Paulo.Ar protocol 225959aa14a9SRui Pauloas the link metric protocol used on a mesh network. 226059aa14a9SRui PauloThe default protocol is called 226159aa14a9SRui Paulo.Ar AIRTIME . 226259aa14a9SRui PauloThe mesh interface will restart after changing this setting. 226359aa14a9SRui Paulo.It Cm meshpath Ar protocol 226459aa14a9SRui PauloSet the specified 226559aa14a9SRui Paulo.Ar protocol 226659aa14a9SRui Pauloas the path selection protocol used on a mesh network. 226759aa14a9SRui PauloThe only available protocol at the moment is called 226859aa14a9SRui Paulo.Ar HWMP 226959aa14a9SRui Paulo(Hybrid Wireless Mesh Protocol). 227059aa14a9SRui PauloThe mesh interface will restart after changing this setting. 227159aa14a9SRui Paulo.It Cm hwmprootmode Ar mode 227259aa14a9SRui PauloStations on a mesh network can operate as ``root nodes.'' 227359aa14a9SRui PauloRoot nodes try to find paths to all mesh nodes and advertise themselves 227459aa14a9SRui Pauloregularly. 227559aa14a9SRui PauloWhen there is a root mesh node on a network, other mesh nodes can setup 227659aa14a9SRui Paulopaths between themselves faster because they can use the root node 227759aa14a9SRui Pauloto find the destination. 227859aa14a9SRui PauloThis path may not be the best, but on-demand 227959aa14a9SRui Paulorouting will eventually find the best path. 228059aa14a9SRui PauloThe following modes are recognized: 228159aa14a9SRui Paulo.Pp 228259aa14a9SRui Paulo.Bl -tag -width ".Cm PROACTIVE" -compact 228359aa14a9SRui Paulo.It Cm DISABLED 228459aa14a9SRui PauloDisable root mode. 228559aa14a9SRui Paulo.It Cm NORMAL 228659aa14a9SRui PauloSend broadcast path requests every two seconds. 228759aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 228859aa14a9SRui Paulodiscover a path to us. 228959aa14a9SRui Paulo.It Cm PROACTIVE 2290a4dec862SJoel DahlSend broadcast path requests every two seconds and every node must reply 2291c2025a76SJoel Dahlwith a path reply even if it already has a path to this root mesh station. 229259aa14a9SRui Paulo.It Cm RANN 2293a53bb70bSJoel DahlSend broadcast root announcement (RANN) frames. 229459aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 229559aa14a9SRui Paulodiscover a path to us. 229659aa14a9SRui Paulo.El 229759aa14a9SRui PauloBy default 229859aa14a9SRui Paulo.Cm hwmprootmode 229959aa14a9SRui Paulois set to 230059aa14a9SRui Paulo.Ar DISABLED . 230159aa14a9SRui Paulo.It Cm hwmpmaxhops Ar cnt 230259aa14a9SRui PauloSet the maximum number of hops allowed in an HMWP path to 230359aa14a9SRui Paulo.Ar cnt . 230459aa14a9SRui PauloThe default setting for 230559aa14a9SRui Paulo.Cm hwmpmaxhops 230659aa14a9SRui Paulois 31. 230759aa14a9SRui Paulo.El 230859aa14a9SRui Paulo.Pp 2309aeffcba3SSam LefflerThe following parameters are for compatibility with other systems: 23105faf8dcbSSam Leffler.Bl -tag -width indent 23115faf8dcbSSam Leffler.It Cm nwid Ar ssid 23125faf8dcbSSam LefflerAnother name for the 23135faf8dcbSSam Leffler.Cm ssid 23145faf8dcbSSam Lefflerparameter. 23155faf8dcbSSam LefflerIncluded for 23165faf8dcbSSam Leffler.Nx 23175faf8dcbSSam Lefflercompatibility. 2318b032f27cSSam Leffler.It Cm stationname Ar name 2319b032f27cSSam LefflerSet the name of this station. 2320b032f27cSSam LefflerThe station name is not part of the IEEE 802.11 2321b032f27cSSam Lefflerprotocol though some interfaces support it. 2322b032f27cSSam LefflerAs such it only 2323b032f27cSSam Lefflerseems to be meaningful to identical or virtually identical equipment. 2324b032f27cSSam LefflerSetting the station name is identical in syntax to setting the SSID. 2325b032f27cSSam LefflerOne can also use 2326b032f27cSSam Leffler.Cm station 2327b032f27cSSam Lefflerfor 23285faf8dcbSSam Leffler.Bsx 23295faf8dcbSSam Lefflercompatibility. 2330419d8080SPoul-Henning Kamp.It Cm wep 2331419d8080SPoul-Henning KampAnother way of saying 2332b09b4efbSRuslan Ermilov.Cm wepmode on . 2333b09b4efbSRuslan ErmilovIncluded for 2334b09b4efbSRuslan Ermilov.Bsx 2335b09b4efbSRuslan Ermilovcompatibility. 2336b09b4efbSRuslan Ermilov.It Fl wep 2337419d8080SPoul-Henning KampAnother way of saying 2338b09b4efbSRuslan Ermilov.Cm wepmode off . 2339b09b4efbSRuslan ErmilovIncluded for 2340b09b4efbSRuslan Ermilov.Bsx 2341b09b4efbSRuslan Ermilovcompatibility. 2342419d8080SPoul-Henning Kamp.It Cm nwkey key 2343419d8080SPoul-Henning KampAnother way of saying: 2344b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" . 2345b09b4efbSRuslan ErmilovIncluded for 2346b09b4efbSRuslan Ermilov.Nx 2347b09b4efbSRuslan Ermilovcompatibility. 2348b09b4efbSRuslan Ermilov.It Cm nwkey Xo 2349b09b4efbSRuslan Ermilov.Sm off 2350b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4 2351b09b4efbSRuslan Ermilov.Sm on 2352b09b4efbSRuslan Ermilov.Xc 2353419d8080SPoul-Henning KampAnother way of saying 2354b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" . 2355b09b4efbSRuslan ErmilovIncluded for 2356b09b4efbSRuslan Ermilov.Nx 2357b09b4efbSRuslan Ermilovcompatibility. 2358b09b4efbSRuslan Ermilov.It Fl nwkey 2359419d8080SPoul-Henning KampAnother way of saying 2360b09b4efbSRuslan Ermilov.Cm wepmode off . 2361b09b4efbSRuslan ErmilovIncluded for 2362b09b4efbSRuslan Ermilov.Nx 2363b09b4efbSRuslan Ermilovcompatibility. 23648fae3551SRodney W. Grimes.El 23658fae3551SRodney W. Grimes.Pp 23667afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces: 23677afc53b8SAndrew Thompson.Bl -tag -width indent 23687afc53b8SAndrew Thompson.It Cm addm Ar interface 23697afc53b8SAndrew ThompsonAdd the interface named by 23707afc53b8SAndrew Thompson.Ar interface 23717afc53b8SAndrew Thompsonas a member of the bridge. 23727afc53b8SAndrew ThompsonThe interface is put into promiscuous mode 23737afc53b8SAndrew Thompsonso that it can receive every packet sent on the network. 23747afc53b8SAndrew Thompson.It Cm deletem Ar interface 23757afc53b8SAndrew ThompsonRemove the interface named by 23767afc53b8SAndrew Thompson.Ar interface 23777afc53b8SAndrew Thompsonfrom the bridge. 23787afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when 23797afc53b8SAndrew Thompsonit is removed from the bridge. 23807afc53b8SAndrew Thompson.It Cm maxaddr Ar size 23817afc53b8SAndrew ThompsonSet the size of the bridge address cache to 23827afc53b8SAndrew Thompson.Ar size . 23835640c372SChristian BruefferThe default is 2000 entries. 23847afc53b8SAndrew Thompson.It Cm timeout Ar seconds 23857afc53b8SAndrew ThompsonSet the timeout of address cache entries to 23867afc53b8SAndrew Thompson.Ar seconds 23877afc53b8SAndrew Thompsonseconds. 23887afc53b8SAndrew ThompsonIf 23897afc53b8SAndrew Thompson.Ar seconds 23907afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired. 23915640c372SChristian BruefferThe default is 1200 seconds. 2392db7d6dc1SAndrew Thompson.It Cm addr 2393db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge. 2394db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address 2395db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to 2396db7d6dc1SAndrew Thompson.Ar interface-name . 2397db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the 2398db7d6dc1SAndrew Thompsonaddress is seen on a different interface. 23997afc53b8SAndrew Thompson.It Cm deladdr Ar address 24007afc53b8SAndrew ThompsonDelete 24017afc53b8SAndrew Thompson.Ar address 24027afc53b8SAndrew Thompsonfrom the address cache. 24037afc53b8SAndrew Thompson.It Cm flush 24047afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache. 24057afc53b8SAndrew Thompson.It Cm flushall 24067afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache. 24077afc53b8SAndrew Thompson.It Cm discover Ar interface 24087afc53b8SAndrew ThompsonMark an interface as a 24097afc53b8SAndrew Thompson.Dq discovering 24107afc53b8SAndrew Thompsoninterface. 24117afc53b8SAndrew ThompsonWhen the bridge has no address cache entry 24127afc53b8SAndrew Thompson(either dynamic or static) 24137afc53b8SAndrew Thompsonfor the destination address of a packet, 24147afc53b8SAndrew Thompsonthe bridge will forward the packet to all 24157afc53b8SAndrew Thompsonmember interfaces marked as 24167afc53b8SAndrew Thompson.Dq discovering . 24177afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24187afc53b8SAndrew Thompson.It Cm -discover Ar interface 24197afc53b8SAndrew ThompsonClear the 24207afc53b8SAndrew Thompson.Dq discovering 24217afc53b8SAndrew Thompsonattribute on a member interface. 24227afc53b8SAndrew ThompsonFor packets without the 24237afc53b8SAndrew Thompson.Dq discovering 24247afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast 24257afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address 24267afc53b8SAndrew Thompsonis known to be on the interface's segment. 24277afc53b8SAndrew Thompson.It Cm learn Ar interface 24287afc53b8SAndrew ThompsonMark an interface as a 24297afc53b8SAndrew Thompson.Dq learning 24307afc53b8SAndrew Thompsoninterface. 24317afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source 24327afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a 24337afc53b8SAndrew Thompsondestination address on the interface's segment. 24347afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24357afc53b8SAndrew Thompson.It Cm -learn Ar interface 24367afc53b8SAndrew ThompsonClear the 24377afc53b8SAndrew Thompson.Dq learning 24387afc53b8SAndrew Thompsonattribute on a member interface. 24393df7fad0SAndrew Thompson.It Cm sticky Ar interface 24403df7fad0SAndrew ThompsonMark an interface as a 24413df7fad0SAndrew Thompson.Dq sticky 24423df7fad0SAndrew Thompsoninterface. 24433df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into 24443df7fad0SAndrew Thompsonthe cache. 24453df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the 24463df7fad0SAndrew Thompsonaddress is seen on a different interface. 24473df7fad0SAndrew Thompson.It Cm -sticky Ar interface 24483df7fad0SAndrew ThompsonClear the 24493df7fad0SAndrew Thompson.Dq sticky 24503df7fad0SAndrew Thompsonattribute on a member interface. 245185ce7297SAndrew Thompson.It Cm private Ar interface 245285ce7297SAndrew ThompsonMark an interface as a 245385ce7297SAndrew Thompson.Dq private 245485ce7297SAndrew Thompsoninterface. 245585ce7297SAndrew ThompsonA private interface does not forward any traffic to any other port that is also 245685ce7297SAndrew Thompsona private interface. 245785ce7297SAndrew Thompson.It Cm -private Ar interface 245885ce7297SAndrew ThompsonClear the 245985ce7297SAndrew Thompson.Dq private 246085ce7297SAndrew Thompsonattribute on a member interface. 246191f6764eSAndrew Thompson.It Cm span Ar interface 246291f6764eSAndrew ThompsonAdd the interface named by 246391f6764eSAndrew Thompson.Ar interface 246491f6764eSAndrew Thompsonas a span port on the bridge. 246591f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge. 246691f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on 246791f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge. 246891f6764eSAndrew Thompson.It Cm -span Ar interface 246991f6764eSAndrew ThompsonDelete the interface named by 247091f6764eSAndrew Thompson.Ar interface 247191f6764eSAndrew Thompsonfrom the list of span ports of the bridge. 24727afc53b8SAndrew Thompson.It Cm stp Ar interface 24737afc53b8SAndrew ThompsonEnable Spanning Tree protocol on 24747afc53b8SAndrew Thompson.Ar interface . 24757afc53b8SAndrew ThompsonThe 24767afc53b8SAndrew Thompson.Xr if_bridge 4 24777afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP). 24787afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology. 24797afc53b8SAndrew Thompson.It Cm -stp Ar interface 24807afc53b8SAndrew ThompsonDisable Spanning Tree protocol on 24817afc53b8SAndrew Thompson.Ar interface . 24827afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24833fab7669SAndrew Thompson.It Cm edge Ar interface 24843fab7669SAndrew ThompsonSet 24853fab7669SAndrew Thompson.Ar interface 24863fab7669SAndrew Thompsonas an edge port. 24873fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging 24883fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding. 24893fab7669SAndrew Thompson.It Cm -edge Ar interface 24903fab7669SAndrew ThompsonDisable edge status on 24913fab7669SAndrew Thompson.Ar interface . 24923fab7669SAndrew Thompson.It Cm autoedge Ar interface 24933fab7669SAndrew ThompsonAllow 24943fab7669SAndrew Thompson.Ar interface 24953fab7669SAndrew Thompsonto automatically detect edge status. 24963fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge. 24973fab7669SAndrew Thompson.It Cm -autoedge Ar interface 24983fab7669SAndrew ThompsonDisable automatic edge status on 24993fab7669SAndrew Thompson.Ar interface . 250078709605SAndrew Thompson.It Cm ptp Ar interface 2501153f9b00SAndrew ThompsonSet the 2502153f9b00SAndrew Thompson.Ar interface 2503153f9b00SAndrew Thompsonas a point to point link. 2504153f9b00SAndrew ThompsonThis is required for straight transitions to forwarding and 2505153f9b00SAndrew Thompsonshould be enabled on a direct link to another RSTP capable switch. 250678709605SAndrew Thompson.It Cm -ptp Ar interface 2507153f9b00SAndrew ThompsonDisable point to point link status on 2508153f9b00SAndrew Thompson.Ar interface . 2509153f9b00SAndrew ThompsonThis should be disabled for a half duplex link and for an interface 2510153f9b00SAndrew Thompsonconnected to a shared network segment, 2511153f9b00SAndrew Thompsonlike a hub or a wireless network. 251278709605SAndrew Thompson.It Cm autoptp Ar interface 2513153f9b00SAndrew ThompsonAutomatically detect the point to point status on 2514153f9b00SAndrew Thompson.Ar interface 2515153f9b00SAndrew Thompsonby checking the full duplex link status. 2516153f9b00SAndrew ThompsonThis is the default for interfaces added to the bridge. 251778709605SAndrew Thompson.It Cm -autoptp Ar interface 2518153f9b00SAndrew ThompsonDisable automatic point to point link detection on 2519153f9b00SAndrew Thompson.Ar interface . 25207afc53b8SAndrew Thompson.It Cm maxage Ar seconds 25217afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid. 25227afc53b8SAndrew ThompsonThe default is 20 seconds. 25233fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds. 25247afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds 25257afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding 25267afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled. 25277afc53b8SAndrew ThompsonThe default is 15 seconds. 25283fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds. 25297afc53b8SAndrew Thompson.It Cm hellotime Ar seconds 25307afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol 25317afc53b8SAndrew Thompsonconfiguration messages. 25323fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode. 25337afc53b8SAndrew ThompsonThe default is 2 seconds. 25343fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds. 25357afc53b8SAndrew Thompson.It Cm priority Ar value 25367afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree. 25377afc53b8SAndrew ThompsonThe default is 32768. 25383fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440. 253999469fe2SAndrew Thompson.It Cm proto Ar value 25403fab7669SAndrew ThompsonSet the Spanning Tree protocol. 25413fab7669SAndrew ThompsonThe default is rstp. 25423fab7669SAndrew ThompsonThe available options are stp and rstp. 25431dfd31abSAndrew Thompson.It Cm holdcnt Ar value 25443fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree. 25453fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited. 25463fab7669SAndrew ThompsonThe default is 6. 25473fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10. 25487afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value 25497afc53b8SAndrew ThompsonSet the Spanning Tree priority of 25507afc53b8SAndrew Thompson.Ar interface 25517afc53b8SAndrew Thompsonto 25527afc53b8SAndrew Thompson.Ar value . 25537afc53b8SAndrew ThompsonThe default is 128. 25543fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240. 25557afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value 25567afc53b8SAndrew ThompsonSet the Spanning Tree path cost of 25577afc53b8SAndrew Thompson.Ar interface 25587afc53b8SAndrew Thompsonto 25597afc53b8SAndrew Thompson.Ar value . 25603fab7669SAndrew ThompsonThe default is calculated from the link speed. 25613fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the 25623fab7669SAndrew Thompsoncost to 0. 25633fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000. 25645f33ec7bSAndrew Thompson.It Cm ifmaxaddr Ar interface Ar size 25655f33ec7bSAndrew ThompsonSet the maximum number of hosts allowed from an interface, packets with unknown 25665f33ec7bSAndrew Thompsonsource addresses are dropped until an existing host cache entry expires or is 25675f33ec7bSAndrew Thompsonremoved. 25685f33ec7bSAndrew ThompsonSet to 0 to disable. 25697afc53b8SAndrew Thompson.El 25707afc53b8SAndrew Thompson.Pp 257118242d3bSAndrew ThompsonThe following parameters are specific to lagg interfaces: 25727b62d98bSAndrew Thompson.Bl -tag -width indent 2573a92c4bb6SHans Petter Selasky.It Cm laggtype Ar type 2574a92c4bb6SHans Petter SelaskyWhen creating a lagg interface the type can be specified as either 2575a92c4bb6SHans Petter Selasky.Cm ethernet 2576a92c4bb6SHans Petter Selaskyor 2577a92c4bb6SHans Petter Selasky.Cm infiniband . 2578a92c4bb6SHans Petter SelaskyIf not specified ethernet is the default lagg type. 257918242d3bSAndrew Thompson.It Cm laggport Ar interface 25807b62d98bSAndrew ThompsonAdd the interface named by 25817b62d98bSAndrew Thompson.Ar interface 258218242d3bSAndrew Thompsonas a port of the aggregation interface. 258318242d3bSAndrew Thompson.It Cm -laggport Ar interface 25847b62d98bSAndrew ThompsonRemove the interface named by 25857b62d98bSAndrew Thompson.Ar interface 258618242d3bSAndrew Thompsonfrom the aggregation interface. 258718242d3bSAndrew Thompson.It Cm laggproto Ar proto 258818242d3bSAndrew ThompsonSet the aggregation protocol. 2589939a050aSHiroki SatoThe default is 2590939a050aSHiroki Sato.Li failover . 2591939a050aSHiroki SatoThe available options are 2592939a050aSHiroki Sato.Li failover , 2593939a050aSHiroki Sato.Li lacp , 2594939a050aSHiroki Sato.Li loadbalance , 2595939a050aSHiroki Sato.Li roundrobin , 2596939a050aSHiroki Sato.Li broadcast 2597939a050aSHiroki Satoand 2598939a050aSHiroki Sato.Li none . 259986f67641SAndrew Thompson.It Cm lagghash Ar option Ns Oo , Ns Ar option Oc 260086f67641SAndrew ThompsonSet the packet layers to hash for aggregation protocols which load balance. 260186f67641SAndrew ThompsonThe default is 260286f67641SAndrew Thompson.Dq l2,l3,l4 . 260386f67641SAndrew ThompsonThe options can be combined using commas. 260486f67641SAndrew Thompson.Pp 260586f67641SAndrew Thompson.Bl -tag -width ".Cm l2" -compact 260686f67641SAndrew Thompson.It Cm l2 260786f67641SAndrew Thompsonsrc/dst mac address and optional vlan number. 260886f67641SAndrew Thompson.It Cm l3 260986f67641SAndrew Thompsonsrc/dst address for IPv4 or IPv6. 261086f67641SAndrew Thompson.It Cm l4 2611a0778b71SAndrew Thompsonsrc/dst port for TCP/UDP/SCTP. 261286f67641SAndrew Thompson.El 26138ebaf584SEugene Grosbein.It Cm -use_flowid 2614939a050aSHiroki SatoEnable local hash computation for RSS hash on the interface. 2615939a050aSHiroki SatoThe 2616939a050aSHiroki Sato.Li loadbalance 2617939a050aSHiroki Satoand 2618939a050aSHiroki Sato.Li lacp 2619939a050aSHiroki Satomodes will use the RSS hash from the network card if available 2620939a050aSHiroki Satoto avoid computing one, this may give poor traffic distribution 2621939a050aSHiroki Satoif the hash is invalid or uses less of the protocol header information. 26228ebaf584SEugene Grosbein.Cm -use_flowid 2623939a050aSHiroki Satodisables use of RSS hash from the network card. 2624939a050aSHiroki SatoThe default value can be set via the 2625939a050aSHiroki Sato.Va net.link.lagg.default_use_flowid 2626939a050aSHiroki Sato.Xr sysctl 8 2627939a050aSHiroki Satovariable. 2628939a050aSHiroki Sato.Li 0 2629939a050aSHiroki Satomeans 2630939a050aSHiroki Sato.Dq disabled 2631939a050aSHiroki Satoand 2632939a050aSHiroki Sato.Li 1 2633939a050aSHiroki Satomeans 2634939a050aSHiroki Sato.Dq enabled . 26358ebaf584SEugene Grosbein.It Cm use_flowid 26368ebaf584SEugene GrosbeinUse the RSS hash from the network card if available. 2637939a050aSHiroki Sato.It Cm flowid_shift Ar number 2638939a050aSHiroki SatoSet a shift parameter for RSS local hash computation. 2639939a050aSHiroki SatoHash is calculated by using flowid bits in a packet header mbuf 2640939a050aSHiroki Satowhich are shifted by the number of this parameter. 264135961dceSAndrew Gallatin.It Cm use_numa 264235961dceSAndrew GallatinEnable selection of egress ports based on the native 264335961dceSAndrew Gallatin.Xr NUMA 4 264435961dceSAndrew Gallatindomain for the packets being transmitted. 264535961dceSAndrew GallatinThis is currently only implemented for lacp mode. 264635961dceSAndrew GallatinThis works only on 264735961dceSAndrew Gallatin.Xr NUMA 4 264835961dceSAndrew Gallatinhardware, running a kernel compiled with the 264935961dceSAndrew Gallatin.Xr NUMA 4 265035961dceSAndrew Gallatinoption, and when interfaces from multiple 265135961dceSAndrew Gallatin.Xr NUMA 4 265235961dceSAndrew Gallatindomains are ports of the aggregation interface. 265335961dceSAndrew Gallatin.It Cm -use_numa 265435961dceSAndrew GallatinDisable selection of egress ports based on the native 265535961dceSAndrew Gallatin.Xr NUMA 4 265635961dceSAndrew Gallatindomain for the packets being transmitted. 26570e02b43aSHiren Panchasara.It Cm lacp_fast_timeout 26580e02b43aSHiren PanchasaraEnable lacp fast-timeout on the interface. 26590e02b43aSHiren Panchasara.It Cm -lacp_fast_timeout 26600e02b43aSHiren PanchasaraDisable lacp fast-timeout on the interface. 2661c1be893cSSteven Hartland.It Cm lacp_strict 2662c1be893cSSteven HartlandEnable lacp strict compliance on the interface. 2663c1be893cSSteven HartlandThe default value can be set via the 2664c1be893cSSteven Hartland.Va net.link.lagg.lacp.default_strict_mode 2665c1be893cSSteven Hartland.Xr sysctl 8 2666c1be893cSSteven Hartlandvariable. 2667c1be893cSSteven Hartland.Li 0 2668c1be893cSSteven Hartlandmeans 2669c1be893cSSteven Hartland.Dq disabled 2670c1be893cSSteven Hartlandand 2671c1be893cSSteven Hartland.Li 1 2672c1be893cSSteven Hartlandmeans 2673c1be893cSSteven Hartland.Dq enabled . 2674c1be893cSSteven Hartland.It Cm -lacp_strict 2675c1be893cSSteven HartlandDisable lacp strict compliance on the interface. 2676c104c299SMark Johnston.It Cm rr_limit Ar number 2677c104c299SMark JohnstonConfigure a stride for an interface in round-robin mode. 2678c104c299SMark JohnstonThe default stride is 1. 26797b62d98bSAndrew Thompson.El 26807b62d98bSAndrew Thompson.Pp 2681f8824f7bSMark FelderThe following parameters apply to IP tunnel interfaces, 2682163653e8SYaroslav Tykhiy.Xr gif 4 : 2683163653e8SYaroslav Tykhiy.Bl -tag -width indent 2684163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr 2685163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel 2686163653e8SYaroslav Tykhiyinterfaces. 2687163653e8SYaroslav TykhiyThe arguments 2688163653e8SYaroslav Tykhiy.Ar src_addr 2689163653e8SYaroslav Tykhiyand 2690163653e8SYaroslav Tykhiy.Ar dest_addr 2691163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating 2692163653e8SYaroslav TykhiyIPv4/IPv6 header. 26939e241c5eSYaroslav Tykhiy.It Fl tunnel 2694163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel 2695163653e8SYaroslav Tykhiyinterfaces previously configured with 2696163653e8SYaroslav Tykhiy.Cm tunnel . 26979e241c5eSYaroslav Tykhiy.It Cm deletetunnel 26989e241c5eSYaroslav TykhiyAnother name for the 26999e241c5eSYaroslav Tykhiy.Fl tunnel 27009e241c5eSYaroslav Tykhiyparameter. 27016dcd0ad8SHiroki Sato.It Cm accept_rev_ethip_ver 2702a53bb70bSJoel DahlSet a flag to accept both correct EtherIP packets and ones 270396db02f2SAllan Judewith reversed version field. 270496db02f2SAllan JudeEnabled by default. 27056dcd0ad8SHiroki SatoThis is for backward compatibility with 27066dcd0ad8SHiroki Sato.Fx 6.1 , 27076dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 27086dcd0ad8SHiroki Sato.It Cm -accept_rev_ethip_ver 27096dcd0ad8SHiroki SatoClear a flag 27106dcd0ad8SHiroki Sato.Cm accept_rev_ethip_ver . 2711c1b4f79dSAndrey V. Elsukov.It Cm ignore_source 2712c1b4f79dSAndrey V. ElsukovSet a flag to accept encapsulated packets destined to this host 2713c1b4f79dSAndrey V. Elsukovindependently from source address. 2714c1b4f79dSAndrey V. ElsukovThis may be useful for hosts, that receive encapsulated packets 2715c1b4f79dSAndrey V. Elsukovfrom the load balancers. 2716c1b4f79dSAndrey V. Elsukov.It Cm -ignore_source 2717c1b4f79dSAndrey V. ElsukovClear a flag 2718c1b4f79dSAndrey V. Elsukov.Cm ignore_source . 27196dcd0ad8SHiroki Sato.It Cm send_rev_ethip_ver 27206dcd0ad8SHiroki SatoSet a flag to send EtherIP packets with reversed version 272196db02f2SAllan Judefield intentionally. 272296db02f2SAllan JudeDisabled by default. 27236dcd0ad8SHiroki SatoThis is for backward compatibility with 27246dcd0ad8SHiroki Sato.Fx 6.1 , 27256dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 27266dcd0ad8SHiroki Sato.It Cm -send_rev_ethip_ver 27276dcd0ad8SHiroki SatoClear a flag 27286dcd0ad8SHiroki Sato.Cm send_rev_ethip_ver . 2729163653e8SYaroslav Tykhiy.El 2730163653e8SYaroslav Tykhiy.Pp 2731f8824f7bSMark FelderThe following parameters apply to GRE tunnel interfaces, 2732131c55bcSAndrew Thompson.Xr gre 4 : 2733131c55bcSAndrew Thompson.Bl -tag -width indent 2734f8824f7bSMark Felder.It Cm tunnel Ar src_addr dest_addr 2735f8824f7bSMark FelderConfigure the physical source and destination address for GRE tunnel 2736f8824f7bSMark Felderinterfaces. 2737f8824f7bSMark FelderThe arguments 2738f8824f7bSMark Felder.Ar src_addr 2739f8824f7bSMark Felderand 2740f8824f7bSMark Felder.Ar dest_addr 2741f8824f7bSMark Felderare interpreted as the outer source/destination for the encapsulating 2742f8824f7bSMark FelderIPv4/IPv6 header. 2743f8824f7bSMark Felder.It Fl tunnel 2744f8824f7bSMark FelderUnconfigure the physical source and destination address for GRE tunnel 2745f8824f7bSMark Felderinterfaces previously configured with 2746f8824f7bSMark Felder.Cm tunnel . 2747f8824f7bSMark Felder.It Cm deletetunnel 2748f8824f7bSMark FelderAnother name for the 2749f8824f7bSMark Felder.Fl tunnel 2750f8824f7bSMark Felderparameter. 2751131c55bcSAndrew Thompson.It Cm grekey Ar key 2752131c55bcSAndrew ThompsonConfigure the GRE key to be used for outgoing packets. 2753131c55bcSAndrew ThompsonNote that 2754131c55bcSAndrew Thompson.Xr gre 4 will always accept GRE packets with invalid or absent keys. 2755131c55bcSAndrew ThompsonThis command will result in a four byte MTU reduction on the interface. 2756131c55bcSAndrew Thompson.El 2757131c55bcSAndrew Thompson.Pp 2758163653e8SYaroslav TykhiyThe following parameters are specific to 2759ced42c6cSCeri Davies.Xr pfsync 4 2760ced42c6cSCeri Daviesinterfaces: 2761ced42c6cSCeri Davies.Bl -tag -width indent 276279f6687dSGleb Smirnoff.It Cm syncdev Ar iface 276379f6687dSGleb SmirnoffUse the specified interface 276479f6687dSGleb Smirnoffto send and receive pfsync state synchronisation messages. 276579f6687dSGleb Smirnoff.It Fl syncdev 276679f6687dSGleb SmirnoffStop sending pfsync state synchronisation messages over the network. 276779f6687dSGleb Smirnoff.It Cm syncpeer Ar peer_address 276879f6687dSGleb SmirnoffMake the pfsync link point-to-point rather than using 276979f6687dSGleb Smirnoffmulticast to broadcast the state synchronisation messages. 277079f6687dSGleb SmirnoffThe peer_address is the IP address of the other host taking part in 277179f6687dSGleb Smirnoffthe pfsync cluster. 277279f6687dSGleb Smirnoff.It Fl syncpeer 277379f6687dSGleb SmirnoffBroadcast the packets using multicast. 2774ced42c6cSCeri Davies.It Cm maxupd Ar n 2775ced42c6cSCeri DaviesSet the maximum number of updates for a single state which 2776ced42c6cSCeri Daviescan be collapsed into one. 2777ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128. 277879f6687dSGleb Smirnoff.It Cm defer 277979f6687dSGleb SmirnoffDefer transmission of the first packet in a state until a peer has 278079f6687dSGleb Smirnoffacknowledged that the associated state has been inserted. 278179f6687dSGleb Smirnoff.It Fl defer 278279f6687dSGleb SmirnoffDo not defer the first packet in a state. 278379f6687dSGleb SmirnoffThis is the default. 2784ced42c6cSCeri Davies.El 2785ced42c6cSCeri Davies.Pp 2786ced42c6cSCeri DaviesThe following parameters are specific to 2787163653e8SYaroslav Tykhiy.Xr vlan 4 2788163653e8SYaroslav Tykhiyinterfaces: 2789163653e8SYaroslav Tykhiy.Bl -tag -width indent 2790163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag 2791163653e8SYaroslav TykhiySet the VLAN tag value to 2792163653e8SYaroslav Tykhiy.Ar vlan_tag . 2793f3f28e69SRobert WatsonThis value is a 12-bit VLAN Identifier (VID) which is used to create an 802.1Q 2794c7cffd65SAlexander V. Chernikovor 802.1ad VLAN header for packets sent from the 2795163653e8SYaroslav Tykhiy.Xr vlan 4 2796163653e8SYaroslav Tykhiyinterface. 2797163653e8SYaroslav TykhiyNote that 2798163653e8SYaroslav Tykhiy.Cm vlan 2799163653e8SYaroslav Tykhiyand 2800163653e8SYaroslav Tykhiy.Cm vlandev 2801163653e8SYaroslav Tykhiymust both be set at the same time. 2802c7cffd65SAlexander V. Chernikov.It Cm vlanproto Ar vlan_proto 2803c7cffd65SAlexander V. ChernikovSet the VLAN encapsulation protocol to 2804c7cffd65SAlexander V. Chernikov.Ar vlan_proto . 2805c7cffd65SAlexander V. ChernikovSupported encapsulation protocols are currently 2806c7cffd65SAlexander V. Chernikov.Dq 802.1Q 2807c7cffd65SAlexander V. Chernikovand 2808c7cffd65SAlexander V. Chernikov.Dq 802.1ad . 2809c7cffd65SAlexander V. ChernikovThe default encapsulation protocol is 2810c7cffd65SAlexander V. Chernikov.Dq 802.1Q . 2811b84d0aaaSAllan JudeThe 2812b84d0aaaSAllan Jude.Dq 802.1ad 2813b84d0aaaSAllan Judeprotocol is also commonly known as 2814b84d0aaaSAllan Jude.Dq QinQ ; 2815b84d0aaaSAllan Judeeither name can be used. 28162ccbbd06SMarcelo Araujo.It Cm vlanpcp Ar priority_code_point 28172ccbbd06SMarcelo AraujoPriority code point 28182ccbbd06SMarcelo Araujo.Pq Dv PCP 28192ccbbd06SMarcelo Araujois an 3-bit field which refers to the IEEE 802.1p 28202ccbbd06SMarcelo Araujoclass of service and maps to the frame priority level. 28212ccbbd06SMarcelo Araujo.Pp 28222ccbbd06SMarcelo AraujoValues in order of priority are: 28232ccbbd06SMarcelo Araujo.Cm 1 28242ccbbd06SMarcelo Araujo.Pq Dv Background (lowest) , 28252ccbbd06SMarcelo Araujo.Cm 0 28262ccbbd06SMarcelo Araujo.Pq Dv Best effort (default) , 28272ccbbd06SMarcelo Araujo.Cm 2 28282ccbbd06SMarcelo Araujo.Pq Dv Excellent effort , 28292ccbbd06SMarcelo Araujo.Cm 3 28302ccbbd06SMarcelo Araujo.Pq Dv Critical applications , 28312ccbbd06SMarcelo Araujo.Cm 4 28320ea8a7f3SJose Luis Duran.Pq Dv Video, < 100ms latency and jitter , 28332ccbbd06SMarcelo Araujo.Cm 5 28340ea8a7f3SJose Luis Duran.Pq Dv Voice, < 10ms latency and jitter , 28352ccbbd06SMarcelo Araujo.Cm 6 28362ccbbd06SMarcelo Araujo.Pq Dv Internetwork control , 28372ccbbd06SMarcelo Araujo.Cm 7 28382ccbbd06SMarcelo Araujo.Pq Dv Network control (highest) . 2839163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface 2840163653e8SYaroslav TykhiyAssociate the physical interface 2841163653e8SYaroslav Tykhiy.Ar iface 2842163653e8SYaroslav Tykhiywith a 2843163653e8SYaroslav Tykhiy.Xr vlan 4 2844163653e8SYaroslav Tykhiyinterface. 2845163653e8SYaroslav TykhiyPackets transmitted through the 2846163653e8SYaroslav Tykhiy.Xr vlan 4 2847163653e8SYaroslav Tykhiyinterface will be 2848163653e8SYaroslav Tykhiydiverted to the specified physical interface 2849163653e8SYaroslav Tykhiy.Ar iface 2850163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation. 2851163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received 2852f3f28e69SRobert Watsonby the parent interface with the correct VLAN Identifier will be diverted to 2853163653e8SYaroslav Tykhiythe associated 2854163653e8SYaroslav Tykhiy.Xr vlan 4 2855163653e8SYaroslav Tykhiypseudo-interface. 2856163653e8SYaroslav TykhiyThe 2857163653e8SYaroslav Tykhiy.Xr vlan 4 2858163653e8SYaroslav Tykhiyinterface is assigned a 285996db02f2SAllan Judecopy of the parent interface's flags and the parent's Ethernet address. 2860163653e8SYaroslav TykhiyThe 2861163653e8SYaroslav Tykhiy.Cm vlandev 2862163653e8SYaroslav Tykhiyand 2863163653e8SYaroslav Tykhiy.Cm vlan 2864163653e8SYaroslav Tykhiymust both be set at the same time. 2865163653e8SYaroslav TykhiyIf the 2866163653e8SYaroslav Tykhiy.Xr vlan 4 2867163653e8SYaroslav Tykhiyinterface already has 2868163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail. 2869163653e8SYaroslav TykhiyTo 2870163653e8SYaroslav Tykhiychange the association to another physical interface, the existing 2871163653e8SYaroslav Tykhiyassociation must be cleared first. 2872163653e8SYaroslav Tykhiy.Pp 2873163653e8SYaroslav TykhiyNote: if the hardware tagging capability 2874163653e8SYaroslav Tykhiyis set on the parent interface, the 2875163653e8SYaroslav Tykhiy.Xr vlan 4 2876163653e8SYaroslav Tykhiypseudo 2877163653e8SYaroslav Tykhiyinterface's behavior changes: 2878163653e8SYaroslav Tykhiythe 2879163653e8SYaroslav Tykhiy.Xr vlan 4 2880163653e8SYaroslav Tykhiyinterface recognizes that the 2881163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its 2882163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from 2883163653e8SYaroslav Tykhiythe parent unaltered. 2884b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface 2885163653e8SYaroslav TykhiyIf the driver is a 2886163653e8SYaroslav Tykhiy.Xr vlan 4 2887b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it. 2888163653e8SYaroslav TykhiyThis breaks the link between the 2889163653e8SYaroslav Tykhiy.Xr vlan 4 2890163653e8SYaroslav Tykhiyinterface and its parent, 2891f3f28e69SRobert Watsonclears its VLAN Identifier, flags and its link address and shuts the interface 2892f3f28e69SRobert Watsondown. 2893b0dcc11cSYaroslav TykhiyThe 2894b0dcc11cSYaroslav Tykhiy.Ar iface 2895b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated. 2896163653e8SYaroslav Tykhiy.El 2897163653e8SYaroslav Tykhiy.Pp 289808b68b0eSGleb SmirnoffThe following parameters are used to configure 2899007054f0SBryan Venteicher.Xr vxlan 4 2900007054f0SBryan Venteicherinterfaces. 2901007054f0SBryan Venteicher.Bl -tag -width indent 2902c6e32006SBryan Venteicher.It Cm vxlanid Ar identifier 2903007054f0SBryan VenteicherThis value is a 24-bit VXLAN Network Identifier (VNI) that identifies the 2904007054f0SBryan Venteichervirtual network segment membership of the interface. 2905c6e32006SBryan Venteicher.It Cm vxlanlocal Ar address 2906007054f0SBryan VenteicherThe source address used in the encapsulating IPv4/IPv6 header. 2907007054f0SBryan VenteicherThe address should already be assigned to an existing interface. 2908007054f0SBryan VenteicherWhen the interface is configured in unicast mode, the listening socket 2909007054f0SBryan Venteicheris bound to this address. 2910c6e32006SBryan Venteicher.It Cm vxlanremote Ar address 2911007054f0SBryan VenteicherThe interface can be configured in a unicast, or point-to-point, mode 2912007054f0SBryan Venteicherto create a tunnel between two hosts. 2913007054f0SBryan VenteicherThis is the IP address of the remote end of the tunnel. 2914c6e32006SBryan Venteicher.It Cm vxlangroup Ar address 2915007054f0SBryan VenteicherThe interface can be configured in a multicast mode 2916007054f0SBryan Venteicherto create a virtual network of hosts. 2917007054f0SBryan VenteicherThis is the IP multicast group address the interface will join. 2918c6e32006SBryan Venteicher.It Cm vxlanlocalport Ar port 2919007054f0SBryan VenteicherThe port number the interface will listen on. 2920007054f0SBryan VenteicherThe default port number is 4789. 2921c6e32006SBryan Venteicher.It Cm vxlanremoteport Ar port 2922007054f0SBryan VenteicherThe destination port number used in the encapsulating IPv4/IPv6 header. 2923007054f0SBryan VenteicherThe remote host should be listening on this port. 2924007054f0SBryan VenteicherThe default port number is 4789. 2925007054f0SBryan VenteicherNote some other implementations, such as Linux, 2926007054f0SBryan Venteicherdo not default to the IANA assigned port, 2927007054f0SBryan Venteicherbut instead listen on port 8472. 2928c6e32006SBryan Venteicher.It Cm vxlanportrange Ar low high 2929007054f0SBryan VenteicherThe range of source ports used in the encapsulating IPv4/IPv6 header. 2930007054f0SBryan VenteicherThe port selected within the range is based on a hash of the inner frame. 2931007054f0SBryan VenteicherA range is useful to provide entropy within the outer IP header 2932007054f0SBryan Venteicherfor more effective load balancing. 2933007054f0SBryan VenteicherThe default range is between the 2934007054f0SBryan Venteicher.Xr sysctl 8 2935007054f0SBryan Venteichervariables 2936007054f0SBryan Venteicher.Va net.inet.ip.portrange.first 2937007054f0SBryan Venteicherand 2938007054f0SBryan Venteicher.Va net.inet.ip.portrange.last 2939c6e32006SBryan Venteicher.It Cm vxlantimeout Ar timeout 2940007054f0SBryan VenteicherThe maximum time, in seconds, before an entry in the forwarding table 2941007054f0SBryan Venteicheris pruned. 2942007054f0SBryan VenteicherThe default is 1200 seconds (20 minutes). 2943c6e32006SBryan Venteicher.It Cm vxlanmaxaddr Ar max 2944007054f0SBryan VenteicherThe maximum number of entries in the forwarding table. 2945007054f0SBryan VenteicherThe default is 2000. 2946007054f0SBryan Venteicher.It Cm vxlandev Ar dev 2947007054f0SBryan VenteicherWhen the interface is configured in multicast mode, the 2948007054f0SBryan Venteicher.Cm dev 2949007054f0SBryan Venteicherinterface is used to transmit IP multicast packets. 2950c6e32006SBryan Venteicher.It Cm vxlanttl Ar ttl 2951007054f0SBryan VenteicherThe TTL used in the encapsulating IPv4/IPv6 header. 2952007054f0SBryan VenteicherThe default is 64. 2953c6e32006SBryan Venteicher.It Cm vxlanlearn 2954007054f0SBryan VenteicherThe source IP address and inner source Ethernet MAC address of 2955007054f0SBryan Venteicherreceived packets are used to dynamically populate the forwarding table. 2956007054f0SBryan VenteicherWhen in multicast mode, an entry in the forwarding table allows the 2957007054f0SBryan Venteicherinterface to send the frame directly to the remote host instead of 2958007054f0SBryan Venteicherbroadcasting the frame to the multicast group. 2959007054f0SBryan VenteicherThis is the default. 2960c6e32006SBryan Venteicher.It Fl vxlanlearn 2961e700bef2SMarcelo AraujoThe forwarding table is not populated by received packets. 2962c6e32006SBryan Venteicher.It Cm vxlanflush 2963007054f0SBryan VenteicherDelete all dynamically-learned addresses from the forwarding table. 2964c6e32006SBryan Venteicher.It Cm vxlanflushall 2965007054f0SBryan VenteicherDelete all addresses, including static addresses, from the forwarding table. 2966007054f0SBryan Venteicher.El 2967007054f0SBryan Venteicher.Pp 2968007054f0SBryan VenteicherThe following parameters are used to configure 2969556c9a4cSJesus R. Camou.Xr carp 4 297008b68b0eSGleb Smirnoffprotocol on an interface: 2971556c9a4cSJesus R. Camou.Bl -tag -width indent 297208b68b0eSGleb Smirnoff.It Cm vhid Ar n 297308b68b0eSGleb SmirnoffSet the virtual host ID. 297408b68b0eSGleb SmirnoffThis is a required setting to initiate 297508b68b0eSGleb Smirnoff.Xr carp 4 . 2976818b39edSWarren BlockIf the virtual host ID does not exist yet, it is created and attached to the 297708b68b0eSGleb Smirnoffinterface, otherwise configuration of an existing vhid is adjusted. 297808b68b0eSGleb SmirnoffIf the 297908b68b0eSGleb Smirnoff.Cm vhid 298008b68b0eSGleb Smirnoffkeyword is supplied along with an 298108b68b0eSGleb Smirnoff.Dq inet6 298208b68b0eSGleb Smirnoffor 298308b68b0eSGleb Smirnoff.Dq inet 298408b68b0eSGleb Smirnoffaddress, then this address is configured to be run under control of the 298508b68b0eSGleb Smirnoffspecified vhid. 298608b68b0eSGleb SmirnoffWhenever a last address that refers to a particular vhid is removed from an 298708b68b0eSGleb Smirnoffinterface, the vhid is automatically removed from interface and destroyed. 298808b68b0eSGleb SmirnoffAny other configuration parameters for the 298908b68b0eSGleb Smirnoff.Xr carp 4 299008b68b0eSGleb Smirnoffprotocol should be supplied along with the 299108b68b0eSGleb Smirnoff.Cm vhid 299208b68b0eSGleb Smirnoffkeyword. 299308b68b0eSGleb SmirnoffAcceptable values for vhid are 1 to 255. 2994556c9a4cSJesus R. Camou.It Cm advbase Ar seconds 2995556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds. 2996556c9a4cSJesus R. CamouThe acceptable values are 1 to 255. 2997556c9a4cSJesus R. CamouThe default value is 1. 2998556c9a4cSJesus R. Camou.It Cm advskew Ar interval 2999556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to 3000556c9a4cSJesus R. Camoumake one host advertise slower than another host. 3001556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds. 3002556c9a4cSJesus R. CamouThe acceptable values are 1 to 254. 3003556c9a4cSJesus R. CamouThe default value is 0. 3004556c9a4cSJesus R. Camou.It Cm pass Ar phrase 3005556c9a4cSJesus R. CamouSet the authentication key to 3006556c9a4cSJesus R. Camou.Ar phrase . 300708b68b0eSGleb Smirnoff.It Cm state Ar MASTER|BACKUP 300808b68b0eSGleb SmirnoffForcibly change state of a given vhid. 3009556c9a4cSJesus R. Camou.El 30109bad5f37SBruce M Simpson.Sh EXAMPLES 30119bad5f37SBruce M SimpsonAssign the IPv4 address 30129bb9973cSBruce M Simpson.Li 192.0.2.10 , 30139bad5f37SBruce M Simpsonwith a network mask of 30149bad5f37SBruce M Simpson.Li 255.255.255.0 , 30159bad5f37SBruce M Simpsonto the interface 3016ffda6790SBrooks Davis.Li em0 : 3017ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.10 netmask 255.255.255.0 30189bad5f37SBruce M Simpson.Pp 30199bb9973cSBruce M SimpsonAdd the IPv4 address 30209bb9973cSBruce M Simpson.Li 192.0.2.45 , 30219bad5f37SBruce M Simpsonwith the CIDR network prefix 30229bb9973cSBruce M Simpson.Li /28 , 30239bad5f37SBruce M Simpsonto the interface 3024ffda6790SBrooks Davis.Li em0 , 30259bb9973cSBruce M Simpsonusing 30269bb9973cSBruce M Simpson.Cm add 30279bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 30289bb9973cSBruce M Simpson.Cm alias : 3029ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.45/28 add 30309bad5f37SBruce M Simpson.Pp 30319bb9973cSBruce M SimpsonRemove the IPv4 address 30329bb9973cSBruce M Simpson.Li 192.0.2.45 30339bb9973cSBruce M Simpsonfrom the interface 3034ffda6790SBrooks Davis.Li em0 : 3035ffda6790SBrooks Davis.Dl # ifconfig em0 inet 192.0.2.45 -alias 30369bb9973cSBruce M Simpson.Pp 3037a283298cSHiroki SatoEnable IPv6 functionality of the interface: 3038a283298cSHiroki Sato.Dl # ifconfig em0 inet6 -ifdisabled 3039a283298cSHiroki Sato.Pp 30409bb9973cSBruce M SimpsonAdd the IPv6 address 30419bb9973cSBruce M Simpson.Li 2001:DB8:DBDB::123/48 30429bad5f37SBruce M Simpsonto the interface 30439bad5f37SBruce M Simpson.Li em0 : 30449bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias 30459bb9973cSBruce M SimpsonNote that lower case hexadecimal IPv6 addresses are acceptable. 30469bad5f37SBruce M Simpson.Pp 30479bad5f37SBruce M SimpsonRemove the IPv6 address added in the above example, 30489bad5f37SBruce M Simpsonusing the 30499bad5f37SBruce M Simpson.Li / 30509bb9973cSBruce M Simpsoncharacter as shorthand for the network prefix, 30519bb9973cSBruce M Simpsonand using 30529bb9973cSBruce M Simpson.Cm delete 30539bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 30549bb9973cSBruce M Simpson.Fl alias : 30559bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete 30569bad5f37SBruce M Simpson.Pp 305708b68b0eSGleb SmirnoffConfigure a single CARP redundant address on igb0, and then switch it 305808b68b0eSGleb Smirnoffto be master: 30592e25a531SGleb Smirnoff.Dl # ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up 306008b68b0eSGleb Smirnoff.Dl # ifconfig igb0 vhid 1 state master 306108b68b0eSGleb Smirnoff.Pp 30629bad5f37SBruce M SimpsonConfigure the interface 30639bad5f37SBruce M Simpson.Li xl0 , 30649bad5f37SBruce M Simpsonto use 100baseTX, full duplex Ethernet media options: 30659bad5f37SBruce M Simpson.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex 30669bad5f37SBruce M Simpson.Pp 3067215940b3SXin LILabel the em0 interface as an uplink: 3068215940b3SXin LI.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&" 3069215940b3SXin LI.Pp 30709bad5f37SBruce M SimpsonCreate the software network interface 30719bad5f37SBruce M Simpson.Li gif1 : 30729bad5f37SBruce M Simpson.Dl # ifconfig gif1 create 30739bad5f37SBruce M Simpson.Pp 30749bad5f37SBruce M SimpsonDestroy the software network interface 30759bad5f37SBruce M Simpson.Li gif1 : 30769bad5f37SBruce M Simpson.Dl # ifconfig gif1 destroy 307748141d37SGlen Barber.Pp 307866e0e139SGlen BarberDisplay available wireless networks using 307948141d37SGlen Barber.Li wlan0 : 3080a34287fbSGlen Barber.Dl # ifconfig wlan0 list scan 30817c2aa744SAllan Jude.Pp 30827c2aa744SAllan JudeDisplay inet and inet6 address subnet masks in CIDR notation 30837c2aa744SAllan Jude.Dl # ifconfig -f inet:cidr,inet6:cidr 30848e725dacSEugene Grosbein.Pp 30858e725dacSEugene GrosbeinDisplay interfaces that are up with the exception of loopback 30868e725dacSEugene Grosbein.Dl # ifconfig -a -u -G lo 30878fae3551SRodney W. Grimes.Sh DIAGNOSTICS 308820d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the 30898fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and 30908fae3551SRodney W. Grimestried to alter an interface's configuration. 30918fae3551SRodney W. Grimes.Sh SEE ALSO 30928fae3551SRodney W. Grimes.Xr netstat 1 , 30934029efa5SChristian Brueffer.Xr carp 4 , 30946dcd0ad8SHiroki Sato.Xr gif 4 , 30958fae3551SRodney W. Grimes.Xr netintro 4 , 3096ced42c6cSCeri Davies.Xr pfsync 4 , 30974029efa5SChristian Brueffer.Xr polling 4 , 3098588e78c5SYaroslav Tykhiy.Xr vlan 4 , 3099007054f0SBryan Venteicher.Xr vxlan 4 , 3100fd9635efSWarren Block.Xr devd.conf 5 , 3101b09b4efbSRuslan Ermilov.\" .Xr eon 5 , 3102fd9635efSWarren Block.Xr devd 8 , 3103c09eb466SJoel Dahl.Xr jail 8 , 31048fae3551SRodney W. Grimes.Xr rc 8 , 31054b32efacSBruce M Simpson.Xr routed 8 , 31064b32efacSBruce M Simpson.Xr sysctl 8 31078fae3551SRodney W. Grimes.Sh HISTORY 31088fae3551SRodney W. GrimesThe 31098fae3551SRodney W. Grimes.Nm 3110e1205e80SPhilippe Charnierutility appeared in 31118fae3551SRodney W. Grimes.Bx 4.2 . 31126087df9eSRuslan Ermilov.Sh BUGS 31136087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each 31146087df9eSRuslan Ermilovinterface configured for IPv6. 31156087df9eSRuslan ErmilovNormally, such an address is automatically configured by the 3116a283298cSHiroki Satokernel on each interface added to the system or enabled; this behavior may 3117a283298cSHiroki Satobe disabled by setting per-interface flag 3118a283298cSHiroki Sato.Cm -auto_linklocal . 3119a283298cSHiroki SatoThe default value of this flag is 1 and can be disabled by using the sysctl 3120a283298cSHiroki SatoMIB variable 3121a283298cSHiroki Sato.Va net.inet6.ip6.auto_linklocal . 31226087df9eSRuslan Ermilov.Pp 3123a283298cSHiroki SatoDo not configure IPv6 addresses with no link-local address by using 3124a283298cSHiroki Sato.Nm . 3125a283298cSHiroki SatoIt can result in unexpected behaviors of the kernel. 3126