18fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 68fae3551SRodney W. Grimes.\" are met: 78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 88fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 108fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 118fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 128fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 138fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 148fae3551SRodney W. Grimes.\" without specific prior written permission. 158fae3551SRodney W. Grimes.\" 168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 198fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 268fae3551SRodney W. Grimes.\" SUCH DAMAGE. 278fae3551SRodney W. Grimes.\" 280761cb29SGarrett Wollman.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 297f3dea24SPeter Wemm.\" $FreeBSD$ 308fae3551SRodney W. Grimes.\" 317c2aa744SAllan Jude.Dd May 29, 2016 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 397c2aa744SAllan Jude.Op Fl f Ar type:format Ns Op Ar ,type:format 40abc3361aSArchie Cobbs.Op Fl L 41b7eb47e2SRobert Watson.Op Fl k 42ca299b1fSPoul-Henning Kamp.Op Fl m 43a389ab00SAndrew Thompson.Op Fl n 44abc3361aSArchie Cobbs.Ar interface 453e61dca0SBrooks Davis.Op Cm create 465af3fa9aSBjoern A. Zeeb.Ar address_family 478fae3551SRodney W. Grimes.Oo 48eb2a1701SDima Dorfman.Ar address 498fae3551SRodney W. Grimes.Op Ar dest_address 508fae3551SRodney W. Grimes.Oc 518fae3551SRodney W. Grimes.Op Ar parameters 527c7fb079SRuslan Ermilov.Nm 533e61dca0SBrooks Davis.Ar interface 543e61dca0SBrooks Davis.Cm destroy 553e61dca0SBrooks Davis.Nm 56b5436146SPeter Wemm.Fl a 57abc3361aSArchie Cobbs.Op Fl L 58b5436146SPeter Wemm.Op Fl d 59ca299b1fSPoul-Henning Kamp.Op Fl m 60b5436146SPeter Wemm.Op Fl u 615faf8dcbSSam Leffler.Op Fl v 62e333b944SPhilippe Charnier.Op Ar address_family 637c7fb079SRuslan Ermilov.Nm 64b5436146SPeter Wemm.Fl l 65b5436146SPeter Wemm.Op Fl d 66b5436146SPeter Wemm.Op Fl u 67e333b944SPhilippe Charnier.Op Ar address_family 687c7fb079SRuslan Ermilov.Nm 69abc3361aSArchie Cobbs.Op Fl L 70abc3361aSArchie Cobbs.Op Fl d 71b7eb47e2SRobert Watson.Op Fl k 72ca299b1fSPoul-Henning Kamp.Op Fl m 73abc3361aSArchie Cobbs.Op Fl u 745faf8dcbSSam Leffler.Op Fl v 753e61dca0SBrooks Davis.Op Fl C 760dad3f0eSMax Laier.Nm 770dad3f0eSMax Laier.Op Fl g Ar groupname 788fae3551SRodney W. Grimes.Sh DESCRIPTION 79e1205e80SPhilippe CharnierThe 80e1205e80SPhilippe Charnier.Nm 81e1205e80SPhilippe Charnierutility is used to assign an address 828fae3551SRodney W. Grimesto a network interface and/or configure 838fae3551SRodney W. Grimesnetwork interface parameters. 84e1205e80SPhilippe CharnierThe 85e1205e80SPhilippe Charnier.Nm 86e1205e80SPhilippe Charnierutility must be used at boot time to define the network address 878fae3551SRodney W. Grimesof each interface present on a machine; it may also be used at 888fae3551SRodney W. Grimesa later time to redefine an interface's address 898fae3551SRodney W. Grimesor other operating parameters. 908fae3551SRodney W. Grimes.Pp 91e333b944SPhilippe CharnierThe following options are available: 92e333b944SPhilippe Charnier.Bl -tag -width indent 93e333b944SPhilippe Charnier.It Ar address 948fae3551SRodney W. GrimesFor the 95e333b944SPhilippe Charnier.Tn DARPA Ns -Internet 968fae3551SRodney W. Grimesfamily, 978fae3551SRodney W. Grimesthe address is either a host name present in the host name data 988fae3551SRodney W. Grimesbase, 998fae3551SRodney W. Grimes.Xr hosts 5 , 1008fae3551SRodney W. Grimesor a 1018fae3551SRodney W. Grimes.Tn DARPA 1028fae3551SRodney W. GrimesInternet address expressed in the Internet standard 1038fae3551SRodney W. Grimes.Dq dot notation . 10412813062SJesper Skriver.Pp 10512813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the 10612813062SJesper Skriverslash notation) to include the netmask. 10712813062SJesper SkriverThat is, one can specify an address like 10819fe4826SRuslan Ermilov.Li 192.168.0.1/16 . 1099f1741caSRuslan Ermilov.Pp 1104f1fb109SGiorgos KeramidasFor the 1119f1741caSRuslan Ermilov.Dq inet6 1129f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash 1139f1741caSRuslan Ermilovnotation, like 1149f1741caSRuslan Ermilov.Li ::1/128 . 1159f1741caSRuslan ErmilovSee the 1169f1741caSRuslan Ermilov.Cm prefixlen 1179f1741caSRuslan Ermilovparameter below for more information. 118cbc17e71SGarrett Wollman.\" For the Xerox Network Systems(tm) family, 119cbc17e71SGarrett Wollman.\" addresses are 120cbc17e71SGarrett Wollman.\" .Ar net:a.b.c.d.e.f , 121cbc17e71SGarrett Wollman.\" where 122cbc17e71SGarrett Wollman.\" .Ar net 123cbc17e71SGarrett Wollman.\" is the assigned network number (in decimal), 124cbc17e71SGarrett Wollman.\" and each of the six bytes of the host number, 125cbc17e71SGarrett Wollman.\" .Ar a 126cbc17e71SGarrett Wollman.\" through 127cbc17e71SGarrett Wollman.\" .Ar f , 128cbc17e71SGarrett Wollman.\" are specified in hexadecimal. 129b80875bcSDima Dorfman.\" The host number may be omitted on IEEE 802 protocol 130b80875bcSDima Dorfman.\" (Ethernet, FDDI, and Token Ring) interfaces, 131cbc17e71SGarrett Wollman.\" which use the hardware physical address, 132cbc17e71SGarrett Wollman.\" and on interfaces other than the first. 1330761cb29SGarrett Wollman.\" For the 1340761cb29SGarrett Wollman.\" .Tn ISO 1350761cb29SGarrett Wollman.\" family, addresses are specified as a long hexadecimal string, 136b09b4efbSRuslan Ermilov.\" as in the Xerox family. 137b09b4efbSRuslan Ermilov.\" However, two consecutive dots imply a zero 1380761cb29SGarrett Wollman.\" byte, and the dots are optional, if the user wishes to (carefully) 1390761cb29SGarrett Wollman.\" count out long strings of digits in network byte order. 1401876df83SRuslan Ermilov.Pp 1411876df83SRuslan ErmilovThe link-level 1421876df83SRuslan Ermilov.Pq Dq link 1431876df83SRuslan Ermilovaddress 1441876df83SRuslan Ermilovis specified as a series of colon-separated hex digits. 14596db02f2SAllan JudeThis can be used to, for example, 14696db02f2SAllan Judeset a new MAC address on an Ethernet interface, though the 14796db02f2SAllan Judemechanism used is not Ethernet specific. 1481876df83SRuslan ErmilovIf the interface is already 1491876df83SRuslan Ermilovup when this option is used, it will be briefly brought down and 1501876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive 15196db02f2SAllan Judefilter in the underlying Ethernet hardware is properly reprogrammed. 1528fae3551SRodney W. Grimes.It Ar address_family 153e333b944SPhilippe CharnierSpecify the 154b09b4efbSRuslan Ermilovaddress family 1558fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters. 1568fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols 157e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended. 1588fae3551SRodney W. GrimesThe address or protocol families currently 1598fae3551SRodney W. Grimessupported are 160e05f2836SJulian Elischer.Dq inet , 161cfa1ca9dSYoshinobu Inoue.Dq inet6 , 1628fae3551SRodney W. Grimesand 1631876df83SRuslan Ermilov.Dq link . 1645af3fa9aSBjoern A. ZeebThe default if available is 1655af3fa9aSBjoern A. Zeeb.Dq inet 1665af3fa9aSBjoern A. Zeebor otherwise 1675af3fa9aSBjoern A. Zeeb.Dq link . 1681876df83SRuslan Ermilov.Dq ether 1691876df83SRuslan Ermilovand 1701876df83SRuslan Ermilov.Dq lladdr 1711876df83SRuslan Ermilovare synonyms for 1721876df83SRuslan Ermilov.Dq link . 1731d28cd26SAllan JudeWhen using the 1741d28cd26SAllan Jude.Fl l 1751d28cd26SAllan Judeflag, the 1761d28cd26SAllan Jude.Dq ether 1771d28cd26SAllan Judeaddress family has special meaning and is no longer synonymous with 1781d28cd26SAllan Jude.Dq link 1791d28cd26SAllan Judeor 1801d28cd26SAllan Jude.Dq lladdr . 1811d28cd26SAllan JudeSpecifying 1821d28cd26SAllan Jude.Fl l Dq ether 18396db02f2SAllan Judewill list only Ethernet interfaces, excluding all other interface types, 1841d28cd26SAllan Judeincluding the loopback interface. 185e333b944SPhilippe Charnier.It Ar dest_address 186e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end 187e333b944SPhilippe Charnierof a point to point link. 188e333b944SPhilippe Charnier.It Ar interface 189e333b944SPhilippe CharnierThis 1908fae3551SRodney W. Grimesparameter is a string of the form 1918fae3551SRodney W. Grimes.Dq name unit , 1928fae3551SRodney W. Grimesfor example, 193b09b4efbSRuslan Ermilov.Dq Li ed0 . 1940dad3f0eSMax Laier.It Ar groupname 1950dad3f0eSMax LaierList the interfaces in the given group. 1968fae3551SRodney W. Grimes.El 1978fae3551SRodney W. Grimes.Pp 1987c2aa744SAllan JudeThe output format of 1997c2aa744SAllan Jude.Nm 2007c2aa744SAllan Judecan be controlled using the 2017c2aa744SAllan Jude.Fl f 2027c2aa744SAllan Judeflag or the 2037c2aa744SAllan Jude.Ev IFCONFIG_FORMAT 2047c2aa744SAllan Judeenvironment variable. 2057c2aa744SAllan JudeThe format is specified as a comma separated list of 2067c2aa744SAllan Jude.Sy type:format 2077c2aa744SAllan Judepairs. 2087c2aa744SAllan JudeSee the 2097c2aa744SAllan Jude.Sx EXAMPLES 2107c2aa744SAllan Judesection for more information. 2117c2aa744SAllan JudeThe 2127c2aa744SAllan Jude.Sy types 2137c2aa744SAllan Judeand their associated 2147c2aa744SAllan Jude.Sy format 2157c2aa744SAllan Judestrings are: 216776db16aSAllan Jude.Bl -tag -width ether 2177c2aa744SAllan Jude.It Sy addr 2187c2aa744SAllan JudeAdjust the display of inet and inet6 addresses 2197c2aa744SAllan Jude.Bl -tag -width default 2207c2aa744SAllan Jude.It Sy default 2217c2aa744SAllan JudeDisplay inet and inet6 addresses in the default format, 2227c2aa744SAllan Jude.Sy numeric 2237c2aa744SAllan Jude.It Sy fqdn 2247c2aa744SAllan JudeDisplay inet and inet6 addresses as fully qualified domain names 2257c2aa744SAllan Jude.Pq FQDN 2267c2aa744SAllan Jude.It Sy host 2277c2aa744SAllan JudeDisplay inet and inet6 addresses as unqualified hostnames 2287c2aa744SAllan Jude.It Sy numeric 2297c2aa744SAllan JudeDisplay inet and inet6 addresses in numeric format 2307c2aa744SAllan Jude.El 2317c2aa744SAllan Jude.It Sy ether 2327c2aa744SAllan JudeAdjust the display of link-level ethernet (MAC) addresses 2337c2aa744SAllan Jude.Bl -tag -width default 2347c2aa744SAllan Jude.It Sy colon 2357c2aa744SAllan JudeSeparate address segments with a colon 2367c2aa744SAllan Jude.It Sy dash 2377c2aa744SAllan JudeSeparate address segments with a dash 2387c2aa744SAllan Jude.It Sy default 2397c2aa744SAllan JudeDisplay ethernet addresses in the default format, 2407c2aa744SAllan Jude.Sy colon 2417c2aa744SAllan Jude.El 2427c2aa744SAllan Jude.It Sy inet 2437c2aa744SAllan JudeAdjust the display of inet address subnet masks: 2447c2aa744SAllan Jude.Bl -tag -width default 2457c2aa744SAllan Jude.It Sy cidr 2467c2aa744SAllan JudeDisplay subnet masks in CIDR notation, for example: 2477c2aa744SAllan Jude.br 2487c2aa744SAllan Jude10.0.0.0/8 or 203.0.113.224/26 2497c2aa744SAllan Jude.It Sy default 2507c2aa744SAllan JudeDisplay subnet masks in the default format, 2517c2aa744SAllan Jude.Sy hex 2527c2aa744SAllan Jude.It Sy dotted 2537c2aa744SAllan JudeDisplay subnet masks in dotted quad notation, for example: 2547c2aa744SAllan Jude.br 2557c2aa744SAllan Jude255.255.0.0 or 255.255.255.192 2567c2aa744SAllan Jude.It Sy hex 2577c2aa744SAllan JudeDisplay subnet masks in hexidecimal, for example: 2587c2aa744SAllan Jude.br 2597c2aa744SAllan Jude0xffff0000 or 0xffffffc0 2607c2aa744SAllan Jude.El 2617c2aa744SAllan Jude.It Sy inet6 2627c2aa744SAllan JudeAdjust the display of inet6 address prefixes (subnet masks): 2637c2aa744SAllan Jude.Bl -tag -width default 2647c2aa744SAllan Jude.It Sy cidr 2657c2aa744SAllan JudeDisplay subnet prefix in CIDR notation, for example: 2667c2aa744SAllan Jude.br 2677c2aa744SAllan Jude::1/128 or fe80::1%lo0/64 2687c2aa744SAllan Jude.It Sy default 2697c2aa744SAllan JudeDisplay subnet prefix in the default format 2707c2aa744SAllan Jude.Sy numeric 2717c2aa744SAllan Jude.It Sy numeric 2727c2aa744SAllan JudeDisplay subnet prefix in integer format, for example: 2737c2aa744SAllan Jude.br 2747c2aa744SAllan Judeprefixlen 64 2757c2aa744SAllan Jude.El 2767c2aa744SAllan Jude.El 2777c2aa744SAllan Jude.Pp 2788fae3551SRodney W. GrimesThe following parameters may be set with 2797c7fb079SRuslan Ermilov.Nm : 280e333b944SPhilippe Charnier.Bl -tag -width indent 281d6d1cb48SRobert Watson.It Cm add 282d0353b83SRuslan ErmilovAnother name for the 283d0353b83SRuslan Ermilov.Cm alias 284d0353b83SRuslan Ermilovparameter. 285d0353b83SRuslan ErmilovIntroduced for compatibility 286b09b4efbSRuslan Ermilovwith 287b09b4efbSRuslan Ermilov.Bsx . 2888fae3551SRodney W. Grimes.It Cm alias 2898fae3551SRodney W. GrimesEstablish an additional network address for this interface. 2908fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and 2918fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface. 29299aa831bSChris CostelloIf the address is on the same subnet as the first network address 293aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given. 294aaa34889SBrian SomersUsually 295b09b4efbSRuslan Ermilov.Li 0xffffffff 296aaa34889SBrian Somersis most appropriate. 297fac3d981SDavid E. O'Brien.It Fl alias 298fac3d981SDavid E. O'BrienRemove the network address specified. 299fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it 300fac3d981SDavid E. O'Brienwas no longer needed. 301fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect 302fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will 303fac3d981SDavid E. O'Brienallow you to respecify the host portion. 304cfa1ca9dSYoshinobu Inoue.It Cm anycast 305b09b4efbSRuslan Ermilov(Inet6 only.) 306cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address. 307cfa1ca9dSYoshinobu InoueBased on the current specification, 308cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses. 309cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing 310cfa1ca9dSYoshinobu InoueIPv6 packets. 3118fae3551SRodney W. Grimes.It Cm arp 312b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol 313b09b4efbSRuslan Ermilov.Pq Xr arp 4 314b09b4efbSRuslan Ermilovin mapping 3158fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default). 3168fae3551SRodney W. GrimesThis is currently implemented for mapping between 3178fae3551SRodney W. Grimes.Tn DARPA 3188fae3551SRodney W. GrimesInternet 319b80875bcSDima Dorfmanaddresses and 320b80875bcSDima Dorfman.Tn IEEE 321b80875bcSDima Dorfman802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses). 3228fae3551SRodney W. Grimes.It Fl arp 323b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol 324b09b4efbSRuslan Ermilov.Pq Xr arp 4 . 325deb62e28SRuslan Ermilov.It Cm staticarp 326deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 327deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses, 328deb62e28SRuslan Ermilovand will never send any requests. 329deb62e28SRuslan Ermilov.It Fl staticarp 330deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled, 331deb62e28SRuslan Ermilovthe host will perform normally, 332deb62e28SRuslan Ermilovsending out requests and listening for replies. 3338fae3551SRodney W. Grimes.It Cm broadcast 334b09b4efbSRuslan Ermilov(Inet only.) 3358fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the 3368fae3551SRodney W. Grimesnetwork. 3378fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's. 3388fae3551SRodney W. Grimes.It Cm debug 3398fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on 3408fae3551SRodney W. Grimesextra console error logging. 3418fae3551SRodney W. Grimes.It Fl debug 3428fae3551SRodney W. GrimesDisable driver dependent debugging code. 343ffb079beSMaxim Sobolev.It Cm promisc 344ffb079beSMaxim SobolevPut interface into permanently promiscuous mode. 345ffb079beSMaxim Sobolev.It Fl promisc 346ffb079beSMaxim SobolevDisable permanently promiscuous mode. 3478fae3551SRodney W. Grimes.It Cm delete 348d0353b83SRuslan ErmilovAnother name for the 349d0353b83SRuslan Ermilov.Fl alias 350d0353b83SRuslan Ermilovparameter. 351215940b3SXin LI.It Cm description Ar value , Cm descr Ar value 352215940b3SXin LISpecify a description of the interface. 353215940b3SXin LIThis can be used to label interfaces in situations where they may 354215940b3SXin LIotherwise be difficult to distinguish. 355215940b3SXin LI.It Cm -description , Cm -descr 356215940b3SXin LIClear the interface description. 3578fae3551SRodney W. Grimes.It Cm down 358d0353b83SRuslan ErmilovMark an interface 359d0353b83SRuslan Ermilov.Dq down . 360d0353b83SRuslan ErmilovWhen an interface is marked 361d0353b83SRuslan Ermilov.Dq down , 362d0353b83SRuslan Ermilovthe system will not attempt to 3638fae3551SRodney W. Grimestransmit messages through that interface. 3648fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well. 3658fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface. 3660dad3f0eSMax Laier.It Cm group Ar group-name 3670dad3f0eSMax LaierAssign the interface to a 3680dad3f0eSMax Laier.Dq group . 3690dad3f0eSMax LaierAny interface can be in multiple groups. 3700dad3f0eSMax Laier.Pp 3710dad3f0eSMax LaierCloned interfaces are members of their interface family group by default. 3720dad3f0eSMax LaierFor example, a PPP interface such as 3730dad3f0eSMax Laier.Em ppp0 3740dad3f0eSMax Laieris a member of the PPP interface family group, 3750dad3f0eSMax Laier.Em ppp . 3760dad3f0eSMax Laier.\" The interface(s) the default route(s) point to are members of the 3770dad3f0eSMax Laier.\" .Em egress 3780dad3f0eSMax Laier.\" interface group. 3790dad3f0eSMax Laier.It Cm -group Ar group-name 3800dad3f0eSMax LaierRemove the interface from the given 3810dad3f0eSMax Laier.Dq group . 382331a2db8SHajimu UMEMOTO.It Cm eui64 383331a2db8SHajimu UMEMOTO(Inet6 only.) 384331a2db8SHajimu UMEMOTOFill interface index 385a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address) 386331a2db8SHajimu UMEMOTOautomatically. 38735fd7bc0SBjoern A. Zeeb.It Cm fib Ar fib_number 38835fd7bc0SBjoern A. ZeebSpecify interface FIB. 38935fd7bc0SBjoern A. ZeebA FIB 39035fd7bc0SBjoern A. Zeeb.Ar fib_number 39135fd7bc0SBjoern A. Zeebis assigned to all frames or packets received on that interface. 392818b39edSWarren BlockThe FIB is not inherited, e.g., vlans or other sub-interfaces will use 39335fd7bc0SBjoern A. Zeebthe default FIB (0) irrespective of the parent interface's FIB. 39435fd7bc0SBjoern A. ZeebThe kernel needs to be tuned to support more than the default FIB 39535fd7bc0SBjoern A. Zeebusing the 39635fd7bc0SBjoern A. Zeeb.Va ROUTETABLES 39735fd7bc0SBjoern A. Zeebkernel configuration option, or the 39835fd7bc0SBjoern A. Zeeb.Va net.fibs 39935fd7bc0SBjoern A. Zeebtunable. 400eccfe69aSAndrey V. Elsukov.It Cm tunnelfib Ar fib_number 401eccfe69aSAndrey V. ElsukovSpecify tunnel FIB. 402eccfe69aSAndrey V. ElsukovA FIB 403eccfe69aSAndrey V. Elsukov.Ar fib_number 404eccfe69aSAndrey V. Elsukovis assigned to all packets encapsulated by tunnel interface, e.g., 405eccfe69aSAndrey V. Elsukov.Xr gif 4 406eccfe69aSAndrey V. Elsukovand 407eccfe69aSAndrey V. Elsukov.Xr gre 4 . 40876b4b15fSChris Costello.It Cm maclabel Ar label 40976b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel, 41076b4b15fSChris Costelloset the MAC label to 41176b4b15fSChris Costello.Ar label . 41276b4b15fSChris Costello.\" (see 41376b4b15fSChris Costello.\" .Xr maclabel 7 ) . 414b5436146SPeter Wemm.It Cm media Ar type 415920de530SPeter WemmIf the driver supports the media selection system, set the media type 416920de530SPeter Wemmof the interface to 417b5436146SPeter Wemm.Ar type . 418b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several 419b09b4efbSRuslan Ermilovdifferent physical media connectors. 4204e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet 421b5436146SPeter Wemminterface might support the use of either 422b5436146SPeter Wemm.Tn AUI 423b09b4efbSRuslan Ermilovor twisted pair connectors. 424b09b4efbSRuslan ErmilovSetting the media type to 4254e9e907dSRuslan Ermilov.Cm 10base5/AUI 426b5436146SPeter Wemmwould change the currently active connector to the AUI port. 427b5436146SPeter WemmSetting it to 4284e9e907dSRuslan Ermilov.Cm 10baseT/UTP 429b09b4efbSRuslan Ermilovwould activate twisted pair. 430b09b4efbSRuslan ErmilovRefer to the interfaces' driver 431920de530SPeter Wemmspecific documentation or man page for a complete list of the 432920de530SPeter Wemmavailable types. 433b5436146SPeter Wemm.It Cm mediaopt Ar opts 434920de530SPeter WemmIf the driver supports the media selection system, set the specified 435920de530SPeter Wemmmedia options on the interface. 436b09b4efbSRuslan ErmilovThe 437b09b4efbSRuslan Ermilov.Ar opts 438b09b4efbSRuslan Ermilovargument 439b5436146SPeter Wemmis a comma delimited list of options to apply to the interface. 440b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete 441b5436146SPeter Wemmlist of available options. 442b5436146SPeter Wemm.It Fl mediaopt Ar opts 443920de530SPeter WemmIf the driver supports the media selection system, disable the 444920de530SPeter Wemmspecified media options on the interface. 445e519b1a5SSam Leffler.It Cm mode Ar mode 446e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified 447e519b1a5SSam Leffleroperating mode on the interface to 448e519b1a5SSam Leffler.Ar mode . 449e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes 450eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a 4514e9e907dSRuslan Ermilov.Pq Cm 11a , 452eb9a85caSRuslan Ermilov802.11b 4534e9e907dSRuslan Ermilov.Pq Cm 11b , 454eb9a85caSRuslan Ermilovand 802.11g 4554e9e907dSRuslan Ermilov.Pq Cm 11g 456e519b1a5SSam Leffleroperating modes. 45711139493SMarius Strobl.It Cm inst Ar minst , Cm instance Ar minst 45811139493SMarius StroblSet the media instance to 45911139493SMarius Strobl.Ar minst . 46011139493SMarius StroblThis is useful for devices which have multiple physical layer interfaces 46111139493SMarius Strobl.Pq PHYs . 46297bebf0aSBrooks Davis.It Cm name Ar name 46397bebf0aSBrooks DavisSet the interface name to 46497bebf0aSBrooks Davis.Ar name . 465356ab07eSBjoern A. Zeeb.It Cm rxcsum , txcsum , rxcsum6 , txcsum6 4668fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 4678fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface. 468356ab07eSBjoern A. ZeebThe feature can be turned on selectively per protocol family. 469356ab07eSBjoern A. ZeebUse 470356ab07eSBjoern A. Zeeb.Cm rxcsum6 , txcsum6 471356ab07eSBjoern A. Zeebfor 472356ab07eSBjoern A. Zeeb.Xr ip6 4 473356ab07eSBjoern A. Zeebor 474356ab07eSBjoern A. Zeeb.Cm rxcsum , txcsum 475356ab07eSBjoern A. Zeebotherwise. 4768fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently 4778fbad60dSRuslan Ermilovof each other, so setting one may also set the other. 4788fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably 4798fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers. 480356ab07eSBjoern A. Zeeb.It Fl rxcsum , txcsum , rxcsum6 , txcsum6 4818fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading, 4828fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface. 483356ab07eSBjoern A. ZeebThe feature can be turned off selectively per protocol family. 484356ab07eSBjoern A. ZeebUse 485356ab07eSBjoern A. Zeeb.Fl rxcsum6 , txcsum6 486356ab07eSBjoern A. Zeebfor 487356ab07eSBjoern A. Zeeb.Xr ip6 4 488356ab07eSBjoern A. Zeebor 489356ab07eSBjoern A. Zeeb.Fl rxcsum , txcsum 490356ab07eSBjoern A. Zeebotherwise. 4918fbad60dSRuslan ErmilovThese settings may not always be independent of each other. 492d7097da4SAndre Oppermann.It Cm tso 493d7097da4SAndre OppermannIf the driver supports 494d7097da4SAndre Oppermann.Xr tcp 4 495d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface. 496d7097da4SAndre OppermannSome drivers may not be able to support TSO for 497d7097da4SAndre Oppermann.Xr ip 4 498d7097da4SAndre Oppermannand 499d7097da4SAndre Oppermann.Xr ip6 4 500d7097da4SAndre Oppermannpackets, so they may enable only one of them. 501d7097da4SAndre Oppermann.It Fl tso 502d7097da4SAndre OppermannIf the driver supports 503d7097da4SAndre Oppermann.Xr tcp 4 504d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface. 505d7097da4SAndre OppermannIt will always disable TSO for 506d7097da4SAndre Oppermann.Xr ip 4 507d7097da4SAndre Oppermannand 508d7097da4SAndre Oppermann.Xr ip6 4 . 5091623284fSBjoern A. Zeeb.It Cm tso6 , tso4 5101623284fSBjoern A. ZeebIf the driver supports 5111623284fSBjoern A. Zeeb.Xr tcp 4 5121623284fSBjoern A. Zeebsegmentation offloading for 5131623284fSBjoern A. Zeeb.Xr ip6 4 5141623284fSBjoern A. Zeebor 5151623284fSBjoern A. Zeeb.Xr ip 4 5161623284fSBjoern A. Zeebuse one of these to selectively enabled it only for one protocol family. 5171623284fSBjoern A. Zeeb.It Fl tso6 , tso4 5181623284fSBjoern A. ZeebIf the driver supports 5191623284fSBjoern A. Zeeb.Xr tcp 4 5201623284fSBjoern A. Zeebsegmentation offloading for 5211623284fSBjoern A. Zeeb.Xr ip6 4 5221623284fSBjoern A. Zeebor 5231623284fSBjoern A. Zeeb.Xr ip 4 5241623284fSBjoern A. Zeebuse one of these to selectively disable it only for one protocol family. 525a6575bfcSAndre Oppermann.It Cm lro 526a6575bfcSAndre OppermannIf the driver supports 527a6575bfcSAndre Oppermann.Xr tcp 4 528a6575bfcSAndre Oppermannlarge receive offloading, enable LRO on the interface. 529a6575bfcSAndre Oppermann.It Fl lro 530a6575bfcSAndre OppermannIf the driver supports 531a6575bfcSAndre Oppermann.Xr tcp 4 532a6575bfcSAndre Oppermannlarge receive offloading, disable LRO on the interface. 533de0abf19SSam Leffler.It Cm wol , wol_ucast , wol_mcast , wol_magic 534de0abf19SSam LefflerEnable Wake On Lan (WOL) support, if available. 535de0abf19SSam LefflerWOL is a facility whereby a machine in a low power state may be woken 536de0abf19SSam Lefflerin response to a received packet. 537de0abf19SSam LefflerThere are three types of packets that may wake a system: 538de0abf19SSam Lefflerucast (directed solely to the machine's mac address), 539de0abf19SSam Lefflermcast (directed to a broadcast or multicast address), 540de0abf19SSam Leffleror 541de0abf19SSam Lefflermagic (unicast or multicast frames with a ``magic contents''). 542de0abf19SSam LefflerNot all devices support WOL, those that do indicate the mechanisms 543de0abf19SSam Lefflerthey support in their capabilities. 544de0abf19SSam Leffler.Cm wol 545de0abf19SSam Leffleris a synonym for enabling all available WOL mechanisms. 546de0abf19SSam LefflerTo disable WOL use 547de0abf19SSam Leffler.Fl wol . 5489b776960SBjoern A. Zeeb.It Cm vlanmtu , vlanhwtag, vlanhwfilter, vlanhwcsum, vlanhwtso 549163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable 5500f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 5519b776960SBjoern A. Zeebframe filtering in hardware, checksum offloading, or TSO on VLAN, 552163653e8SYaroslav Tykhiyrespectively. 553163653e8SYaroslav TykhiyNote that this must be issued on a physical interface associated with 554163653e8SYaroslav Tykhiy.Xr vlan 4 , 555163653e8SYaroslav Tykhiynot on a 556163653e8SYaroslav Tykhiy.Xr vlan 4 557163653e8SYaroslav Tykhiyinterface itself. 5580f686c0fSPyun YongHyeon.It Fl vlanmtu , vlanhwtag, vlanhwfilter, vlanhwtso 559163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable 5600f686c0fSPyun YongHyeonreception of extended frames, tag processing in hardware, 5610f686c0fSPyun YongHyeonframe filtering in hardware, or TSO on VLAN, 562163653e8SYaroslav Tykhiyrespectively. 5635061de23SJamie Gritton.It Cm vnet Ar jail 5645061de23SJamie GrittonMove the interface to the 5655061de23SJamie Gritton.Xr jail 8 , 5665061de23SJamie Grittonspecified by name or JID. 5675061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 5685061de23SJamie Grittonfrom the current environment and become visible to the jail. 5695061de23SJamie Gritton.It Fl vnet Ar jail 5705061de23SJamie GrittonReclaim the interface from the 5715061de23SJamie Gritton.Xr jail 8 , 5725061de23SJamie Grittonspecified by name or JID. 5735061de23SJamie GrittonIf the jail has a virtual network stack, the interface will disappear 5745061de23SJamie Grittonfrom the jail, and become visible to the current network environment. 5753a3b019aSRuslan Ermilov.It Cm polling 5761f8f09b0SGleb SmirnoffTurn on 5773a3b019aSRuslan Ermilov.Xr polling 4 5781f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports 5791f8f09b0SGleb Smirnoffthis mode. 5803a3b019aSRuslan Ermilov.It Fl polling 5811f8f09b0SGleb SmirnoffTurn off 5823a3b019aSRuslan Ermilov.Xr polling 4 5831f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface. 5843e61dca0SBrooks Davis.It Cm create 5853e61dca0SBrooks DavisCreate the specified network pseudo-device. 5863e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new 5873e61dca0SBrooks Davisdevice with an arbitrary unit number. 588525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is 58997bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed 59097bebf0aSBrooks Davisin the same 59197bebf0aSBrooks Davis.Nm 59297bebf0aSBrooks Davisinvocation. 5933e61dca0SBrooks Davis.It Cm destroy 5943e61dca0SBrooks DavisDestroy the specified network pseudo-device. 5953e61dca0SBrooks Davis.It Cm plumb 5963e61dca0SBrooks DavisAnother name for the 597b8a7fd3fSYaroslav Tykhiy.Cm create 5983e61dca0SBrooks Davisparameter. 599b09b4efbSRuslan ErmilovIncluded for 600b09b4efbSRuslan Ermilov.Tn Solaris 601b09b4efbSRuslan Ermilovcompatibility. 6023e61dca0SBrooks Davis.It Cm unplumb 6033e61dca0SBrooks DavisAnother name for the 604b8a7fd3fSYaroslav Tykhiy.Cm destroy 6053e61dca0SBrooks Davisparameter. 606b09b4efbSRuslan ErmilovIncluded for 607b09b4efbSRuslan Ermilov.Tn Solaris 608b09b4efbSRuslan Ermilovcompatibility. 6098fae3551SRodney W. Grimes.It Cm metric Ar n 6108fae3551SRodney W. GrimesSet the routing metric of the interface to 6118fae3551SRodney W. Grimes.Ar n , 6128fae3551SRodney W. Grimesdefault 0. 6138fae3551SRodney W. GrimesThe routing metric is used by the routing protocol 6148fae3551SRodney W. Grimes.Pq Xr routed 8 . 6158fae3551SRodney W. GrimesHigher metrics have the effect of making a route 61609a66bdaSJens Schweikhardtless favorable; metrics are counted as additional hops 6178fae3551SRodney W. Grimesto the destination network or host. 6184db32b03SDavid Greenman.It Cm mtu Ar n 6194db32b03SDavid GreenmanSet the maximum transmission unit of the interface to 6204db32b03SDavid Greenman.Ar n , 6214db32b03SDavid Greenmandefault is interface specific. 622b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an 6234db32b03SDavid Greenmaninterface. 624b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have 6254db32b03SDavid Greenmanrange restrictions. 6268fae3551SRodney W. Grimes.It Cm netmask Ar mask 627b09b4efbSRuslan Ermilov.\" (Inet and ISO.) 628b09b4efbSRuslan Ermilov(Inet only.) 6298fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing 6308fae3551SRodney W. Grimesnetworks into sub-networks. 6318fae3551SRodney W. GrimesThe mask includes the network part of the local address 6328fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address. 6338fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number 634b09b4efbSRuslan Ermilovwith a leading 635b09b4efbSRuslan Ermilov.Ql 0x , 636b09b4efbSRuslan Ermilovwith a dot-notation Internet address, 6378fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table 6388fae3551SRodney W. Grimes.Xr networks 5 . 6398fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address 6408fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts, 6418fae3551SRodney W. Grimesand 0's for the host part. 6428fae3551SRodney W. GrimesThe mask should contain at least the standard network portion, 6438fae3551SRodney W. Grimesand the subnet field should be contiguous with the network 6448fae3551SRodney W. Grimesportion. 64512813062SJesper Skriver.Pp 64612813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address. 64712813062SJesper SkriverSee the 64812813062SJesper Skriver.Ar address 64912813062SJesper Skriveroption above for more information. 650cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len 651b09b4efbSRuslan Ermilov(Inet6 only.) 652cfa1ca9dSYoshinobu InoueSpecify that 653cfa1ca9dSYoshinobu Inoue.Ar len 654cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks. 655cfa1ca9dSYoshinobu InoueThe 656cfa1ca9dSYoshinobu Inoue.Ar len 657cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128. 658cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule. 659bfc03b18SStephen McKayIf the parameter is omitted, 64 is used. 6609f1741caSRuslan Ermilov.Pp 6619f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address. 6629f1741caSRuslan ErmilovSee the 6639f1741caSRuslan Ermilov.Ar address 6649f1741caSRuslan Ermilovoption above for more information. 665d6d1cb48SRobert Watson.It Cm remove 666d0353b83SRuslan ErmilovAnother name for the 667d0353b83SRuslan Ermilov.Fl alias 668d0353b83SRuslan Ermilovparameter. 669d0353b83SRuslan ErmilovIntroduced for compatibility 670b09b4efbSRuslan Ermilovwith 671b09b4efbSRuslan Ermilov.Bsx . 672b09b4efbSRuslan Ermilov.Sm off 673b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2 674b09b4efbSRuslan Ermilov.Sm on 6758fae3551SRodney W. GrimesEnable special processing of the link level of the interface. 6768fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however, 677ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation. 678ef8f7ac9SSheldon HearnAn example 679b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type 680b09b4efbSRuslan Ermilovfor some Ethernet cards. 681b09b4efbSRuslan ErmilovRefer to the man page for the specific driver 682b5436146SPeter Wemmfor more information. 683b09b4efbSRuslan Ermilov.Sm off 684b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2 685b09b4efbSRuslan Ermilov.Sm on 6868fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface. 687afbe3a0fSPoul-Henning Kamp.It Cm monitor 688afbe3a0fSPoul-Henning KampPut the interface in monitor mode. 6893706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after 690afbe3a0fSPoul-Henning Kamp.Xr bpf 4 691afbe3a0fSPoul-Henning Kampprocessing. 692afbe3a0fSPoul-Henning Kamp.It Fl monitor 693afbe3a0fSPoul-Henning KampTake the interface out of monitor mode. 6948fae3551SRodney W. Grimes.It Cm up 695e333b944SPhilippe CharnierMark an interface 696e333b944SPhilippe Charnier.Dq up . 697e333b944SPhilippe CharnierThis may be used to enable an interface after an 698b09b4efbSRuslan Ermilov.Dq Nm Cm down . 6998fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface. 7008fae3551SRodney W. GrimesIf the interface was reset when previously marked down, 7018fae3551SRodney W. Grimesthe hardware will be re-initialized. 7025faf8dcbSSam Leffler.El 7035faf8dcbSSam Leffler.Pp 704f6ac2391SJoel DahlThe following parameters are for ICMPv6 Neighbor Discovery Protocol. 7052e77c5abSHiroki SatoNote that the address family keyword 7062e77c5abSHiroki Sato.Dq Li inet6 7072e77c5abSHiroki Satois needed for them: 708a283298cSHiroki Sato.Bl -tag -width indent 709a283298cSHiroki Sato.It Cm accept_rtadv 710a283298cSHiroki SatoSet a flag to enable accepting ICMPv6 Router Advertisement messages. 7115ed65977SHiroki SatoThe 7125ed65977SHiroki Sato.Xr sysctl 8 7135ed65977SHiroki Satovariable 7145ed65977SHiroki Sato.Va net.inet6.ip6.accept_rtadv 7155ed65977SHiroki Satocontrols whether this flag is set by default or not. 716a283298cSHiroki Sato.It Cm -accept_rtadv 717a283298cSHiroki SatoClear a flag 718a283298cSHiroki Sato.Cm accept_rtadv . 71967135128SAllan Jude.It Cm autoconf 72067135128SAllan JudeSet a flag to accept router advertisements on an interface. 72167135128SAllan Jude.It Fl autoconf 72267135128SAllan JudeDisable autoconfiguration. 7235ed65977SHiroki Sato.It Cm no_radr 7245ed65977SHiroki SatoSet a flag to control whether routers from which the system accepts 7255ed65977SHiroki SatoRouter Advertisement messages will be added to the Default Router List 7265ed65977SHiroki Satoor not. 7275ed65977SHiroki SatoWhen the 7285ed65977SHiroki Sato.Cm accept_rtadv 7295ed65977SHiroki Satoflag is disabled, this flag has no effect. 7305ed65977SHiroki SatoThe 7315ed65977SHiroki Sato.Xr sysctl 8 7325ed65977SHiroki Satovariable 7335ed65977SHiroki Sato.Va net.inet6.ip6.no_radr 7345ed65977SHiroki Satocontrols whether this flag is set by default or not. 7355ed65977SHiroki Sato.It Cm -no_radr 7365ed65977SHiroki SatoClear a flag 7375ed65977SHiroki Sato.Cm no_radr . 738a283298cSHiroki Sato.It Cm auto_linklocal 739a283298cSHiroki SatoSet a flag to perform automatic link-local address configuration when 740a53bb70bSJoel Dahlthe interface becomes available. 7415ed65977SHiroki SatoThe 7425ed65977SHiroki Sato.Xr sysctl 8 7435ed65977SHiroki Satovariable 7445ed65977SHiroki Sato.Va net.inet6.ip6.auto_linklocal 7455ed65977SHiroki Satocontrols whether this flag is set by default or not. 746a283298cSHiroki Sato.It Cm -auto_linklocal 747a283298cSHiroki SatoClear a flag 748a283298cSHiroki Sato.Cm auto_linklocal . 749a283298cSHiroki Sato.It Cm defaultif 750a283298cSHiroki SatoSet the specified interface as the default route when there is no 751a283298cSHiroki Satodefault router. 752a283298cSHiroki Sato.It Cm -defaultif 753a283298cSHiroki SatoClear a flag 754a283298cSHiroki Sato.Cm defaultif . 755a283298cSHiroki Sato.It Cm ifdisabled 756a283298cSHiroki SatoSet a flag to disable all of IPv6 network communications on the 75796db02f2SAllan Judespecified interface. 75896db02f2SAllan JudeNote that if there are already configured IPv6 7592e77c5abSHiroki Satoaddresses on that interface, all of them are marked as 7602e77c5abSHiroki Sato.Dq tentative 7612e77c5abSHiroki Satoand DAD will be performed when this flag is cleared. 762a283298cSHiroki Sato.It Cm -ifdisabled 763a283298cSHiroki SatoClear a flag 764a283298cSHiroki Sato.Cm ifdisabled . 765a283298cSHiroki SatoWhen this flag is cleared and 766a283298cSHiroki Sato.Cm auto_linklocal 767a283298cSHiroki Satoflag is enabled, automatic configuration of a link-local address is 768a283298cSHiroki Satoperformed. 769a283298cSHiroki Sato.It Cm nud 770a283298cSHiroki SatoSet a flag to enable Neighbor Unreachability Detection. 771a283298cSHiroki Sato.It Cm -nud 772a283298cSHiroki SatoClear a flag 773a283298cSHiroki Sato.Cm nud . 774164051ceSHajimu UMEMOTO.It Cm no_prefer_iface 7750c7b5530SJeremie Le HenSet a flag to not honor rule 5 of source address selection in RFC 3484. 7760c7b5530SJeremie Le HenIn practice this means the address on the outgoing interface will not be 7770c7b5530SJeremie Le Henpreferred, effectively yielding the decision to the address selection 7780c7b5530SJeremie Le Henpolicy table, configurable with 7790c7b5530SJeremie Le Hen.Xr ip6addrctl 8 . 780164051ceSHajimu UMEMOTO.It Cm -no_prefer_iface 781164051ceSHajimu UMEMOTOClear a flag 782164051ceSHajimu UMEMOTO.Cm no_prefer_iface . 78323e9ffb0SHiroki Sato.It Cm no_dad 78423e9ffb0SHiroki SatoSet a flag to disable Duplicate Address Detection. 78523e9ffb0SHiroki Sato.It Cm -no_dad 78623e9ffb0SHiroki SatoClear a flag 78723e9ffb0SHiroki Sato.Cm no_dad . 788a283298cSHiroki Sato.El 789a283298cSHiroki Sato.Pp 7905dbfa43fSAndrey V. ElsukovThe following parameters are specific for IPv6 addresses. 7915dbfa43fSAndrey V. ElsukovNote that the address family keyword 7925dbfa43fSAndrey V. Elsukov.Dq Li inet6 7935dbfa43fSAndrey V. Elsukovis needed for them: 7945dbfa43fSAndrey V. Elsukov.Bl -tag -width indent 79567135128SAllan Jude.It Cm deprecated 79667135128SAllan JudeSet the IPv6 deprecated address bit. 79767135128SAllan Jude.It Fl deprecated 79867135128SAllan JudeClear the IPv6 deprecated address bit. 79967135128SAllan Jude.It Cm pltime Ar n 80067135128SAllan JudeSet preferred lifetime for the address. 8015dbfa43fSAndrey V. Elsukov.It Cm prefer_source 8025dbfa43fSAndrey V. ElsukovSet a flag to prefer address as a candidate of the source address for 8035dbfa43fSAndrey V. Elsukovoutgoing packets. 8045dbfa43fSAndrey V. Elsukov.It Cm -prefer_source 8055dbfa43fSAndrey V. ElsukovClear a flag 8065dbfa43fSAndrey V. Elsukov.Cm prefer_source . 80767135128SAllan Jude.It Cm vltime Ar n 80867135128SAllan JudeSet valid lifetime for the address. 8095dbfa43fSAndrey V. Elsukov.El 8105dbfa43fSAndrey V. Elsukov.Pp 811b032f27cSSam LefflerThe following parameters are specific to cloning 812b032f27cSSam LefflerIEEE 802.11 wireless interfaces with the 813b032f27cSSam Leffler.Cm create 814b032f27cSSam Lefflerrequest: 8155faf8dcbSSam Leffler.Bl -tag -width indent 816b032f27cSSam Leffler.It Cm wlandev Ar device 817b032f27cSSam LefflerUse 818b032f27cSSam Leffler.Ar device 819b032f27cSSam Leffleras the parent for the cloned device. 820b032f27cSSam Leffler.It Cm wlanmode Ar mode 821b032f27cSSam LefflerSpecify the operating mode for this cloned device. 822b032f27cSSam Leffler.Ar mode 823b032f27cSSam Leffleris one of 824b032f27cSSam Leffler.Cm sta , 825b032f27cSSam Leffler.Cm ahdemo 826b032f27cSSam Leffler(or 827b032f27cSSam Leffler.Cm adhoc-demo ), 828b032f27cSSam Leffler.Cm ibss , 829b032f27cSSam Leffler(or 830b032f27cSSam Leffler.Cm adhoc ), 831b032f27cSSam Leffler.Cm ap , 832b032f27cSSam Leffler(or 833b032f27cSSam Leffler.Cm hostap ), 834b032f27cSSam Leffler.Cm wds , 83510ad9a77SSam Leffler.Cm tdma , 83659aa14a9SRui Paulo.Cm mesh , 837b032f27cSSam Lefflerand 838b032f27cSSam Leffler.Cm monitor . 839b032f27cSSam LefflerThe operating mode of a cloned interface cannot be changed. 84010ad9a77SSam LefflerThe 84110ad9a77SSam Leffler.Cm tdma 84210ad9a77SSam Lefflermode is actually implemented as an 84310ad9a77SSam Leffler.Cm adhoc-demo 84410ad9a77SSam Lefflerinterface with special properties. 845b032f27cSSam Leffler.It Cm wlanbssid Ar bssid 846b032f27cSSam LefflerThe 802.11 mac address to use for the bssid. 847b032f27cSSam LefflerThis must be specified at create time for a legacy 848b032f27cSSam Leffler.Cm wds 849b032f27cSSam Lefflerdevice. 850b032f27cSSam Leffler.It Cm wlanaddr Ar address 851b032f27cSSam LefflerThe local mac address. 852b032f27cSSam LefflerIf this is not specified then a mac address will automatically be assigned 853b032f27cSSam Lefflerto the cloned device. 854b032f27cSSam LefflerTypically this address is the same as the address of the parent device 855b032f27cSSam Lefflerbut if the 856b032f27cSSam Leffler.Cm bssid 857b032f27cSSam Lefflerparameter is specified then the driver will craft a unique address for 858b032f27cSSam Lefflerthe device (if supported). 859b032f27cSSam Leffler.It Cm wdslegacy 860b032f27cSSam LefflerMark a 861b032f27cSSam Leffler.Cm wds 862b032f27cSSam Lefflerdevice as operating in ``legacy mode''. 863b032f27cSSam LefflerLegacy 864b032f27cSSam Leffler.Cm wds 865b032f27cSSam Lefflerdevices have a fixed peer relationship and do not, for example, roam 866b032f27cSSam Lefflerif their peer stops communicating. 867b032f27cSSam LefflerFor completeness a Dynamic WDS (DWDS) interface may marked as 868b032f27cSSam Leffler.Fl wdslegacy . 869b032f27cSSam Leffler.It Cm bssid 870b032f27cSSam LefflerRequest a unique local mac address for the cloned device. 871b032f27cSSam LefflerThis is only possible if the device supports multiple mac addresses. 872b032f27cSSam LefflerTo force use of the parent's mac address use 873b032f27cSSam Leffler.Fl bssid . 874b032f27cSSam Leffler.It Cm beacons 875b032f27cSSam LefflerMark the cloned interface as depending on hardware support to 876b032f27cSSam Lefflertrack received beacons. 877b032f27cSSam LefflerTo have beacons tracked in software use 878b032f27cSSam Leffler.Fl beacons . 879b032f27cSSam LefflerFor 880b032f27cSSam Leffler.Cm hostap 881b032f27cSSam Lefflermode 882b032f27cSSam Leffler.Fl beacons 883b032f27cSSam Lefflercan also be used to indicate no beacons should 884b032f27cSSam Lefflerbe transmitted; this can be useful when creating a WDS configuration but 885b032f27cSSam Leffler.Cm wds 886b032f27cSSam Lefflerinterfaces can only be created as companions to an access point. 887b032f27cSSam Leffler.El 888b032f27cSSam Leffler.Pp 889b032f27cSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces 890b032f27cSSam Lefflercloned with a 891b032f27cSSam Leffler.Cm create 892b032f27cSSam Leffleroperation: 893b032f27cSSam Leffler.Bl -tag -width indent 894b032f27cSSam Leffler.It Cm ampdu 895b032f27cSSam LefflerEnable sending and receiving AMPDU frames when using 802.11n (default). 896b032f27cSSam LefflerThe 802.11n specification states a compliant station must be capable 897a53bb70bSJoel Dahlof receiving AMPDU frames but transmission is optional. 898b032f27cSSam LefflerUse 899b032f27cSSam Leffler.Fl ampdu 900b032f27cSSam Lefflerto disable all use of AMPDU with 802.11n. 901b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 902b032f27cSSam Leffler.Cm ampdutx 903b032f27cSSam Lefflerand 904b032f27cSSam Leffler.Cm ampdurx 905b032f27cSSam Lefflerto control use of AMPDU in one direction. 906b032f27cSSam Leffler.It Cm ampdudensity Ar density 907b032f27cSSam LefflerSet the AMPDU density parameter used when operating with 802.11n. 908b032f27cSSam LefflerThis parameter controls the inter-packet gap for AMPDU frames. 909b032f27cSSam LefflerThe sending device normally controls this setting but a receiving station 910b032f27cSSam Lefflermay request wider gaps. 911b032f27cSSam LefflerLegal values for 912b032f27cSSam Leffler.Ar density 913b032f27cSSam Lefflerare 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds). 914b032f27cSSam LefflerA value of 915b032f27cSSam Leffler.Cm - 916b032f27cSSam Leffleris treated the same as 0. 917b032f27cSSam Leffler.It Cm ampdulimit Ar limit 918b032f27cSSam LefflerSet the limit on packet size for receiving AMPDU frames when operating 919b032f27cSSam Lefflerwith 802.11n. 920b032f27cSSam LefflerLegal values for 921b032f27cSSam Leffler.Ar limit 922b032f27cSSam Lefflerare 8192, 16384, 32768, and 65536 but one can also specify 923b032f27cSSam Lefflerjust the unique prefix: 8, 16, 32, 64. 924b032f27cSSam LefflerNote the sender may limit the size of AMPDU frames to be less 925b032f27cSSam Lefflerthan the maximum specified by the receiving station. 926b032f27cSSam Leffler.It Cm amsdu 927b032f27cSSam LefflerEnable sending and receiving AMSDU frames when using 802.11n. 928b032f27cSSam LefflerBy default AMSDU is received but not transmitted. 929b032f27cSSam LefflerUse 930b032f27cSSam Leffler.Fl amsdu 931b032f27cSSam Lefflerto disable all use of AMSDU with 802.11n. 932b032f27cSSam LefflerFor testing and/or to work around interoperability problems one can use 933b032f27cSSam Leffler.Cm amsdutx 934b032f27cSSam Lefflerand 935b032f27cSSam Leffler.Cm amsdurx 936b032f27cSSam Lefflerto control use of AMSDU in one direction. 937b032f27cSSam Leffler.It Cm amsdulimit Ar limit 938b032f27cSSam LefflerSet the limit on packet size for sending and receiving AMSDU frames 939b032f27cSSam Lefflerwhen operating with 802.11n. 940b032f27cSSam LefflerLegal values for 941b032f27cSSam Leffler.Ar limit 942b032f27cSSam Lefflerare 7935 and 3839 (bytes). 943b032f27cSSam LefflerNote the sender may limit the size of AMSDU frames to be less 944b032f27cSSam Lefflerthan the maximum specified by the receiving station. 945b032f27cSSam LefflerNote also that devices are not required to support the 7935 limit, 946b032f27cSSam Leffleronly 3839 is required by the specification and the larger value 947b032f27cSSam Lefflermay require more memory to be dedicated to support functionality 948b032f27cSSam Lefflerthat is rarely used. 9495faf8dcbSSam Leffler.It Cm apbridge 95021414470SRuslan ErmilovWhen operating as an access point, pass packets between 9515faf8dcbSSam Lefflerwireless clients directly (default). 9525faf8dcbSSam LefflerTo instead let them pass up through the 95321414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use 95421414470SRuslan Ermilov.Fl apbridge . 9555faf8dcbSSam LefflerDisabling the internal bridging 9565faf8dcbSSam Leffleris useful when traffic is to be processed with 9575faf8dcbSSam Lefflerpacket filtering. 958419d8080SPoul-Henning Kamp.It Cm authmode Ar mode 9595faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode. 960b032f27cSSam LefflerNot all adapters support all modes. 961b09b4efbSRuslan ErmilovThe set of 962419d8080SPoul-Henning Kampvalid modes is 9634e9e907dSRuslan Ermilov.Cm none , open , shared 96421414470SRuslan Ermilov(shared key), 9654e9e907dSRuslan Ermilov.Cm 8021x 96621414470SRuslan Ermilov(IEEE 802.1x), 967aeffcba3SSam Lefflerand 9684e9e907dSRuslan Ermilov.Cm wpa 96921414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i). 9705faf8dcbSSam LefflerThe 9714e9e907dSRuslan Ermilov.Cm 8021x 972419d8080SPoul-Henning Kampand 9734e9e907dSRuslan Ermilov.Cm wpa 974aeffcba3SSam Lefflermodes are only useful when using an authentication service 9755faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when 9765faf8dcbSSam Leffleroperating as an access point). 977419d8080SPoul-Henning KampModes are case insensitive. 978fdef6accSSam Leffler.It Cm bgscan 979fdef6accSSam LefflerEnable background scanning when operating as a station. 980fdef6accSSam LefflerBackground scanning is a technique whereby a station associated to 981fdef6accSSam Leffleran access point will temporarily leave the channel to scan for 982fdef6accSSam Lefflerneighboring stations. 983fdef6accSSam LefflerThis allows a station to maintain a cache of nearby access points 984d592cd38SSam Lefflerso that roaming between access points can be done without 985fdef6accSSam Lefflera lengthy scan operation. 986fdef6accSSam LefflerBackground scanning is done only when a station is not busy and 987fdef6accSSam Lefflerany outbound traffic will cancel a scan operation. 988fdef6accSSam LefflerBackground scanning should never cause packets to be lost though 989fdef6accSSam Lefflerthere may be some small latency if outbound traffic interrupts a 990fdef6accSSam Lefflerscan operation. 991fdef6accSSam LefflerBy default background scanning is enabled if the device is capable. 992fdef6accSSam LefflerTo disable background scanning, use 993fdef6accSSam Leffler.Fl bgscan . 994fdef6accSSam LefflerBackground scanning is controlled by the 995fdef6accSSam Leffler.Cm bgscanidle 996fdef6accSSam Lefflerand 997fdef6accSSam Leffler.Cm bgscanintvl 998fdef6accSSam Lefflerparameters. 999fdef6accSSam LefflerBackground scanning must be enabled for roaming; this is an artifact 1000fdef6accSSam Lefflerof the current implementation and may not be required in the future. 1001fdef6accSSam Leffler.It Cm bgscanidle Ar idletime 1002fdef6accSSam LefflerSet the minimum time a station must be idle (not transmitting or 1003fdef6accSSam Lefflerreceiving frames) before a background scan is initiated. 1004fdef6accSSam LefflerThe 1005fdef6accSSam Leffler.Ar idletime 1006fdef6accSSam Lefflerparameter is specified in milliseconds. 1007fdef6accSSam LefflerBy default a station must be idle at least 250 milliseconds before 1008fdef6accSSam Lefflera background scan is initiated. 1009fdef6accSSam LefflerThe idle time may not be set to less than 100 milliseconds. 1010fdef6accSSam Leffler.It Cm bgscanintvl Ar interval 1011fdef6accSSam LefflerSet the interval at which background scanning is attempted. 1012fdef6accSSam LefflerThe 1013fdef6accSSam Leffler.Ar interval 1014fdef6accSSam Lefflerparameter is specified in seconds. 1015d592cd38SSam LefflerBy default a background scan is considered every 300 seconds (5 minutes). 1016fdef6accSSam LefflerThe 1017fdef6accSSam Leffler.Ar interval 1018fdef6accSSam Lefflermay not be set to less than 15 seconds. 1019aeffcba3SSam Leffler.It Cm bintval Ar interval 1020aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in 1021aeffcba3SSam Lefflerad-hoc or ap mode. 1022aeffcba3SSam LefflerThe 1023aeffcba3SSam Leffler.Ar interval 10248f3591a5SSam Lefflerparameter is specified in TU's (1024 usecs). 1025aeffcba3SSam LefflerBy default beacon frames are transmitted every 100 TU's. 1026d7ccef33SSam Leffler.It Cm bmissthreshold Ar count 1027d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station 10288266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point). 1029d7ccef33SSam LefflerThe 1030d7ccef33SSam Leffler.Ar count 10318266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the 10328266d476SRuslan Ermilovupper bound may be reduced according to device capabilities. 1033d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but 1034d7ccef33SSam Lefflerthis may be overridden by the device driver. 1035d7ccef33SSam LefflerAnother name for the 1036d7ccef33SSam Leffler.Cm bmissthreshold 1037d7ccef33SSam Lefflerparameter is 1038d7ccef33SSam Leffler.Cm bmiss . 10395faf8dcbSSam Leffler.It Cm bssid Ar address 10405faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating 10415faf8dcbSSam Leffleras a station in a BSS network. 10425faf8dcbSSam LefflerThis overrides any automatic selection done by the system. 104321414470SRuslan ErmilovTo disable a previously selected access point, supply 10444e9e907dSRuslan Ermilov.Cm any , none , 10455faf8dcbSSam Leffleror 10464e9e907dSRuslan Ermilov.Cm - 10475faf8dcbSSam Lefflerfor the address. 104809a66bdaSJens SchweikhardtThis option is useful when more than one access point uses the same SSID. 10495faf8dcbSSam LefflerAnother name for the 10505faf8dcbSSam Leffler.Cm bssid 10515faf8dcbSSam Lefflerparameter is 10525faf8dcbSSam Leffler.Cm ap . 105329d58c71SSam Leffler.It Cm burst 105429d58c71SSam LefflerEnable packet bursting. 105529d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless 105629d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe 105729d58c71SSam Lefflerspacing is reduced. 105829d58c71SSam LefflerThis technique can significantly increase throughput by reducing 105929d58c71SSam Lefflertransmission overhead. 106029d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification 106129d58c71SSam Lefflerand some devices that do not support QoS may still be capable. 106229d58c71SSam LefflerBy default packet bursting is enabled if a device is capable 106329d58c71SSam Lefflerof doing it. 106429d58c71SSam LefflerTo disable packet bursting, use 106529d58c71SSam Leffler.Fl burst . 10665faf8dcbSSam Leffler.It Cm chanlist Ar channels 10675faf8dcbSSam LefflerSet the desired channels to use when scanning for access 10685faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied 10695faf8dcbSSam Lefflerchannels when operating as an access point. 10705faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with 107121414470SRuslan Ermiloveach element in the list representing either a single channel number or a range 10725faf8dcbSSam Lefflerof the form 10735faf8dcbSSam Leffler.Dq Li a-b . 10745faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible 10755faf8dcbSSam Leffleraccording to the operating characteristics of the device. 10765faf8dcbSSam Leffler.It Cm channel Ar number 10775faf8dcbSSam LefflerSet a single desired channel. 10785faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available 10795faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for. 10805faf8dcbSSam LefflerSetting 10815faf8dcbSSam Lefflerthe channel to 10824a5184dcSSam Leffler.Li any , 10835faf8dcbSSam Leffleror 10844e9e907dSRuslan Ermilov.Cm - 10854a5184dcSSam Lefflerwill clear any desired channel and, if the device is marked up, 10864a5184dcSSam Lefflerforce a scan for a channel to operate on. 10875faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified 10885faf8dcbSSam Lefflerinstead of the channel number. 10898f3591a5SSam Leffler.Pp 10908f3591a5SSam LefflerWhen there are several ways to use a channel the channel 10918f3591a5SSam Lefflernumber/frequency may be appended with attributes to clarify. 10928f3591a5SSam LefflerFor example, if a device is capable of operating on channel 6 10938f3591a5SSam Lefflerwith 802.11n and 802.11g then one can specify that g-only use 10948f3591a5SSam Lefflershould be used by specifying ``6:g''. 10958f3591a5SSam LefflerSimilarly the channel width can be specified by appending it 1096818b39edSWarren Blockwith ``/''; e.g., ``6/40'' specifies a 40MHz wide channel, 10978f3591a5SSam LefflerThese attributes can be combined as in: ``6:ht/40''. 1098c2025a76SJoel DahlThe full set of flags specified following a ``:'' are: 10998f3591a5SSam Leffler.Cm a 11008f3591a5SSam Leffler(802.11a), 11018f3591a5SSam Leffler.Cm b 11028f3591a5SSam Leffler(802.11b), 11038f3591a5SSam Leffler.Cm d 11048f3591a5SSam Leffler(Atheros Dynamic Turbo mode), 11058f3591a5SSam Leffler.Cm g 11068f3591a5SSam Leffler(802.11g), 11078f3591a5SSam Leffler.Cm h 11088f3591a5SSam Leffleror 11098f3591a5SSam Leffler.Cm n 11108f3591a5SSam Leffler(802.11n aka HT), 11118f3591a5SSam Leffler.Cm s 11128f3591a5SSam Leffler(Atheros Static Turbo mode), 11138f3591a5SSam Lefflerand 11148f3591a5SSam Leffler.Cm t 1115fdef6accSSam Leffler(Atheros Dynamic Turbo mode, or appended to ``st'' and ``dt''). 11168f3591a5SSam LefflerThe full set of channel widths following a '/' are: 11178f3591a5SSam Leffler.Cm 5 11188f3591a5SSam Leffler(5MHz aka quarter-rate channel), 11198f3591a5SSam Leffler.Cm 10 11208f3591a5SSam Leffler(10MHz aka half-rate channel), 11218f3591a5SSam Leffler.Cm 20 11228f3591a5SSam Leffler(20MHz mostly for use in specifying ht20), 11238f3591a5SSam Lefflerand 11248f3591a5SSam Leffler.Cm 40 1125c2025a76SJoel Dahl(40MHz mostly for use in specifying ht40). 11268f3591a5SSam LefflerIn addition, 11278f3591a5SSam Lefflera 40MHz HT channel specification may include the location 11288f3591a5SSam Lefflerof the extension channel by appending ``+'' or ``-'' for above and below, 1129818b39edSWarren Blockrespectively; e.g., ``2437:ht/40+'' specifies 40MHz wide HT operation 11308f3591a5SSam Lefflerwith the center channel at frequency 2437 and the extension channel above. 1131b032f27cSSam Leffler.It Cm country Ar name 1132b032f27cSSam LefflerSet the country code to use in calculating the regulatory constraints 1133b032f27cSSam Lefflerfor operation. 1134b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1135b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1136b032f27cSSam Lefflercan be used on a channel are defined by this setting. 1137b032f27cSSam LefflerCountry/Region codes are specified as a 2-character abbreviation 1138b032f27cSSam Lefflerdefined by ISO 3166 or using a longer, but possibly ambiguous, spelling; 1139818b39edSWarren Blocke.g., "ES" and "Spain". 114037b983c0SJoel DahlThe set of country codes are taken from 114137b983c0SJoel Dahl.Pa /etc/regdomain.xml 114237b983c0SJoel Dahland can also 1143b032f27cSSam Lefflerbe viewed with the ``list countries'' request. 1144b032f27cSSam LefflerNote that not all devices support changing the country code from a default 1145b032f27cSSam Lefflersetting; typically stored in EEPROM. 1146b032f27cSSam LefflerSee also 1147b032f27cSSam Leffler.Cm regdomain , 1148b032f27cSSam Leffler.Cm indoor , 1149b032f27cSSam Leffler.Cm outdoor , 1150b032f27cSSam Lefflerand 1151b032f27cSSam Leffler.Cm anywhere . 1152b032f27cSSam Leffler.It Cm dfs 1153b032f27cSSam LefflerEnable Dynamic Frequency Selection (DFS) as specified in 802.11h. 1154b032f27cSSam LefflerDFS embodies several facilities including detection of overlapping 1155b032f27cSSam Lefflerradar signals, dynamic transmit power control, and channel selection 1156b032f27cSSam Leffleraccording to a least-congested criteria. 11571748d1e5SGavin AtkinsonDFS support is mandatory for some 5GHz frequencies in certain 1158818b39edSWarren Blocklocales (e.g., ETSI). 1159b032f27cSSam LefflerBy default DFS is enabled according to the regulatory definitions 116037b983c0SJoel Dahlspecified in 116137b983c0SJoel Dahl.Pa /etc/regdomain.xml 116237b983c0SJoel Dahland the current country code, regdomain, 1163b032f27cSSam Lefflerand channel. 1164b032f27cSSam LefflerNote the underlying device (and driver) must support radar detection 1165b032f27cSSam Lefflerfor full DFS support to work. 1166b032f27cSSam LefflerTo be fully compliant with the local regulatory agency frequencies that 1167b032f27cSSam Lefflerrequire DFS should not be used unless it is fully supported. 1168b032f27cSSam LefflerUse 1169b032f27cSSam Leffler.Fl dfs 1170b032f27cSSam Lefflerto disable this functionality for testing. 1171b032f27cSSam Leffler.It Cm dotd 1172b032f27cSSam LefflerEnable support for the 802.11d specification (default). 1173b032f27cSSam LefflerWhen this support is enabled in station mode, beacon frames that advertise 1174b032f27cSSam Lefflera country code different than the currently configured country code will 1175b032f27cSSam Lefflercause an event to be dispatched to user applications. 1176b032f27cSSam LefflerThis event can be used by the station to adopt that country code and 1177b032f27cSSam Leffleroperate according to the associated regulatory constraints. 1178b032f27cSSam LefflerWhen operating as an access point with 802.11d enabled the beacon and 1179b032f27cSSam Lefflerprobe response frames transmitted will advertise the current regulatory 1180b032f27cSSam Lefflerdomain settings. 1181b032f27cSSam LefflerTo disable 802.11d use 1182b032f27cSSam Leffler.Fl dotd . 1183fdef6accSSam Leffler.It Cm doth 1184b032f27cSSam LefflerEnable 802.11h support including spectrum management. 1185b032f27cSSam LefflerWhen 802.11h is enabled beacon and probe response frames will have 1186b032f27cSSam Lefflerthe SpectrumMgt bit set in the capabilities field and 1187b032f27cSSam Lefflercountry and power constraint information elements will be present. 1188b032f27cSSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA) 1189b032f27cSSam Lefflerwhich are a mechanism to coordinate channel changes by an access point. 1190fdef6accSSam LefflerBy default 802.11h is enabled if the device is capable. 1191fdef6accSSam LefflerTo disable 802.11h use 1192fdef6accSSam Leffler.Fl doth . 11934e0a8f0dSSam Leffler.It Cm deftxkey Ar index 11944e0a8f0dSSam LefflerSet the default key to use for transmission. 11954e0a8f0dSSam LefflerTypically this is only set when using WEP encryption. 11965ce09a9eSSam LefflerNote that you must set a default transmit key 11975ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 11984e0a8f0dSSam LefflerThe 11994e0a8f0dSSam Leffler.Cm weptxkey 12004e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility. 1201aeffcba3SSam Leffler.It Cm dtimperiod Ar period 1202aeffcba3SSam LefflerSet the 1203aeffcba3SSam LefflerDTIM 1204aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when 1205aeffcba3SSam Leffleroperating in ap mode. 1206aeffcba3SSam LefflerThe 1207aeffcba3SSam Leffler.Ar period 1208aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM 1209aeffcba3SSam Lefflerand must be in the range 1 to 15. 12104e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon). 12116edc611eSAdrian Chadd.It Cm quiet 121296db02f2SAllan JudeEnable the use of quiet IE. 121396db02f2SAllan JudeHostap will use this to silence other 12146edc611eSAdrian Chaddstations to reduce interference for radar detection when 12151748d1e5SGavin Atkinsonoperating on 5GHz frequency and doth support is enabled. 12166edc611eSAdrian ChaddUse 12176edc611eSAdrian Chadd.Fl quiet 12186edc611eSAdrian Chaddto disable this functionality. 12196edc611eSAdrian Chadd.It Cm quiet_period Ar period 12206edc611eSAdrian ChaddSet the QUIET 12216edc611eSAdrian Chadd.Ar period 12226edc611eSAdrian Chaddto the number of beacon intervals between the start of regularly 12236edc611eSAdrian Chaddscheduled quiet intervals defined by Quiet element. 12246edc611eSAdrian Chadd.It Cm quiet_count Ar count 12256edc611eSAdrian ChaddSet the QUIET 12266edc611eSAdrian Chadd.Ar count 12276edc611eSAdrian Chaddto the number of TBTTs until the beacon interval during which the 122896db02f2SAllan Judenext quiet interval shall start. 122996db02f2SAllan JudeA value of 1 indicates the quiet 12306edc611eSAdrian Chaddinterval will start during the beacon interval starting at the next 123196db02f2SAllan JudeTBTT. 123296db02f2SAllan JudeA value 0 is reserved. 12336edc611eSAdrian Chadd.It Cm quiet_offset Ar offset 12346edc611eSAdrian ChaddSet the QUIET 12356edc611eSAdrian Chadd.Ar offset 12366edc611eSAdrian Chaddto the offset of the start of the quiet interval from the TBTT 12376edc611eSAdrian Chaddspecified by the Quiet count, expressed in TUs. 12386edc611eSAdrian ChaddThe value of the 12396edc611eSAdrian Chadd.Ar offset 12406edc611eSAdrian Chaddshall be less than one beacon interval. 12416edc611eSAdrian Chadd.It Cm quiet_duration Ar dur 12426edc611eSAdrian ChaddSet the QUIET 12436edc611eSAdrian Chadd.Ar dur 12446edc611eSAdrian Chaddto the duration of the Quiet interval, expressed in TUs. 12456edc611eSAdrian ChaddThe value should be less than beacon interval. 1246fdef6accSSam Leffler.It Cm dturbo 1247fdef6accSSam LefflerEnable the use of Atheros Dynamic Turbo mode when communicating with 1248fdef6accSSam Leffleranother Dynamic Turbo-capable station. 1249fdef6accSSam LefflerDynamic Turbo mode is an Atheros-specific mechanism by which 1250fdef6accSSam Lefflerstations switch between normal 802.11 operation and a ``boosted'' 1251fdef6accSSam Lefflermode in which a 40MHz wide channel is used for communication. 1252fdef6accSSam LefflerStations using Dynamic Turbo mode operate boosted only when the 1253fdef6accSSam Lefflerchannel is free of non-dturbo stations; when a non-dturbo station 1254fdef6accSSam Leffleris identified on the channel all stations will automatically drop 1255fdef6accSSam Lefflerback to normal operation. 1256fdef6accSSam LefflerBy default, Dynamic Turbo mode is not enabled, even if the device is capable. 1257fdef6accSSam LefflerNote that turbo mode (dynamic or static) is only allowed on some 1258fdef6accSSam Lefflerchannels depending on the regulatory constraints; use the 1259fdef6accSSam Leffler.Cm list chan 1260fdef6accSSam Lefflercommand to identify the channels where turbo mode may be used. 1261fdef6accSSam LefflerTo disable Dynamic Turbo mode use 1262fdef6accSSam Leffler.Fl dturbo . 1263b032f27cSSam Leffler.It Cm dwds 1264b032f27cSSam LefflerEnable Dynamic WDS (DWDS) support. 1265b032f27cSSam LefflerDWDS is a facility by which 4-address traffic can be carried between 1266b032f27cSSam Lefflerstations operating in infrastructure mode. 1267b032f27cSSam LefflerA station first associates to an access point and authenticates using 1268818b39edSWarren Blocknormal procedures (e.g., WPA). 1269b032f27cSSam LefflerThen 4-address frames are passed to carry traffic for stations 1270b032f27cSSam Leffleroperating on either side of the wireless link. 1271b032f27cSSam LefflerDWDS extends the normal WDS mechanism by leveraging existing security 1272b032f27cSSam Lefflerprotocols and eliminating static binding. 1273b032f27cSSam Leffler.Pp 1274b032f27cSSam LefflerWhen DWDS is enabled on an access point 4-address frames received from 1275b032f27cSSam Leffleran authorized station will generate a ``DWDS discovery'' event to user 1276b032f27cSSam Lefflerapplications. 1277b032f27cSSam LefflerThis event should be used to create a WDS interface that is bound 1278b032f27cSSam Lefflerto the remote station (and usually plumbed into a bridge). 1279b032f27cSSam LefflerOnce the WDS interface is up and running 4-address traffic then logically 1280b032f27cSSam Lefflerflows through that interface. 1281b032f27cSSam Leffler.Pp 1282b032f27cSSam LefflerWhen DWDS is enabled on a station, traffic with a destination address 1283b032f27cSSam Lefflerdifferent from the peer station are encapsulated in a 4-address frame 1284b032f27cSSam Lefflerand transmitted to the peer. 1285b032f27cSSam LefflerAll 4-address traffic uses the security information of the stations 1286818b39edSWarren Block(e.g., cryptographic keys). 1287b032f27cSSam LefflerA station is associated using 802.11n facilities may transport 1288b032f27cSSam Leffler4-address traffic using these same mechanisms; this depends on available 1289b032f27cSSam Lefflerresources and capabilities of the device. 1290b032f27cSSam LefflerThe DWDS implementation guards against layer 2 routing loops of 1291b032f27cSSam Lefflermulticast traffic. 1292fdef6accSSam Leffler.It Cm ff 1293d592cd38SSam LefflerEnable the use of Atheros Fast Frames when communicating with 1294fdef6accSSam Leffleranother Fast Frames-capable station. 1295fdef6accSSam LefflerFast Frames are an encapsulation technique by which two 802.3 1296fdef6accSSam Lefflerframes are transmitted in a single 802.11 frame. 1297fdef6accSSam LefflerThis can noticeably improve throughput but requires that the 1298fdef6accSSam Lefflerreceiving station understand how to decapsulate the frame. 1299fdef6accSSam LefflerFast frame use is negotiated using the Atheros 802.11 vendor-specific 1300fdef6accSSam Lefflerprotocol extension so enabling use is safe when communicating with 1301fdef6accSSam Lefflernon-Atheros devices. 1302fdef6accSSam LefflerBy default, use of fast frames is enabled if the device is capable. 1303fdef6accSSam LefflerTo explicitly disable fast frames, use 1304fdef6accSSam Leffler.Fl ff . 1305b032f27cSSam Leffler.It Cm fragthreshold Ar length 1306b032f27cSSam LefflerSet the threshold for which transmitted frames are broken into fragments. 1307b032f27cSSam LefflerThe 1308b032f27cSSam Leffler.Ar length 1309b032f27cSSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346. 1310b032f27cSSam LefflerSetting 1311b032f27cSSam Leffler.Ar length 1312b032f27cSSam Lefflerto 1313b032f27cSSam Leffler.Li 2346 , 1314b032f27cSSam Leffler.Cm any , 1315b032f27cSSam Leffleror 1316b032f27cSSam Leffler.Cm - 1317b032f27cSSam Lefflerdisables transmit fragmentation. 1318b032f27cSSam LefflerNot all adapters honor the fragmentation threshold. 1319b032f27cSSam Leffler.It Cm hidessid 1320b032f27cSSam LefflerWhen operating as an access point, do not broadcast the SSID 1321b032f27cSSam Lefflerin beacon frames or respond to probe request frames unless 1322b032f27cSSam Lefflerthey are directed to the ap (i.e., they include the ap's SSID). 1323b032f27cSSam LefflerBy default, the SSID is included in beacon frames and 1324b032f27cSSam Lefflerundirected probe request frames are answered. 1325b032f27cSSam LefflerTo re-enable the broadcast of the SSID etc., use 1326b032f27cSSam Leffler.Fl hidessid . 1327b032f27cSSam Leffler.It Cm ht 1328b032f27cSSam LefflerEnable use of High Throughput (HT) when using 802.11n (default). 1329b032f27cSSam LefflerThe 802.11n specification includes mechanisms for operation 1330b032f27cSSam Leffleron 20MHz and 40MHz wide channels using different signalling mechanisms 1331b032f27cSSam Lefflerthan specified in 802.11b, 802.11g, and 802.11a. 1332b032f27cSSam LefflerStations negotiate use of these facilities, termed HT20 and HT40, 1333b032f27cSSam Lefflerwhen they associate. 1334b032f27cSSam LefflerTo disable all use of 802.11n use 1335b032f27cSSam Leffler.Fl ht . 1336818b39edSWarren BlockTo disable use of HT20 (e.g., to force only HT40 use) use 1337b032f27cSSam Leffler.Fl ht20 . 1338b032f27cSSam LefflerTo disable use of HT40 use 1339b032f27cSSam Leffler.Fl ht40 . 1340b032f27cSSam Leffler.Pp 1341b032f27cSSam LefflerHT configuration is used to ``auto promote'' operation 1342b032f27cSSam Lefflerwhen several choices are available. 1343b032f27cSSam LefflerFor example, if a station associates to an 11n-capable access point 1344b032f27cSSam Lefflerit controls whether the station uses legacy operation, HT20, or HT40. 1345b032f27cSSam LefflerWhen an 11n-capable device is setup as an access point and 1346b032f27cSSam LefflerAuto Channel Selection is used to locate a channel to operate on, 1347b032f27cSSam LefflerHT configuration controls whether legacy, HT20, or HT40 operation is setup 1348b032f27cSSam Leffleron the selected channel. 1349b032f27cSSam LefflerIf a fixed channel is specified for a station then HT configuration can 1350818b39edSWarren Blockbe given as part of the channel specification; e.g., 6:ht/20 to setup 1351b032f27cSSam LefflerHT20 operation on channel 6. 1352b032f27cSSam Leffler.It Cm htcompat 1353b032f27cSSam LefflerEnable use of compatibility support for pre-802.11n devices (default). 1354b032f27cSSam LefflerThe 802.11n protocol specification went through several incompatible iterations. 1355b032f27cSSam LefflerSome vendors implemented 11n support to older specifications that 1356b032f27cSSam Lefflerwill not interoperate with a purely 11n-compliant station. 1357b032f27cSSam LefflerIn particular the information elements included in management frames 1358b032f27cSSam Lefflerfor old devices are different. 1359b032f27cSSam LefflerWhen compatibility support is enabled both standard and compatible data 1360b032f27cSSam Lefflerwill be provided. 1361f30f9d40SRui PauloStations that associate using the compatibility mechanisms are flagged 1362b032f27cSSam Lefflerin ``list sta''. 1363f30f9d40SRui PauloTo disable compatibility support use 1364b032f27cSSam Leffler.Fl htcompat . 1365b032f27cSSam Leffler.It Cm htprotmode Ar technique 1366b032f27cSSam LefflerFor interfaces operating in 802.11n, use the specified 1367b032f27cSSam Leffler.Ar technique 1368b032f27cSSam Lefflerfor protecting HT frames in a mixed legacy/HT network. 1369b032f27cSSam LefflerThe set of valid techniques is 1370b032f27cSSam Leffler.Cm off , 1371b032f27cSSam Lefflerand 1372b032f27cSSam Leffler.Cm rts 1373b032f27cSSam Leffler(RTS/CTS, default). 1374b032f27cSSam LefflerTechnique names are case insensitive. 1375b032f27cSSam Leffler.It Cm inact 1376b032f27cSSam LefflerEnable inactivity processing for stations associated to an 1377b032f27cSSam Leffleraccess point (default). 1378b032f27cSSam LefflerWhen operating as an access point the 802.11 layer monitors 1379b032f27cSSam Lefflerthe activity of each associated station. 1380b032f27cSSam LefflerWhen a station is inactive for 5 minutes it will send several 1381b032f27cSSam Leffler``probe frames'' to see if the station is still present. 1382b032f27cSSam LefflerIf no response is received then the station is deauthenticated. 1383b032f27cSSam LefflerApplications that prefer to handle this work can disable this 1384b032f27cSSam Lefflerfacility by using 1385b032f27cSSam Leffler.Fl inact . 1386b032f27cSSam Leffler.It Cm indoor 1387b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1388b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1389b032f27cSSam Lefflerwhen 802.11d is enabled with 1390b032f27cSSam Leffler.Cm dotd . 1391b032f27cSSam LefflerSee also 1392b032f27cSSam Leffler.Cm outdoor , 1393b032f27cSSam Leffler.Cm anywhere , 1394b032f27cSSam Leffler.Cm country , 1395b032f27cSSam Lefflerand 1396b032f27cSSam Leffler.Cm regdomain . 13974e9e907dSRuslan Ermilov.It Cm list active 1398aeffcba3SSam LefflerDisplay the list of channels available for use taking into account 1399aeffcba3SSam Lefflerany restrictions set with the 14004e9e907dSRuslan Ermilov.Cm chanlist 1401451486b5SSam Lefflerdirective. 1402451486b5SSam LefflerSee the description of 1403451486b5SSam Leffler.Cm list chan 1404451486b5SSam Lefflerfor more information. 14054e9e907dSRuslan Ermilov.It Cm list caps 1406aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating 1407aeffcba3SSam Lefflermodes supported. 14084e9e907dSRuslan Ermilov.It Cm list chan 1409aeffcba3SSam LefflerDisplay the list of channels available for use. 1410451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent 1411451486b5SSam Lefflerfrequency, and usage modes. 1412451486b5SSam LefflerChannels identified as 1413451486b5SSam Leffler.Ql 11g 1414451486b5SSam Lefflerare also usable in 1415451486b5SSam Leffler.Ql 11b 1416451486b5SSam Lefflermode. 1417451486b5SSam LefflerChannels identified as 1418451486b5SSam Leffler.Ql 11a Turbo 1419451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode 14208266d476SRuslan Ermilov(specified with 14218266d476SRuslan Ermilov. Cm mediaopt turbo ) . 1422451486b5SSam LefflerChannels marked with a 1423451486b5SSam Leffler.Ql * 1424451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned. 1425451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until 1426451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication; 1427451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating 1428451486b5SSam Leffleron the channel. 14294e9e907dSRuslan Ermilov.Cm list freq 1430aeffcba3SSam Leffleris another way of requesting this information. 1431d592cd38SSam LefflerBy default a compacted list of channels is displayed; if the 1432d592cd38SSam Leffler.Fl v 1433d592cd38SSam Leffleroption is specified then all channels are shown. 1434b032f27cSSam Leffler.It Cm list countries 1435b032f27cSSam LefflerDisplay the set of country codes and regulatory domains that can be 1436b032f27cSSam Lefflerused in regulatory configuration. 14374e9e907dSRuslan Ermilov.It Cm list mac 143829f0e929SSam LefflerDisplay the current MAC Access Control List state. 143929f0e929SSam LefflerEach address is prefixed with a character that indicates the 144029f0e929SSam Lefflercurrent policy applied to it: 14414e9e907dSRuslan Ermilov.Ql + 144229f0e929SSam Lefflerindicates the address is allowed access, 14434e9e907dSRuslan Ermilov.Ql - 144429f0e929SSam Lefflerindicates the address is denied access, 14454e9e907dSRuslan Ermilov.Ql * 144629f0e929SSam Lefflerindicates the address is present but the current policy open 14474e9e907dSRuslan Ermilov(so the ACL is not consulted). 144859aa14a9SRui Paulo.It Cm list mesh 144959aa14a9SRui PauloDisplays the mesh routing table, used for forwarding packets on a mesh 145059aa14a9SRui Paulonetwork. 1451b032f27cSSam Leffler.It Cm list regdomain 1452b032f27cSSam LefflerDisplay the current regulatory settings including the available channels 1453b032f27cSSam Lefflerand transmit power caps. 1454b032f27cSSam Leffler.It Cm list roam 1455b032f27cSSam LefflerDisplay the parameters that govern roaming operation. 1456b032f27cSSam Leffler.It Cm list txparam 1457b032f27cSSam LefflerDisplay the parameters that govern transmit operation. 1458b032f27cSSam Leffler.It Cm list txpower 1459b032f27cSSam LefflerDisplay the transmit power caps for each channel. 14604e9e907dSRuslan Ermilov.It Cm list scan 1461aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors 1462aeffcba3SSam Lefflerlocated in the vicinity. 1463b032f27cSSam LefflerThis information may be updated automatically by the adapter 1464b032f27cSSam Lefflerwith a 14654e9e907dSRuslan Ermilov.Cm scan 1466fdef6accSSam Lefflerrequest or through background scanning. 1467b032f27cSSam LefflerDepending on the capabilities of the stations the following 1468b032f27cSSam Lefflerflags can be included in the output: 1469b032f27cSSam Leffler.Bl -tag -width 3n 1470b032f27cSSam Leffler.It Li A 1471b032f27cSSam LefflerAuthorized. 1472b032f27cSSam LefflerIndicates that the station is permitted to send/receive data frames. 1473b032f27cSSam Leffler.It Li E 1474b032f27cSSam LefflerExtended Rate Phy (ERP). 1475b032f27cSSam LefflerIndicates that the station is operating in an 802.11g network 1476b032f27cSSam Lefflerusing extended transmit rates. 1477b032f27cSSam Leffler.It Li H 1478b032f27cSSam LefflerHigh Throughput (HT). 1479b032f27cSSam LefflerIndicates that the station is using HT transmit rates. 1480b032f27cSSam LefflerIf a `+' follows immediately after then the station associated 1481b032f27cSSam Lefflerusing deprecated mechanisms supported only when 1482b032f27cSSam Leffler.Cm htcompat 1483b032f27cSSam Leffleris enabled. 1484b032f27cSSam Leffler.It Li P 1485b032f27cSSam LefflerPower Save. 1486b032f27cSSam LefflerIndicates that the station is operating in power save mode. 1487b032f27cSSam Leffler.It Li Q 1488b032f27cSSam LefflerQuality of Service (QoS). 1489b032f27cSSam LefflerIndicates that the station is using QoS encapsulation for 1490b032f27cSSam Lefflerdata frame. 1491b032f27cSSam LefflerQoS encapsulation is enabled only when WME mode is enabled. 149268a63039SBjoern A. Zeeb.It Li S 149368a63039SBjoern A. ZeebShort Preamble. 149468a63039SBjoern A. ZeebIndicates that the station is doing short preamble to optionally 149568a63039SBjoern A. Zeebimprove throughput performance with 802.11g and 802.11b. 1496b032f27cSSam Leffler.It Li T 1497b032f27cSSam LefflerTransitional Security Network (TSN). 1498b032f27cSSam LefflerIndicates that the station associated using TSN; see also 1499b032f27cSSam Leffler.Cm tsn 1500b032f27cSSam Lefflerbelow. 1501b032f27cSSam Leffler.It Li W 1502b032f27cSSam LefflerWi-Fi Protected Setup (WPS). 1503b032f27cSSam LefflerIndicates that the station associated using WPS. 1504b032f27cSSam Leffler.El 1505b032f27cSSam Leffler.Pp 1506b032f27cSSam LefflerBy default interesting information elements captured from the neighboring 1507b032f27cSSam Lefflerstations are displayed at the end of each row. 1508b032f27cSSam LefflerPossible elements include: 1509b032f27cSSam Leffler.Cm WME 1510b032f27cSSam Leffler(station supports WME), 1511b032f27cSSam Leffler.Cm WPA 1512b032f27cSSam Leffler(station supports WPA), 1513ed8b5a93SSam Leffler.Cm WPS 1514ed8b5a93SSam Leffler(station supports WPS), 1515b032f27cSSam Leffler.Cm RSN 1516b032f27cSSam Leffler(station supports 802.11i/RSN), 1517b032f27cSSam Leffler.Cm HTCAP 1518b032f27cSSam Leffler(station supports 802.11n/HT communication), 1519b032f27cSSam Leffler.Cm ATH 1520116c00fbSMaxim Konovalov(station supports Atheros protocol extensions), 1521b032f27cSSam Leffler.Cm VEN 1522b032f27cSSam Leffler(station supports unknown vendor-specific extensions). 1523b032f27cSSam LefflerIf the 1524b032f27cSSam Leffler.Fl v 1525b032f27cSSam Lefflerflag is used all the information elements and their 1526b032f27cSSam Lefflercontents will be shown. 15274f1fb109SGiorgos KeramidasSpecifying the 1528b032f27cSSam Leffler.Fl v 1529b032f27cSSam Lefflerflag also enables display of long SSIDs. 15304f1fb109SGiorgos KeramidasThe 15314e9e907dSRuslan Ermilov.Cm list ap 15324f1fb109SGiorgos Keramidascommand is another way of requesting this information. 15334e9e907dSRuslan Ermilov.It Cm list sta 1534aeffcba3SSam LefflerWhen operating as an access point display the stations that are 1535aeffcba3SSam Lefflercurrently associated. 1536aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as 1537aeffcba3SSam Lefflerneighbors in the IBSS. 153859aa14a9SRui PauloWhen operating in mesh mode display stations identified as 153959aa14a9SRui Pauloneighbors in the MBSS. 1540fdef6accSSam LefflerWhen operating in station mode display the access point. 154197d7b28eSSam LefflerCapabilities advertised by the stations are described under 154297d7b28eSSam Lefflerthe 154397d7b28eSSam Leffler.Cm scan 154497d7b28eSSam Lefflerrequest. 154597d7b28eSSam LefflerDepending on the capabilities of the stations the following 154697d7b28eSSam Lefflerflags can be included in the output: 154797d7b28eSSam Leffler.Bl -tag -width 3n 154897d7b28eSSam Leffler.It Li A 154997d7b28eSSam LefflerAuthorized. 155097d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames. 155197d7b28eSSam Leffler.It Li E 155297d7b28eSSam LefflerExtended Rate Phy (ERP). 155397d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network 155497d7b28eSSam Lefflerusing extended transmit rates. 1555fdef6accSSam Leffler.It Li H 1556fdef6accSSam LefflerHigh Throughput (HT). 1557b032f27cSSam LefflerIndicates that the station is using HT transmit rates. 1558b032f27cSSam LefflerIf a `+' follows immediately after then the station associated 1559b032f27cSSam Lefflerusing deprecated mechanisms supported only when 1560b032f27cSSam Leffler.Cm htcompat 1561b032f27cSSam Leffleris enabled. 156297d7b28eSSam Leffler.It Li P 156397d7b28eSSam LefflerPower Save. 156497d7b28eSSam LefflerIndicates that the station is operating in power save mode. 156597d7b28eSSam Leffler.It Li Q 156697d7b28eSSam LefflerQuality of Service (QoS). 156797d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for 156897d7b28eSSam Lefflerdata frame. 156997d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled. 157068a63039SBjoern A. Zeeb.It Li S 157168a63039SBjoern A. ZeebShort Preamble. 157268a63039SBjoern A. ZeebIndicates that the station is doing short preamble to optionally 157368a63039SBjoern A. Zeebimprove throughput performance with 802.11g and 802.11b. 1574b032f27cSSam Leffler.It Li T 1575b032f27cSSam LefflerTransitional Security Network (TSN). 1576b032f27cSSam LefflerIndicates that the station associated using TSN; see also 1577b032f27cSSam Leffler.Cm tsn 1578b032f27cSSam Lefflerbelow. 1579b032f27cSSam Leffler.It Li W 1580b032f27cSSam LefflerWi-Fi Protected Setup (WPS). 1581b032f27cSSam LefflerIndicates that the station associated using WPS. 158297d7b28eSSam Leffler.El 1583d592cd38SSam Leffler.Pp 1584d592cd38SSam LefflerBy default information elements received from associated stations 1585d592cd38SSam Lefflerare displayed in a short form; the 1586d592cd38SSam Leffler.Fl v 1587116c00fbSMaxim Konovalovflag causes this information to be displayed symbolically. 15884e9e907dSRuslan Ermilov.It Cm list wme 158987a8e294SSam LefflerDisplay the current channel parameters to use when operating in WME mode. 159087a8e294SSam LefflerIf the 159187a8e294SSam Leffler.Fl v 159287a8e294SSam Leffleroption is specified then both channel and BSS parameters are displayed 159387a8e294SSam Lefflerfor each AC (first channel, then BSS). 1594aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be 1595aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful 1596aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled. 1597aeffcba3SSam LefflerSee the description of the 15984e9e907dSRuslan Ermilov.Cm wme 1599aeffcba3SSam Lefflerdirective for information on the various parameters. 1600b032f27cSSam Leffler.It Cm maxretry Ar count 1601b032f27cSSam LefflerSet the maximum number of tries to use in sending unicast frames. 1602b032f27cSSam LefflerThe default setting is 6 but drivers may override this with a value 1603b032f27cSSam Lefflerthey choose. 1604439b4702SSam Leffler.It Cm mcastrate Ar rate 1605439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames. 1606818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1607439b4702SSam LefflerThis rate should be valid for the current operating conditions; 1608439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an 1609439b4702SSam Lefflerappropriate rate. 1610b032f27cSSam Leffler.It Cm mgtrate Ar rate 1611b032f27cSSam LefflerSet the rate for transmitting management and/or control frames. 1612818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1613b032f27cSSam Leffler.It Cm outdoor 1614b032f27cSSam LefflerSet the location to use in calculating regulatory constraints. 1615b032f27cSSam LefflerThe location is also advertised in beacon and probe response frames 1616b032f27cSSam Lefflerwhen 802.11d is enabled with 1617b032f27cSSam Leffler.Cm dotd . 1618b032f27cSSam LefflerSee also 1619b032f27cSSam Leffler.Cm anywhere , 1620b032f27cSSam Leffler.Cm country , 1621b032f27cSSam Leffler.Cm indoor , 1622b032f27cSSam Lefflerand 1623b032f27cSSam Leffler.Cm regdomain . 1624419d8080SPoul-Henning Kamp.It Cm powersave 16255faf8dcbSSam LefflerEnable powersave operation. 162621414470SRuslan ErmilovWhen operating as a client, the station will conserve power by 16275faf8dcbSSam Lefflerperiodically turning off the radio and listening for 16285faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting. 16295faf8dcbSSam LefflerThe station must then retrieve the packets. 1630fdef6accSSam LefflerNot all devices support power save operation as a client. 1631fdef6accSSam LefflerThe 802.11 specification requires that all access points support 1632fdef6accSSam Lefflerpower save but some drivers do not. 16335faf8dcbSSam LefflerUse 16345faf8dcbSSam Leffler.Fl powersave 1635fdef6accSSam Lefflerto disable powersave operation when operating as a client. 1636419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep 16378f3591a5SSam LefflerSet the desired max powersave sleep time in TU's (1024 usecs). 16388f3591a5SSam LefflerBy default the max powersave sleep time is 100 TU's. 1639a6b03f42SSam Leffler.It Cm protmode Ar technique 16405faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified 1641d04b5dfeSRuslan Ermilov.Ar technique 1642d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network. 1643a6b03f42SSam LefflerThe set of valid techniques is 16444e9e907dSRuslan Ermilov.Cm off , cts 1645a6b03f42SSam Leffler(CTS to self), 1646a6b03f42SSam Lefflerand 16474e9e907dSRuslan Ermilov.Cm rtscts 1648a6b03f42SSam Leffler(RTS/CTS). 1649a6b03f42SSam LefflerTechnique names are case insensitive. 1650fdef6accSSam LefflerNot all devices support 1651fdef6accSSam Leffler.Cm cts 1652fdef6accSSam Leffleras a protection technique. 1653fa56f745SSam Leffler.It Cm pureg 1654fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only 1655fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not 1656fa56f745SSam Lefflerpermitted to associate). 1657fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use 1658fa56f745SSam Leffler.Fl pureg . 1659b032f27cSSam Leffler.It Cm puren 1660b032f27cSSam LefflerWhen operating as an access point in 802.11n mode allow only 1661b032f27cSSam LefflerHT-capable stations to associate (legacy stations are not 1662b032f27cSSam Lefflerpermitted to associate). 1663b032f27cSSam LefflerTo allow both HT and legacy stations to associate, use 1664b032f27cSSam Leffler.Fl puren . 1665b032f27cSSam Leffler.It Cm regdomain Ar sku 1666b032f27cSSam LefflerSet the regulatory domain to use in calculating the regulatory constraints 1667b032f27cSSam Lefflerfor operation. 1668b032f27cSSam LefflerIn particular the set of available channels, how the wireless device 1669b032f27cSSam Lefflerwill operation on the channels, and the maximum transmit power that 1670b032f27cSSam Lefflercan be used on a channel are defined by this setting. 167137b983c0SJoel DahlRegdomain codes (SKU's) are taken from 167237b983c0SJoel Dahl.Pa /etc/regdomain.xml 167337b983c0SJoel Dahland can also 1674b032f27cSSam Lefflerbe viewed with the ``list countries'' request. 1675b032f27cSSam LefflerNote that not all devices support changing the regdomain from a default 1676b032f27cSSam Lefflersetting; typically stored in EEPROM. 1677b032f27cSSam LefflerSee also 1678b032f27cSSam Leffler.Cm country , 1679b032f27cSSam Leffler.Cm indoor , 1680b032f27cSSam Leffler.Cm outdoor , 1681b032f27cSSam Lefflerand 1682b032f27cSSam Leffler.Cm anywhere . 168351947cb6SSam Leffler.It Cm rifs 168451947cb6SSam LefflerEnable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n 168551947cb6SSam Leffleron an HT channel. 168651947cb6SSam LefflerNote that RIFS must be supported by both the station and access point 168751947cb6SSam Lefflerfor it to be used. 168851947cb6SSam LefflerTo disable RIFS use 168951947cb6SSam Leffler.Fl rifs . 1690b032f27cSSam Leffler.It Cm roam:rate Ar rate 1691b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1692b032f27cSSam LefflerThe 1693b032f27cSSam Leffler.Ar rate 1694b032f27cSSam Lefflerparameter specifies the transmit rate in megabits 1695b032f27cSSam Lefflerat which roaming should be considered. 1696b032f27cSSam LefflerIf the current transmit rate drops below this setting and background scanning 1697b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1698b032f27cSSam Leffleravailable and switch over to it. 1699b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1700b032f27cSSam Lefflervalid according to the 1701b032f27cSSam Leffler.Cm scanvalid 1702b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1703b032f27cSSam Lefflerany selection occurs. 1704b032f27cSSam LefflerEach channel type has a separate rate threshold; the default values are: 1705b032f27cSSam Leffler12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng). 1706b032f27cSSam Leffler.It Cm roam:rssi Ar rssi 1707b032f27cSSam LefflerSet the threshold for controlling roaming when operating in a BSS. 1708b032f27cSSam LefflerThe 1709b032f27cSSam Leffler.Ar rssi 1710b032f27cSSam Lefflerparameter specifies the receive signal strength in dBm units 1711b032f27cSSam Lefflerat which roaming should be considered. 1712b032f27cSSam LefflerIf the current rssi drops below this setting and background scanning 1713b032f27cSSam Leffleris enabled, then the system will check if a more desirable access point is 1714b032f27cSSam Leffleravailable and switch over to it. 1715b032f27cSSam LefflerThe current scan cache contents are used if they are considered 1716b032f27cSSam Lefflervalid according to the 1717b032f27cSSam Leffler.Cm scanvalid 1718b032f27cSSam Lefflerparameter; otherwise a background scan operation is triggered before 1719b032f27cSSam Lefflerany selection occurs. 1720b3c97464SRui PauloEach channel type has a separate rssi threshold; the default values are 1721b032f27cSSam Lefflerall 7 dBm. 17225faf8dcbSSam Leffler.It Cm roaming Ar mode 17235faf8dcbSSam LefflerWhen operating as a station, control how the system will 17245faf8dcbSSam Lefflerbehave when communication with the current access point 17255faf8dcbSSam Leffleris broken. 172621414470SRuslan ErmilovThe 172721414470SRuslan Ermilov.Ar mode 172821414470SRuslan Ermilovargument may be one of 17294e9e907dSRuslan Ermilov.Cm device 17305faf8dcbSSam Leffler(leave it to the hardware device to decide), 17314e9e907dSRuslan Ermilov.Cm auto 173221414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate), 17334e9e907dSRuslan Ermilov.Cm manual 17345faf8dcbSSam Leffler(do nothing until explicitly instructed). 173521414470SRuslan ErmilovBy default, the device is left to handle this if it is 173621414470SRuslan Ermilovcapable; otherwise, the operating system will automatically 17375faf8dcbSSam Lefflerattempt to reestablish communication. 1738fdef6accSSam LefflerManual mode is used by applications such as 1739fdef6accSSam Leffler.Xr wpa_supplicant 8 1740fdef6accSSam Lefflerthat want to control the selection of an access point. 1741a6b03f42SSam Leffler.It Cm rtsthreshold Ar length 17425faf8dcbSSam LefflerSet the threshold for which 1743a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an 1744a6b03f42SSam LefflerRTS 1745a6b03f42SSam Lefflercontrol frame. 1746d04b5dfeSRuslan ErmilovThe 1747d04b5dfeSRuslan Ermilov.Ar length 1748d04b5dfeSRuslan Ermilovargument 1749aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346. 1750aeffcba3SSam LefflerSetting 1751aeffcba3SSam Leffler.Ar length 1752aeffcba3SSam Lefflerto 17534e9e907dSRuslan Ermilov.Li 2346 , 17544e9e907dSRuslan Ermilov.Cm any , 1755aeffcba3SSam Leffleror 17564e9e907dSRuslan Ermilov.Cm - 1757aeffcba3SSam Lefflerdisables transmission of RTS frames. 1758b032f27cSSam LefflerNot all adapters support setting the RTS threshold. 17595faf8dcbSSam Leffler.It Cm scan 1760aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and 1761aeffcba3SSam Lefflerdisplay all stations found. 1762aeffcba3SSam LefflerOnly the super-user can initiate a scan. 1763b032f27cSSam LefflerSee 1764b032f27cSSam Leffler.Cm list scan 1765b032f27cSSam Lefflerfor information on the display. 1766b032f27cSSam LefflerBy default a background scan is done; otherwise a foreground 1767b032f27cSSam Lefflerscan is done and the station may roam to a different access point. 1768aeffcba3SSam LefflerThe 17694e9e907dSRuslan Ermilov.Cm list scan 1770aeffcba3SSam Lefflerrequest can be used to show recent scan results without 1771aeffcba3SSam Lefflerinitiating a new scan. 1772fdef6accSSam Leffler.It Cm scanvalid Ar threshold 1773fdef6accSSam LefflerSet the maximum time the scan cache contents are considered valid; 1774818b39edSWarren Blocki.e., will be used without first triggering a scan operation to 1775fdef6accSSam Lefflerrefresh the data. 1776fdef6accSSam LefflerThe 1777fdef6accSSam Leffler.Ar threshold 1778fdef6accSSam Lefflerparameter is specified in seconds and defaults to 60 seconds. 1779fdef6accSSam LefflerThe minimum setting for 1780fdef6accSSam Leffler.Ar threshold 1781fdef6accSSam Leffleris 10 seconds. 1782fdef6accSSam LefflerOne should take care setting this threshold; if it is set too low 1783fdef6accSSam Lefflerthen attempts to roam to another access point may trigger unnecessary 1784fdef6accSSam Lefflerbackground scan operations. 1785b032f27cSSam Leffler.It Cm shortgi 1786b032f27cSSam LefflerEnable use of Short Guard Interval when operating in 802.11n 1787b032f27cSSam Leffleron an HT channel. 1788b032f27cSSam LefflerNB: this currently enables Short GI on both HT40 and HT20 channels. 1789b032f27cSSam LefflerTo disable Short GI use 1790b032f27cSSam Leffler.Fl shortgi . 179151947cb6SSam Leffler.It Cm smps 179251947cb6SSam LefflerEnable use of Static Spatial Multiplexing Power Save (SMPS) 179351947cb6SSam Lefflerwhen operating in 802.11n. 179451947cb6SSam LefflerA station operating with Static SMPS maintains only a single 179551947cb6SSam Lefflerreceive chain active (this can significantly reduce power consumption). 179651947cb6SSam LefflerTo disable SMPS use 179751947cb6SSam Leffler.Fl smps . 179851947cb6SSam Leffler.It Cm smpsdyn 179951947cb6SSam LefflerEnable use of Dynamic Spatial Multiplexing Power Save (SMPS) 180051947cb6SSam Lefflerwhen operating in 802.11n. 180151947cb6SSam LefflerA station operating with Dynamic SMPS maintains only a single 180251947cb6SSam Lefflerreceive chain active but switches to multiple receive chains when it 180351947cb6SSam Lefflerreceives an RTS frame (this can significantly reduce power consumption). 180451947cb6SSam LefflerNote that stations cannot distinguish between RTS/CTS intended to 180551947cb6SSam Lefflerenable multiple receive chains and those used for other purposes. 180651947cb6SSam LefflerTo disable SMPS use 180751947cb6SSam Leffler.Fl smps . 1808b032f27cSSam Leffler.It Cm ssid Ar ssid 1809b032f27cSSam LefflerSet the desired Service Set Identifier (aka network name). 1810b032f27cSSam LefflerThe SSID is a string up to 32 characters 1811b032f27cSSam Lefflerin length and may be specified as either a normal string or in 1812b032f27cSSam Lefflerhexadecimal when preceded by 1813b032f27cSSam Leffler.Ql 0x . 1814b032f27cSSam LefflerAdditionally, the SSID may be cleared by setting it to 1815b032f27cSSam Leffler.Ql - . 181610ad9a77SSam Leffler.It Cm tdmaslot Ar slot 181710ad9a77SSam LefflerWhen operating with TDMA, use the specified 181810ad9a77SSam Leffler.Ar slot 181910ad9a77SSam Lefflerconfiguration. 182010ad9a77SSam LefflerThe 182110ad9a77SSam Leffler.Ar slot 182210ad9a77SSam Leffleris a number between 0 and the maximum number of slots in the BSS. 182310ad9a77SSam LefflerNote that a station configured as slot 0 is a master and 182410ad9a77SSam Lefflerwill broadcast beacon frames advertising the BSS; 182510ad9a77SSam Lefflerstations configured to use other slots will always 182610ad9a77SSam Lefflerscan to locate a master before they ever transmit. 182710ad9a77SSam LefflerBy default 182810ad9a77SSam Leffler.Cm tdmaslot 182910ad9a77SSam Leffleris set to 1. 183010ad9a77SSam Leffler.It Cm tdmaslotcnt Ar cnt 183110ad9a77SSam LefflerWhen operating with TDMA, setup a BSS with 183210ad9a77SSam Leffler.Ar cnt 183310ad9a77SSam Lefflerslots. 183410ad9a77SSam LefflerThe slot count may be at most 8. 183510ad9a77SSam LefflerThe current implementation is only tested with two stations 1836818b39edSWarren Block(i.e., point to point applications). 183710ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 183810ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 183910ad9a77SSam LefflerBy default 184010ad9a77SSam Leffler.Cm tdmaslotcnt 184110ad9a77SSam Leffleris set to 2. 184210ad9a77SSam Leffler.It Cm tdmaslotlen Ar len 184310ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that each station has a slot 184410ad9a77SSam Leffler.Ar len 184510ad9a77SSam Lefflermicroseconds long. 184610ad9a77SSam LefflerThe slot length must be at least 150 microseconds (1/8 TU) 184710ad9a77SSam Lefflerand no more than 65 milliseconds. 184810ad9a77SSam LefflerNote that setting too small a slot length may result in poor channel 184910ad9a77SSam Lefflerbandwidth utilization due to factors such as timer granularity and 185010ad9a77SSam Lefflerguard time. 185110ad9a77SSam LefflerThis setting is only meaningful when a station is configured as slot 0; 185210ad9a77SSam Lefflerother stations adopt this setting from the BSS they join. 185310ad9a77SSam LefflerBy default 185410ad9a77SSam Leffler.Cm tdmaslotlen 185510ad9a77SSam Leffleris set to 10 milliseconds. 185610ad9a77SSam Leffler.It Cm tdmabintval Ar intval 185710ad9a77SSam LefflerWhen operating with TDMA, setup a BSS such that beacons are transmitted every 185810ad9a77SSam Leffler.Ar intval 185910ad9a77SSam Lefflersuperframes to synchronize the TDMA slot timing. 1860818b39edSWarren BlockA superframe is defined as the number of slots times the slot length; e.g., 186110ad9a77SSam Lefflera BSS with two slots of 10 milliseconds has a 20 millisecond superframe. 186210ad9a77SSam LefflerThe beacon interval may not be zero. 186310ad9a77SSam LefflerA lower setting of 186410ad9a77SSam Leffler.Cm tdmabintval 186510ad9a77SSam Lefflercauses the timers to be resynchronized more often; this can be help if 186610ad9a77SSam Lefflersignificant timer drift is observed. 186710ad9a77SSam LefflerBy default 186810ad9a77SSam Leffler.Cm tdmabintval 186910ad9a77SSam Leffleris set to 5. 1870b032f27cSSam Leffler.It Cm tsn 1871b032f27cSSam LefflerWhen operating as an access point with WPA/802.11i allow legacy 1872b032f27cSSam Lefflerstations to associate using static key WEP and open authentication. 1873b032f27cSSam LefflerTo disallow legacy station use of WEP, use 1874b032f27cSSam Leffler.Fl tsn . 1875a6b03f42SSam Leffler.It Cm txpower Ar power 18765faf8dcbSSam LefflerSet the power used to transmit frames. 1877d04b5dfeSRuslan ErmilovThe 1878d04b5dfeSRuslan Ermilov.Ar power 1879d592cd38SSam Lefflerargument is specified in .5 dBm units. 1880a6b03f42SSam LefflerOut of range values are truncated. 1881a6b03f42SSam LefflerTypically only a few discreet power settings are available and 1882a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value. 1883b032f27cSSam LefflerNot all adapters support changing the transmit power. 1884b032f27cSSam Leffler.It Cm ucastrate Ar rate 1885b032f27cSSam LefflerSet a fixed rate for transmitting unicast frames. 1886818b39edSWarren BlockRates are specified as megabits/second in decimal; e.g.,\& 5.5 for 5.5 Mb/s. 1887b032f27cSSam LefflerThis rate should be valid for the current operating conditions; 1888b032f27cSSam Lefflerif an invalid rate is specified drivers are free to chose an 1889b032f27cSSam Lefflerappropriate rate. 1890419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode 18915faf8dcbSSam LefflerSet the desired WEP mode. 1892b032f27cSSam LefflerNot all adapters support all modes. 1893b09b4efbSRuslan ErmilovThe set of valid modes is 18944e9e907dSRuslan Ermilov.Cm off , on , 1895419d8080SPoul-Henning Kampand 18964e9e907dSRuslan Ermilov.Cm mixed . 1897d04b5dfeSRuslan ErmilovThe 18984e9e907dSRuslan Ermilov.Cm mixed 1899419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access 1900b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic. 1901b032f27cSSam LefflerOn these adapters, 19024e9e907dSRuslan Ermilov.Cm on 1903b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections. 1904b032f27cSSam LefflerOn other adapters, 19054e9e907dSRuslan Ermilov.Cm on 1906419d8080SPoul-Henning Kampis generally another name for 19074e9e907dSRuslan Ermilov.Cm mixed . 1908419d8080SPoul-Henning KampModes are case insensitive. 1909419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index 19105faf8dcbSSam LefflerSet the WEP key to be used for transmission. 19114e0a8f0dSSam LefflerThis is the same as setting the default transmission key with 19124e0a8f0dSSam Leffler.Cm deftxkey . 1913b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key 19145faf8dcbSSam LefflerSet the selected WEP key. 1915b09b4efbSRuslan ErmilovIf an 1916419d8080SPoul-Henning Kamp.Ar index 1917b09b4efbSRuslan Ermilovis not given, key 1 is set. 1918b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13 1919c2025a76SJoel Dahlcharacters (40 or 104 bits) depending on the local network and the 1920b09b4efbSRuslan Ermilovcapabilities of the adaptor. 1921b09b4efbSRuslan ErmilovIt may be specified either as a plain 1922e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by 1923b09b4efbSRuslan Ermilov.Ql 0x . 1924d8f2e345SWarner LoshFor maximum portability, hex keys are recommended; 1925d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific. 19263706a3a8SRuslan ErmilovIn particular, the 19273706a3a8SRuslan Ermilov.Tn Windows 19283706a3a8SRuslan Ermilovdrivers do this mapping differently to 1929a61d9c47SRuslan Ermilov.Fx . 1930419d8080SPoul-Henning KampA key may be cleared by setting it to 1931b09b4efbSRuslan Ermilov.Ql - . 1932b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys. 1933b032f27cSSam LefflerSome adapters support more than four keys. 1934b09b4efbSRuslan ErmilovIf that is the case, then the first four keys 1935419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor 1936419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM. 19375ce09a9eSSam Leffler.Pp 19385ce09a9eSSam LefflerNote that you must set a default transmit key with 19395ce09a9eSSam Leffler.Cm deftxkey 19405ce09a9eSSam Lefflerfor the system to know which key to use in encrypting outbound traffic. 19415faf8dcbSSam Leffler.It Cm wme 1942aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available, 19435faf8dcbSSam Lefflerfor the specified interface. 19445faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the 19455faf8dcbSSam Lefflerefficient communication of realtime and multimedia data. 194621414470SRuslan ErmilovTo disable WME support, use 19475faf8dcbSSam Leffler.Fl wme . 1948b032f27cSSam LefflerAnother name for this parameter is 1949b032f27cSSam Leffler.Cm wmm . 1950aeffcba3SSam Leffler.Pp 1951aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use. 1952aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and 1953aeffcba3SSam Lefflersplit into those that are used by a station when acting 1954aeffcba3SSam Leffleras an access point and those for client stations in the BSS. 1955aeffcba3SSam LefflerThe latter are received from the access point and may not be changed 1956aeffcba3SSam Leffler(at the station). 1957aeffcba3SSam LefflerThe following Access Categories are recognized: 1958aeffcba3SSam Leffler.Pp 19594e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact 1960aeffcba3SSam Leffler.It Cm AC_BE 19614e9e907dSRuslan Ermilov(or 19624e9e907dSRuslan Ermilov.Cm BE ) 19634e9e907dSRuslan Ermilovbest effort delivery, 1964aeffcba3SSam Leffler.It Cm AC_BK 19654e9e907dSRuslan Ermilov(or 19664e9e907dSRuslan Ermilov.Cm BK ) 19674e9e907dSRuslan Ermilovbackground traffic, 1968aeffcba3SSam Leffler.It Cm AC_VI 19694e9e907dSRuslan Ermilov(or 19704e9e907dSRuslan Ermilov.Cm VI ) 19714e9e907dSRuslan Ermilovvideo traffic, 1972aeffcba3SSam Leffler.It Cm AC_VO 19734e9e907dSRuslan Ermilov(or 19744e9e907dSRuslan Ermilov.Cm VO ) 19754e9e907dSRuslan Ermilovvoice traffic. 19765faf8dcbSSam Leffler.El 19775faf8dcbSSam Leffler.Pp 1978aeffcba3SSam LefflerAC parameters are case-insensitive. 1979aeffcba3SSam LefflerTraffic classification is done in the operating system using the 1980aeffcba3SSam Lefflervlan priority associated with data frames or the 1981aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames. 19824e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the 1983aeffcba3SSam LefflerBest Effort (BE) category. 1984aeffcba3SSam Leffler.Bl -tag -width indent 1985aeffcba3SSam Leffler.It Cm ack Ar ac 1986aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station; 1987aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station 1988aeffcba3SSam Lefflerrequire an ACK response from the receiving station. 1989aeffcba3SSam LefflerTo disable waiting for an ACK use 1990aeffcba3SSam Leffler.Fl ack . 1991aeffcba3SSam LefflerThis parameter is applied only to the local station. 1992aeffcba3SSam Leffler.It Cm acm Ar ac 1993aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism 1994aeffcba3SSam Lefflerfor transmissions by the local station. 1995aeffcba3SSam LefflerTo disable the ACM use 1996aeffcba3SSam Leffler.Fl acm . 1997aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 1998aeffcba3SSam Lefflerthe setting received from the access point. 1999aeffcba3SSam LefflerNB: ACM is not supported right now. 2000aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count 2001aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS) 2002aeffcba3SSam Lefflerchannel access parameter to use for transmissions 2003aeffcba3SSam Lefflerby the local station. 2004aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2005aeffcba3SSam Lefflerthe setting received from the access point. 2006aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count 2007aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions 2008aeffcba3SSam Lefflerby the local station. 2009aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2010aeffcba3SSam Lefflerthe setting received from the access point. 2011aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count 2012aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions 2013aeffcba3SSam Lefflerby the local station. 2014aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2015aeffcba3SSam Lefflerthe setting received from the access point. 2016aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit 2017aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter 2018aeffcba3SSam Lefflerto use for transmissions by the local station. 2019aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station 2020aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium. 2021aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates 2022aeffcba3SSam Lefflerthe setting received from the access point. 2023aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count 2024aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS. 2025aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2026aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count 2027aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS. 2028aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2029aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count 2030aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS. 2031aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2032aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit 2033aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS. 2034aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode. 2035aeffcba3SSam Leffler.El 2036b032f27cSSam Leffler.It Cm wps 2037b032f27cSSam LefflerEnable Wireless Privacy Subscriber support. 2038b032f27cSSam LefflerNote that WPS support requires a WPS-capable supplicant. 2039b032f27cSSam LefflerTo disable this function use 2040b032f27cSSam Leffler.Fl wps . 2041aeffcba3SSam Leffler.El 2042aeffcba3SSam Leffler.Pp 2043aeffcba3SSam LefflerThe following parameters support an optional access control list 2044b032f27cSSam Lefflerfeature available with some adapters when operating in ap mode; see 2045aeffcba3SSam Leffler.Xr wlan_acl 4 . 2046aeffcba3SSam LefflerThis facility allows an access point to accept/deny association 2047aeffcba3SSam Lefflerrequests based on the MAC address of the station. 2048aeffcba3SSam LefflerNote that this feature does not significantly enhance security 2049aeffcba3SSam Leffleras MAC address spoofing is easy to do. 2050aeffcba3SSam Leffler.Bl -tag -width indent 2051aeffcba3SSam Leffler.It Cm mac:add Ar address 2052aeffcba3SSam LefflerAdd the specified MAC address to the database. 2053aeffcba3SSam LefflerDepending on the policy setting association requests from the 2054aeffcba3SSam Lefflerspecified station will be allowed or denied. 2055aeffcba3SSam Leffler.It Cm mac:allow 2056aeffcba3SSam LefflerSet the ACL policy to permit association only by 2057aeffcba3SSam Lefflerstations registered in the database. 2058e70fcb23SSam Leffler.It Cm mac:del Ar address 2059aeffcba3SSam LefflerDelete the specified MAC address from the database. 2060aeffcba3SSam Leffler.It Cm mac:deny 2061aeffcba3SSam LefflerSet the ACL policy to deny association only by 2062aeffcba3SSam Lefflerstations registered in the database. 2063e70fcb23SSam Leffler.It Cm mac:kick Ar address 206429f0e929SSam LefflerForce the specified station to be deauthenticated. 206529f0e929SSam LefflerThis typically is done to block a station after updating the 206629f0e929SSam Leffleraddress database. 2067aeffcba3SSam Leffler.It Cm mac:open 2068aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate. 2069aeffcba3SSam Leffler.It Cm mac:flush 2070aeffcba3SSam LefflerDelete all entries in the database. 2071b032f27cSSam Leffler.It Cm mac:radius 2072b032f27cSSam LefflerSet the ACL policy to permit association only by 2073b032f27cSSam Lefflerstations approved by a RADIUS server. 2074b032f27cSSam LefflerNote that this feature requires the 2075b032f27cSSam Leffler.Xr hostapd 8 2076b032f27cSSam Lefflerprogram be configured to do the right thing 2077b032f27cSSam Leffleras it handles the RADIUS processing 2078b032f27cSSam Leffler(and marks stations as authorized). 2079aeffcba3SSam Leffler.El 2080aeffcba3SSam Leffler.Pp 208159aa14a9SRui PauloThe following parameters are related to a wireless interface operating in mesh 208259aa14a9SRui Paulomode: 208359aa14a9SRui Paulo.Bl -tag -width indent 208459aa14a9SRui Paulo.It Cm meshid Ar meshid 208559aa14a9SRui PauloSet the desired Mesh Identifier. 208659aa14a9SRui PauloThe Mesh ID is a string up to 32 characters in length. 208759aa14a9SRui PauloA mesh interface must have a Mesh Identifier specified 208859aa14a9SRui Pauloto reach an operational state. 208959aa14a9SRui Paulo.It Cm meshttl Ar ttl 209059aa14a9SRui PauloSet the desired ``time to live'' for mesh forwarded packets; 209159aa14a9SRui Paulothis is the number of hops a packet may be forwarded before 209259aa14a9SRui Pauloit is discarded. 209359aa14a9SRui PauloThe default setting for 209459aa14a9SRui Paulo.Cm meshttl 209559aa14a9SRui Paulois 31. 209659aa14a9SRui Paulo.It Cm meshpeering 209759aa14a9SRui PauloEnable or disable peering with neighbor mesh stations. 209859aa14a9SRui PauloStations must peer before any data packets can be exchanged. 209959aa14a9SRui PauloBy default 210059aa14a9SRui Paulo.Cm meshpeering 210159aa14a9SRui Paulois enabled. 210259aa14a9SRui Paulo.It Cm meshforward 210359aa14a9SRui PauloEnable or disable forwarding packets by a mesh interface. 210459aa14a9SRui PauloBy default 210559aa14a9SRui Paulo.Cm meshforward 210659aa14a9SRui Paulois enabled. 2107e6e06eb8SMonthadar Al Jaberi.It Cm meshgate 2108e6e06eb8SMonthadar Al JaberiThis attribute specifies whether or not the mesh STA activates mesh gate 2109e6e06eb8SMonthadar Al Jaberiannouncements. 2110e6e06eb8SMonthadar Al JaberiBy default 2111e6e06eb8SMonthadar Al Jaberi.Cm meshgate 2112e6e06eb8SMonthadar Al Jaberiis disabled. 211359aa14a9SRui Paulo.It Cm meshmetric Ar protocol 211459aa14a9SRui PauloSet the specified 211559aa14a9SRui Paulo.Ar protocol 211659aa14a9SRui Pauloas the link metric protocol used on a mesh network. 211759aa14a9SRui PauloThe default protocol is called 211859aa14a9SRui Paulo.Ar AIRTIME . 211959aa14a9SRui PauloThe mesh interface will restart after changing this setting. 212059aa14a9SRui Paulo.It Cm meshpath Ar protocol 212159aa14a9SRui PauloSet the specified 212259aa14a9SRui Paulo.Ar protocol 212359aa14a9SRui Pauloas the path selection protocol used on a mesh network. 212459aa14a9SRui PauloThe only available protocol at the moment is called 212559aa14a9SRui Paulo.Ar HWMP 212659aa14a9SRui Paulo(Hybrid Wireless Mesh Protocol). 212759aa14a9SRui PauloThe mesh interface will restart after changing this setting. 212859aa14a9SRui Paulo.It Cm hwmprootmode Ar mode 212959aa14a9SRui PauloStations on a mesh network can operate as ``root nodes.'' 213059aa14a9SRui PauloRoot nodes try to find paths to all mesh nodes and advertise themselves 213159aa14a9SRui Pauloregularly. 213259aa14a9SRui PauloWhen there is a root mesh node on a network, other mesh nodes can setup 213359aa14a9SRui Paulopaths between themselves faster because they can use the root node 213459aa14a9SRui Pauloto find the destination. 213559aa14a9SRui PauloThis path may not be the best, but on-demand 213659aa14a9SRui Paulorouting will eventually find the best path. 213759aa14a9SRui PauloThe following modes are recognized: 213859aa14a9SRui Paulo.Pp 213959aa14a9SRui Paulo.Bl -tag -width ".Cm PROACTIVE" -compact 214059aa14a9SRui Paulo.It Cm DISABLED 214159aa14a9SRui PauloDisable root mode. 214259aa14a9SRui Paulo.It Cm NORMAL 214359aa14a9SRui PauloSend broadcast path requests every two seconds. 214459aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 214559aa14a9SRui Paulodiscover a path to us. 214659aa14a9SRui Paulo.It Cm PROACTIVE 2147a4dec862SJoel DahlSend broadcast path requests every two seconds and every node must reply 2148c2025a76SJoel Dahlwith a path reply even if it already has a path to this root mesh station. 214959aa14a9SRui Paulo.It Cm RANN 2150a53bb70bSJoel DahlSend broadcast root announcement (RANN) frames. 215159aa14a9SRui PauloNodes on the mesh without a path to this root mesh station with try to 215259aa14a9SRui Paulodiscover a path to us. 215359aa14a9SRui Paulo.El 215459aa14a9SRui PauloBy default 215559aa14a9SRui Paulo.Cm hwmprootmode 215659aa14a9SRui Paulois set to 215759aa14a9SRui Paulo.Ar DISABLED . 215859aa14a9SRui Paulo.It Cm hwmpmaxhops Ar cnt 215959aa14a9SRui PauloSet the maximum number of hops allowed in an HMWP path to 216059aa14a9SRui Paulo.Ar cnt . 216159aa14a9SRui PauloThe default setting for 216259aa14a9SRui Paulo.Cm hwmpmaxhops 216359aa14a9SRui Paulois 31. 216459aa14a9SRui Paulo.El 216559aa14a9SRui Paulo.Pp 2166aeffcba3SSam LefflerThe following parameters are for compatibility with other systems: 21675faf8dcbSSam Leffler.Bl -tag -width indent 21685faf8dcbSSam Leffler.It Cm nwid Ar ssid 21695faf8dcbSSam LefflerAnother name for the 21705faf8dcbSSam Leffler.Cm ssid 21715faf8dcbSSam Lefflerparameter. 21725faf8dcbSSam LefflerIncluded for 21735faf8dcbSSam Leffler.Nx 21745faf8dcbSSam Lefflercompatibility. 2175b032f27cSSam Leffler.It Cm stationname Ar name 2176b032f27cSSam LefflerSet the name of this station. 2177b032f27cSSam LefflerThe station name is not part of the IEEE 802.11 2178b032f27cSSam Lefflerprotocol though some interfaces support it. 2179b032f27cSSam LefflerAs such it only 2180b032f27cSSam Lefflerseems to be meaningful to identical or virtually identical equipment. 2181b032f27cSSam LefflerSetting the station name is identical in syntax to setting the SSID. 2182b032f27cSSam LefflerOne can also use 2183b032f27cSSam Leffler.Cm station 2184b032f27cSSam Lefflerfor 21855faf8dcbSSam Leffler.Bsx 21865faf8dcbSSam Lefflercompatibility. 2187419d8080SPoul-Henning Kamp.It Cm wep 2188419d8080SPoul-Henning KampAnother way of saying 2189b09b4efbSRuslan Ermilov.Cm wepmode on . 2190b09b4efbSRuslan ErmilovIncluded for 2191b09b4efbSRuslan Ermilov.Bsx 2192b09b4efbSRuslan Ermilovcompatibility. 2193b09b4efbSRuslan Ermilov.It Fl wep 2194419d8080SPoul-Henning KampAnother way of saying 2195b09b4efbSRuslan Ermilov.Cm wepmode off . 2196b09b4efbSRuslan ErmilovIncluded for 2197b09b4efbSRuslan Ermilov.Bsx 2198b09b4efbSRuslan Ermilovcompatibility. 2199419d8080SPoul-Henning Kamp.It Cm nwkey key 2200419d8080SPoul-Henning KampAnother way of saying: 2201b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" . 2202b09b4efbSRuslan ErmilovIncluded for 2203b09b4efbSRuslan Ermilov.Nx 2204b09b4efbSRuslan Ermilovcompatibility. 2205b09b4efbSRuslan Ermilov.It Cm nwkey Xo 2206b09b4efbSRuslan Ermilov.Sm off 2207b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4 2208b09b4efbSRuslan Ermilov.Sm on 2209b09b4efbSRuslan Ermilov.Xc 2210419d8080SPoul-Henning KampAnother way of saying 2211b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" . 2212b09b4efbSRuslan ErmilovIncluded for 2213b09b4efbSRuslan Ermilov.Nx 2214b09b4efbSRuslan Ermilovcompatibility. 2215b09b4efbSRuslan Ermilov.It Fl nwkey 2216419d8080SPoul-Henning KampAnother way of saying 2217b09b4efbSRuslan Ermilov.Cm wepmode off . 2218b09b4efbSRuslan ErmilovIncluded for 2219b09b4efbSRuslan Ermilov.Nx 2220b09b4efbSRuslan Ermilovcompatibility. 22218fae3551SRodney W. Grimes.El 22228fae3551SRodney W. Grimes.Pp 22237afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces: 22247afc53b8SAndrew Thompson.Bl -tag -width indent 22257afc53b8SAndrew Thompson.It Cm addm Ar interface 22267afc53b8SAndrew ThompsonAdd the interface named by 22277afc53b8SAndrew Thompson.Ar interface 22287afc53b8SAndrew Thompsonas a member of the bridge. 22297afc53b8SAndrew ThompsonThe interface is put into promiscuous mode 22307afc53b8SAndrew Thompsonso that it can receive every packet sent on the network. 22317afc53b8SAndrew Thompson.It Cm deletem Ar interface 22327afc53b8SAndrew ThompsonRemove the interface named by 22337afc53b8SAndrew Thompson.Ar interface 22347afc53b8SAndrew Thompsonfrom the bridge. 22357afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when 22367afc53b8SAndrew Thompsonit is removed from the bridge. 22377afc53b8SAndrew Thompson.It Cm maxaddr Ar size 22387afc53b8SAndrew ThompsonSet the size of the bridge address cache to 22397afc53b8SAndrew Thompson.Ar size . 22405640c372SChristian BruefferThe default is 2000 entries. 22417afc53b8SAndrew Thompson.It Cm timeout Ar seconds 22427afc53b8SAndrew ThompsonSet the timeout of address cache entries to 22437afc53b8SAndrew Thompson.Ar seconds 22447afc53b8SAndrew Thompsonseconds. 22457afc53b8SAndrew ThompsonIf 22467afc53b8SAndrew Thompson.Ar seconds 22477afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired. 22485640c372SChristian BruefferThe default is 1200 seconds. 2249db7d6dc1SAndrew Thompson.It Cm addr 2250db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge. 2251db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address 2252db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to 2253db7d6dc1SAndrew Thompson.Ar interface-name . 2254db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the 2255db7d6dc1SAndrew Thompsonaddress is seen on a different interface. 22567afc53b8SAndrew Thompson.It Cm deladdr Ar address 22577afc53b8SAndrew ThompsonDelete 22587afc53b8SAndrew Thompson.Ar address 22597afc53b8SAndrew Thompsonfrom the address cache. 22607afc53b8SAndrew Thompson.It Cm flush 22617afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache. 22627afc53b8SAndrew Thompson.It Cm flushall 22637afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache. 22647afc53b8SAndrew Thompson.It Cm discover Ar interface 22657afc53b8SAndrew ThompsonMark an interface as a 22667afc53b8SAndrew Thompson.Dq discovering 22677afc53b8SAndrew Thompsoninterface. 22687afc53b8SAndrew ThompsonWhen the bridge has no address cache entry 22697afc53b8SAndrew Thompson(either dynamic or static) 22707afc53b8SAndrew Thompsonfor the destination address of a packet, 22717afc53b8SAndrew Thompsonthe bridge will forward the packet to all 22727afc53b8SAndrew Thompsonmember interfaces marked as 22737afc53b8SAndrew Thompson.Dq discovering . 22747afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 22757afc53b8SAndrew Thompson.It Cm -discover Ar interface 22767afc53b8SAndrew ThompsonClear the 22777afc53b8SAndrew Thompson.Dq discovering 22787afc53b8SAndrew Thompsonattribute on a member interface. 22797afc53b8SAndrew ThompsonFor packets without the 22807afc53b8SAndrew Thompson.Dq discovering 22817afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast 22827afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address 22837afc53b8SAndrew Thompsonis known to be on the interface's segment. 22847afc53b8SAndrew Thompson.It Cm learn Ar interface 22857afc53b8SAndrew ThompsonMark an interface as a 22867afc53b8SAndrew Thompson.Dq learning 22877afc53b8SAndrew Thompsoninterface. 22887afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source 22897afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a 22907afc53b8SAndrew Thompsondestination address on the interface's segment. 22917afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 22927afc53b8SAndrew Thompson.It Cm -learn Ar interface 22937afc53b8SAndrew ThompsonClear the 22947afc53b8SAndrew Thompson.Dq learning 22957afc53b8SAndrew Thompsonattribute on a member interface. 22963df7fad0SAndrew Thompson.It Cm sticky Ar interface 22973df7fad0SAndrew ThompsonMark an interface as a 22983df7fad0SAndrew Thompson.Dq sticky 22993df7fad0SAndrew Thompsoninterface. 23003df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into 23013df7fad0SAndrew Thompsonthe cache. 23023df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the 23033df7fad0SAndrew Thompsonaddress is seen on a different interface. 23043df7fad0SAndrew Thompson.It Cm -sticky Ar interface 23053df7fad0SAndrew ThompsonClear the 23063df7fad0SAndrew Thompson.Dq sticky 23073df7fad0SAndrew Thompsonattribute on a member interface. 230885ce7297SAndrew Thompson.It Cm private Ar interface 230985ce7297SAndrew ThompsonMark an interface as a 231085ce7297SAndrew Thompson.Dq private 231185ce7297SAndrew Thompsoninterface. 231285ce7297SAndrew ThompsonA private interface does not forward any traffic to any other port that is also 231385ce7297SAndrew Thompsona private interface. 231485ce7297SAndrew Thompson.It Cm -private Ar interface 231585ce7297SAndrew ThompsonClear the 231685ce7297SAndrew Thompson.Dq private 231785ce7297SAndrew Thompsonattribute on a member interface. 231891f6764eSAndrew Thompson.It Cm span Ar interface 231991f6764eSAndrew ThompsonAdd the interface named by 232091f6764eSAndrew Thompson.Ar interface 232191f6764eSAndrew Thompsonas a span port on the bridge. 232291f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge. 232391f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on 232491f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge. 232591f6764eSAndrew Thompson.It Cm -span Ar interface 232691f6764eSAndrew ThompsonDelete the interface named by 232791f6764eSAndrew Thompson.Ar interface 232891f6764eSAndrew Thompsonfrom the list of span ports of the bridge. 23297afc53b8SAndrew Thompson.It Cm stp Ar interface 23307afc53b8SAndrew ThompsonEnable Spanning Tree protocol on 23317afc53b8SAndrew Thompson.Ar interface . 23327afc53b8SAndrew ThompsonThe 23337afc53b8SAndrew Thompson.Xr if_bridge 4 23347afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP). 23357afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology. 23367afc53b8SAndrew Thompson.It Cm -stp Ar interface 23377afc53b8SAndrew ThompsonDisable Spanning Tree protocol on 23387afc53b8SAndrew Thompson.Ar interface . 23397afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge. 23403fab7669SAndrew Thompson.It Cm edge Ar interface 23413fab7669SAndrew ThompsonSet 23423fab7669SAndrew Thompson.Ar interface 23433fab7669SAndrew Thompsonas an edge port. 23443fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging 23453fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding. 23463fab7669SAndrew Thompson.It Cm -edge Ar interface 23473fab7669SAndrew ThompsonDisable edge status on 23483fab7669SAndrew Thompson.Ar interface . 23493fab7669SAndrew Thompson.It Cm autoedge Ar interface 23503fab7669SAndrew ThompsonAllow 23513fab7669SAndrew Thompson.Ar interface 23523fab7669SAndrew Thompsonto automatically detect edge status. 23533fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge. 23543fab7669SAndrew Thompson.It Cm -autoedge Ar interface 23553fab7669SAndrew ThompsonDisable automatic edge status on 23563fab7669SAndrew Thompson.Ar interface . 235778709605SAndrew Thompson.It Cm ptp Ar interface 2358153f9b00SAndrew ThompsonSet the 2359153f9b00SAndrew Thompson.Ar interface 2360153f9b00SAndrew Thompsonas a point to point link. 2361153f9b00SAndrew ThompsonThis is required for straight transitions to forwarding and 2362153f9b00SAndrew Thompsonshould be enabled on a direct link to another RSTP capable switch. 236378709605SAndrew Thompson.It Cm -ptp Ar interface 2364153f9b00SAndrew ThompsonDisable point to point link status on 2365153f9b00SAndrew Thompson.Ar interface . 2366153f9b00SAndrew ThompsonThis should be disabled for a half duplex link and for an interface 2367153f9b00SAndrew Thompsonconnected to a shared network segment, 2368153f9b00SAndrew Thompsonlike a hub or a wireless network. 236978709605SAndrew Thompson.It Cm autoptp Ar interface 2370153f9b00SAndrew ThompsonAutomatically detect the point to point status on 2371153f9b00SAndrew Thompson.Ar interface 2372153f9b00SAndrew Thompsonby checking the full duplex link status. 2373153f9b00SAndrew ThompsonThis is the default for interfaces added to the bridge. 237478709605SAndrew Thompson.It Cm -autoptp Ar interface 2375153f9b00SAndrew ThompsonDisable automatic point to point link detection on 2376153f9b00SAndrew Thompson.Ar interface . 23777afc53b8SAndrew Thompson.It Cm maxage Ar seconds 23787afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid. 23797afc53b8SAndrew ThompsonThe default is 20 seconds. 23803fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds. 23817afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds 23827afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding 23837afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled. 23847afc53b8SAndrew ThompsonThe default is 15 seconds. 23853fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds. 23867afc53b8SAndrew Thompson.It Cm hellotime Ar seconds 23877afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol 23887afc53b8SAndrew Thompsonconfiguration messages. 23893fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode. 23907afc53b8SAndrew ThompsonThe default is 2 seconds. 23913fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds. 23927afc53b8SAndrew Thompson.It Cm priority Ar value 23937afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree. 23947afc53b8SAndrew ThompsonThe default is 32768. 23953fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440. 239699469fe2SAndrew Thompson.It Cm proto Ar value 23973fab7669SAndrew ThompsonSet the Spanning Tree protocol. 23983fab7669SAndrew ThompsonThe default is rstp. 23993fab7669SAndrew ThompsonThe available options are stp and rstp. 24001dfd31abSAndrew Thompson.It Cm holdcnt Ar value 24013fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree. 24023fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited. 24033fab7669SAndrew ThompsonThe default is 6. 24043fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10. 24057afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value 24067afc53b8SAndrew ThompsonSet the Spanning Tree priority of 24077afc53b8SAndrew Thompson.Ar interface 24087afc53b8SAndrew Thompsonto 24097afc53b8SAndrew Thompson.Ar value . 24107afc53b8SAndrew ThompsonThe default is 128. 24113fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240. 24127afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value 24137afc53b8SAndrew ThompsonSet the Spanning Tree path cost of 24147afc53b8SAndrew Thompson.Ar interface 24157afc53b8SAndrew Thompsonto 24167afc53b8SAndrew Thompson.Ar value . 24173fab7669SAndrew ThompsonThe default is calculated from the link speed. 24183fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the 24193fab7669SAndrew Thompsoncost to 0. 24203fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000. 24215f33ec7bSAndrew Thompson.It Cm ifmaxaddr Ar interface Ar size 24225f33ec7bSAndrew ThompsonSet the maximum number of hosts allowed from an interface, packets with unknown 24235f33ec7bSAndrew Thompsonsource addresses are dropped until an existing host cache entry expires or is 24245f33ec7bSAndrew Thompsonremoved. 24255f33ec7bSAndrew ThompsonSet to 0 to disable. 24267afc53b8SAndrew Thompson.El 24277afc53b8SAndrew Thompson.Pp 242818242d3bSAndrew ThompsonThe following parameters are specific to lagg interfaces: 24297b62d98bSAndrew Thompson.Bl -tag -width indent 243018242d3bSAndrew Thompson.It Cm laggport Ar interface 24317b62d98bSAndrew ThompsonAdd the interface named by 24327b62d98bSAndrew Thompson.Ar interface 243318242d3bSAndrew Thompsonas a port of the aggregation interface. 243418242d3bSAndrew Thompson.It Cm -laggport Ar interface 24357b62d98bSAndrew ThompsonRemove the interface named by 24367b62d98bSAndrew Thompson.Ar interface 243718242d3bSAndrew Thompsonfrom the aggregation interface. 243818242d3bSAndrew Thompson.It Cm laggproto Ar proto 243918242d3bSAndrew ThompsonSet the aggregation protocol. 2440939a050aSHiroki SatoThe default is 2441939a050aSHiroki Sato.Li failover . 2442939a050aSHiroki SatoThe available options are 2443939a050aSHiroki Sato.Li failover , 2444939a050aSHiroki Sato.Li lacp , 2445939a050aSHiroki Sato.Li loadbalance , 2446939a050aSHiroki Sato.Li roundrobin , 2447939a050aSHiroki Sato.Li broadcast 2448939a050aSHiroki Satoand 2449939a050aSHiroki Sato.Li none . 245086f67641SAndrew Thompson.It Cm lagghash Ar option Ns Oo , Ns Ar option Oc 245186f67641SAndrew ThompsonSet the packet layers to hash for aggregation protocols which load balance. 245286f67641SAndrew ThompsonThe default is 245386f67641SAndrew Thompson.Dq l2,l3,l4 . 245486f67641SAndrew ThompsonThe options can be combined using commas. 245586f67641SAndrew Thompson.Pp 245686f67641SAndrew Thompson.Bl -tag -width ".Cm l2" -compact 245786f67641SAndrew Thompson.It Cm l2 245886f67641SAndrew Thompsonsrc/dst mac address and optional vlan number. 245986f67641SAndrew Thompson.It Cm l3 246086f67641SAndrew Thompsonsrc/dst address for IPv4 or IPv6. 246186f67641SAndrew Thompson.It Cm l4 2462a0778b71SAndrew Thompsonsrc/dst port for TCP/UDP/SCTP. 246386f67641SAndrew Thompson.El 2464939a050aSHiroki Sato.It Cm use_flowid 2465939a050aSHiroki SatoEnable local hash computation for RSS hash on the interface. 2466939a050aSHiroki SatoThe 2467939a050aSHiroki Sato.Li loadbalance 2468939a050aSHiroki Satoand 2469939a050aSHiroki Sato.Li lacp 2470939a050aSHiroki Satomodes will use the RSS hash from the network card if available 2471939a050aSHiroki Satoto avoid computing one, this may give poor traffic distribution 2472939a050aSHiroki Satoif the hash is invalid or uses less of the protocol header information. 2473939a050aSHiroki Sato.Cm use_flowid 2474939a050aSHiroki Satodisables use of RSS hash from the network card. 2475939a050aSHiroki SatoThe default value can be set via the 2476939a050aSHiroki Sato.Va net.link.lagg.default_use_flowid 2477939a050aSHiroki Sato.Xr sysctl 8 2478939a050aSHiroki Satovariable. 2479939a050aSHiroki Sato.Li 0 2480939a050aSHiroki Satomeans 2481939a050aSHiroki Sato.Dq disabled 2482939a050aSHiroki Satoand 2483939a050aSHiroki Sato.Li 1 2484939a050aSHiroki Satomeans 2485939a050aSHiroki Sato.Dq enabled . 2486939a050aSHiroki Sato.It Cm -use_flowid 2487939a050aSHiroki SatoDisable local hash computation for RSS hash on the interface. 2488939a050aSHiroki Sato.It Cm flowid_shift Ar number 2489939a050aSHiroki SatoSet a shift parameter for RSS local hash computation. 2490939a050aSHiroki SatoHash is calculated by using flowid bits in a packet header mbuf 2491939a050aSHiroki Satowhich are shifted by the number of this parameter. 24920e02b43aSHiren Panchasara.It Cm lacp_fast_timeout 24930e02b43aSHiren PanchasaraEnable lacp fast-timeout on the interface. 24940e02b43aSHiren Panchasara.It Cm -lacp_fast_timeout 24950e02b43aSHiren PanchasaraDisable lacp fast-timeout on the interface. 2496c1be893cSSteven Hartland.It Cm lacp_strict 2497c1be893cSSteven HartlandEnable lacp strict compliance on the interface. 2498c1be893cSSteven HartlandThe default value can be set via the 2499c1be893cSSteven Hartland.Va net.link.lagg.lacp.default_strict_mode 2500c1be893cSSteven Hartland.Xr sysctl 8 2501c1be893cSSteven Hartlandvariable. 2502c1be893cSSteven Hartland.Li 0 2503c1be893cSSteven Hartlandmeans 2504c1be893cSSteven Hartland.Dq disabled 2505c1be893cSSteven Hartlandand 2506c1be893cSSteven Hartland.Li 1 2507c1be893cSSteven Hartlandmeans 2508c1be893cSSteven Hartland.Dq enabled . 2509c1be893cSSteven Hartland.It Cm -lacp_strict 2510c1be893cSSteven HartlandDisable lacp strict compliance on the interface. 25117b62d98bSAndrew Thompson.El 25127b62d98bSAndrew Thompson.Pp 2513163653e8SYaroslav TykhiyThe following parameters are specific to IP tunnel interfaces, 2514163653e8SYaroslav Tykhiy.Xr gif 4 : 2515163653e8SYaroslav Tykhiy.Bl -tag -width indent 2516163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr 2517163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel 2518163653e8SYaroslav Tykhiyinterfaces. 2519163653e8SYaroslav TykhiyThe arguments 2520163653e8SYaroslav Tykhiy.Ar src_addr 2521163653e8SYaroslav Tykhiyand 2522163653e8SYaroslav Tykhiy.Ar dest_addr 2523163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating 2524163653e8SYaroslav TykhiyIPv4/IPv6 header. 25259e241c5eSYaroslav Tykhiy.It Fl tunnel 2526163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel 2527163653e8SYaroslav Tykhiyinterfaces previously configured with 2528163653e8SYaroslav Tykhiy.Cm tunnel . 25299e241c5eSYaroslav Tykhiy.It Cm deletetunnel 25309e241c5eSYaroslav TykhiyAnother name for the 25319e241c5eSYaroslav Tykhiy.Fl tunnel 25329e241c5eSYaroslav Tykhiyparameter. 25336dcd0ad8SHiroki Sato.It Cm accept_rev_ethip_ver 2534a53bb70bSJoel DahlSet a flag to accept both correct EtherIP packets and ones 253596db02f2SAllan Judewith reversed version field. 253696db02f2SAllan JudeEnabled by default. 25376dcd0ad8SHiroki SatoThis is for backward compatibility with 25386dcd0ad8SHiroki Sato.Fx 6.1 , 25396dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 25406dcd0ad8SHiroki Sato.It Cm -accept_rev_ethip_ver 25416dcd0ad8SHiroki SatoClear a flag 25426dcd0ad8SHiroki Sato.Cm accept_rev_ethip_ver . 2543c1b4f79dSAndrey V. Elsukov.It Cm ignore_source 2544c1b4f79dSAndrey V. ElsukovSet a flag to accept encapsulated packets destined to this host 2545c1b4f79dSAndrey V. Elsukovindependently from source address. 2546c1b4f79dSAndrey V. ElsukovThis may be useful for hosts, that receive encapsulated packets 2547c1b4f79dSAndrey V. Elsukovfrom the load balancers. 2548c1b4f79dSAndrey V. Elsukov.It Cm -ignore_source 2549c1b4f79dSAndrey V. ElsukovClear a flag 2550c1b4f79dSAndrey V. Elsukov.Cm ignore_source . 25516dcd0ad8SHiroki Sato.It Cm send_rev_ethip_ver 25526dcd0ad8SHiroki SatoSet a flag to send EtherIP packets with reversed version 255396db02f2SAllan Judefield intentionally. 255496db02f2SAllan JudeDisabled by default. 25556dcd0ad8SHiroki SatoThis is for backward compatibility with 25566dcd0ad8SHiroki Sato.Fx 6.1 , 25576dcd0ad8SHiroki Sato6.2, 6.3, 7.0, and 7.1. 25586dcd0ad8SHiroki Sato.It Cm -send_rev_ethip_ver 25596dcd0ad8SHiroki SatoClear a flag 25606dcd0ad8SHiroki Sato.Cm send_rev_ethip_ver . 2561163653e8SYaroslav Tykhiy.El 2562163653e8SYaroslav Tykhiy.Pp 2563131c55bcSAndrew ThompsonThe following parameters are specific to GRE tunnel interfaces, 2564131c55bcSAndrew Thompson.Xr gre 4 : 2565131c55bcSAndrew Thompson.Bl -tag -width indent 2566131c55bcSAndrew Thompson.It Cm grekey Ar key 2567131c55bcSAndrew ThompsonConfigure the GRE key to be used for outgoing packets. 2568131c55bcSAndrew ThompsonNote that 2569131c55bcSAndrew Thompson.Xr gre 4 will always accept GRE packets with invalid or absent keys. 2570131c55bcSAndrew ThompsonThis command will result in a four byte MTU reduction on the interface. 2571131c55bcSAndrew Thompson.El 2572131c55bcSAndrew Thompson.Pp 2573163653e8SYaroslav TykhiyThe following parameters are specific to 2574ced42c6cSCeri Davies.Xr pfsync 4 2575ced42c6cSCeri Daviesinterfaces: 2576ced42c6cSCeri Davies.Bl -tag -width indent 257779f6687dSGleb Smirnoff.It Cm syncdev Ar iface 257879f6687dSGleb SmirnoffUse the specified interface 257979f6687dSGleb Smirnoffto send and receive pfsync state synchronisation messages. 258079f6687dSGleb Smirnoff.It Fl syncdev 258179f6687dSGleb SmirnoffStop sending pfsync state synchronisation messages over the network. 258279f6687dSGleb Smirnoff.It Cm syncpeer Ar peer_address 258379f6687dSGleb SmirnoffMake the pfsync link point-to-point rather than using 258479f6687dSGleb Smirnoffmulticast to broadcast the state synchronisation messages. 258579f6687dSGleb SmirnoffThe peer_address is the IP address of the other host taking part in 258679f6687dSGleb Smirnoffthe pfsync cluster. 258779f6687dSGleb Smirnoff.It Fl syncpeer 258879f6687dSGleb SmirnoffBroadcast the packets using multicast. 2589ced42c6cSCeri Davies.It Cm maxupd Ar n 2590ced42c6cSCeri DaviesSet the maximum number of updates for a single state which 2591ced42c6cSCeri Daviescan be collapsed into one. 2592ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128. 259379f6687dSGleb Smirnoff.It Cm defer 259479f6687dSGleb SmirnoffDefer transmission of the first packet in a state until a peer has 259579f6687dSGleb Smirnoffacknowledged that the associated state has been inserted. 259679f6687dSGleb Smirnoff.It Fl defer 259779f6687dSGleb SmirnoffDo not defer the first packet in a state. 259879f6687dSGleb SmirnoffThis is the default. 2599ced42c6cSCeri Davies.El 2600ced42c6cSCeri Davies.Pp 2601ced42c6cSCeri DaviesThe following parameters are specific to 2602163653e8SYaroslav Tykhiy.Xr vlan 4 2603163653e8SYaroslav Tykhiyinterfaces: 2604163653e8SYaroslav Tykhiy.Bl -tag -width indent 2605163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag 2606163653e8SYaroslav TykhiySet the VLAN tag value to 2607163653e8SYaroslav Tykhiy.Ar vlan_tag . 2608f3f28e69SRobert WatsonThis value is a 12-bit VLAN Identifier (VID) which is used to create an 802.1Q 2609163653e8SYaroslav TykhiyVLAN header for packets sent from the 2610163653e8SYaroslav Tykhiy.Xr vlan 4 2611163653e8SYaroslav Tykhiyinterface. 2612163653e8SYaroslav TykhiyNote that 2613163653e8SYaroslav Tykhiy.Cm vlan 2614163653e8SYaroslav Tykhiyand 2615163653e8SYaroslav Tykhiy.Cm vlandev 2616163653e8SYaroslav Tykhiymust both be set at the same time. 2617*2ccbbd06SMarcelo Araujo.It Cm vlanpcp Ar priority_code_point 2618*2ccbbd06SMarcelo AraujoPriority code point 2619*2ccbbd06SMarcelo Araujo.Pq Dv PCP 2620*2ccbbd06SMarcelo Araujois an 3-bit field which refers to the IEEE 802.1p 2621*2ccbbd06SMarcelo Araujoclass of service and maps to the frame priority level. 2622*2ccbbd06SMarcelo Araujo.Pp 2623*2ccbbd06SMarcelo AraujoValues in order of priority are: 2624*2ccbbd06SMarcelo Araujo.Cm 1 2625*2ccbbd06SMarcelo Araujo.Pq Dv Background (lowest) , 2626*2ccbbd06SMarcelo Araujo.Cm 0 2627*2ccbbd06SMarcelo Araujo.Pq Dv Best effort (default) , 2628*2ccbbd06SMarcelo Araujo.Cm 2 2629*2ccbbd06SMarcelo Araujo.Pq Dv Excellent effort , 2630*2ccbbd06SMarcelo Araujo.Cm 3 2631*2ccbbd06SMarcelo Araujo.Pq Dv Critical applications , 2632*2ccbbd06SMarcelo Araujo.Cm 4 2633*2ccbbd06SMarcelo Araujo.Pq Dv Video, < 100ms latency , 2634*2ccbbd06SMarcelo Araujo.Cm 5 2635*2ccbbd06SMarcelo Araujo.Pq Dv Video, < 10ms latency , 2636*2ccbbd06SMarcelo Araujo.Cm 6 2637*2ccbbd06SMarcelo Araujo.Pq Dv Internetwork control , 2638*2ccbbd06SMarcelo Araujo.Cm 7 2639*2ccbbd06SMarcelo Araujo.Pq Dv Network control (highest) . 2640163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface 2641163653e8SYaroslav TykhiyAssociate the physical interface 2642163653e8SYaroslav Tykhiy.Ar iface 2643163653e8SYaroslav Tykhiywith a 2644163653e8SYaroslav Tykhiy.Xr vlan 4 2645163653e8SYaroslav Tykhiyinterface. 2646163653e8SYaroslav TykhiyPackets transmitted through the 2647163653e8SYaroslav Tykhiy.Xr vlan 4 2648163653e8SYaroslav Tykhiyinterface will be 2649163653e8SYaroslav Tykhiydiverted to the specified physical interface 2650163653e8SYaroslav Tykhiy.Ar iface 2651163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation. 2652163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received 2653f3f28e69SRobert Watsonby the parent interface with the correct VLAN Identifier will be diverted to 2654163653e8SYaroslav Tykhiythe associated 2655163653e8SYaroslav Tykhiy.Xr vlan 4 2656163653e8SYaroslav Tykhiypseudo-interface. 2657163653e8SYaroslav TykhiyThe 2658163653e8SYaroslav Tykhiy.Xr vlan 4 2659163653e8SYaroslav Tykhiyinterface is assigned a 266096db02f2SAllan Judecopy of the parent interface's flags and the parent's Ethernet address. 2661163653e8SYaroslav TykhiyThe 2662163653e8SYaroslav Tykhiy.Cm vlandev 2663163653e8SYaroslav Tykhiyand 2664163653e8SYaroslav Tykhiy.Cm vlan 2665163653e8SYaroslav Tykhiymust both be set at the same time. 2666163653e8SYaroslav TykhiyIf the 2667163653e8SYaroslav Tykhiy.Xr vlan 4 2668163653e8SYaroslav Tykhiyinterface already has 2669163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail. 2670163653e8SYaroslav TykhiyTo 2671163653e8SYaroslav Tykhiychange the association to another physical interface, the existing 2672163653e8SYaroslav Tykhiyassociation must be cleared first. 2673163653e8SYaroslav Tykhiy.Pp 2674163653e8SYaroslav TykhiyNote: if the hardware tagging capability 2675163653e8SYaroslav Tykhiyis set on the parent interface, the 2676163653e8SYaroslav Tykhiy.Xr vlan 4 2677163653e8SYaroslav Tykhiypseudo 2678163653e8SYaroslav Tykhiyinterface's behavior changes: 2679163653e8SYaroslav Tykhiythe 2680163653e8SYaroslav Tykhiy.Xr vlan 4 2681163653e8SYaroslav Tykhiyinterface recognizes that the 2682163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its 2683163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from 2684163653e8SYaroslav Tykhiythe parent unaltered. 2685b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface 2686163653e8SYaroslav TykhiyIf the driver is a 2687163653e8SYaroslav Tykhiy.Xr vlan 4 2688b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it. 2689163653e8SYaroslav TykhiyThis breaks the link between the 2690163653e8SYaroslav Tykhiy.Xr vlan 4 2691163653e8SYaroslav Tykhiyinterface and its parent, 2692f3f28e69SRobert Watsonclears its VLAN Identifier, flags and its link address and shuts the interface 2693f3f28e69SRobert Watsondown. 2694b0dcc11cSYaroslav TykhiyThe 2695b0dcc11cSYaroslav Tykhiy.Ar iface 2696b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated. 2697163653e8SYaroslav Tykhiy.El 2698163653e8SYaroslav Tykhiy.Pp 269908b68b0eSGleb SmirnoffThe following parameters are used to configure 2700007054f0SBryan Venteicher.Xr vxlan 4 2701007054f0SBryan Venteicherinterfaces. 2702007054f0SBryan Venteicher.Bl -tag -width indent 2703c6e32006SBryan Venteicher.It Cm vxlanid Ar identifier 2704007054f0SBryan VenteicherThis value is a 24-bit VXLAN Network Identifier (VNI) that identifies the 2705007054f0SBryan Venteichervirtual network segment membership of the interface. 2706c6e32006SBryan Venteicher.It Cm vxlanlocal Ar address 2707007054f0SBryan VenteicherThe source address used in the encapsulating IPv4/IPv6 header. 2708007054f0SBryan VenteicherThe address should already be assigned to an existing interface. 2709007054f0SBryan VenteicherWhen the interface is configured in unicast mode, the listening socket 2710007054f0SBryan Venteicheris bound to this address. 2711c6e32006SBryan Venteicher.It Cm vxlanremote Ar address 2712007054f0SBryan VenteicherThe interface can be configured in a unicast, or point-to-point, mode 2713007054f0SBryan Venteicherto create a tunnel between two hosts. 2714007054f0SBryan VenteicherThis is the IP address of the remote end of the tunnel. 2715c6e32006SBryan Venteicher.It Cm vxlangroup Ar address 2716007054f0SBryan VenteicherThe interface can be configured in a multicast mode 2717007054f0SBryan Venteicherto create a virtual network of hosts. 2718007054f0SBryan VenteicherThis is the IP multicast group address the interface will join. 2719c6e32006SBryan Venteicher.It Cm vxlanlocalport Ar port 2720007054f0SBryan VenteicherThe port number the interface will listen on. 2721007054f0SBryan VenteicherThe default port number is 4789. 2722c6e32006SBryan Venteicher.It Cm vxlanremoteport Ar port 2723007054f0SBryan VenteicherThe destination port number used in the encapsulating IPv4/IPv6 header. 2724007054f0SBryan VenteicherThe remote host should be listening on this port. 2725007054f0SBryan VenteicherThe default port number is 4789. 2726007054f0SBryan VenteicherNote some other implementations, such as Linux, 2727007054f0SBryan Venteicherdo not default to the IANA assigned port, 2728007054f0SBryan Venteicherbut instead listen on port 8472. 2729c6e32006SBryan Venteicher.It Cm vxlanportrange Ar low high 2730007054f0SBryan VenteicherThe range of source ports used in the encapsulating IPv4/IPv6 header. 2731007054f0SBryan VenteicherThe port selected within the range is based on a hash of the inner frame. 2732007054f0SBryan VenteicherA range is useful to provide entropy within the outer IP header 2733007054f0SBryan Venteicherfor more effective load balancing. 2734007054f0SBryan VenteicherThe default range is between the 2735007054f0SBryan Venteicher.Xr sysctl 8 2736007054f0SBryan Venteichervariables 2737007054f0SBryan Venteicher.Va net.inet.ip.portrange.first 2738007054f0SBryan Venteicherand 2739007054f0SBryan Venteicher.Va net.inet.ip.portrange.last 2740c6e32006SBryan Venteicher.It Cm vxlantimeout Ar timeout 2741007054f0SBryan VenteicherThe maximum time, in seconds, before an entry in the forwarding table 2742007054f0SBryan Venteicheris pruned. 2743007054f0SBryan VenteicherThe default is 1200 seconds (20 minutes). 2744c6e32006SBryan Venteicher.It Cm vxlanmaxaddr Ar max 2745007054f0SBryan VenteicherThe maximum number of entries in the forwarding table. 2746007054f0SBryan VenteicherThe default is 2000. 2747007054f0SBryan Venteicher.It Cm vxlandev Ar dev 2748007054f0SBryan VenteicherWhen the interface is configured in multicast mode, the 2749007054f0SBryan Venteicher.Cm dev 2750007054f0SBryan Venteicherinterface is used to transmit IP multicast packets. 2751c6e32006SBryan Venteicher.It Cm vxlanttl Ar ttl 2752007054f0SBryan VenteicherThe TTL used in the encapsulating IPv4/IPv6 header. 2753007054f0SBryan VenteicherThe default is 64. 2754c6e32006SBryan Venteicher.It Cm vxlanlearn 2755007054f0SBryan VenteicherThe source IP address and inner source Ethernet MAC address of 2756007054f0SBryan Venteicherreceived packets are used to dynamically populate the forwarding table. 2757007054f0SBryan VenteicherWhen in multicast mode, an entry in the forwarding table allows the 2758007054f0SBryan Venteicherinterface to send the frame directly to the remote host instead of 2759007054f0SBryan Venteicherbroadcasting the frame to the multicast group. 2760007054f0SBryan VenteicherThis is the default. 2761c6e32006SBryan Venteicher.It Fl vxlanlearn 2762007054f0SBryan VenteicherThe forwarding table is not populated by recevied packets. 2763c6e32006SBryan Venteicher.It Cm vxlanflush 2764007054f0SBryan VenteicherDelete all dynamically-learned addresses from the forwarding table. 2765c6e32006SBryan Venteicher.It Cm vxlanflushall 2766007054f0SBryan VenteicherDelete all addresses, including static addresses, from the forwarding table. 2767007054f0SBryan Venteicher.El 2768007054f0SBryan Venteicher.Pp 2769007054f0SBryan VenteicherThe following parameters are used to configure 2770556c9a4cSJesus R. Camou.Xr carp 4 277108b68b0eSGleb Smirnoffprotocol on an interface: 2772556c9a4cSJesus R. Camou.Bl -tag -width indent 277308b68b0eSGleb Smirnoff.It Cm vhid Ar n 277408b68b0eSGleb SmirnoffSet the virtual host ID. 277508b68b0eSGleb SmirnoffThis is a required setting to initiate 277608b68b0eSGleb Smirnoff.Xr carp 4 . 2777818b39edSWarren BlockIf the virtual host ID does not exist yet, it is created and attached to the 277808b68b0eSGleb Smirnoffinterface, otherwise configuration of an existing vhid is adjusted. 277908b68b0eSGleb SmirnoffIf the 278008b68b0eSGleb Smirnoff.Cm vhid 278108b68b0eSGleb Smirnoffkeyword is supplied along with an 278208b68b0eSGleb Smirnoff.Dq inet6 278308b68b0eSGleb Smirnoffor 278408b68b0eSGleb Smirnoff.Dq inet 278508b68b0eSGleb Smirnoffaddress, then this address is configured to be run under control of the 278608b68b0eSGleb Smirnoffspecified vhid. 278708b68b0eSGleb SmirnoffWhenever a last address that refers to a particular vhid is removed from an 278808b68b0eSGleb Smirnoffinterface, the vhid is automatically removed from interface and destroyed. 278908b68b0eSGleb SmirnoffAny other configuration parameters for the 279008b68b0eSGleb Smirnoff.Xr carp 4 279108b68b0eSGleb Smirnoffprotocol should be supplied along with the 279208b68b0eSGleb Smirnoff.Cm vhid 279308b68b0eSGleb Smirnoffkeyword. 279408b68b0eSGleb SmirnoffAcceptable values for vhid are 1 to 255. 2795556c9a4cSJesus R. Camou.It Cm advbase Ar seconds 2796556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds. 2797556c9a4cSJesus R. CamouThe acceptable values are 1 to 255. 2798556c9a4cSJesus R. CamouThe default value is 1. 2799556c9a4cSJesus R. Camou.It Cm advskew Ar interval 2800556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to 2801556c9a4cSJesus R. Camoumake one host advertise slower than another host. 2802556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds. 2803556c9a4cSJesus R. CamouThe acceptable values are 1 to 254. 2804556c9a4cSJesus R. CamouThe default value is 0. 2805556c9a4cSJesus R. Camou.It Cm pass Ar phrase 2806556c9a4cSJesus R. CamouSet the authentication key to 2807556c9a4cSJesus R. Camou.Ar phrase . 280808b68b0eSGleb Smirnoff.It Cm state Ar MASTER|BACKUP 280908b68b0eSGleb SmirnoffForcibly change state of a given vhid. 2810556c9a4cSJesus R. Camou.El 2811556c9a4cSJesus R. Camou.Pp 2812e1205e80SPhilippe CharnierThe 2813e1205e80SPhilippe Charnier.Nm 2814e1205e80SPhilippe Charnierutility displays the current configuration for a network interface 28158fae3551SRodney W. Grimeswhen no optional parameters are supplied. 28168fae3551SRodney W. GrimesIf a protocol family is specified, 2817e333b944SPhilippe Charnier.Nm 2818e333b944SPhilippe Charnierwill report only the details specific to that protocol family. 2819b5436146SPeter Wemm.Pp 2820ca299b1fSPoul-Henning KampIf the 2821ca299b1fSPoul-Henning Kamp.Fl m 2822b09b4efbSRuslan Ermilovflag is passed before an interface name, 2823b09b4efbSRuslan Ermilov.Nm 2824fc281403SRuslan Ermilovwill display the capability list and all 2825ca299b1fSPoul-Henning Kampof the supported media for the specified interface. 2826cfa1ca9dSYoshinobu InoueIf 2827cfa1ca9dSYoshinobu Inoue.Fl L 2828b112c02bSBen Smithurstflag is supplied, address lifetime is displayed for IPv6 addresses, 2829cfa1ca9dSYoshinobu Inoueas time offset string. 2830cfa1ca9dSYoshinobu Inoue.Pp 2831b5436146SPeter WemmOptionally, the 2832b5436146SPeter Wemm.Fl a 2833b09b4efbSRuslan Ermilovflag may be used instead of an interface name. 2834b09b4efbSRuslan ErmilovThis flag instructs 2835b5436146SPeter Wemm.Nm 2836b5436146SPeter Wemmto display information about all interfaces in the system. 2837e333b944SPhilippe CharnierThe 2838b5436146SPeter Wemm.Fl d 2839e333b944SPhilippe Charnierflag limits this to interfaces that are down, and 2840b5436146SPeter Wemm.Fl u 2841b5436146SPeter Wemmlimits this to interfaces that are up. 2842abc3361aSArchie CobbsWhen no arguments are given, 2843abc3361aSArchie Cobbs.Fl a 2844abc3361aSArchie Cobbsis implied. 2845b5436146SPeter Wemm.Pp 2846b5436146SPeter WemmThe 2847b5436146SPeter Wemm.Fl l 2848b5436146SPeter Wemmflag may be used to list all available interfaces on the system, with 2849b09b4efbSRuslan Ermilovno other additional information. 28501d28cd26SAllan JudeIf an 28511d28cd26SAllan Jude.Ar address_family 28521d28cd26SAllan Judeis specified, only interfaces of that type will be listed. 28531d28cd26SAllan Jude.Fl l Dq ether 285496db02f2SAllan Judewill list only Ethernet adapters, excluding the loopback interface. 2855b09b4efbSRuslan ErmilovUse of this flag is mutually exclusive 2856b5436146SPeter Wemmwith all other flags and commands, except for 2857b5436146SPeter Wemm.Fl d 2858b5436146SPeter Wemm(only list interfaces that are down) 2859b5436146SPeter Wemmand 2860b5436146SPeter Wemm.Fl u 2861b5436146SPeter Wemm(only list interfaces that are up). 28628fae3551SRodney W. Grimes.Pp 28633e61dca0SBrooks DavisThe 28645faf8dcbSSam Leffler.Fl v 28655faf8dcbSSam Lefflerflag may be used to get more verbose status for an interface. 28665faf8dcbSSam Leffler.Pp 28675faf8dcbSSam LefflerThe 28683e61dca0SBrooks Davis.Fl C 28693e61dca0SBrooks Davisflag may be used to list all of the interface cloners available on 28703e61dca0SBrooks Davisthe system, with no additional information. 28713e61dca0SBrooks DavisUse of this flag is mutually exclusive with all other flags and commands. 28723e61dca0SBrooks Davis.Pp 2873b7eb47e2SRobert WatsonThe 2874b7eb47e2SRobert Watson.Fl k 2875b7eb47e2SRobert Watsonflag causes keying information for the interface, if available, to be 2876b7eb47e2SRobert Watsonprinted. 287708b68b0eSGleb SmirnoffFor example, the values of 802.11 WEP keys and 287808b68b0eSGleb Smirnoff.Xr carp 4 287908b68b0eSGleb Smirnoffpassphrases will be printed, if accessible to the current user. 2880b7eb47e2SRobert WatsonThis information is not printed by default, as it may be considered 2881b7eb47e2SRobert Watsonsensitive. 2882b7eb47e2SRobert Watson.Pp 2883a389ab00SAndrew ThompsonIf the network interface driver is not present in the kernel then 2884a389ab00SAndrew Thompson.Nm 2885a389ab00SAndrew Thompsonwill attempt to load it. 2886a389ab00SAndrew ThompsonThe 2887a389ab00SAndrew Thompson.Fl n 2888a389ab00SAndrew Thompsonflag disables this behavior. 2889a389ab00SAndrew Thompson.Pp 28908fae3551SRodney W. GrimesOnly the super-user may modify the configuration of a network interface. 28919bad5f37SBruce M Simpson.Sh EXAMPLES 28929bad5f37SBruce M SimpsonAssign the IPv4 address 28939bb9973cSBruce M Simpson.Li 192.0.2.10 , 28949bad5f37SBruce M Simpsonwith a network mask of 28959bad5f37SBruce M Simpson.Li 255.255.255.0 , 28969bad5f37SBruce M Simpsonto the interface 28979bad5f37SBruce M Simpson.Li fxp0 : 28989bb9973cSBruce M Simpson.Dl # ifconfig fxp0 inet 192.0.2.10 netmask 255.255.255.0 28999bad5f37SBruce M Simpson.Pp 29009bb9973cSBruce M SimpsonAdd the IPv4 address 29019bb9973cSBruce M Simpson.Li 192.0.2.45 , 29029bad5f37SBruce M Simpsonwith the CIDR network prefix 29039bb9973cSBruce M Simpson.Li /28 , 29049bad5f37SBruce M Simpsonto the interface 29059bb9973cSBruce M Simpson.Li ed0 , 29069bb9973cSBruce M Simpsonusing 29079bb9973cSBruce M Simpson.Cm add 29089bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 29099bb9973cSBruce M Simpson.Cm alias : 29109bb9973cSBruce M Simpson.Dl # ifconfig ed0 inet 192.0.2.45/28 add 29119bad5f37SBruce M Simpson.Pp 29129bb9973cSBruce M SimpsonRemove the IPv4 address 29139bb9973cSBruce M Simpson.Li 192.0.2.45 29149bb9973cSBruce M Simpsonfrom the interface 29159bb9973cSBruce M Simpson.Li ed0 : 29169bb9973cSBruce M Simpson.Dl # ifconfig ed0 inet 192.0.2.45 -alias 29179bb9973cSBruce M Simpson.Pp 2918a283298cSHiroki SatoEnable IPv6 functionality of the interface: 2919a283298cSHiroki Sato.Dl # ifconfig em0 inet6 -ifdisabled 2920a283298cSHiroki Sato.Pp 29219bb9973cSBruce M SimpsonAdd the IPv6 address 29229bb9973cSBruce M Simpson.Li 2001:DB8:DBDB::123/48 29239bad5f37SBruce M Simpsonto the interface 29249bad5f37SBruce M Simpson.Li em0 : 29259bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias 29269bb9973cSBruce M SimpsonNote that lower case hexadecimal IPv6 addresses are acceptable. 29279bad5f37SBruce M Simpson.Pp 29289bad5f37SBruce M SimpsonRemove the IPv6 address added in the above example, 29299bad5f37SBruce M Simpsonusing the 29309bad5f37SBruce M Simpson.Li / 29319bb9973cSBruce M Simpsoncharacter as shorthand for the network prefix, 29329bb9973cSBruce M Simpsonand using 29339bb9973cSBruce M Simpson.Cm delete 29349bb9973cSBruce M Simpsonas a synonym for the canonical form of the option 29359bb9973cSBruce M Simpson.Fl alias : 29369bb9973cSBruce M Simpson.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete 29379bad5f37SBruce M Simpson.Pp 293808b68b0eSGleb SmirnoffConfigure a single CARP redundant address on igb0, and then switch it 293908b68b0eSGleb Smirnoffto be master: 29402e25a531SGleb Smirnoff.Dl # ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up 294108b68b0eSGleb Smirnoff.Dl # ifconfig igb0 vhid 1 state master 294208b68b0eSGleb Smirnoff.Pp 29439bad5f37SBruce M SimpsonConfigure the interface 29449bad5f37SBruce M Simpson.Li xl0 , 29459bad5f37SBruce M Simpsonto use 100baseTX, full duplex Ethernet media options: 29469bad5f37SBruce M Simpson.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex 29479bad5f37SBruce M Simpson.Pp 2948215940b3SXin LILabel the em0 interface as an uplink: 2949215940b3SXin LI.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&" 2950215940b3SXin LI.Pp 29519bad5f37SBruce M SimpsonCreate the software network interface 29529bad5f37SBruce M Simpson.Li gif1 : 29539bad5f37SBruce M Simpson.Dl # ifconfig gif1 create 29549bad5f37SBruce M Simpson.Pp 29559bad5f37SBruce M SimpsonDestroy the software network interface 29569bad5f37SBruce M Simpson.Li gif1 : 29579bad5f37SBruce M Simpson.Dl # ifconfig gif1 destroy 295848141d37SGlen Barber.Pp 295966e0e139SGlen BarberDisplay available wireless networks using 296048141d37SGlen Barber.Li wlan0 : 2961a34287fbSGlen Barber.Dl # ifconfig wlan0 list scan 29627c2aa744SAllan Jude.Pp 29637c2aa744SAllan JudeDisplay inet and inet6 address subnet masks in CIDR notation 29647c2aa744SAllan Jude.Dl # ifconfig -f inet:cidr,inet6:cidr 29658fae3551SRodney W. Grimes.Sh DIAGNOSTICS 296620d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the 29678fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and 29688fae3551SRodney W. Grimestried to alter an interface's configuration. 29698fae3551SRodney W. Grimes.Sh SEE ALSO 29708fae3551SRodney W. Grimes.Xr netstat 1 , 29714029efa5SChristian Brueffer.Xr carp 4 , 29726dcd0ad8SHiroki Sato.Xr gif 4 , 29738fae3551SRodney W. Grimes.Xr netintro 4 , 2974ced42c6cSCeri Davies.Xr pfsync 4 , 29754029efa5SChristian Brueffer.Xr polling 4 , 2976588e78c5SYaroslav Tykhiy.Xr vlan 4 , 2977007054f0SBryan Venteicher.Xr vxlan 4 , 2978fd9635efSWarren Block.Xr devd.conf 5 , 2979b09b4efbSRuslan Ermilov.\" .Xr eon 5 , 2980fd9635efSWarren Block.Xr devd 8 , 2981c09eb466SJoel Dahl.Xr jail 8 , 29828fae3551SRodney W. Grimes.Xr rc 8 , 29834b32efacSBruce M Simpson.Xr routed 8 , 29844b32efacSBruce M Simpson.Xr sysctl 8 29858fae3551SRodney W. Grimes.Sh HISTORY 29868fae3551SRodney W. GrimesThe 29878fae3551SRodney W. Grimes.Nm 2988e1205e80SPhilippe Charnierutility appeared in 29898fae3551SRodney W. Grimes.Bx 4.2 . 29906087df9eSRuslan Ermilov.Sh BUGS 29916087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each 29926087df9eSRuslan Ermilovinterface configured for IPv6. 29936087df9eSRuslan ErmilovNormally, such an address is automatically configured by the 2994a283298cSHiroki Satokernel on each interface added to the system or enabled; this behavior may 2995a283298cSHiroki Satobe disabled by setting per-interface flag 2996a283298cSHiroki Sato.Cm -auto_linklocal . 2997a283298cSHiroki SatoThe default value of this flag is 1 and can be disabled by using the sysctl 2998a283298cSHiroki SatoMIB variable 2999a283298cSHiroki Sato.Va net.inet6.ip6.auto_linklocal . 30006087df9eSRuslan Ermilov.Pp 3001a283298cSHiroki SatoDo not configure IPv6 addresses with no link-local address by using 3002a283298cSHiroki Sato.Nm . 3003a283298cSHiroki SatoIt can result in unexpected behaviors of the kernel. 3004