| Commit | Line | Data |
|---|---|---|
| 984263bc MD |
1 | .\" Copyright (c) 1983, 1991, 1993 |
| 2 | .\" The Regents of the University of California. All rights reserved. | |
| 3 | .\" | |
| 4 | .\" Redistribution and use in source and binary forms, with or without | |
| 5 | .\" modification, are permitted provided that the following conditions | |
| 6 | .\" are met: | |
| 7 | .\" 1. Redistributions of source code must retain the above copyright | |
| 8 | .\" notice, this list of conditions and the following disclaimer. | |
| 9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
| 10 | .\" notice, this list of conditions and the following disclaimer in the | |
| 11 | .\" documentation and/or other materials provided with the distribution. | |
| 984263bc MD |
12 | .\" 4. Neither the name of the University nor the names of its contributors |
| 13 | .\" may be used to endorse or promote products derived from this software | |
| 14 | .\" without specific prior written permission. | |
| 15 | .\" | |
| 16 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
| 17 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 18 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
| 19 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
| 20 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
| 21 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
| 22 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 23 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
| 24 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
| 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
| 26 | .\" SUCH DAMAGE. | |
| 27 | .\" | |
| 28 | .\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 | |
| b16c423b | 29 | .\" $FreeBSD: src/sbin/ifconfig/ifconfig.8,v 1.124 2006/10/10 09:44:08 ru Exp $ |
| 95482127 | 30 | .\" $DragonFly: src/sbin/ifconfig/ifconfig.8,v 1.25 2008/11/14 12:52:04 sephe Exp $ |
| 984263bc | 31 | .\" |
| e9a7dd65 | 32 | .Dd March 2, 2010 |
| 984263bc MD |
33 | .Dt IFCONFIG 8 |
| 34 | .Os | |
| 35 | .Sh NAME | |
| 36 | .Nm ifconfig | |
| 37 | .Nd configure network interface parameters | |
| 38 | .Sh SYNOPSIS | |
| 39 | .Nm | |
| 40 | .Op Fl L | |
| 55fc9f88 | 41 | .Op Fl k |
| 984263bc MD |
42 | .Op Fl m |
| 43 | .Ar interface | |
| 44 | .Op Cm create | |
| 45 | .Op Ar address_family | |
| 46 | .Oo | |
| 47 | .Ar address | |
| 48 | .Op Ar dest_address | |
| 49 | .Oc | |
| 50 | .Op Ar parameters | |
| 51 | .Nm | |
| 52 | .Ar interface | |
| 53 | .Cm destroy | |
| 54 | .Nm | |
| 55 | .Fl a | |
| 56 | .Op Fl L | |
| 57 | .Op Fl d | |
| 58 | .Op Fl m | |
| 59 | .Op Fl u | |
| 55fc9f88 | 60 | .Op Fl v |
| 984263bc MD |
61 | .Op Ar address_family |
| 62 | .Nm | |
| 63 | .Fl l | |
| 64 | .Op Fl d | |
| 65 | .Op Fl u | |
| 66 | .Op Ar address_family | |
| 67 | .Nm | |
| 68 | .Op Fl L | |
| 69 | .Op Fl d | |
| 55fc9f88 | 70 | .Op Fl k |
| 984263bc MD |
71 | .Op Fl m |
| 72 | .Op Fl u | |
| 55fc9f88 | 73 | .Op Fl v |
| 984263bc MD |
74 | .Op Fl C |
| 75 | .Sh DESCRIPTION | |
| 76 | The | |
| 77 | .Nm | |
| 78 | utility is used to assign an address | |
| 79 | to a network interface and/or configure | |
| 80 | network interface parameters. | |
| 81 | The | |
| 82 | .Nm | |
| 83 | utility must be used at boot time to define the network address | |
| 84 | of each interface present on a machine; it may also be used at | |
| 85 | a later time to redefine an interface's address | |
| 86 | or other operating parameters. | |
| 87 | .Pp | |
| 88 | The following options are available: | |
| 89 | .Bl -tag -width indent | |
| 90 | .It Ar address | |
| 91 | For the | |
| 92 | .Tn DARPA Ns -Internet | |
| 93 | family, | |
| 94 | the address is either a host name present in the host name data | |
| 95 | base, | |
| 96 | .Xr hosts 5 , | |
| 97 | or a | |
| 98 | .Tn DARPA | |
| 99 | Internet address expressed in the Internet standard | |
| 100 | .Dq dot notation . | |
| 101 | .Pp | |
| 102 | It is also possible to use the CIDR notation (also known as the | |
| 103 | slash notation) to include the netmask. | |
| 104 | That is, one can specify an address like | |
| 105 | .Li 192.168.0.1/16 . | |
| 106 | .Pp | |
| 107 | For | |
| 108 | .Dq inet6 | |
| 109 | family, it is also possible to specify the prefix length using the slash | |
| 110 | notation, like | |
| 111 | .Li ::1/128 . | |
| 112 | See the | |
| 113 | .Cm prefixlen | |
| 114 | parameter below for more information. | |
| 115 | .\" For the Xerox Network Systems(tm) family, | |
| 116 | .\" addresses are | |
| 117 | .\" .Ar net:a.b.c.d.e.f , | |
| 118 | .\" where | |
| 119 | .\" .Ar net | |
| 120 | .\" is the assigned network number (in decimal), | |
| 121 | .\" and each of the six bytes of the host number, | |
| 122 | .\" .Ar a | |
| 123 | .\" through | |
| 124 | .\" .Ar f , | |
| 125 | .\" are specified in hexadecimal. | |
| 126 | .\" The host number may be omitted on IEEE 802 protocol | |
| 127 | .\" (Ethernet, FDDI, and Token Ring) interfaces, | |
| 128 | .\" which use the hardware physical address, | |
| 129 | .\" and on interfaces other than the first. | |
| 130 | .\" For the | |
| 131 | .\" .Tn ISO | |
| 132 | .\" family, addresses are specified as a long hexadecimal string, | |
| 133 | .\" as in the Xerox family. | |
| 134 | .\" However, two consecutive dots imply a zero | |
| 135 | .\" byte, and the dots are optional, if the user wishes to (carefully) | |
| 136 | .\" count out long strings of digits in network byte order. | |
| 137 | .Pp | |
| 138 | The link-level | |
| 139 | .Pq Dq link | |
| 140 | address | |
| 141 | is specified as a series of colon-separated hex digits. | |
| 142 | This can be used to | |
| b50e4759 | 143 | e.g.\& set a new MAC address on an ethernet interface, though the |
| 984263bc MD |
144 | mechanism used is not ethernet-specific. |
| 145 | If the interface is already | |
| 146 | up when this option is used, it will be briefly brought down and | |
| 147 | then brought back up again in order to ensure that the receive | |
| 148 | filter in the underlying ethernet hardware is properly reprogrammed. | |
| 149 | .It Ar address_family | |
| 150 | Specify the | |
| 151 | address family | |
| 152 | which affects interpretation of the remaining parameters. | |
| 153 | Since an interface can receive transmissions in differing protocols | |
| 154 | with different naming schemes, specifying the address family is recommended. | |
| 155 | The address or protocol families currently | |
| 156 | supported are | |
| 157 | .Dq inet , | |
| 158 | .Dq inet6 , | |
| 159 | .Dq atalk , | |
| 160 | .Dq ipx , | |
| 161 | .\" .Dq iso , | |
| 162 | and | |
| 163 | .Dq link . | |
| 164 | .\" and | |
| 165 | .\" .Dq ns . | |
| 166 | The default is | |
| 167 | .Dq inet . | |
| 168 | .Dq ether | |
| 169 | and | |
| 170 | .Dq lladdr | |
| 171 | are synonyms for | |
| 172 | .Dq link . | |
| 173 | .It Ar dest_address | |
| 174 | Specify the address of the correspondent on the other end | |
| 175 | of a point to point link. | |
| 176 | .It Ar interface | |
| 177 | This | |
| 178 | parameter is a string of the form | |
| 179 | .Dq name unit , | |
| 180 | for example, | |
| 181 | .Dq Li ed0 . | |
| 182 | .El | |
| 183 | .Pp | |
| 184 | The following parameters may be set with | |
| 185 | .Nm : | |
| 186 | .Bl -tag -width indent | |
| 187 | .It Cm add | |
| 188 | Another name for the | |
| 189 | .Cm alias | |
| 190 | parameter. | |
| 191 | Introduced for compatibility | |
| 192 | with | |
| 193 | .Bsx . | |
| 194 | .It Cm alias | |
| 195 | Establish an additional network address for this interface. | |
| 196 | This is sometimes useful when changing network numbers, and | |
| 197 | one wishes to accept packets addressed to the old interface. | |
| 198 | If the address is on the same subnet as the first network address | |
| 199 | for this interface, a non-conflicting netmask must be given. | |
| 200 | Usually | |
| 201 | .Li 0xffffffff | |
| 202 | is most appropriate. | |
| 203 | .It Fl alias | |
| b50e4759 | 204 | Remove the network address specified. |
| 984263bc MD |
205 | This would be used if you incorrectly specified an alias, or it |
| 206 | was no longer needed. | |
| 207 | If you have incorrectly set an NS address having the side effect | |
| 208 | of specifying the host portion, removing all NS addresses will | |
| 209 | allow you to respecify the host portion. | |
| 210 | .It Cm anycast | |
| 211 | (Inet6 only.) | |
| 212 | Specify that the address configured is an anycast address. | |
| 213 | Based on the current specification, | |
| 214 | only routers may configure anycast addresses. | |
| 215 | Anycast address will not be used as source address of any of outgoing | |
| 216 | IPv6 packets. | |
| 217 | .It Cm arp | |
| 218 | Enable the use of the Address Resolution Protocol | |
| 219 | .Pq Xr arp 4 | |
| 220 | in mapping | |
| 221 | between network level addresses and link level addresses (default). | |
| 222 | This is currently implemented for mapping between | |
| 223 | .Tn DARPA | |
| 224 | Internet | |
| 225 | addresses and | |
| 226 | .Tn IEEE | |
| 227 | 802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses). | |
| 228 | .It Fl arp | |
| 229 | Disable the use of the Address Resolution Protocol | |
| 230 | .Pq Xr arp 4 . | |
| 07813904 SZ |
231 | .It Cm staticarp |
| 232 | If the Address Resolution Protocol is enabled, | |
| 233 | the host will only reply to requests for its addresses, | |
| 234 | and will never send any requests. | |
| 235 | .It Fl staticarp | |
| 236 | If the Address Resolution Protocol is enabled, | |
| 237 | the host will perform normally, | |
| 238 | sending out requests and listening for replies. | |
| 984263bc MD |
239 | .It Cm broadcast |
| 240 | (Inet only.) | |
| 241 | Specify the address to use to represent broadcasts to the | |
| 242 | network. | |
| 243 | The default broadcast address is the address with a host part of all 1's. | |
| 244 | .It Cm debug | |
| 245 | Enable driver dependent debugging code; usually, this turns on | |
| 246 | extra console error logging. | |
| 247 | .It Fl debug | |
| 248 | Disable driver dependent debugging code. | |
| 249 | .It Cm promisc | |
| 250 | Put interface into permanently promiscuous mode. | |
| 251 | .It Fl promisc | |
| 252 | Disable permanently promiscuous mode. | |
| 253 | .It Cm delete | |
| 254 | Another name for the | |
| 255 | .Fl alias | |
| 256 | parameter. | |
| 257 | .It Cm down | |
| 258 | Mark an interface | |
| 259 | .Dq down . | |
| 260 | When an interface is marked | |
| 261 | .Dq down , | |
| 262 | the system will not attempt to | |
| 263 | transmit messages through that interface. | |
| 264 | If possible, the interface will be reset to disable reception as well. | |
| 265 | This action does not automatically disable routes using the interface. | |
| 266 | .It Cm eui64 | |
| 267 | (Inet6 only.) | |
| 268 | Fill interface index | |
| 269 | (lowermost 64bit of an IPv6 address) | |
| 270 | automatically. | |
| b16c423b SW |
271 | .It Cm ipdst |
| 272 | This is used to specify an Internet host who is willing to receive | |
| 273 | IP packets encapsulating IPX packets bound for a remote network. | |
| 274 | An apparent point to point link is constructed, and | |
| 275 | the address specified will be taken as the IPX address and network | |
| 276 | of the destination. | |
| 984263bc MD |
277 | .It Cm media Ar type |
| 278 | If the driver supports the media selection system, set the media type | |
| 279 | of the interface to | |
| 280 | .Ar type . | |
| 281 | Some interfaces support the mutually exclusive use of one of several | |
| 282 | different physical media connectors. | |
| b16c423b | 283 | For example, a 10Mbit/s Ethernet |
| 984263bc MD |
284 | interface might support the use of either |
| 285 | .Tn AUI | |
| 286 | or twisted pair connectors. | |
| 287 | Setting the media type to | |
| b16c423b | 288 | .Cm 10base5/AUI |
| 984263bc MD |
289 | would change the currently active connector to the AUI port. |
| 290 | Setting it to | |
| b16c423b | 291 | .Cm 10baseT/UTP |
| 984263bc MD |
292 | would activate twisted pair. |
| 293 | Refer to the interfaces' driver | |
| 294 | specific documentation or man page for a complete list of the | |
| 295 | available types. | |
| 296 | .It Cm mediaopt Ar opts | |
| 297 | If the driver supports the media selection system, set the specified | |
| 298 | media options on the interface. | |
| 299 | The | |
| 300 | .Ar opts | |
| 301 | argument | |
| 302 | is a comma delimited list of options to apply to the interface. | |
| 303 | Refer to the interfaces' driver specific man page for a complete | |
| 304 | list of available options. | |
| 305 | .It Fl mediaopt Ar opts | |
| 306 | If the driver supports the media selection system, disable the | |
| 307 | specified media options on the interface. | |
| b50e4759 MD |
308 | .It Cm mode Ar mode |
| 309 | If the driver supports the media selection system, set the specified | |
| 310 | operating mode on the interface to | |
| 311 | .Ar mode . | |
| 312 | For IEEE 802.11 wireless interfaces that support multiple operating modes | |
| 313 | this directive is used to select between 802.11a | |
| b16c423b | 314 | .Pq Cm 11a , |
| b50e4759 | 315 | 802.11b |
| b16c423b | 316 | .Pq Cm 11b , |
| b50e4759 | 317 | and 802.11g |
| b16c423b | 318 | .Pq Cm 11g |
| b50e4759 MD |
319 | operating modes. |
| 320 | .It Cm name Ar name | |
| 321 | Set the interface name to | |
| 322 | .Ar name . | |
| d585233c SZ |
323 | .It Cm rss |
| 324 | If the driver supports receive side scaling, | |
| 325 | enable receive side scaling on the interface. | |
| 326 | .It Fl rss | |
| 327 | If the driver supports receive side scaling, | |
| 328 | disable receive side scaling on the interface. | |
| b50e4759 MD |
329 | .It Cm rxcsum , txcsum |
| 330 | If the driver supports user-configurable checksum offloading, | |
| 331 | enable receive (or transmit) checksum offloading on the interface. | |
| 332 | Some drivers may not be able to enable these flags independently | |
| 333 | of each other, so setting one may also set the other. | |
| 334 | The driver will offload as much checksum work as it can reliably | |
| 335 | support, the exact level of offloading varies between drivers. | |
| b16c423b SW |
336 | .It Fl rxcsum , txcsum |
| 337 | If the driver supports user-configurable checksum offloading, | |
| 338 | disable receive (or transmit) checksum offloading on the interface. | |
| 339 | These settings may not always be independent of each other. | |
| 340 | .It Cm vlanmtu , vlanhwtag | |
| 341 | If the driver offers user-configurable VLAN support, enable | |
| 342 | reception of extended frames or tag processing in hardware, | |
| 343 | respectively. | |
| 344 | Note that this must be issued on a physical interface associated with | |
| 345 | .Xr vlan 4 , | |
| 346 | not on a | |
| 347 | .Xr vlan 4 | |
| 348 | interface itself. | |
| 349 | .It Fl vlanmtu , vlanhwtag | |
| 350 | If the driver offers user-configurable VLAN support, disable | |
| 351 | reception of extended frames or tag processing in hardware, | |
| 352 | respectively. | |
| 6587026a SZ |
353 | .It Cm pollcpu Ar cpu |
| 354 | Turn on | |
| 355 | .Xr polling 4 | |
| 356 | feature and disable interrupts on the interface, | |
| 357 | if the driver supports this mode and | |
| 358 | .Ar cpu | |
| 359 | supports | |
| 360 | .Xr polling 4 . | |
| 361 | Driver will be polled by | |
| 362 | .Ar cpu . | |
| b16c423b SW |
363 | .It Cm polling |
| 364 | Turn on | |
| 365 | .Xr polling 4 | |
| 366 | feature and disable interrupts on the interface, if the driver supports | |
| 367 | this mode. | |
| 368 | .It Fl polling | |
| 369 | Turn off | |
| 370 | .Xr polling 4 | |
| 371 | feature and enable interrupt mode on the interface. | |
| 984263bc MD |
372 | .It Cm create |
| 373 | Create the specified network pseudo-device. | |
| 374 | If the interface is given without a unit number, try to create a new | |
| 375 | device with an arbitrary unit number. | |
| 376 | If creation of an arbitrary device is successful, the new device name is | |
| b16c423b SW |
377 | printed to standard output unless the interface is renamed or destroyed |
| 378 | in the same | |
| 379 | .Nm | |
| 380 | invocation. | |
| 984263bc MD |
381 | .It Cm destroy |
| 382 | Destroy the specified network pseudo-device. | |
| 383 | .It Cm plumb | |
| 384 | Another name for the | |
| 385 | .Cm create | |
| 386 | parameter. | |
| 387 | Included for | |
| 388 | .Tn Solaris | |
| 389 | compatibility. | |
| 390 | .It Cm unplumb | |
| 391 | Another name for the | |
| 392 | .Cm destroy | |
| 393 | parameter. | |
| 394 | Included for | |
| 395 | .Tn Solaris | |
| 396 | compatibility. | |
| 984263bc MD |
397 | .It Cm metric Ar n |
| 398 | Set the routing metric of the interface to | |
| 399 | .Ar n , | |
| 400 | default 0. | |
| 401 | The routing metric is used by the routing protocol | |
| 402 | .Pq Xr routed 8 . | |
| 403 | Higher metrics have the effect of making a route | |
| b16c423b | 404 | less favorable; metrics are counted as additional hops |
| 984263bc MD |
405 | to the destination network or host. |
| 406 | .It Cm mtu Ar n | |
| 407 | Set the maximum transmission unit of the interface to | |
| 408 | .Ar n , | |
| 409 | default is interface specific. | |
| 410 | The MTU is used to limit the size of packets that are transmitted on an | |
| 411 | interface. | |
| 412 | Not all interfaces support setting the MTU, and some interfaces have | |
| 413 | range restrictions. | |
| 414 | .It Cm netmask Ar mask | |
| 415 | .\" (Inet and ISO.) | |
| 416 | (Inet only.) | |
| 417 | Specify how much of the address to reserve for subdividing | |
| 418 | networks into sub-networks. | |
| 419 | The mask includes the network part of the local address | |
| 420 | and the subnet part, which is taken from the host field of the address. | |
| 421 | The mask can be specified as a single hexadecimal number | |
| 422 | with a leading | |
| 423 | .Ql 0x , | |
| 424 | with a dot-notation Internet address, | |
| 425 | or with a pseudo-network name listed in the network table | |
| 426 | .Xr networks 5 . | |
| 427 | The mask contains 1's for the bit positions in the 32-bit address | |
| 428 | which are to be used for the network and subnet parts, | |
| 429 | and 0's for the host part. | |
| 430 | The mask should contain at least the standard network portion, | |
| 431 | and the subnet field should be contiguous with the network | |
| 432 | portion. | |
| 433 | .Pp | |
| 434 | The netmask can also be specified in CIDR notation after the address. | |
| 435 | See the | |
| 436 | .Ar address | |
| 437 | option above for more information. | |
| b16c423b SW |
438 | .It Cm autoconf |
| 439 | (Inet6 only.) | |
| 440 | Enable autoconfiguration. | |
| 441 | .It Fl autoconf | |
| 442 | Disable autoconfiguration. | |
| 443 | .It Cm pltime Ar n | |
| 444 | (Inet6 only.) | |
| 445 | Set preferred lifetime for the address. | |
| 446 | .It Cm vltime Ar n | |
| 447 | (Inet6 only.) | |
| 448 | Set valid lifetime for the address. | |
| 984263bc MD |
449 | .It Cm prefixlen Ar len |
| 450 | (Inet6 only.) | |
| 451 | Specify that | |
| 452 | .Ar len | |
| 453 | bits are reserved for subdividing networks into sub-networks. | |
| 454 | The | |
| 455 | .Ar len | |
| 456 | must be integer, and for syntactical reason it must be between 0 to 128. | |
| 457 | It is almost always 64 under the current IPv6 assignment rule. | |
| 458 | If the parameter is omitted, 64 is used. | |
| 459 | .Pp | |
| 460 | The prefix can also be specified using the slash notation after the address. | |
| 461 | See the | |
| 462 | .Ar address | |
| 463 | option above for more information. | |
| b16c423b SW |
464 | .It Cm deprecated |
| 465 | (Inet6 only.) | |
| 466 | Set the IPv6 deprecated address bit. | |
| 467 | .It Fl deprecated | |
| 468 | (Inet6 only.) | |
| 469 | Clear the IPv6 deprecated address bit. | |
| 470 | .It Cm tentative | |
| 471 | (Inet6 only.) | |
| 472 | Set the IPv6 tentative address bit. | |
| 473 | .It Fl tentative | |
| 474 | (Inet6 only.) | |
| 475 | Clear the IPv6 tentative address bit. | |
| 984263bc MD |
476 | .\" see |
| 477 | .\" Xr eon 5 . | |
| 478 | .\" .It Cm nsellength Ar n | |
| 479 | .\" .Pf ( Tn ISO | |
| 480 | .\" only) | |
| 481 | .\" This specifies a trailing number of bytes for a received | |
| 482 | .\" .Tn NSAP | |
| 483 | .\" used for local identification, the remaining leading part of which is | |
| 484 | .\" taken to be the | |
| 485 | .\" .Tn NET | |
| 486 | .\" (Network Entity Title). | |
| 487 | .\" The default value is 1, which is conformant to US | |
| 488 | .\" .Tn GOSIP . | |
| 489 | .\" When an ISO address is set in an ifconfig command, | |
| 490 | .\" it is really the | |
| 491 | .\" .Tn NSAP | |
| 492 | .\" which is being specified. | |
| 493 | .\" For example, in | |
| 494 | .\" .Tn US GOSIP , | |
| 495 | .\" 20 hex digits should be | |
| 496 | .\" specified in the | |
| 497 | .\" .Tn ISO NSAP | |
| 498 | .\" to be assigned to the interface. | |
| 499 | .\" There is some evidence that a number different from 1 may be useful | |
| 500 | .\" for | |
| 501 | .\" .Tn AFI | |
| 502 | .\" 37 type addresses. | |
| 503 | .It Cm range Ar netrange | |
| 504 | Under appletalk, set the interface to respond to a | |
| 505 | .Ar netrange | |
| 506 | of the form | |
| 507 | .Ar startnet Ns - Ns Ar endnet . | |
| 508 | Appletalk uses this scheme instead of | |
| 509 | netmasks though | |
| 2fe12702 | 510 | .Dx |
| 984263bc MD |
511 | implements it internally as a set of netmasks. |
| 512 | .It Cm remove | |
| 513 | Another name for the | |
| 514 | .Fl alias | |
| 515 | parameter. | |
| 516 | Introduced for compatibility | |
| 517 | with | |
| 518 | .Bsx . | |
| 519 | .It Cm phase | |
| 520 | The argument following this specifies the version (phase) of the | |
| 521 | Appletalk network attached to the interface. | |
| 522 | Values of 1 or 2 are permitted. | |
| 523 | .Sm off | |
| 524 | .It Cm link Op Cm 0 No - Cm 2 | |
| 525 | .Sm on | |
| 526 | Enable special processing of the link level of the interface. | |
| 527 | These three options are interface specific in actual effect, however, | |
| 528 | they are in general used to select special modes of operation. | |
| 529 | An example | |
| 530 | of this is to enable SLIP compression, or to select the connector type | |
| 531 | for some Ethernet cards. | |
| 532 | Refer to the man page for the specific driver | |
| 533 | for more information. | |
| 534 | .Sm off | |
| 535 | .It Fl link Op Cm 0 No - Cm 2 | |
| 536 | .Sm on | |
| 537 | Disable special processing at the link level with the specified interface. | |
| b16c423b SW |
538 | .It Cm compress |
| 539 | Another name for the | |
| 540 | .Cm link0 | |
| 541 | parameter. | |
| 542 | .It Cm normal | |
| 543 | Another name for the | |
| 544 | .Fl link0 | |
| 545 | parameter. | |
| 546 | .It Cm noicmp | |
| 547 | Another name for the | |
| 548 | .Cm link1 | |
| 549 | parameter. | |
| 3a593c54 MD |
550 | .It Cm monitor |
| 551 | Put the interface in monitor mode. | |
| 552 | No packets are transmitted, and received packets are discarded after | |
| 553 | .Xr bpf 4 | |
| 554 | processing. | |
| 555 | .It Fl monitor | |
| 556 | Take the interface out of monitor mode. | |
| 984263bc MD |
557 | .It Cm up |
| 558 | Mark an interface | |
| 559 | .Dq up . | |
| 560 | This may be used to enable an interface after an | |
| 561 | .Dq Nm Cm down . | |
| 562 | It happens automatically when setting the first address on an interface. | |
| 563 | If the interface was reset when previously marked down, | |
| 564 | the hardware will be re-initialized. | |
| 55fc9f88 SZ |
565 | .El |
| 566 | .Pp | |
| e9a7dd65 RP |
567 | The following parameters are specific to cloning |
| 568 | IEEE 802.11 wireless interfaces with the | |
| 569 | .Cm create | |
| 570 | request: | |
| 571 | .Bl -tag -width indent | |
| 572 | .It Cm wlandev Ar device | |
| 573 | Use | |
| 574 | .Ar device | |
| 575 | as the parent for the cloned device. | |
| 576 | .It Cm wlanmode Ar mode | |
| 577 | Specify the operating mode for this cloned device. | |
| 578 | .Ar mode | |
| 579 | is one of | |
| 580 | .Cm sta , | |
| 581 | .Cm ahdemo | |
| 582 | (or | |
| 583 | .Cm adhoc-demo ), | |
| 584 | .Cm ibss , | |
| 585 | (or | |
| 586 | .Cm adhoc ), | |
| 587 | .Cm ap , | |
| 588 | (or | |
| 589 | .Cm hostap ), | |
| 590 | .Cm wds , | |
| 591 | .Cm tdma , | |
| 592 | .Cm mesh , | |
| 593 | and | |
| 594 | .Cm monitor . | |
| 595 | The operating mode of a cloned interface cannot be changed. | |
| 596 | The | |
| 597 | .Cm tdma | |
| 598 | mode is actually implemented as an | |
| 599 | .Cm adhoc-demo | |
| 600 | interface with special properties. | |
| 601 | .It Cm wlanbssid Ar bssid | |
| 602 | The 802.11 mac address to use for the bssid. | |
| 603 | This must be specified at create time for a legacy | |
| 604 | .Cm wds | |
| 605 | device. | |
| 606 | .It Cm wlanaddr Ar address | |
| 607 | The local mac address. | |
| 608 | If this is not specified then a mac address will automatically be assigned | |
| 609 | to the cloned device. | |
| 610 | Typically this address is the same as the address of the parent device | |
| 611 | but if the | |
| 612 | .Cm bssid | |
| 613 | parameter is specified then the driver will craft a unique address for | |
| 614 | the device (if supported). | |
| 615 | .It Cm wdslegacy | |
| 616 | Mark a | |
| 617 | .Cm wds | |
| 618 | device as operating in ``legacy mode''. | |
| 619 | Legacy | |
| 620 | .Cm wds | |
| 621 | devices have a fixed peer relationship and do not, for example, roam | |
| 622 | if their peer stops communicating. | |
| 623 | For completeness a Dynamic WDS (DWDS) interface may marked as | |
| 624 | .Fl wdslegacy . | |
| 625 | .It Cm bssid | |
| 626 | Request a unique local mac address for the cloned device. | |
| 627 | This is only possible if the device supports multiple mac addresses. | |
| 628 | To force use of the parent's mac address use | |
| 629 | .Fl bssid . | |
| 630 | .It Cm beacons | |
| 631 | Mark the cloned interface as depending on hardware support to | |
| 632 | track received beacons. | |
| 633 | To have beacons tracked in software use | |
| 634 | .Fl beacons . | |
| 635 | For | |
| 636 | .Cm hostap | |
| 637 | mode | |
| 638 | .Fl beacons | |
| 639 | can also be used to indicate no beacons should | |
| 640 | be transmitted; this can be useful when creating a WDS configuration but | |
| 641 | .Cm wds | |
| 642 | interfaces can only be created as companions to an access point. | |
| 643 | .El | |
| 644 | .Pp | |
| 645 | The following parameters are specific to IEEE 802.11 wireless interfaces | |
| 646 | cloned with a | |
| 647 | .Cm create | |
| 648 | operation: | |
| 55fc9f88 | 649 | .Bl -tag -width indent |
| e9a7dd65 RP |
650 | .It Cm ampdu |
| 651 | Enable sending and receiving AMPDU frames when using 802.11n (default). | |
| 652 | The 802.11n specification states a compliant station must be capable | |
| 653 | of receiving AMPDU frames but transmision is optional. | |
| 654 | Use | |
| 655 | .Fl ampdu | |
| 656 | to disable all use of AMPDU with 802.11n. | |
| 657 | For testing and/or to work around interoperability problems one can use | |
| 658 | .Cm ampdutx | |
| 659 | and | |
| 660 | .Cm ampdurx | |
| 661 | to control use of AMPDU in one direction. | |
| 662 | .It Cm ampdudensity Ar density | |
| 663 | Set the AMPDU density parameter used when operating with 802.11n. | |
| 664 | This parameter controls the inter-packet gap for AMPDU frames. | |
| 665 | The sending device normally controls this setting but a receiving station | |
| 666 | may request wider gaps. | |
| 667 | Legal values for | |
| 668 | .Ar density | |
| 669 | are 0, .25, .5, 1, 2, 4, 8, and 16 (microseconds). | |
| 670 | A value of | |
| 671 | .Cm - | |
| 672 | is treated the same as 0. | |
| 673 | .It Cm ampdulimit Ar limit | |
| 674 | Set the limit on packet size for receiving AMPDU frames when operating | |
| 675 | with 802.11n. | |
| 676 | Legal values for | |
| 677 | .Ar limit | |
| 678 | are 8192, 16384, 32768, and 65536 but one can also specify | |
| 679 | just the unique prefix: 8, 16, 32, 64. | |
| 680 | Note the sender may limit the size of AMPDU frames to be less | |
| 681 | than the maximum specified by the receiving station. | |
| 682 | .It Cm amsdu | |
| 683 | Enable sending and receiving AMSDU frames when using 802.11n. | |
| 684 | By default AMSDU is received but not transmitted. | |
| 685 | Use | |
| 686 | .Fl amsdu | |
| 687 | to disable all use of AMSDU with 802.11n. | |
| 688 | For testing and/or to work around interoperability problems one can use | |
| 689 | .Cm amsdutx | |
| 690 | and | |
| 691 | .Cm amsdurx | |
| 692 | to control use of AMSDU in one direction. | |
| 693 | .It Cm amsdulimit Ar limit | |
| 694 | Set the limit on packet size for sending and receiving AMSDU frames | |
| 695 | when operating with 802.11n. | |
| 696 | Legal values for | |
| 697 | .Ar limit | |
| 698 | are 7935 and 3839 (bytes). | |
| 699 | Note the sender may limit the size of AMSDU frames to be less | |
| 700 | than the maximum specified by the receiving station. | |
| 701 | Note also that devices are not required to support the 7935 limit, | |
| 702 | only 3839 is required by the specification and the larger value | |
| 703 | may require more memory to be dedicated to support functionality | |
| 704 | that is rarely used. | |
| 55fc9f88 SZ |
705 | .It Cm apbridge |
| 706 | When operating as an access point, pass packets between | |
| 707 | wireless clients directly (default). | |
| 708 | To instead let them pass up through the | |
| 709 | system and be forwarded using some other mechanism, use | |
| 710 | .Fl apbridge . | |
| 711 | Disabling the internal bridging | |
| 712 | is useful when traffic is to be processed with | |
| 713 | packet filtering. | |
| 984263bc | 714 | .It Cm authmode Ar mode |
| 55fc9f88 | 715 | Set the desired authentication mode in infrastructure mode. |
| e9a7dd65 | 716 | Not all adapters support all modes. |
| 984263bc MD |
717 | The set of |
| 718 | valid modes is | |
| 55fc9f88 SZ |
719 | .Cm none , open , shared |
| 720 | (shared key), | |
| 721 | .Cm 8021x | |
| 722 | (IEEE 802.1x), | |
| 723 | and | |
| 724 | .Cm wpa | |
| 725 | (IEEE WPA/WPA2/802.11i). | |
| 726 | The | |
| 727 | .Cm 8021x | |
| 984263bc | 728 | and |
| 55fc9f88 SZ |
729 | .Cm wpa |
| 730 | modes are only useful when using an authentication service | |
| 731 | (a supplicant for client operation or an authenticator when | |
| 732 | operating as an access point). | |
| 984263bc | 733 | Modes are case insensitive. |
| e9a7dd65 RP |
734 | .It Cm bgscan |
| 735 | Enable background scanning when operating as a station. | |
| 736 | Background scanning is a technique whereby a station associated to | |
| 737 | an access point will temporarily leave the channel to scan for | |
| 738 | neighboring stations. | |
| 739 | This allows a station to maintain a cache of nearby access points | |
| 740 | so that roaming between access points can be done without | |
| 741 | a lengthy scan operation. | |
| 742 | Background scanning is done only when a station is not busy and | |
| 743 | any outbound traffic will cancel a scan operation. | |
| 744 | Background scanning should never cause packets to be lost though | |
| 745 | there may be some small latency if outbound traffic interrupts a | |
| 746 | scan operation. | |
| 747 | By default background scanning is enabled if the device is capable. | |
| 748 | To disable background scanning, use | |
| 749 | .Fl bgscan . | |
| 750 | Background scanning is controlled by the | |
| 751 | .Cm bgscanidle | |
| 752 | and | |
| 753 | .Cm bgscanintvl | |
| 754 | parameters. | |
| 755 | Background scanning must be enabled for roaming; this is an artifact | |
| 756 | of the current implementation and may not be required in the future. | |
| 757 | .It Cm bgscanidle Ar idletime | |
| 758 | Set the minimum time a station must be idle (not transmitting or | |
| 759 | receiving frames) before a background scan is initiated. | |
| 760 | The | |
| 761 | .Ar idletime | |
| 762 | parameter is specified in milliseconds. | |
| 763 | By default a station must be idle at least 250 milliseconds before | |
| 764 | a background scan is initiated. | |
| 765 | The idle time may not be set to less than 100 milliseconds. | |
| 766 | .It Cm bgscanintvl Ar interval | |
| 767 | Set the interval at which background scanning is attempted. | |
| 768 | The | |
| 769 | .Ar interval | |
| 770 | parameter is specified in seconds. | |
| 771 | By default a background scan is considered every 300 seconds (5 minutes). | |
| 772 | The | |
| 773 | .Ar interval | |
| 774 | may not be set to less than 15 seconds. | |
| 55fc9f88 SZ |
775 | .It Cm bintval Ar interval |
| 776 | Set the interval at which beacon frames are sent when operating in | |
| 777 | ad-hoc or ap mode. | |
| 778 | The | |
| 779 | .Ar interval | |
| cf00283f | 780 | parameter is specified in TU's (1024 usecs). |
| 55fc9f88 | 781 | By default beacon frames are transmitted every 100 TU's. |
| c36e937b SZ |
782 | .It Cm bmissthreshold Ar count |
| 783 | Set the number of consecutive missed beacons at which the station | |
| e9a7dd65 | 784 | will attempt to roam (i.e., search for a new access point). |
| c36e937b SZ |
785 | The |
| 786 | .Ar count | |
| e9a7dd65 RP |
787 | parameter must be in the range 1 to 255; though the |
| 788 | upper bound may be reduced according to device capabilities. | |
| 789 | The default threshold is 7 consecutive missed beacons; but | |
| 790 | this may be overridden by the device driver. | |
| c36e937b SZ |
791 | Another name for the |
| 792 | .Cm bmissthreshold | |
| 793 | parameter is | |
| 794 | .Cm bmiss . | |
| 55fc9f88 SZ |
795 | .It Cm bssid Ar address |
| 796 | Specify the MAC address of the access point to use when operating | |
| 797 | as a station in a BSS network. | |
| 798 | This overrides any automatic selection done by the system. | |
| 799 | To disable a previously selected access point, supply | |
| 800 | .Cm any , none , | |
| 801 | or | |
| 802 | .Cm - | |
| 803 | for the address. | |
| b16c423b | 804 | This option is useful when more than one access point uses the same SSID. |
| 55fc9f88 SZ |
805 | Another name for the |
| 806 | .Cm bssid | |
| 807 | parameter is | |
| 808 | .Cm ap . | |
| 809 | .It Cm burst | |
| 810 | Enable packet bursting. | |
| 811 | Packet bursting is a transmission technique whereby the wireless | |
| 812 | medium is acquired once to send multiple frames and the interframe | |
| 813 | spacing is reduced. | |
| 814 | This technique can significantly increase throughput by reducing | |
| 815 | transmission overhead. | |
| 816 | Packet bursting is supported by the 802.11e QoS specification | |
| 817 | and some devices that do not support QoS may still be capable. | |
| 818 | By default packet bursting is enabled if a device is capable | |
| 819 | of doing it. | |
| 820 | To disable packet bursting, use | |
| 821 | .Fl burst . | |
| 822 | .It Cm chanlist Ar channels | |
| 823 | Set the desired channels to use when scanning for access | |
| 824 | points, neighbors in an IBSS network, or looking for unoccupied | |
| 825 | channels when operating as an access point. | |
| 826 | The set of channels is specified as a comma-separated list with | |
| 827 | each element in the list representing either a single channel number or a range | |
| 828 | of the form | |
| 829 | .Dq Li a-b . | |
| 830 | Channel numbers must be in the range 1 to 255 and be permissible | |
| 831 | according to the operating characteristics of the device. | |
| 832 | .It Cm channel Ar number | |
| 833 | Set a single desired channel. | |
| 834 | Channels range from 1 to 255, but the exact selection available | |
| 835 | depends on the region your adaptor was manufactured for. | |
| 836 | Setting | |
| 837 | the channel to | |
| e9a7dd65 | 838 | .Li any , |
| 55fc9f88 SZ |
839 | or |
| 840 | .Cm - | |
| e9a7dd65 RP |
841 | will clear any desired channel and, if the device is marked up, |
| 842 | force a scan for a channel to operate on. | |
| 55fc9f88 SZ |
843 | Alternatively the frequency, in megahertz, may be specified |
| 844 | instead of the channel number. | |
| e9a7dd65 RP |
845 | .Pp |
| 846 | When there are several ways to use a channel the channel | |
| 847 | number/frequency may be appended with attributes to clarify. | |
| 848 | For example, if a device is capable of operating on channel 6 | |
| 849 | with 802.11n and 802.11g then one can specify that g-only use | |
| 850 | should be used by specifying ``6:g''. | |
| 851 | Similarly the channel width can be specified by appending it | |
| 852 | with ``/''; e.g. ``6/40'' specifies a 40MHz wide channel, | |
| 853 | These attributes can be combined as in: ``6:ht/40''. | |
| 854 | The full set of flags specified following a `:'' are: | |
| 855 | .Cm a | |
| 856 | (802.11a), | |
| 857 | .Cm b | |
| 858 | (802.11b), | |
| 859 | .Cm d | |
| 860 | (Atheros Dynamic Turbo mode), | |
| 861 | .Cm g | |
| 862 | (802.11g), | |
| 863 | .Cm h | |
| 864 | or | |
| 865 | .Cm n | |
| 866 | (802.11n aka HT), | |
| 867 | .Cm s | |
| 868 | (Atheros Static Turbo mode), | |
| 869 | and | |
| 870 | .Cm t | |
| 871 | (Atheros Dynamic Turbo mode, or appended to ``st'' and ``dt''). | |
| 872 | The full set of channel widths following a '/' are: | |
| 873 | .Cm 5 | |
| 874 | (5MHz aka quarter-rate channel), | |
| 875 | .Cm 10 | |
| 876 | (10MHz aka half-rate channel), | |
| 877 | .Cm 20 | |
| 878 | (20MHz mostly for use in specifying ht20), | |
| 879 | and | |
| 880 | .Cm 40 | |
| 881 | (40MHz mostly for use in specifying ht40), | |
| 882 | In addition, | |
| 883 | a 40MHz HT channel specification may include the location | |
| 884 | of the extension channel by appending ``+'' or ``-'' for above and below, | |
| 885 | respectively; e.g. ``2437:ht/40+'' specifies 40MHz wide HT operation | |
| 886 | with the center channel at frequency 2437 and the extension channel above. | |
| 887 | .It Cm country Ar name | |
| 888 | Set the country code to use in calculating the regulatory constraints | |
| 889 | for operation. | |
| 890 | In particular the set of available channels, how the wireless device | |
| 891 | will operation on the channels, and the maximum transmit power that | |
| 892 | can be used on a channel are defined by this setting. | |
| 893 | Country/Region codes are specified as a 2-character abbreviation | |
| 894 | defined by ISO 3166 or using a longer, but possibly ambiguous, spelling; | |
| 895 | e.g. "ES" and "Spain". | |
| 896 | The set of country codes are taken from /etc/regdomain.xml and can also | |
| 897 | be viewed with the ``list countries'' request. | |
| 898 | Note that not all devices support changing the country code from a default | |
| 899 | setting; typically stored in EEPROM. | |
| 900 | See also | |
| 901 | .Cm regdomain , | |
| 902 | .Cm indoor , | |
| 903 | .Cm outdoor , | |
| 904 | and | |
| 905 | .Cm anywhere . | |
| 906 | .It Cm dfs | |
| 907 | Enable Dynamic Frequency Selection (DFS) as specified in 802.11h. | |
| 908 | DFS embodies several facilities including detection of overlapping | |
| 909 | radar signals, dynamic transmit power control, and channel selection | |
| 910 | according to a least-congested criteria. | |
| 911 | DFS support is mandatory for some 5Ghz frequencies in certain | |
| 912 | locales (e.g. ETSI). | |
| 913 | By default DFS is enabled according to the regulatory definitions | |
| 914 | specified in /etc/regdomain.xml and the curent country code, regdomain, | |
| 915 | and channel. | |
| 916 | Note the underlying device (and driver) must support radar detection | |
| 917 | for full DFS support to work. | |
| 918 | To be fully compliant with the local regulatory agency frequencies that | |
| 919 | require DFS should not be used unless it is fully supported. | |
| 920 | Use | |
| 921 | .Fl dfs | |
| 922 | to disable this functionality for testing. | |
| 923 | .It Cm dotd | |
| 924 | Enable support for the 802.11d specification (default). | |
| 925 | When this support is enabled in station mode, beacon frames that advertise | |
| 926 | a country code different than the currently configured country code will | |
| 927 | cause an event to be dispatched to user applications. | |
| 928 | This event can be used by the station to adopt that country code and | |
| 929 | operate according to the associated regulatory constraints. | |
| 930 | When operating as an access point with 802.11d enabled the beacon and | |
| 931 | probe response frames transmitted will advertise the current regulatory | |
| 932 | domain settings. | |
| 933 | To disable 802.11d use | |
| 934 | .Fl dotd . | |
| 935 | .It Cm doth | |
| 936 | Enable 802.11h support including spectrum management. | |
| 937 | When 802.11h is enabled beacon and probe response frames will have | |
| 938 | the SpectrumMgt bit set in the capabilities field and | |
| 939 | country and power constraint information elements will be present. | |
| 940 | 802.11h support also includes handling Channel Switch Announcements (CSA) | |
| 941 | which are a mechanism to coordinate channel changes by an access point. | |
| 942 | By default 802.11h is enabled if the device is capable. | |
| 943 | To disable 802.11h use | |
| 944 | .Fl doth . | |
| 55fc9f88 SZ |
945 | .It Cm deftxkey Ar index |
| 946 | Set the default key to use for transmission. | |
| 947 | Typically this is only set when using WEP encryption. | |
| e9a7dd65 RP |
948 | Note that you must set a default transmit key |
| 949 | for the system to know which key to use in encrypting outbound traffic. | |
| 55fc9f88 SZ |
950 | The |
| 951 | .Cm weptxkey | |
| 952 | is an alias for this request; it is provided for backwards compatibility. | |
| 953 | .It Cm dtimperiod Ar period | |
| 954 | Set the | |
| 955 | DTIM | |
| 956 | period for transmitting buffered multicast data frames when | |
| 957 | operating in ap mode. | |
| 958 | The | |
| 959 | .Ar period | |
| 960 | specifies the number of beacon intervals between DTIM | |
| 961 | and must be in the range 1 to 15. | |
| 962 | By default DTIM is 1 (i.e., DTIM occurs at each beacon). | |
| e9a7dd65 RP |
963 | .It Cm dturbo |
| 964 | Enable the use of Atheros Dynamic Turbo mode when communicating with | |
| 965 | another Dynamic Turbo-capable station. | |
| 966 | Dynamic Turbo mode is an Atheros-specific mechanism by which | |
| 967 | stations switch between normal 802.11 operation and a ``boosted'' | |
| 968 | mode in which a 40MHz wide channel is used for communication. | |
| 969 | Stations using Dynamic Turbo mode operate boosted only when the | |
| 970 | channel is free of non-dturbo stations; when a non-dturbo station | |
| 971 | is identified on the channel all stations will automatically drop | |
| 972 | back to normal operation. | |
| 973 | By default, Dynamic Turbo mode is not enabled, even if the device is capable. | |
| 974 | Note that turbo mode (dynamic or static) is only allowed on some | |
| 975 | channels depending on the regulatory constraints; use the | |
| 976 | .Cm list chan | |
| 977 | command to identify the channels where turbo mode may be used. | |
| 978 | To disable Dynamic Turbo mode use | |
| 979 | .Fl dturbo . | |
| 980 | .It Cm dwds | |
| 981 | Enable Dynamic WDS (DWDS) support. | |
| 982 | DWDS is a facility by which 4-address traffic can be carried between | |
| 983 | stations operating in infrastructure mode. | |
| 984 | A station first associates to an access point and authenticates using | |
| 985 | normal procedures (e.g. WPA). | |
| 986 | Then 4-address frames are passed to carry traffic for stations | |
| 987 | operating on either side of the wireless link. | |
| 988 | DWDS extends the normal WDS mechanism by leveraging existing security | |
| 989 | protocols and eliminating static binding. | |
| 990 | .Pp | |
| 991 | When DWDS is enabled on an access point 4-address frames received from | |
| 992 | an authorized station will generate a ``DWDS discovery'' event to user | |
| 993 | applications. | |
| 994 | This event should be used to create a WDS interface that is bound | |
| 995 | to the remote station (and usually plumbed into a bridge). | |
| 996 | Once the WDS interface is up and running 4-address traffic then logically | |
| 997 | flows through that interface. | |
| 998 | .Pp | |
| 999 | When DWDS is enabled on a station, traffic with a destination address | |
| 1000 | different from the peer station are encapsulated in a 4-address frame | |
| 1001 | and transmitted to the peer. | |
| 1002 | All 4-address traffic uses the security information of the stations | |
| 1003 | (e.g. cryptographic keys). | |
| 1004 | A station is associated using 802.11n facilities may transport | |
| 1005 | 4-address traffic using these same mechanisms; this depends on available | |
| 1006 | resources and capabilities of the device. | |
| 1007 | The DWDS implementation guards against layer 2 routing loops of | |
| 1008 | multicast traffic. | |
| 1009 | .It Cm ff | |
| 1010 | Enable the use of Atheros Fast Frames when communicating with | |
| 1011 | another Fast Frames-capable station. | |
| 1012 | Fast Frames are an encapsulation technique by which two 802.3 | |
| 1013 | frames are transmitted in a single 802.11 frame. | |
| 1014 | This can noticeably improve throughput but requires that the | |
| 1015 | receiving station understand how to decapsulate the frame. | |
| 1016 | Fast frame use is negotiated using the Atheros 802.11 vendor-specific | |
| 1017 | protocol extension so enabling use is safe when communicating with | |
| 1018 | non-Atheros devices. | |
| 1019 | By default, use of fast frames is enabled if the device is capable. | |
| 1020 | To explicitly disable fast frames, use | |
| 1021 | .Fl ff . | |
| 55fc9f88 SZ |
1022 | .It Cm fragthreshold Ar length |
| 1023 | Set the threshold for which transmitted frames are broken into fragments. | |
| 1024 | The | |
| 1025 | .Ar length | |
| 1026 | argument is the frame size in bytes and must be in the range 256 to 2346. | |
| 1027 | Setting | |
| 1028 | .Ar length | |
| 1029 | to | |
| 1030 | .Li 2346 , | |
| 1031 | .Cm any , | |
| 1032 | or | |
| 1033 | .Cm - | |
| 1034 | disables transmit fragmentation. | |
| e9a7dd65 | 1035 | Not all adapters honor the fragmentation threshold. |
| 55fc9f88 SZ |
1036 | .It Cm hidessid |
| 1037 | When operating as an access point, do not broadcast the SSID | |
| 1038 | in beacon frames or respond to probe request frames unless | |
| 1039 | they are directed to the ap (i.e., they include the ap's SSID). | |
| 1040 | By default, the SSID is included in beacon frames and | |
| 1041 | undirected probe request frames are answered. | |
| 1042 | To re-enable the broadcast of the SSID etc., use | |
| 1043 | .Fl hidessid . | |
| e9a7dd65 RP |
1044 | .It Cm ht |
| 1045 | Enable use of High Throughput (HT) when using 802.11n (default). | |
| 1046 | The 802.11n specification includes mechanisms for operation | |
| 1047 | on 20MHz and 40MHz wide channels using different signalling mechanisms | |
| 1048 | than specified in 802.11b, 802.11g, and 802.11a. | |
| 1049 | Stations negotiate use of these facilities, termed HT20 and HT40, | |
| 1050 | when they associate. | |
| 1051 | To disable all use of 802.11n use | |
| 1052 | .Fl ht . | |
| 1053 | To disable use of HT20 (e.g. to force only HT40 use) use | |
| 1054 | .Fl ht20 . | |
| 1055 | To disable use of HT40 use | |
| 1056 | .Fl ht40 . | |
| 1057 | .Pp | |
| 1058 | HT configuration is used to ``auto promote'' operation | |
| 1059 | when several choices are available. | |
| 1060 | For example, if a station associates to an 11n-capable access point | |
| 1061 | it controls whether the station uses legacy operation, HT20, or HT40. | |
| 1062 | When an 11n-capable device is setup as an access point and | |
| 1063 | Auto Channel Selection is used to locate a channel to operate on, | |
| 1064 | HT configuration controls whether legacy, HT20, or HT40 operation is setup | |
| 1065 | on the selected channel. | |
| 1066 | If a fixed channel is specified for a station then HT configuration can | |
| 1067 | be given as part of the channel specification; e.g. 6:ht/20 to setup | |
| 1068 | HT20 operation on channel 6. | |
| 1069 | .It Cm htcompat | |
| 1070 | Enable use of compatibility support for pre-802.11n devices (default). | |
| 1071 | The 802.11n protocol specification went through several incompatible iterations. | |
| 1072 | Some vendors implemented 11n support to older specifications that | |
| 1073 | will not interoperate with a purely 11n-compliant station. | |
| 1074 | In particular the information elements included in management frames | |
| 1075 | for old devices are different. | |
| 1076 | When compatibility support is enabled both standard and compatible data | |
| 1077 | will be provided. | |
| 1078 | Stations that associate using the compatiblity mechanisms are flagged | |
| 1079 | in ``list sta''. | |
| 1080 | To disable compatiblity support use | |
| 1081 | .Fl htcompat . | |
| 1082 | .It Cm htprotmode Ar technique | |
| 1083 | For interfaces operating in 802.11n, use the specified | |
| 1084 | .Ar technique | |
| 1085 | for protecting HT frames in a mixed legacy/HT network. | |
| 1086 | The set of valid techniques is | |
| 1087 | .Cm off , | |
| 1088 | and | |
| 1089 | .Cm rts | |
| 1090 | (RTS/CTS, default). | |
| 1091 | Technique names are case insensitive. | |
| 1092 | .It Cm inact | |
| 1093 | Enable inactivity processing for stations associated to an | |
| 1094 | access point (default). | |
| 1095 | When operating as an access point the 802.11 layer monitors | |
| 1096 | the activity of each associated station. | |
| 1097 | When a station is inactive for 5 minutes it will send several | |
| 1098 | ``probe frames'' to see if the station is still present. | |
| 1099 | If no response is received then the station is deauthenticated. | |
| 1100 | Applications that prefer to handle this work can disable this | |
| 1101 | facility by using | |
| 1102 | .Fl inact . | |
| 1103 | .It Cm indoor | |
| 1104 | Set the location to use in calculating regulatory constraints. | |
| 1105 | The location is also advertised in beacon and probe response frames | |
| 1106 | when 802.11d is enabled with | |
| 1107 | .Cm dotd . | |
| 1108 | See also | |
| 1109 | .Cm outdoor , | |
| 1110 | .Cm anywhere , | |
| 1111 | .Cm country , | |
| 1112 | and | |
| 1113 | .Cm regdomain . | |
| 55fc9f88 SZ |
1114 | .It Cm list active |
| 1115 | Display the list of channels available for use taking into account | |
| 1116 | any restrictions set with the | |
| 1117 | .Cm chanlist | |
| 1118 | directive. | |
| 1119 | See the description of | |
| 1120 | .Cm list chan | |
| 1121 | for more information. | |
| 1122 | .It Cm list caps | |
| 1123 | Display the adaptor's capabilities, including the operating | |
| 1124 | modes supported. | |
| 1125 | .It Cm list chan | |
| 1126 | Display the list of channels available for use. | |
| 1127 | Channels are shown with their IEEE channel number, equivalent | |
| 1128 | frequency, and usage modes. | |
| 1129 | Channels identified as | |
| 1130 | .Ql 11g | |
| 1131 | are also usable in | |
| 1132 | .Ql 11b | |
| 1133 | mode. | |
| 1134 | Channels identified as | |
| 1135 | .Ql 11a Turbo | |
| 1136 | may be used only for Atheros' Static Turbo mode | |
| e9a7dd65 RP |
1137 | (specified with |
| 1138 | . Cm mediaopt turbo ) . | |
| 55fc9f88 SZ |
1139 | Channels marked with a |
| 1140 | .Ql * | |
| 1141 | have a regulatory constraint that they be passively scanned. | |
| 1142 | This means a station is not permitted to transmit on the channel until | |
| 1143 | it identifies the channel is being used for 802.11 communication; | |
| 1144 | typically by hearing a beacon frame from an access point operating | |
| 1145 | on the channel. | |
| 1146 | .Cm list freq | |
| 1147 | is another way of requesting this information. | |
| e9a7dd65 RP |
1148 | By default a compacted list of channels is displayed; if the |
| 1149 | .Fl v | |
| 1150 | option is specified then all channels are shown. | |
| 1151 | .It Cm list countries | |
| 1152 | Display the set of country codes and regulatory domains that can be | |
| 1153 | used in regulatory configuration. | |
| 55fc9f88 SZ |
1154 | .It Cm list mac |
| 1155 | Display the current MAC Access Control List state. | |
| 1156 | Each address is prefixed with a character that indicates the | |
| 1157 | current policy applied to it: | |
| 1158 | .Ql + | |
| 1159 | indicates the address is allowed access, | |
| 1160 | .Ql - | |
| 1161 | indicates the address is denied access, | |
| 1162 | .Ql * | |
| 1163 | indicates the address is present but the current policy open | |
| 1164 | (so the ACL is not consulted). | |
| e9a7dd65 RP |
1165 | .It Cm list mesh |
| 1166 | Displays the mesh routing table, used for forwarding packets on a mesh | |
| 1167 | network. | |
| 1168 | .It Cm list regdomain | |
| 1169 | Display the current regulatory settings including the available channels | |
| 1170 | and transmit power caps. | |
| 1171 | .It Cm list roam | |
| 1172 | Display the parameters that govern roaming operation. | |
| 1173 | .It Cm list txparam | |
| 1174 | Display the parameters that govern transmit operation. | |
| 1175 | .It Cm list txpower | |
| 1176 | Display the transmit power caps for each channel. | |
| 55fc9f88 SZ |
1177 | .It Cm list scan |
| 1178 | Display the access points and/or ad-hoc neighbors | |
| 1179 | located in the vicinity. | |
| e9a7dd65 RP |
1180 | This information may be updated automatically by the adapter |
| 1181 | with a | |
| 55fc9f88 | 1182 | .Cm scan |
| e9a7dd65 RP |
1183 | request or through background scanning. |
| 1184 | Depending on the capabilities of the stations the following | |
| 1185 | flags can be included in the output: | |
| 1186 | .Bl -tag -width 3n | |
| 1187 | .It Li A | |
| 1188 | Authorized. | |
| 1189 | Indicates that the station is permitted to send/receive data frames. | |
| 1190 | .It Li E | |
| 1191 | Extended Rate Phy (ERP). | |
| 1192 | Indicates that the station is operating in an 802.11g network | |
| 1193 | using extended transmit rates. | |
| 1194 | .It Li H | |
| 1195 | High Throughput (HT). | |
| 1196 | Indicates that the station is using HT transmit rates. | |
| 1197 | If a `+' follows immediately after then the station associated | |
| 1198 | using deprecated mechanisms supported only when | |
| 1199 | .Cm htcompat | |
| 1200 | is enabled. | |
| 1201 | .It Li P | |
| 1202 | Power Save. | |
| 1203 | Indicates that the station is operating in power save mode. | |
| 1204 | .It Li Q | |
| 1205 | Quality of Service (QoS). | |
| 1206 | Indicates that the station is using QoS encapsulation for | |
| 1207 | data frame. | |
| 1208 | QoS encapsulation is enabled only when WME mode is enabled. | |
| 1209 | .It Li T | |
| 1210 | Transitional Security Network (TSN). | |
| 1211 | Indicates that the station associated using TSN; see also | |
| 1212 | .Cm tsn | |
| 1213 | below. | |
| 1214 | .It Li W | |
| 1215 | Wi-Fi Protected Setup (WPS). | |
| 1216 | Indicates that the station associated using WPS. | |
| 1217 | .El | |
| 1218 | .Pp | |
| 1219 | By default interesting information elements captured from the neighboring | |
| 1220 | stations are displayed at the end of each row. | |
| 1221 | Possible elements include: | |
| 1222 | .Cm WME | |
| 1223 | (station supports WME), | |
| 1224 | .Cm WPA | |
| 1225 | (station supports WPA), | |
| 1226 | .Cm WPS | |
| 1227 | (station supports WPS), | |
| 1228 | .Cm RSN | |
| 1229 | (station supports 802.11i/RSN), | |
| 1230 | .Cm HTCAP | |
| 1231 | (station supports 802.11n/HT communication), | |
| 1232 | .Cm ATH | |
| 1233 | (station supports Atheros protocol extensions), | |
| 1234 | .Cm VEN | |
| 1235 | (station supports unknown vendor-specific extensions). | |
| 1236 | If the | |
| 1237 | .Fl v | |
| 1238 | flag is used all the information elements and their | |
| 1239 | contents will be shown. | |
| 1240 | Specifying the | |
| 1241 | .Fl v | |
| 1242 | flag also enables display of long SSIDs. | |
| 1243 | The | |
| 55fc9f88 | 1244 | .Cm list ap |
| e9a7dd65 | 1245 | command is another way of requesting this information. |
| 55fc9f88 SZ |
1246 | .It Cm list sta |
| 1247 | When operating as an access point display the stations that are | |
| 1248 | currently associated. | |
| 1249 | When operating in ad-hoc mode display stations identified as | |
| 1250 | neighbors in the IBSS. | |
| e9a7dd65 RP |
1251 | When operating in mesh mode display stations identified as |
| 1252 | neighbors in the MBSS. | |
| 1253 | When operating in station mode display the access point. | |
| 1254 | Capabilities advertised by the stations are described under | |
| 1255 | the | |
| 1256 | .Cm scan | |
| 1257 | request. | |
| 1258 | Depending on the capabilities of the stations the following | |
| 1259 | flags can be included in the output: | |
| 1260 | .Bl -tag -width 3n | |
| 1261 | .It Li A | |
| 1262 | Authorized. | |
| 1263 | Indicates that the station is permitted to send/receive data frames. | |
| 1264 | .It Li E | |
| 1265 | Extended Rate Phy (ERP). | |
| 1266 | Indicates that the station is operating in an 802.11g network | |
| 1267 | using extended transmit rates. | |
| 1268 | .It Li H | |
| 1269 | High Throughput (HT). | |
| 1270 | Indicates that the station is using HT transmit rates. | |
| 1271 | If a `+' follows immediately after then the station associated | |
| 1272 | using deprecated mechanisms supported only when | |
| 1273 | .Cm htcompat | |
| 1274 | is enabled. | |
| 1275 | .It Li P | |
| 1276 | Power Save. | |
| 1277 | Indicates that the station is operating in power save mode. | |
| 1278 | .It Li Q | |
| 1279 | Quality of Service (QoS). | |
| 1280 | Indicates that the station is using QoS encapsulation for | |
| 1281 | data frame. | |
| 1282 | QoS encapsulation is enabled only when WME mode is enabled. | |
| 1283 | .It Li T | |
| 1284 | Transitional Security Network (TSN). | |
| 1285 | Indicates that the station associated using TSN; see also | |
| 1286 | .Cm tsn | |
| 1287 | below. | |
| 1288 | .It Li W | |
| 1289 | Wi-Fi Protected Setup (WPS). | |
| 1290 | Indicates that the station associated using WPS. | |
| 1291 | .El | |
| 1292 | .Pp | |
| 1293 | By default information elements received from associated stations | |
| 1294 | are displayed in a short form; the | |
| 1295 | .Fl v | |
| 1296 | flag causes this information to be displayed symbolically. | |
| 55fc9f88 | 1297 | .It Cm list wme |
| e9a7dd65 RP |
1298 | Display the current channel parameters to use when operating in WME mode. |
| 1299 | If the | |
| 1300 | .Fl v | |
| 1301 | option is specified then both channel and BSS parameters are displayed | |
| 1302 | for each AC (first channel, then BSS). | |
| 55fc9f88 SZ |
1303 | When WME mode is enabled for an adaptor this information will be |
| 1304 | displayed with the regular status; this command is mostly useful | |
| 1305 | for examining parameters when WME mode is disabled. | |
| 1306 | See the description of the | |
| 1307 | .Cm wme | |
| 1308 | directive for information on the various parameters. | |
| e9a7dd65 RP |
1309 | .It Cm maxretry Ar count |
| 1310 | Set the maximum number of tries to use in sending unicast frames. | |
| 1311 | The default setting is 6 but drivers may override this with a value | |
| 1312 | they choose. | |
| 55fc9f88 SZ |
1313 | .It Cm mcastrate Ar rate |
| 1314 | Set the rate for transmitting multicast/broadcast frames. | |
| e9a7dd65 | 1315 | Rates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s. |
| 55fc9f88 SZ |
1316 | This rate should be valid for the current operating conditions; |
| 1317 | if an invalid rate is specified drivers are free to chose an | |
| 1318 | appropriate rate. | |
| e9a7dd65 RP |
1319 | .It Cm mgtrate Ar rate |
| 1320 | Set the rate for transmitting management and/or control frames. | |
| 1321 | Rates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s. | |
| 1322 | .It Cm outdoor | |
| 1323 | Set the location to use in calculating regulatory constraints. | |
| 1324 | The location is also advertised in beacon and probe response frames | |
| 1325 | when 802.11d is enabled with | |
| 1326 | .Cm dotd . | |
| 1327 | See also | |
| 1328 | .Cm anywhere , | |
| 1329 | .Cm country , | |
| 1330 | .Cm indoor , | |
| 1331 | and | |
| 1332 | .Cm regdomain . | |
| 984263bc | 1333 | .It Cm powersave |
| 55fc9f88 SZ |
1334 | Enable powersave operation. |
| 1335 | When operating as a client, the station will conserve power by | |
| 1336 | periodically turning off the radio and listening for | |
| 1337 | messages from the access point telling it there are packets waiting. | |
| 1338 | The station must then retrieve the packets. | |
| e9a7dd65 RP |
1339 | Not all devices support power save operation as a client. |
| 1340 | The 802.11 specification requires that all access points support | |
| 1341 | power save but some drivers do not. | |
| 55fc9f88 SZ |
1342 | Use |
| 1343 | .Fl powersave | |
| e9a7dd65 | 1344 | to disable powersave operation when operating as a client. |
| 984263bc | 1345 | .It Cm powersavesleep Ar sleep |
| a33626b9 SZ |
1346 | Set the desired max powersave sleep time in TU's (1024 usecs). |
| 1347 | By default the max powersave sleep time is 100 TU's. | |
| b50e4759 | 1348 | .It Cm protmode Ar technique |
| 55fc9f88 | 1349 | For interfaces operating in 802.11g, use the specified |
| b50e4759 MD |
1350 | .Ar technique |
| 1351 | for protecting OFDM frames in a mixed 11b/11g network. | |
| 1352 | The set of valid techniques is | |
| 55fc9f88 | 1353 | .Cm off , cts |
| b50e4759 MD |
1354 | (CTS to self), |
| 1355 | and | |
| 55fc9f88 | 1356 | .Cm rtscts |
| b50e4759 MD |
1357 | (RTS/CTS). |
| 1358 | Technique names are case insensitive. | |
| e9a7dd65 RP |
1359 | Not all devices support |
| 1360 | .Cm cts | |
| 1361 | as a protection technique. | |
| 55fc9f88 SZ |
1362 | .It Cm pureg |
| 1363 | When operating as an access point in 802.11g mode allow only | |
| 1364 | 11g-capable stations to associate (11b-only stations are not | |
| 1365 | permitted to associate). | |
| 1366 | To allow both 11g and 11b-only stations to associate, use | |
| 1367 | .Fl pureg . | |
| e9a7dd65 RP |
1368 | .It Cm puren |
| 1369 | When operating as an access point in 802.11n mode allow only | |
| 1370 | HT-capable stations to associate (legacy stations are not | |
| 1371 | permitted to associate). | |
| 1372 | To allow both HT and legacy stations to associate, use | |
| 1373 | .Fl puren . | |
| 1374 | .It Cm regdomain Ar sku | |
| 1375 | Set the regulatory domain to use in calculating the regulatory constraints | |
| 1376 | for operation. | |
| 1377 | In particular the set of available channels, how the wireless device | |
| 1378 | will operation on the channels, and the maximum transmit power that | |
| 1379 | can be used on a channel are defined by this setting. | |
| 1380 | Regdomain codes (SKU's) are taken from /etc/regdomain.xml and can also | |
| 1381 | be viewed with the ``list countries'' request. | |
| 1382 | Note that not all devices support changing the regdomain from a default | |
| 1383 | setting; typically stored in EEPROM. | |
| 1384 | See also | |
| 1385 | .Cm country , | |
| 1386 | .Cm indoor , | |
| 1387 | .Cm outdoor , | |
| 1388 | and | |
| 1389 | .Cm anywhere . | |
| 1390 | .It Cm rifs | |
| 1391 | Enable use of Reduced InterFrame Spacing (RIFS) when operating in 802.11n | |
| 1392 | on an HT channel. | |
| 1393 | Note that RIFS must be supported by both the station and access point | |
| 1394 | for it to be used. | |
| 1395 | To disable RIFS use | |
| 1396 | .Fl rifs . | |
| 1397 | .It Cm roam:rate Ar rate | |
| 1398 | Set the threshold for controlling roaming when operating in a BSS. | |
| 1399 | The | |
| 1400 | .Ar rate | |
| 1401 | parameter specifies the transmit rate in megabits | |
| 1402 | at which roaming should be considered. | |
| 1403 | If the current transmit rate drops below this setting and background scanning | |
| 1404 | is enabled, then the system will check if a more desirable access point is | |
| 1405 | available and switch over to it. | |
| 1406 | The current scan cache contents are used if they are considered | |
| 1407 | valid according to the | |
| 1408 | .Cm scanvalid | |
| 1409 | parameter; otherwise a background scan operation is triggered before | |
| 1410 | any selection occurs. | |
| 1411 | Each channel type has a separate rate threshold; the default values are: | |
| 1412 | 12 Mb/s (11a), 2 Mb/s (11b), 2 Mb/s (11g), MCS 1 (11na, 11ng). | |
| 1413 | .It Cm roam:rssi Ar rssi | |
| 1414 | Set the threshold for controlling roaming when operating in a BSS. | |
| 1415 | The | |
| 1416 | .Ar rssi | |
| 1417 | parameter specifies the receive signal strength in dBm units | |
| 1418 | at which roaming should be considered. | |
| 1419 | If the current rssi drops below this setting and background scanning | |
| 1420 | is enabled, then the system will check if a more desirable access point is | |
| 1421 | available and switch over to it. | |
| 1422 | The current scan cache contents are used if they are considered | |
| 1423 | valid according to the | |
| 1424 | .Cm scanvalid | |
| 1425 | parameter; otherwise a background scan operation is triggered before | |
| 1426 | any selection occurs. | |
| 1427 | Each channel type has a separate rssi threshold; the default values are | |
| 1428 | all 7 dBm. | |
| 55fc9f88 SZ |
1429 | .It Cm roaming Ar mode |
| 1430 | When operating as a station, control how the system will | |
| 1431 | behave when communication with the current access point | |
| 1432 | is broken. | |
| 1433 | The | |
| 1434 | .Ar mode | |
| 1435 | argument may be one of | |
| 1436 | .Cm device | |
| 1437 | (leave it to the hardware device to decide), | |
| 1438 | .Cm auto | |
| 1439 | (handle either in the device or the operating system\[em]as appropriate), | |
| 1440 | .Cm manual | |
| 1441 | (do nothing until explicitly instructed). | |
| 1442 | By default, the device is left to handle this if it is | |
| 1443 | capable; otherwise, the operating system will automatically | |
| 1444 | attempt to reestablish communication. | |
| e9a7dd65 RP |
1445 | Manual mode is used by applications such as |
| 1446 | .Xr wpa_supplicant 8 | |
| 1447 | that want to control the selection of an access point. | |
| b50e4759 | 1448 | .It Cm rtsthreshold Ar length |
| 55fc9f88 | 1449 | Set the threshold for which |
| b50e4759 MD |
1450 | transmitted frames are preceded by transmission of an |
| 1451 | RTS | |
| 1452 | control frame. | |
| 1453 | The | |
| 1454 | .Ar length | |
| 1455 | argument | |
| 55fc9f88 SZ |
1456 | is the frame size in bytes and must be in the range 1 to 2346. |
| 1457 | Setting | |
| 1458 | .Ar length | |
| 1459 | to | |
| 1460 | .Li 2346 , | |
| 1461 | .Cm any , | |
| 1462 | or | |
| 1463 | .Cm - | |
| 1464 | disables transmission of RTS frames. | |
| e9a7dd65 | 1465 | Not all adapters support setting the RTS threshold. |
| 55fc9f88 SZ |
1466 | .It Cm scan |
| 1467 | Initiate a scan of neighboring stations, wait for it to complete, and | |
| 1468 | display all stations found. | |
| 1469 | Only the super-user can initiate a scan. | |
| e9a7dd65 RP |
1470 | See |
| 1471 | .Cm list scan | |
| 1472 | for information on the display. | |
| 1473 | By default a background scan is done; otherwise a foreground | |
| 1474 | scan is done and the station may roam to a different access point. | |
| 55fc9f88 SZ |
1475 | The |
| 1476 | .Cm list scan | |
| 1477 | request can be used to show recent scan results without | |
| 1478 | initiating a new scan. | |
| e9a7dd65 RP |
1479 | .It Cm scanvalid Ar threshold |
| 1480 | Set the maximum time the scan cache contents are considered valid; | |
| 1481 | i.e. will be used without first triggering a scan operation to | |
| 1482 | refresh the data. | |
| b16c423b | 1483 | The |
| e9a7dd65 RP |
1484 | .Ar threshold |
| 1485 | parameter is specified in seconds and defaults to 60 seconds. | |
| 1486 | The minimum setting for | |
| 1487 | .Ar threshold | |
| 1488 | is 10 seconds. | |
| 1489 | One should take care setting this threshold; if it is set too low | |
| 1490 | then attempts to roam to another access point may trigger unnecessary | |
| 1491 | background scan operations. | |
| 1492 | .It Cm shortgi | |
| 1493 | Enable use of Short Guard Interval when operating in 802.11n | |
| 1494 | on an HT channel. | |
| 1495 | NB: this currently enables Short GI on both HT40 and HT20 channels. | |
| 1496 | To disable Short GI use | |
| 1497 | .Fl shortgi . | |
| 1498 | .It Cm smps | |
| 1499 | Enable use of Static Spatial Multiplexing Power Save (SMPS) | |
| 1500 | when operating in 802.11n. | |
| 1501 | A station operating with Static SMPS maintains only a single | |
| 1502 | receive chain active (this can significantly reduce power consumption). | |
| 1503 | To disable SMPS use | |
| 1504 | .Fl smps . | |
| 1505 | .It Cm smpsdyn | |
| 1506 | Enable use of Dynamic Spatial Multiplexing Power Save (SMPS) | |
| 1507 | when operating in 802.11n. | |
| 1508 | A station operating with Dynamic SMPS maintains only a single | |
| 1509 | receive chain active but switches to multiple receive chains when it | |
| 1510 | receives an RTS frame (this can significantly reduce power consumption). | |
| 1511 | Note that stations cannot distinguish between RTS/CTS intended to | |
| 1512 | enable multiple receive chains and those used for other purposes. | |
| 1513 | To disable SMPS use | |
| 1514 | .Fl smps . | |
| 1515 | .It Cm ssid Ar ssid | |
| 1516 | Set the desired Service Set Identifier (aka network name). | |
| 1517 | The SSID is a string up to 32 characters | |
| 1518 | in length and may be specified as either a normal string or in | |
| 1519 | hexadecimal when preceded by | |
| 1520 | .Ql 0x . | |
| 1521 | Additionally, the SSID may be cleared by setting it to | |
| 1522 | .Ql - . | |
| 1523 | .It Cm tdmaslot Ar slot | |
| 1524 | When operating with TDMA, use the specified | |
| 1525 | .Ar slot | |
| 1526 | configuration. | |
| 1527 | The | |
| 1528 | .Ar slot | |
| 1529 | is a number between 0 and the maximum number of slots in the BSS. | |
| 1530 | Note that a station configured as slot 0 is a master and | |
| 1531 | will broadcast beacon frames advertising the BSS; | |
| 1532 | stations configured to use other slots will always | |
| 1533 | scan to locate a master before they ever transmit. | |
| 1534 | By default | |
| 1535 | .Cm tdmaslot | |
| 1536 | is set to 1. | |
| 1537 | .It Cm tdmaslotcnt Ar cnt | |
| 1538 | When operating with TDMA, setup a BSS with | |
| 1539 | .Ar cnt | |
| 1540 | slots. | |
| 1541 | The slot count may be at most 8. | |
| 1542 | The current implementation is only tested with two stations | |
| 1543 | (i.e. point to point applications). | |
| 1544 | This setting is only meaningful when a station is configured as slot 0; | |
| 1545 | other stations adopt this setting from the BSS they join. | |
| 1546 | By default | |
| 1547 | .Cm tdmaslotcnt | |
| 1548 | is set to 2. | |
| 1549 | .It Cm tdmaslotlen Ar len | |
| 1550 | When operating with TDMA, setup a BSS such that each station has a slot | |
| 1551 | .Ar len | |
| 1552 | microseconds long. | |
| 1553 | The slot length must be at least 150 microseconds (1/8 TU) | |
| 1554 | and no more than 65 milliseconds. | |
| 1555 | Note that setting too small a slot length may result in poor channel | |
| 1556 | bandwidth utilization due to factors such as timer granularity and | |
| 1557 | guard time. | |
| 1558 | This setting is only meaningful when a station is configured as slot 0; | |
| 1559 | other stations adopt this setting from the BSS they join. | |
| 1560 | By default | |
| 1561 | .Cm tdmaslotlen | |
| 1562 | is set to 10 milliseconds. | |
| 1563 | .It Cm tdmabintval Ar intval | |
| 1564 | When operating with TDMA, setup a BSS such that beacons are transmitted every | |
| 1565 | .Ar intval | |
| 1566 | superframes to synchronize the TDMA slot timing. | |
| 1567 | A superframe is defined as the number of slots times the slot length; e.g. | |
| 1568 | a BSS with two slots of 10 milliseconds has a 20 millisecond superframe. | |
| 1569 | The beacon interval may not be zero. | |
| 1570 | A lower setting of | |
| 1571 | .Cm tdmabintval | |
| 1572 | causes the timers to be resynchronized more often; this can be help if | |
| 1573 | significant timer drift is observed. | |
| 1574 | By default | |
| 1575 | .Cm tdmabintval | |
| 1576 | is set to 5. | |
| 1577 | .It Cm tsn | |
| 1578 | When operating as an access point with WPA/802.11i allow legacy | |
| 1579 | stations to associate using static key WEP and open authentication. | |
| 1580 | To disallow legacy station use of WEP, use | |
| 1581 | .Fl tsn . | |
| b50e4759 | 1582 | .It Cm txpower Ar power |
| 55fc9f88 | 1583 | Set the power used to transmit frames. |
| b50e4759 MD |
1584 | The |
| 1585 | .Ar power | |
| e9a7dd65 | 1586 | argument is specified in .5 dBm units. |
| b50e4759 MD |
1587 | Out of range values are truncated. |
| 1588 | Typically only a few discreet power settings are available and | |
| 1589 | the driver will use the setting closest to the specified value. | |
| e9a7dd65 RP |
1590 | Not all adapters support changing the transmit power. |
| 1591 | .It Cm ucastrate Ar rate | |
| 1592 | Set a fixed rate for transmitting unicast frames. | |
| 1593 | Rates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s. | |
| 1594 | This rate should be valid for the current operating conditions; | |
| 1595 | if an invalid rate is specified drivers are free to chose an | |
| 1596 | appropriate rate. | |
| 984263bc | 1597 | .It Cm wepmode Ar mode |
| 55fc9f88 | 1598 | Set the desired WEP mode. |
| e9a7dd65 | 1599 | Not all adapters support all modes. |
| 984263bc | 1600 | The set of valid modes is |
| 55fc9f88 | 1601 | .Cm off , on , |
| 984263bc | 1602 | and |
| 55fc9f88 | 1603 | .Cm mixed . |
| b50e4759 | 1604 | The |
| 55fc9f88 | 1605 | .Cm mixed |
| 984263bc MD |
1606 | mode explicitly tells the adaptor to allow association with access |
| 1607 | points which allow both encrypted and unencrypted traffic. | |
| e9a7dd65 | 1608 | On these adapters, |
| 55fc9f88 | 1609 | .Cm on |
| 984263bc | 1610 | means that the access point must only allow encrypted connections. |
| e9a7dd65 | 1611 | On other adapters, |
| 55fc9f88 | 1612 | .Cm on |
| 984263bc | 1613 | is generally another name for |
| 55fc9f88 | 1614 | .Cm mixed . |
| 984263bc MD |
1615 | Modes are case insensitive. |
| 1616 | .It Cm weptxkey Ar index | |
| 55fc9f88 SZ |
1617 | Set the WEP key to be used for transmission. |
| 1618 | This is the same as setting the default transmission key with | |
| 1619 | .Cm deftxkey . | |
| 984263bc | 1620 | .It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key |
| 55fc9f88 | 1621 | Set the selected WEP key. |
| 984263bc MD |
1622 | If an |
| 1623 | .Ar index | |
| 1624 | is not given, key 1 is set. | |
| 1625 | A WEP key will be either 5 or 13 | |
| 1626 | characters (40 or 104 bits) depending of the local network and the | |
| 1627 | capabilities of the adaptor. | |
| 1628 | It may be specified either as a plain | |
| 55fc9f88 | 1629 | string or as a string of hexadecimal digits preceded by |
| 984263bc MD |
1630 | .Ql 0x . |
| 1631 | For maximum portability, hex keys are recommended; | |
| 1632 | the mapping of text keys to WEP encryption is usually driver-specific. | |
| 1633 | In particular, the | |
| 1634 | .Tn Windows | |
| 1635 | drivers do this mapping differently to | |
| e9a7dd65 | 1636 | .Fx . |
| 984263bc MD |
1637 | A key may be cleared by setting it to |
| 1638 | .Ql - . | |
| 1639 | If WEP is supported then there are at least four keys. | |
| e9a7dd65 | 1640 | Some adapters support more than four keys. |
| 984263bc MD |
1641 | If that is the case, then the first four keys |
| 1642 | (1-4) will be the standard temporary keys and any others will be adaptor | |
| 1643 | specific keys such as permanent keys stored in NVRAM. | |
| e9a7dd65 RP |
1644 | .Pp |
| 1645 | Note that you must set a default transmit key with | |
| 1646 | .Cm deftxkey | |
| 1647 | for the system to know which key to use in encrypting outbound traffic. | |
| 55fc9f88 SZ |
1648 | .It Cm wme |
| 1649 | Enable Wireless Multimedia Extensions (WME) support, if available, | |
| 1650 | for the specified interface. | |
| 1651 | WME is a subset of the IEEE 802.11e standard to support the | |
| 1652 | efficient communication of realtime and multimedia data. | |
| 1653 | To disable WME support, use | |
| 1654 | .Fl wme . | |
| e9a7dd65 RP |
1655 | Another name for this parameter is |
| 1656 | .Cm wmm . | |
| 55fc9f88 SZ |
1657 | .Pp |
| 1658 | The following parameters are meaningful only when WME support is in use. | |
| 1659 | Parameters are specified per-AC (Access Category) and | |
| 1660 | split into those that are used by a station when acting | |
| 1661 | as an access point and those for client stations in the BSS. | |
| 1662 | The latter are received from the access point and may not be changed | |
| 1663 | (at the station). | |
| 1664 | The following Access Categories are recognized: | |
| 1665 | .Pp | |
| 1666 | .Bl -tag -width ".Cm AC_BK" -compact | |
| 1667 | .It Cm AC_BE | |
| 1668 | (or | |
| 1669 | .Cm BE ) | |
| 1670 | best effort delivery, | |
| 1671 | .It Cm AC_BK | |
| 1672 | (or | |
| 1673 | .Cm BK ) | |
| 1674 | background traffic, | |
| 1675 | .It Cm AC_VI | |
| 1676 | (or | |
| 1677 | .Cm VI ) | |
| 1678 | video traffic, | |
| 1679 | .It Cm AC_VO | |
| 1680 | (or | |
| 1681 | .Cm VO ) | |
| 1682 | voice traffic. | |
| 1683 | .El | |
| 1684 | .Pp | |
| 1685 | AC parameters are case-insensitive. | |
| 1686 | Traffic classification is done in the operating system using the | |
| 1687 | vlan priority associated with data frames or the | |
| 1688 | ToS (Type of Service) indication in IP-encapsulated frames. | |
| 1689 | If neither information is present, traffic is assigned to the | |
| 1690 | Best Effort (BE) category. | |
| 1691 | .Bl -tag -width indent | |
| 1692 | .It Cm ack Ar ac | |
| 1693 | Set the ACK policy for QoS transmissions by the local station; | |
| 1694 | this controls whether or not data frames transmitted by a station | |
| 1695 | require an ACK response from the receiving station. | |
| 1696 | To disable waiting for an ACK use | |
| 1697 | .Fl ack . | |
| 1698 | This parameter is applied only to the local station. | |
| 1699 | .It Cm acm Ar ac | |
| 1700 | Enable the Admission Control Mandatory (ACM) mechanism | |
| 1701 | for transmissions by the local station. | |
| 1702 | To disable the ACM use | |
| 1703 | .Fl acm . | |
| 1704 | On stations in a BSS this parameter is read-only and indicates | |
| 1705 | the setting received from the access point. | |
| 1706 | NB: ACM is not supported right now. | |
| 1707 | .It Cm aifs Ar ac Ar count | |
| 1708 | Set the Arbitration Inter Frame Spacing (AIFS) | |
| 1709 | channel access parameter to use for transmissions | |
| 1710 | by the local station. | |
| 1711 | On stations in a BSS this parameter is read-only and indicates | |
| 1712 | the setting received from the access point. | |
| 1713 | .It Cm cwmin Ar ac Ar count | |
| 1714 | Set the CWmin channel access parameter to use for transmissions | |
| 1715 | by the local station. | |
| 1716 | On stations in a BSS this parameter is read-only and indicates | |
| 1717 | the setting received from the access point. | |
| 1718 | .It Cm cwmax Ar ac Ar count | |
| 1719 | Set the CWmax channel access parameter to use for transmissions | |
| 1720 | by the local station. | |
| 1721 | On stations in a BSS this parameter is read-only and indicates | |
| 1722 | the setting received from the access point. | |
| 1723 | .It Cm txoplimit Ar ac Ar limit | |
| 1724 | Set the Transmission Opportunity Limit channel access parameter | |
| 1725 | to use for transmissions by the local station. | |
| 1726 | This parameter defines an interval of time when a WME station | |
| 1727 | has the right to initiate transmissions onto the wireless medium. | |
| 1728 | On stations in a BSS this parameter is read-only and indicates | |
| 1729 | the setting received from the access point. | |
| 1730 | .It Cm bss:aifs Ar ac Ar count | |
| 1731 | Set the AIFS channel access parameter to send to stations in a BSS. | |
| 1732 | This parameter is meaningful only when operating in ap mode. | |
| 1733 | .It Cm bss:cwmin Ar ac Ar count | |
| 1734 | Set the CWmin channel access parameter to send to stations in a BSS. | |
| 1735 | This parameter is meaningful only when operating in ap mode. | |
| 1736 | .It Cm bss:cwmax Ar ac Ar count | |
| 1737 | Set the CWmax channel access parameter to send to stations in a BSS. | |
| 1738 | This parameter is meaningful only when operating in ap mode. | |
| 1739 | .It Cm bss:txoplimit Ar ac Ar limit | |
| 1740 | Set the TxOpLimit channel access parameter to send to stations in a BSS. | |
| 1741 | This parameter is meaningful only when operating in ap mode. | |
| 1742 | .El | |
| e9a7dd65 RP |
1743 | .It Cm wps |
| 1744 | Enable Wireless Privacy Subscriber support. | |
| 1745 | Note that WPS support requires a WPS-capable supplicant. | |
| 1746 | To disable this function use | |
| 1747 | .Fl wps . | |
| 55fc9f88 SZ |
1748 | .El |
| 1749 | .Pp | |
| 1750 | The following parameters support an optional access control list | |
| e9a7dd65 | 1751 | feature available with some adapters when operating in ap mode; see |
| 55fc9f88 SZ |
1752 | .Xr wlan_acl 4 . |
| 1753 | This facility allows an access point to accept/deny association | |
| 1754 | requests based on the MAC address of the station. | |
| 1755 | Note that this feature does not significantly enhance security | |
| 1756 | as MAC address spoofing is easy to do. | |
| 1757 | .Bl -tag -width indent | |
| 1758 | .It Cm mac:add Ar address | |
| 1759 | Add the specified MAC address to the database. | |
| 1760 | Depending on the policy setting association requests from the | |
| 1761 | specified station will be allowed or denied. | |
| 1762 | .It Cm mac:allow | |
| 1763 | Set the ACL policy to permit association only by | |
| 1764 | stations registered in the database. | |
| 1765 | .It Cm mac:del Ar address | |
| 1766 | Delete the specified MAC address from the database. | |
| 1767 | .It Cm mac:deny | |
| 1768 | Set the ACL policy to deny association only by | |
| 1769 | stations registered in the database. | |
| 1770 | .It Cm mac:kick Ar address | |
| 1771 | Force the specified station to be deauthenticated. | |
| 1772 | This typically is done to block a station after updating the | |
| 1773 | address database. | |
| 1774 | .It Cm mac:open | |
| 1775 | Set the ACL policy to allow all stations to associate. | |
| 1776 | .It Cm mac:flush | |
| 1777 | Delete all entries in the database. | |
| e9a7dd65 RP |
1778 | .It Cm mac:radius |
| 1779 | Set the ACL policy to permit association only by | |
| 1780 | stations approved by a RADIUS server. | |
| 1781 | Note that this feature requires the | |
| 1782 | .Xr hostapd 8 | |
| 1783 | program be configured to do the right thing | |
| 1784 | as it handles the RADIUS processing | |
| 1785 | (and marks stations as authorized). | |
| 1786 | .El | |
| 1787 | .Pp | |
| 1788 | The following parameters are related to a wireless interface operating in mesh | |
| 1789 | mode: | |
| 1790 | .Bl -tag -width indent | |
| 1791 | .It Cm meshid Ar meshid | |
| 1792 | Set the desired Mesh Identifier. | |
| 1793 | The Mesh ID is a string up to 32 characters in length. | |
| 1794 | A mesh interface must have a Mesh Identifier specified | |
| 1795 | to reach an operational state. | |
| 1796 | .It Cm meshttl Ar ttl | |
| 1797 | Set the desired ``time to live'' for mesh forwarded packets; | |
| 1798 | this is the number of hops a packet may be forwarded before | |
| 1799 | it is discarded. | |
| 1800 | The default setting for | |
| 1801 | .Cm meshttl | |
| 1802 | is 31. | |
| 1803 | .It Cm meshpeering | |
| 1804 | Enable or disable peering with neighbor mesh stations. | |
| 1805 | Stations must peer before any data packets can be exchanged. | |
| 1806 | By default | |
| 1807 | .Cm meshpeering | |
| 1808 | is enabled. | |
| 1809 | .It Cm meshforward | |
| 1810 | Enable or disable forwarding packets by a mesh interface. | |
| 1811 | By default | |
| 1812 | .Cm meshforward | |
| 1813 | is enabled. | |
| 1814 | .It Cm meshmetric Ar protocol | |
| 1815 | Set the specified | |
| 1816 | .Ar protocol | |
| 1817 | as the link metric protocol used on a mesh network. | |
| 1818 | The default protocol is called | |
| 1819 | .Ar AIRTIME . | |
| 1820 | The mesh interface will restart after changing this setting. | |
| 1821 | .It Cm meshpath Ar protocol | |
| 1822 | Set the specified | |
| 1823 | .Ar protocol | |
| 1824 | as the path selection protocol used on a mesh network. | |
| 1825 | The only available protocol at the moment is called | |
| 1826 | .Ar HWMP | |
| 1827 | (Hybrid Wireless Mesh Protocol). | |
| 1828 | The mesh interface will restart after changing this setting. | |
| 1829 | .It Cm hwmprootmode Ar mode | |
| 1830 | Stations on a mesh network can operate as ``root nodes.'' | |
| 1831 | Root nodes try to find paths to all mesh nodes and advertise themselves | |
| 1832 | regularly. | |
| 1833 | When there is a root mesh node on a network, other mesh nodes can setup | |
| 1834 | paths between themselves faster because they can use the root node | |
| 1835 | to find the destination. | |
| 1836 | This path may not be the best, but on-demand | |
| 1837 | routing will eventually find the best path. | |
| 1838 | The following modes are recognized: | |
| 1839 | .Pp | |
| 1840 | .Bl -tag -width ".Cm PROACTIVE" -compact | |
| 1841 | .It Cm DISABLED | |
| 1842 | Disable root mode. | |
| 1843 | .It Cm NORMAL | |
| 1844 | Send broadcast path requests every two seconds. | |
| 1845 | Nodes on the mesh without a path to this root mesh station with try to | |
| 1846 | discover a path to us. | |
| 1847 | .It Cm PROACTIVE | |
| 1848 | Send broadcast path requests every two seconds and every node must reply with | |
| 1849 | with a path reply even if it already has a path to this root mesh station, | |
| 1850 | .It Cm RANN | |
| 1851 | Send broadcast root annoucement (RANN) frames. | |
| 1852 | Nodes on the mesh without a path to this root mesh station with try to | |
| 1853 | discover a path to us. | |
| 1854 | .El | |
| 1855 | By default | |
| 1856 | .Cm hwmprootmode | |
| 1857 | is set to | |
| 1858 | .Ar DISABLED . | |
| 1859 | .It Cm hwmpmaxhops Ar cnt | |
| 1860 | Set the maximum number of hops allowed in an HMWP path to | |
| 1861 | .Ar cnt . | |
| 1862 | The default setting for | |
| 1863 | .Cm hwmpmaxhops | |
| 1864 | is 31. | |
| 55fc9f88 SZ |
1865 | .El |
| 1866 | .Pp | |
| 1867 | The following parameters are for compatibility with other systems: | |
| 1868 | .Bl -tag -width indent | |
| 1869 | .It Cm nwid Ar ssid | |
| 1870 | Another name for the | |
| 1871 | .Cm ssid | |
| 1872 | parameter. | |
| 1873 | Included for | |
| 1874 | .Nx | |
| 1875 | compatibility. | |
| e9a7dd65 RP |
1876 | .It Cm stationname Ar name |
| 1877 | Set the name of this station. | |
| 1878 | The station name is not part of the IEEE 802.11 | |
| 1879 | protocol though some interfaces support it. | |
| 1880 | As such it only | |
| 1881 | seems to be meaningful to identical or virtually identical equipment. | |
| 1882 | Setting the station name is identical in syntax to setting the SSID. | |
| 1883 | One can also use | |
| 1884 | .Cm station | |
| 1885 | for | |
| 55fc9f88 SZ |
1886 | .Bsx |
| 1887 | compatibility. | |
| 984263bc MD |
1888 | .It Cm wep |
| 1889 | Another way of saying | |
| 1890 | .Cm wepmode on . | |
| 1891 | Included for | |
| 1892 | .Bsx | |
| 1893 | compatibility. | |
| 1894 | .It Fl wep | |
| 1895 | Another way of saying | |
| 1896 | .Cm wepmode off . | |
| 1897 | Included for | |
| 1898 | .Bsx | |
| 1899 | compatibility. | |
| 1900 | .It Cm nwkey key | |
| 1901 | Another way of saying: | |
| 984263bc | 1902 | .Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" . |
| 984263bc MD |
1903 | Included for |
| 1904 | .Nx | |
| 1905 | compatibility. | |
| 1906 | .It Cm nwkey Xo | |
| 1907 | .Sm off | |
| 1908 | .Ar n : k1 , k2 , k3 , k4 | |
| 1909 | .Sm on | |
| 1910 | .Xc | |
| 1911 | Another way of saying | |
| 984263bc | 1912 | .Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" . |
| 984263bc MD |
1913 | Included for |
| 1914 | .Nx | |
| 1915 | compatibility. | |
| 1916 | .It Fl nwkey | |
| 1917 | Another way of saying | |
| 1918 | .Cm wepmode off . | |
| 984263bc MD |
1919 | Included for |
| 1920 | .Nx | |
| 1921 | compatibility. | |
| 55fc9f88 SZ |
1922 | .El |
| 1923 | .Pp | |
| 1924 | The following parameters are specific to bridge interfaces: | |
| 1925 | .Bl -tag -width indent | |
| 1926 | .It Cm addm Ar interface | |
| 1927 | Add the interface named by | |
| 1928 | .Ar interface | |
| 1929 | as a member of the bridge. | |
| 1930 | The interface is put into promiscuous mode | |
| 1931 | so that it can receive every packet sent on the network. | |
| 1932 | .It Cm deletem Ar interface | |
| 1933 | Remove the interface named by | |
| 1934 | .Ar interface | |
| 1935 | from the bridge. | |
| 1936 | Promiscuous mode is disabled on the interface when | |
| 1937 | it is removed from the bridge. | |
| 1938 | .It Cm maxaddr Ar size | |
| 1939 | Set the size of the bridge address cache to | |
| 1940 | .Ar size . | |
| 1941 | The default is 100 entries. | |
| 1942 | .It Cm timeout Ar seconds | |
| 1943 | Set the timeout of address cache entries to | |
| 1944 | .Ar seconds | |
| 1945 | seconds. | |
| 1946 | If | |
| 1947 | .Ar seconds | |
| 1948 | is zero, then address cache entries will not be expired. | |
| 95482127 | 1949 | The default is 1200 seconds. |
| 55fc9f88 SZ |
1950 | .It Cm addr |
| 1951 | Display the addresses that have been learned by the bridge. | |
| 1952 | .It Cm static Ar interface-name Ar address | |
| 1953 | Add a static entry into the address cache pointing to | |
| 1954 | .Ar interface-name . | |
| 1955 | Static entries are never aged out of the cache or re-placed, even if the | |
| 1956 | address is seen on a different interface. | |
| 1957 | .It Cm deladdr Ar address | |
| 1958 | Delete | |
| 1959 | .Ar address | |
| 1960 | from the address cache. | |
| 1961 | .It Cm flush | |
| 1962 | Delete all dynamically-learned addresses from the address cache. | |
| 1963 | .It Cm flushall | |
| 1964 | Delete all addresses, including static addresses, from the address cache. | |
| 1965 | .It Cm discover Ar interface | |
| 1966 | Mark an interface as a | |
| 1967 | .Dq discovering | |
| 1968 | interface. | |
| 1969 | When the bridge has no address cache entry | |
| 1970 | (either dynamic or static) | |
| 1971 | for the destination address of a packet, | |
| 1972 | the bridge will forward the packet to all | |
| 1973 | member interfaces marked as | |
| 1974 | .Dq discovering . | |
| 1975 | This is the default for all interfaces added to a bridge. | |
| b16c423b | 1976 | .It Fl discover Ar interface |
| 55fc9f88 SZ |
1977 | Clear the |
| 1978 | .Dq discovering | |
| 1979 | attribute on a member interface. | |
| 1980 | For packets without the | |
| 1981 | .Dq discovering | |
| 1982 | attribute, the only packets forwarded on the interface are broadcast | |
| 1983 | or multicast packets and packets for which the destination address | |
| 1984 | is known to be on the interface's segment. | |
| 1985 | .It Cm learn Ar interface | |
| 1986 | Mark an interface as a | |
| 1987 | .Dq learning | |
| 1988 | interface. | |
| 1989 | When a packet arrives on such an interface, the source | |
| 1990 | address of the packet is entered into the address cache as being a | |
| 1991 | destination address on the interface's segment. | |
| 1992 | This is the default for all interfaces added to a bridge. | |
| b16c423b | 1993 | .It Fl learn Ar interface |
| 55fc9f88 SZ |
1994 | Clear the |
| 1995 | .Dq learning | |
| 1996 | attribute on a member interface. | |
| b16c423b SW |
1997 | .It Cm span Ar interface |
| 1998 | Add the interface named by | |
| 1999 | .Ar interface | |
| 2000 | as a span port on the bridge. | |
| 2001 | Span ports transmit a copy of every frame received by the bridge. | |
| 2002 | This is most useful for snooping a bridged network passively on | |
| 2003 | another host connected to one of the span ports of the bridge. | |
| 2004 | .It Fl span Ar interface | |
| 2005 | Delete the interface named by | |
| 2006 | .Ar interface | |
| 2007 | from the list of span ports of the bridge. | |
| 55fc9f88 SZ |
2008 | .It Cm stp Ar interface |
| 2009 | Enable Spanning Tree protocol on | |
| 2010 | .Ar interface . | |
| 2011 | The | |
| 2012 | .Xr bridge 4 | |
| 2013 | driver has support for the IEEE 802.1D Spanning Tree protocol (STP). | |
| 2014 | Spanning Tree is used to detect and remove loops in a network topology. | |
| b16c423b | 2015 | .It Fl stp Ar interface |
| 55fc9f88 SZ |
2016 | Disable Spanning Tree protocol on |
| 2017 | .Ar interface . | |
| 2018 | This is the default for all interfaces added to a bridge. | |
| 2019 | .It Cm maxage Ar seconds | |
| 2020 | Set the time that a Spanning Tree protocol configuration is valid. | |
| 2021 | The default is 20 seconds. | |
| 2022 | The minimum is 1 second and the maximum is 255 seconds. | |
| 2023 | .It Cm fwddelay Ar seconds | |
| 2024 | Set the time that must pass before an interface begins forwarding | |
| 2025 | packets when Spanning Tree is enabled. | |
| 2026 | The default is 15 seconds. | |
| 2027 | The minimum is 1 second and the maximum is 255 seconds. | |
| 2028 | .It Cm hellotime Ar seconds | |
| 2029 | Set the time between broadcasting of Spanning Tree protocol | |
| 2030 | configuration messages. | |
| 2031 | The default is 2 seconds. | |
| 2032 | The minimum is 1 second and the maximum is 255 seconds. | |
| 2033 | .It Cm priority Ar value | |
| 2034 | Set the bridge priority for Spanning Tree. | |
| 2035 | The default is 32768. | |
| 2036 | The minimum is 0 and the maximum is 65536. | |
| 2037 | .It Cm ifpriority Ar interface Ar value | |
| 2038 | Set the Spanning Tree priority of | |
| 2039 | .Ar interface | |
| 2040 | to | |
| 2041 | .Ar value . | |
| 2042 | The default is 128. | |
| 2043 | The minimum is 0 and the maximum is 255. | |
| 2044 | .It Cm ifpathcost Ar interface Ar value | |
| 2045 | Set the Spanning Tree path cost of | |
| 2046 | .Ar interface | |
| 2047 | to | |
| 2048 | .Ar value . | |
| 2049 | The default is 55. | |
| 2050 | The minimum is 0 and the maximum is 65535. | |
| 984263bc MD |
2051 | .El |
| 2052 | .Pp | |
| b16c423b SW |
2053 | The following parameters are specific to IP tunnel interfaces, |
| 2054 | .Xr gif 4 : | |
| 2055 | .Bl -tag -width indent | |
| 2056 | .It Cm tunnel Ar src_addr dest_addr | |
| 2057 | Configure the physical source and destination address for IP tunnel | |
| 2058 | interfaces. | |
| 2059 | The arguments | |
| 2060 | .Ar src_addr | |
| 2061 | and | |
| 2062 | .Ar dest_addr | |
| 2063 | are interpreted as the outer source/destination for the encapsulating | |
| 2064 | IPv4/IPv6 header. | |
| 2065 | .It Fl tunnel | |
| 2066 | Unconfigure the physical source and destination address for IP tunnel | |
| 2067 | interfaces previously configured with | |
| 2068 | .Cm tunnel . | |
| 2069 | .It Cm deletetunnel | |
| 2070 | Another name for the | |
| 2071 | .Fl tunnel | |
| 2072 | parameter. | |
| 2073 | .El | |
| 2074 | .Pp | |
| 2075 | The following parameters are specific to | |
| 2076 | .Xr vlan 4 | |
| 2077 | interfaces: | |
| 2078 | .Bl -tag -width indent | |
| 2079 | .It Cm vlan Ar vlan_tag | |
| 2080 | Set the VLAN tag value to | |
| 2081 | .Ar vlan_tag . | |
| 2082 | This value is a 16-bit number which is used to create an 802.1Q | |
| 2083 | VLAN header for packets sent from the | |
| 2084 | .Xr vlan 4 | |
| 2085 | interface. | |
| 2086 | Note that | |
| 2087 | .Cm vlan | |
| 2088 | and | |
| 2089 | .Cm vlandev | |
| 2090 | must both be set at the same time. | |
| 2091 | .It Cm vlandev Ar iface | |
| 2092 | Associate the physical interface | |
| 2093 | .Ar iface | |
| 2094 | with a | |
| 2095 | .Xr vlan 4 | |
| 2096 | interface. | |
| 2097 | Packets transmitted through the | |
| 2098 | .Xr vlan 4 | |
| 2099 | interface will be | |
| 2100 | diverted to the specified physical interface | |
| 2101 | .Ar iface | |
| 2102 | with 802.1Q VLAN encapsulation. | |
| 2103 | Packets with 802.1Q encapsulation received | |
| 2104 | by the parent interface with the correct VLAN tag will be diverted to | |
| 2105 | the associated | |
| 2106 | .Xr vlan 4 | |
| 2107 | pseudo-interface. | |
| 2108 | The | |
| 2109 | .Xr vlan 4 | |
| 2110 | interface is assigned a | |
| 2111 | copy of the parent interface's flags and the parent's ethernet address. | |
| 2112 | The | |
| 2113 | .Cm vlandev | |
| 2114 | and | |
| 2115 | .Cm vlan | |
| 2116 | must both be set at the same time. | |
| 2117 | If the | |
| 2118 | .Xr vlan 4 | |
| 2119 | interface already has | |
| 2120 | a physical interface associated with it, this command will fail. | |
| 2121 | To | |
| 2122 | change the association to another physical interface, the existing | |
| 2123 | association must be cleared first. | |
| 2124 | .Pp | |
| 2125 | Note: if the hardware tagging capability | |
| 2126 | is set on the parent interface, the | |
| 2127 | .Xr vlan 4 | |
| 2128 | pseudo | |
| 2129 | interface's behavior changes: | |
| 2130 | the | |
| 2131 | .Xr vlan 4 | |
| 2132 | interface recognizes that the | |
| 2133 | parent interface supports insertion and extraction of VLAN tags on its | |
| 2134 | own (usually in firmware) and that it should pass packets to and from | |
| 2135 | the parent unaltered. | |
| 2136 | .It Fl vlandev Op Ar iface | |
| 2137 | If the driver is a | |
| 2138 | .Xr vlan 4 | |
| 2139 | pseudo device, disassociate the parent interface from it. | |
| 2140 | This breaks the link between the | |
| 2141 | .Xr vlan 4 | |
| 2142 | interface and its parent, | |
| 2143 | clears its VLAN tag, flags and its link address and shuts the interface down. | |
| 2144 | The | |
| 2145 | .Ar iface | |
| 2146 | argument is useless and hence deprecated. | |
| 2147 | .El | |
| 2148 | .Pp | |
| 0d16ba1d MD |
2149 | The following parameters are specific to |
| 2150 | .Xr carp 4 | |
| 2151 | interfaces: | |
| 2152 | .Bl -tag -width indent | |
| 2153 | .It Cm advbase Ar seconds | |
| 2154 | Specifies the base of the advertisement interval in seconds. | |
| 2155 | The acceptable values are 1 to 255. | |
| 2156 | The default value is 1. | |
| 2157 | .\" The default value is | |
| 2158 | .\" .Dv CARP_DFLTINTV . | |
| 2159 | .It Cm advskew Ar interval | |
| 2160 | Specifies the skew to add to the base advertisement interval to | |
| 2161 | make one host advertise slower than another host. | |
| 2162 | It is specified in 1/256 of seconds. | |
| 2163 | The acceptable values are 1 to 254. | |
| 2164 | The default value is 0. | |
| 2165 | .It Cm pass Ar phrase | |
| 2166 | Set the authentication key to | |
| 2167 | .Ar phrase . | |
| 2168 | .It Cm vhid Ar n | |
| 2169 | Set the virtual host ID. | |
| 2170 | This is a required setting. | |
| 2171 | Acceptable values are 1 to 255. | |
| 2172 | .El | |
| 2173 | .Pp | |
| 984263bc MD |
2174 | The |
| 2175 | .Nm | |
| 2176 | utility displays the current configuration for a network interface | |
| 2177 | when no optional parameters are supplied. | |
| 2178 | If a protocol family is specified, | |
| 2179 | .Nm | |
| 2180 | will report only the details specific to that protocol family. | |
| 2181 | .Pp | |
| 984263bc MD |
2182 | If the |
| 2183 | .Fl m | |
| 2184 | flag is passed before an interface name, | |
| 2185 | .Nm | |
| b50e4759 | 2186 | will display the capability list and all |
| 984263bc MD |
2187 | of the supported media for the specified interface. |
| 2188 | If | |
| 2189 | .Fl L | |
| 2190 | flag is supplied, address lifetime is displayed for IPv6 addresses, | |
| 2191 | as time offset string. | |
| 2192 | .Pp | |
| 2193 | Optionally, the | |
| 2194 | .Fl a | |
| 2195 | flag may be used instead of an interface name. | |
| 2196 | This flag instructs | |
| 2197 | .Nm | |
| 2198 | to display information about all interfaces in the system. | |
| 2199 | The | |
| 2200 | .Fl d | |
| 2201 | flag limits this to interfaces that are down, and | |
| 2202 | .Fl u | |
| 2203 | limits this to interfaces that are up. | |
| 2204 | When no arguments are given, | |
| 2205 | .Fl a | |
| 2206 | is implied. | |
| 2207 | .Pp | |
| 2208 | The | |
| 2209 | .Fl l | |
| 2210 | flag may be used to list all available interfaces on the system, with | |
| 2211 | no other additional information. | |
| 2212 | Use of this flag is mutually exclusive | |
| 2213 | with all other flags and commands, except for | |
| 2214 | .Fl d | |
| 2215 | (only list interfaces that are down) | |
| 2216 | and | |
| 2217 | .Fl u | |
| 2218 | (only list interfaces that are up). | |
| 2219 | .Pp | |
| 2220 | The | |
| 55fc9f88 SZ |
2221 | .Fl v |
| 2222 | flag may be used to get more verbose status for an interface. | |
| 2223 | .Pp | |
| 2224 | The | |
| 984263bc MD |
2225 | .Fl C |
| 2226 | flag may be used to list all of the interface cloners available on | |
| 2227 | the system, with no additional information. | |
| 2228 | Use of this flag is mutually exclusive with all other flags and commands. | |
| 2229 | .Pp | |
| 55fc9f88 SZ |
2230 | The |
| 2231 | .Fl k | |
| 2232 | flag causes keying information for the interface, if available, to be | |
| 2233 | printed. | |
| 2234 | For example, the values of 802.11 WEP keys will be printed, if accessible to | |
| 2235 | the current user. | |
| 2236 | This information is not printed by default, as it may be considered | |
| 2237 | sensitive. | |
| 2238 | .Pp | |
| 984263bc | 2239 | Only the super-user may modify the configuration of a network interface. |
| 984263bc MD |
2240 | .Sh DIAGNOSTICS |
| 2241 | Messages indicating the specified interface does not exist, the | |
| 2242 | requested address is unknown, or the user is not privileged and | |
| 2243 | tried to alter an interface's configuration. | |
| 984263bc MD |
2244 | .Sh SEE ALSO |
| 2245 | .Xr netstat 1 , | |
| 0d16ba1d | 2246 | .Xr carp 4 , |
| b16c423b | 2247 | .Xr ifmedia 4 , |
| 984263bc | 2248 | .Xr netintro 4 , |
| b16c423b | 2249 | .Xr polling 4 , |
| b50e4759 | 2250 | .Xr vlan 4 , |
| 984263bc MD |
2251 | .\" .Xr eon 5 , |
| 2252 | .Xr rc 8 , | |
| b50e4759 MD |
2253 | .Xr routed 8 , |
| 2254 | .Xr sysctl 8 | |
| 984263bc MD |
2255 | .Sh HISTORY |
| 2256 | The | |
| 2257 | .Nm | |
| 2258 | utility appeared in | |
| 2259 | .Bx 4.2 . | |
| d600454b SW |
2260 | .Sh BUGS |
| 2261 | Basic IPv6 node operation requires a link-local address on each | |
| 2262 | interface configured for IPv6. | |
| 2263 | Normally, such an address is automatically configured by the | |
| 2264 | kernel on each interface added to the system; this behaviour may | |
| 2265 | be disabled by setting the sysctl MIB variable | |
| 2266 | .Va net.inet6.ip6.auto_linklocal | |
| 2267 | to 0. | |
| 2268 | .Pp | |
| 2269 | If you delete such an address using | |
| 2270 | .Nm , | |
| b16c423b | 2271 | the kernel may act very odd. |
| d600454b | 2272 | Do this at your own risk. |