Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / sbin / ifconfig / ifconfig.8
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.
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
29 .\" $FreeBSD: src/sbin/ifconfig/ifconfig.8,v 1.124 2006/10/10 09:44:08 ru Exp $
30 .\" $DragonFly: src/sbin/ifconfig/ifconfig.8,v 1.20 2007/08/16 20:03:55 dillon Exp $
31
32 .\"
33 .Dd April 8, 2007
34 .Dt IFCONFIG 8
35 .Os
36 .Sh NAME
37 .Nm ifconfig
38 .Nd configure network interface parameters
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl L
42 .Op Fl k
43 .Op Fl m
44 .Ar interface
45 .Op Cm create
46 .Op Ar address_family
47 .Oo
48 .Ar address
49 .Op Ar dest_address
50 .Oc
51 .Op Ar parameters
52 .Nm
53 .Ar interface
54 .Cm destroy
55 .Nm
56 .Fl a
57 .Op Fl L
58 .Op Fl d
59 .Op Fl m
60 .Op Fl u
61 .Op Fl v
62 .Op Ar address_family
63 .Nm
64 .Fl l
65 .Op Fl d
66 .Op Fl u
67 .Op Ar address_family
68 .Nm
69 .Op Fl L
70 .Op Fl d
71 .Op Fl k
72 .Op Fl m
73 .Op Fl u
74 .Op Fl v
75 .Op Fl C
76 .Sh DESCRIPTION
77 The
78 .Nm
79 utility is used to assign an address
80 to a network interface and/or configure
81 network interface parameters.
82 The
83 .Nm
84 utility must be used at boot time to define the network address
85 of each interface present on a machine; it may also be used at
86 a later time to redefine an interface's address
87 or other operating parameters.
88 .Pp
89 The following options are available:
90 .Bl -tag -width indent
91 .It Ar address
92 For the
93 .Tn DARPA Ns -Internet
94 family,
95 the address is either a host name present in the host name data
96 base,
97 .Xr hosts 5 ,
98 or a
99 .Tn DARPA
100 Internet address expressed in the Internet standard
101 .Dq dot notation .
102 .Pp
103 It is also possible to use the CIDR notation (also known as the
104 slash notation) to include the netmask.
105 That is, one can specify an address like
106 .Li 192.168.0.1/16 .
107 .Pp
108 For
109 .Dq inet6
110 family, it is also possible to specify the prefix length using the slash
111 notation, like
112 .Li ::1/128 .
113 See the
114 .Cm prefixlen
115 parameter below for more information.
116 .\" For the Xerox Network Systems(tm) family,
117 .\" addresses are
118 .\" .Ar net:a.b.c.d.e.f ,
119 .\" where
120 .\" .Ar net
121 .\" is the assigned network number (in decimal),
122 .\" and each of the six bytes of the host number,
123 .\" .Ar a
124 .\" through
125 .\" .Ar f ,
126 .\" are specified in hexadecimal.
127 .\" The host number may be omitted on IEEE 802 protocol
128 .\" (Ethernet, FDDI, and Token Ring) interfaces,
129 .\" which use the hardware physical address,
130 .\" and on interfaces other than the first.
131 .\" For the
132 .\" .Tn ISO
133 .\" family, addresses are specified as a long hexadecimal string,
134 .\" as in the Xerox family.
135 .\" However, two consecutive dots imply a zero
136 .\" byte, and the dots are optional, if the user wishes to (carefully)
137 .\" count out long strings of digits in network byte order.
138 .Pp
139 The link-level
140 .Pq Dq link
141 address
142 is specified as a series of colon-separated hex digits.
143 This can be used to
144 e.g.\& set a new MAC address on an ethernet interface, though the
145 mechanism used is not ethernet-specific.
146 If the interface is already
147 up when this option is used, it will be briefly brought down and
148 then brought back up again in order to ensure that the receive
149 filter in the underlying ethernet hardware is properly reprogrammed.
150 .It Ar address_family
151 Specify the
152 address family
153 which affects interpretation of the remaining parameters.
154 Since an interface can receive transmissions in differing protocols
155 with different naming schemes, specifying the address family is recommended.
156 The address or protocol families currently
157 supported are
158 .Dq inet ,
159 .Dq inet6 ,
160 .Dq atalk ,
161 .Dq ipx ,
162 .\" .Dq iso ,
163 and
164 .Dq link .
165 .\" and
166 .\" .Dq ns .
167 The default is
168 .Dq inet .
169 .Dq ether
170 and
171 .Dq lladdr
172 are synonyms for
173 .Dq link .
174 .It Ar dest_address
175 Specify the address of the correspondent on the other end
176 of a point to point link.
177 .It Ar interface
178 This
179 parameter is a string of the form
180 .Dq name unit ,
181 for example,
182 .Dq Li ed0 .
183 .El
184 .Pp
185 The following parameters may be set with
186 .Nm :
187 .Bl -tag -width indent
188 .It Cm add
189 Another name for the
190 .Cm alias
191 parameter.
192 Introduced for compatibility
193 with
194 .Bsx .
195 .It Cm alias
196 Establish an additional network address for this interface.
197 This is sometimes useful when changing network numbers, and
198 one wishes to accept packets addressed to the old interface.
199 If the address is on the same subnet as the first network address
200 for this interface, a non-conflicting netmask must be given.
201 Usually
202 .Li 0xffffffff
203 is most appropriate.
204 .It Fl alias
205 Remove the network address specified.
206 This would be used if you incorrectly specified an alias, or it
207 was no longer needed.
208 If you have incorrectly set an NS address having the side effect
209 of specifying the host portion, removing all NS addresses will
210 allow you to respecify the host portion.
211 .It Cm anycast
212 (Inet6 only.)
213 Specify that the address configured is an anycast address.
214 Based on the current specification,
215 only routers may configure anycast addresses.
216 Anycast address will not be used as source address of any of outgoing
217 IPv6 packets.
218 .It Cm arp
219 Enable the use of the Address Resolution Protocol
220 .Pq Xr arp 4
221 in mapping
222 between network level addresses and link level addresses (default).
223 This is currently implemented for mapping between
224 .Tn DARPA
225 Internet
226 addresses and
227 .Tn IEEE
228 802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses).
229 .It Fl arp
230 Disable the use of the Address Resolution Protocol
231 .Pq Xr arp 4 .
232 .It Cm broadcast
233 (Inet only.)
234 Specify the address to use to represent broadcasts to the
235 network.
236 The default broadcast address is the address with a host part of all 1's.
237 .It Cm debug
238 Enable driver dependent debugging code; usually, this turns on
239 extra console error logging.
240 .It Fl debug
241 Disable driver dependent debugging code.
242 .It Cm promisc
243 Put interface into permanently promiscuous mode.
244 .It Fl promisc
245 Disable permanently promiscuous mode.
246 .It Cm delete
247 Another name for the
248 .Fl alias
249 parameter.
250 .It Cm down
251 Mark an interface
252 .Dq down .
253 When an interface is marked
254 .Dq down ,
255 the system will not attempt to
256 transmit messages through that interface.
257 If possible, the interface will be reset to disable reception as well.
258 This action does not automatically disable routes using the interface.
259 .It Cm eui64
260 (Inet6 only.)
261 Fill interface index
262 (lowermost 64bit of an IPv6 address)
263 automatically.
264 .It Cm ipdst
265 This is used to specify an Internet host who is willing to receive
266 IP packets encapsulating IPX packets bound for a remote network.
267 An apparent point to point link is constructed, and
268 the address specified will be taken as the IPX address and network
269 of the destination.
270 .It Cm media Ar type
271 If the driver supports the media selection system, set the media type
272 of the interface to
273 .Ar type .
274 Some interfaces support the mutually exclusive use of one of several
275 different physical media connectors.
276 For example, a 10Mbit/s Ethernet
277 interface might support the use of either
278 .Tn AUI
279 or twisted pair connectors.
280 Setting the media type to
281 .Cm 10base5/AUI
282 would change the currently active connector to the AUI port.
283 Setting it to
284 .Cm 10baseT/UTP
285 would activate twisted pair.
286 Refer to the interfaces' driver
287 specific documentation or man page for a complete list of the
288 available types.
289 .It Cm mediaopt Ar opts
290 If the driver supports the media selection system, set the specified
291 media options on the interface.
292 The
293 .Ar opts
294 argument
295 is a comma delimited list of options to apply to the interface.
296 Refer to the interfaces' driver specific man page for a complete
297 list of available options.
298 .It Fl mediaopt Ar opts
299 If the driver supports the media selection system, disable the
300 specified media options on the interface.
301 .It Cm mode Ar mode
302 If the driver supports the media selection system, set the specified
303 operating mode on the interface to
304 .Ar mode .
305 For IEEE 802.11 wireless interfaces that support multiple operating modes
306 this directive is used to select between 802.11a
307 .Pq Cm 11a ,
308 802.11b
309 .Pq Cm 11b ,
310 and 802.11g
311 .Pq Cm 11g
312 operating modes.
313 .It Cm name Ar name
314 Set the interface name to
315 .Ar name .
316 .It Cm rxcsum , txcsum
317 If the driver supports user-configurable checksum offloading,
318 enable receive (or transmit) checksum offloading on the interface.
319 Some drivers may not be able to enable these flags independently
320 of each other, so setting one may also set the other.
321 The driver will offload as much checksum work as it can reliably
322 support, the exact level of offloading varies between drivers.
323 .It Fl rxcsum , txcsum
324 If the driver supports user-configurable checksum offloading,
325 disable receive (or transmit) checksum offloading on the interface.
326 These settings may not always be independent of each other.
327 .It Cm vlanmtu , vlanhwtag
328 If the driver offers user-configurable VLAN support, enable
329 reception of extended frames or tag processing in hardware,
330 respectively.
331 Note that this must be issued on a physical interface associated with
332 .Xr vlan 4 ,
333 not on a
334 .Xr vlan 4
335 interface itself.
336 .It Fl vlanmtu , vlanhwtag
337 If the driver offers user-configurable VLAN support, disable
338 reception of extended frames or tag processing in hardware,
339 respectively.
340 .It Cm polling
341 Turn on
342 .Xr polling 4
343 feature and disable interrupts on the interface, if the driver supports
344 this mode.
345 .It Fl polling
346 Turn off
347 .Xr polling 4
348 feature and enable interrupt mode on the interface.
349 .It Cm create
350 Create the specified network pseudo-device.
351 If the interface is given without a unit number, try to create a new
352 device with an arbitrary unit number.
353 If creation of an arbitrary device is successful, the new device name is
354 printed to standard output unless the interface is renamed or destroyed
355 in the same
356 .Nm
357 invocation.
358 .It Cm destroy
359 Destroy the specified network pseudo-device.
360 .It Cm plumb
361 Another name for the
362 .Cm create
363 parameter.
364 Included for
365 .Tn Solaris
366 compatibility.
367 .It Cm unplumb
368 Another name for the
369 .Cm destroy
370 parameter.
371 Included for
372 .Tn Solaris
373 compatibility.
374 .It Cm metric Ar n
375 Set the routing metric of the interface to
376 .Ar n ,
377 default 0.
378 The routing metric is used by the routing protocol
379 .Pq Xr routed 8 .
380 Higher metrics have the effect of making a route
381 less favorable; metrics are counted as additional hops
382 to the destination network or host.
383 .It Cm mtu Ar n
384 Set the maximum transmission unit of the interface to
385 .Ar n ,
386 default is interface specific.
387 The MTU is used to limit the size of packets that are transmitted on an
388 interface.
389 Not all interfaces support setting the MTU, and some interfaces have
390 range restrictions.
391 .It Cm netmask Ar mask
392 .\" (Inet and ISO.)
393 (Inet only.)
394 Specify how much of the address to reserve for subdividing
395 networks into sub-networks.
396 The mask includes the network part of the local address
397 and the subnet part, which is taken from the host field of the address.
398 The mask can be specified as a single hexadecimal number
399 with a leading
400 .Ql 0x ,
401 with a dot-notation Internet address,
402 or with a pseudo-network name listed in the network table
403 .Xr networks 5 .
404 The mask contains 1's for the bit positions in the 32-bit address
405 which are to be used for the network and subnet parts,
406 and 0's for the host part.
407 The mask should contain at least the standard network portion,
408 and the subnet field should be contiguous with the network
409 portion.
410 .Pp
411 The netmask can also be specified in CIDR notation after the address.
412 See the
413 .Ar address
414 option above for more information.
415 .It Cm autoconf
416 (Inet6 only.)
417 Enable autoconfiguration.
418 .It Fl autoconf
419 Disable autoconfiguration.
420 .It Cm pltime Ar n
421 (Inet6 only.)
422 Set preferred lifetime for the address.
423 .It Cm vltime Ar n
424 (Inet6 only.)
425 Set valid lifetime for the address.
426 .It Cm prefixlen Ar len
427 (Inet6 only.)
428 Specify that
429 .Ar len
430 bits are reserved for subdividing networks into sub-networks.
431 The
432 .Ar len
433 must be integer, and for syntactical reason it must be between 0 to 128.
434 It is almost always 64 under the current IPv6 assignment rule.
435 If the parameter is omitted, 64 is used.
436 .Pp
437 The prefix can also be specified using the slash notation after the address.
438 See the
439 .Ar address
440 option above for more information.
441 .It Cm deprecated
442 (Inet6 only.)
443 Set the IPv6 deprecated address bit.
444 .It Fl deprecated
445 (Inet6 only.)
446 Clear the IPv6 deprecated address bit.
447 .It Cm tentative
448 (Inet6 only.)
449 Set the IPv6 tentative address bit.
450 .It Fl tentative
451 (Inet6 only.)
452 Clear the IPv6 tentative address bit.
453 .\" see
454 .\" Xr eon 5 .
455 .\" .It Cm nsellength Ar n
456 .\" .Pf ( Tn ISO
457 .\" only)
458 .\" This specifies a trailing number of bytes for a received
459 .\" .Tn NSAP
460 .\" used for local identification, the remaining leading part of which is
461 .\" taken to be the
462 .\" .Tn NET
463 .\" (Network Entity Title).
464 .\" The default value is 1, which is conformant to US
465 .\" .Tn GOSIP .
466 .\" When an ISO address is set in an ifconfig command,
467 .\" it is really the
468 .\" .Tn NSAP
469 .\" which is being specified.
470 .\" For example, in
471 .\" .Tn US GOSIP ,
472 .\" 20 hex digits should be
473 .\" specified in the
474 .\" .Tn ISO NSAP
475 .\" to be assigned to the interface.
476 .\" There is some evidence that a number different from 1 may be useful
477 .\" for
478 .\" .Tn AFI
479 .\" 37 type addresses.
480 .It Cm range Ar netrange
481 Under appletalk, set the interface to respond to a
482 .Ar netrange
483 of the form
484 .Ar startnet Ns - Ns Ar endnet .
485 Appletalk uses this scheme instead of
486 netmasks though
487 .Fx
488 implements it internally as a set of netmasks.
489 .It Cm remove
490 Another name for the
491 .Fl alias
492 parameter.
493 Introduced for compatibility
494 with
495 .Bsx .
496 .It Cm phase
497 The argument following this specifies the version (phase) of the
498 Appletalk network attached to the interface.
499 Values of 1 or 2 are permitted.
500 .Sm off
501 .It Cm link Op Cm 0 No - Cm 2
502 .Sm on
503 Enable special processing of the link level of the interface.
504 These three options are interface specific in actual effect, however,
505 they are in general used to select special modes of operation.
506 An example
507 of this is to enable SLIP compression, or to select the connector type
508 for some Ethernet cards.
509 Refer to the man page for the specific driver
510 for more information.
511 .Sm off
512 .It Fl link Op Cm 0 No - Cm 2
513 .Sm on
514 Disable special processing at the link level with the specified interface.
515 .It Cm compress
516 Another name for the
517 .Cm link0
518 parameter.
519 .It Cm normal
520 Another name for the
521 .Fl link0
522 parameter.
523 .It Cm noicmp
524 Another name for the
525 .Cm link1
526 parameter.
527 .It Cm monitor
528 Put the interface in monitor mode.
529 No packets are transmitted, and received packets are discarded after
530 .Xr bpf 4
531 processing.
532 .It Fl monitor
533 Take the interface out of monitor mode.
534 .It Cm up
535 Mark an interface
536 .Dq up .
537 This may be used to enable an interface after an
538 .Dq Nm Cm down .
539 It happens automatically when setting the first address on an interface.
540 If the interface was reset when previously marked down,
541 the hardware will be re-initialized.
542 .El
543 .Pp
544 The following parameters are specific to IEEE 802.11 wireless interfaces:
545 .Bl -tag -width indent
546 .It Cm apbridge
547 When operating as an access point, pass packets between
548 wireless clients directly (default).
549 To instead let them pass up through the
550 system and be forwarded using some other mechanism, use
551 .Fl apbridge .
552 Disabling the internal bridging
553 is useful when traffic is to be processed with
554 packet filtering.
555 .It Cm authmode Ar mode
556 Set the desired authentication mode in infrastructure mode.
557 Not all adaptors support all modes.
558 The set of
559 valid modes is
560 .Cm none , open , shared
561 (shared key),
562 .Cm 8021x
563 (IEEE 802.1x),
564 and
565 .Cm wpa
566 (IEEE WPA/WPA2/802.11i).
567 The
568 .Cm 8021x
569 and
570 .Cm wpa
571 modes are only useful when using an authentication service
572 (a supplicant for client operation or an authenticator when
573 operating as an access point).
574 Modes are case insensitive.
575 .It Cm bintval Ar interval
576 Set the interval at which beacon frames are sent when operating in
577 ad-hoc or ap mode.
578 The
579 .Ar interval
580 parameter is specified in TU's (1024 usecs).
581 By default beacon frames are transmitted every 100 TU's.
582 .It Cm bmissthreshold Ar count
583 Set the number of consecutive missed beacons at which the station
584 will attempt to roam (i.e. search for a new access point).
585 The
586 .Ar count
587 parameter is must be in the range 1 to 255;
588 though the upper bound may be reduced according to device capabilities..
589 The default threshold is 7 consecutive missed beacons;
590 but this may be overridden by the device driver.
591 Another name for the
592 .Cm bmissthreshold
593 parameter is
594 .Cm bmiss .
595 .It Cm bssid Ar address
596 Specify the MAC address of the access point to use when operating
597 as a station in a BSS network.
598 This overrides any automatic selection done by the system.
599 To disable a previously selected access point, supply
600 .Cm any , none ,
601 or
602 .Cm -
603 for the address.
604 This option is useful when more than one access point uses the same SSID.
605 Another name for the
606 .Cm bssid
607 parameter is
608 .Cm ap .
609 .It Cm burst
610 Enable packet bursting.
611 Packet bursting is a transmission technique whereby the wireless
612 medium is acquired once to send multiple frames and the interframe
613 spacing is reduced.
614 This technique can significantly increase throughput by reducing
615 transmission overhead.
616 Packet bursting is supported by the 802.11e QoS specification
617 and some devices that do not support QoS may still be capable.
618 By default packet bursting is enabled if a device is capable
619 of doing it.
620 To disable packet bursting, use
621 .Fl burst .
622 .It Cm chanlist Ar channels
623 Set the desired channels to use when scanning for access
624 points, neighbors in an IBSS network, or looking for unoccupied
625 channels when operating as an access point.
626 The set of channels is specified as a comma-separated list with
627 each element in the list representing either a single channel number or a range
628 of the form
629 .Dq Li a-b .
630 Channel numbers must be in the range 1 to 255 and be permissible
631 according to the operating characteristics of the device.
632 .It Cm channel Ar number
633 Set a single desired channel.
634 Channels range from 1 to 255, but the exact selection available
635 depends on the region your adaptor was manufactured for.
636 Setting
637 the channel to
638 .Li 0 ,
639 .Cm any ,
640 or
641 .Cm -
642 will give you the default for your adaptor.
643 Some
644 adaptors ignore this setting unless you are in ad-hoc mode.
645 Alternatively the frequency, in megahertz, may be specified
646 instead of the channel number.
647 .It Cm deftxkey Ar index
648 Set the default key to use for transmission.
649 Typically this is only set when using WEP encryption.
650 The
651 .Cm weptxkey
652 is an alias for this request; it is provided for backwards compatibility.
653 .It Cm dtimperiod Ar period
654 Set the
655 DTIM
656 period for transmitting buffered multicast data frames when
657 operating in ap mode.
658 The
659 .Ar period
660 specifies the number of beacon intervals between DTIM
661 and must be in the range 1 to 15.
662 By default DTIM is 1 (i.e., DTIM occurs at each beacon).
663 .It Cm fragthreshold Ar length
664 Set the threshold for which transmitted frames are broken into fragments.
665 The
666 .Ar length
667 argument is the frame size in bytes and must be in the range 256 to 2346.
668 Setting
669 .Ar length
670 to
671 .Li 2346 ,
672 .Cm any ,
673 or
674 .Cm -
675 disables transmit fragmentation.
676 Not all adaptors honor the fragmentation threshold.
677 .It Cm hidessid
678 When operating as an access point, do not broadcast the SSID
679 in beacon frames or respond to probe request frames unless
680 they are directed to the ap (i.e., they include the ap's SSID).
681 By default, the SSID is included in beacon frames and
682 undirected probe request frames are answered.
683 To re-enable the broadcast of the SSID etc., use
684 .Fl hidessid .
685 .It Cm list active
686 Display the list of channels available for use taking into account
687 any restrictions set with the
688 .Cm chanlist
689 directive.
690 See the description of
691 .Cm list chan
692 for more information.
693 .It Cm list caps
694 Display the adaptor's capabilities, including the operating
695 modes supported.
696 .It Cm list chan
697 Display the list of channels available for use.
698 Channels are shown with their IEEE channel number, equivalent
699 frequency, and usage modes.
700 Channels identified as
701 .Ql 11g
702 are also usable in
703 .Ql 11b
704 mode.
705 Channels identified as
706 .Ql 11a Turbo
707 may be used only for Atheros' Static Turbo mode
708 specified with
709 .Cm mediaopt turbo ) .
710 Channels marked with a
711 .Ql *
712 have a regulatory constraint that they be passively scanned.
713 This means a station is not permitted to transmit on the channel until
714 it identifies the channel is being used for 802.11 communication;
715 typically by hearing a beacon frame from an access point operating
716 on the channel.
717 .Cm list freq
718 is another way of requesting this information.
719 .It Cm list mac
720 Display the current MAC Access Control List state.
721 Each address is prefixed with a character that indicates the
722 current policy applied to it:
723 .Ql +
724 indicates the address is allowed access,
725 .Ql -
726 indicates the address is denied access,
727 .Ql *
728 indicates the address is present but the current policy open
729 (so the ACL is not consulted).
730 .It Cm list scan
731 Display the access points and/or ad-hoc neighbors
732 located in the vicinity.
733 The
734 .Fl v
735 flag may be used to display long SSIDs.
736 This information may be updated automatically by the adaptor
737 and/or with a
738 .Cm scan
739 request.
740 .Cm list ap
741 is another way of requesting this information.
742 .It Cm list sta
743 When operating as an access point display the stations that are
744 currently associated.
745 When operating in ad-hoc mode display stations identified as
746 neighbors in the IBSS.
747 .It Cm list wme
748 Display the current parameters to use when operating in WME mode.
749 When WME mode is enabled for an adaptor this information will be
750 displayed with the regular status; this command is mostly useful
751 for examining parameters when WME mode is disabled.
752 See the description of the
753 .Cm wme
754 directive for information on the various parameters.
755 .It Cm mcastrate Ar rate
756 Set the rate for transmitting multicast/broadcast frames.
757 Rates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mbit/s.
758 This rate should be valid for the current operating conditions;
759 if an invalid rate is specified drivers are free to chose an
760 appropriate rate.
761 .It Cm powersave
762 Enable powersave operation.
763 When operating as a client, the station will conserve power by
764 periodically turning off the radio and listening for
765 messages from the access point telling it there are packets waiting.
766 The station must then retrieve the packets.
767 When operating as an access point, the station must honor power
768 save operation of associated clients.
769 Not all devices support power save operation, either as a client
770 or as an access point.
771 Use
772 .Fl powersave
773 to disable powersave operation.
774 .It Cm powersavemode Ar mode
775 Set powersave mode.
776 The set of valid modes is
777 .Cm off
778 (same as
779 .Fl powersave ) ,
780 .Cm on
781 (same as
782 .Cm powersave ) ,
783 and
784 .Cm cam
785 (same as
786 .Cm powersave ) .
787 .It Cm powersavesleep Ar sleep
788 Set the desired max powersave sleep time in TU's (1024 usecs).
789 By default the max powersave sleep time is 100 TU's.
790 .It Cm protmode Ar technique
791 For interfaces operating in 802.11g, use the specified
792 .Ar technique
793 for protecting OFDM frames in a mixed 11b/11g network.
794 The set of valid techniques is
795 .Cm off , cts
796 (CTS to self),
797 and
798 .Cm rtscts
799 (RTS/CTS).
800 Technique names are case insensitive.
801 .It Cm pureg
802 When operating as an access point in 802.11g mode allow only
803 11g-capable stations to associate (11b-only stations are not
804 permitted to associate).
805 To allow both 11g and 11b-only stations to associate, use
806 .Fl pureg .
807 .It Cm roaming Ar mode
808 When operating as a station, control how the system will
809 behave when communication with the current access point
810 is broken.
811 The
812 .Ar mode
813 argument may be one of
814 .Cm device
815 (leave it to the hardware device to decide),
816 .Cm auto
817 (handle either in the device or the operating system\[em]as appropriate),
818 .Cm manual
819 (do nothing until explicitly instructed).
820 By default, the device is left to handle this if it is
821 capable; otherwise, the operating system will automatically
822 attempt to reestablish communication.
823 Manual mode is mostly useful when an application wants to
824 control the selection of an access point.
825 .It Cm ratectl Ar algorithm
826 Set the TX rate control algorithm.
827 The set of valid
828 .Ar algorithm
829 is
830 .Cm onoe
831 (Onoe TX rate control algorithm),
832 .Cm sample
833 (Sample TX rate control algorithm)
834 and
835 .Cm amrr
836 (AMRR TX rate control algorithm).
837 .Ar Algorithm
838 names are case sensitive.
839 .It Cm rtsthreshold Ar length
840 Set the threshold for which
841 transmitted frames are preceded by transmission of an
842 RTS
843 control frame.
844 The
845 .Ar length
846 argument
847 is the frame size in bytes and must be in the range 1 to 2346.
848 Setting
849 .Ar length
850 to
851 .Li 2346 ,
852 .Cm any ,
853 or
854 .Cm -
855 disables transmission of RTS frames.
856 Not all adaptors support setting the RTS threshold.
857 .It Cm ssid Ar ssid
858 Set the desired Service Set Identifier (aka network name).
859 The SSID is a string up to 32 characters
860 in length and may be specified as either a normal string or in
861 hexadecimal when preceded by
862 .Ql 0x .
863 Additionally, the SSID may be cleared by setting it to
864 .Ql - .
865 .It Cm scan
866 Initiate a scan of neighboring stations, wait for it to complete, and
867 display all stations found.
868 Only the super-user can initiate a scan.
869 Depending on the capabilities of the APs, the following
870 flags can be included in the output:
871 .Bl -tag -width 3n
872 .It Li A
873 Channel Agility.
874 Indicates that the station support channel hopping as described by the
875 IEEE 802.11b specification.
876 .It Li B
877 Packet Binary Convolution Code (PBCC).
878 A modulation alternative to the standard OFDM method.
879 .It Dv C
880 Pollreq
881 .It Dv c
882 Pollable
883 .It Dv D
884 Direct Sequence Spread Spectrum - Orthogonal Frequency Division
885 Multiplexing (DSSS-OFDM).
886 Indicates the the station supports DSSS-OFDM modulation.
887 .It Li E
888 Extended Service Set (ESS).
889 Indicates that the station is part of an infrastructure network
890 (in contrast to an IBSS/ad-hoc network).
891 .It Li I
892 IBSS/ad-hoc network.
893 Indicates that the station is part of an ad-hoc network
894 (in contrast to an ESS network).
895 .It Li P
896 Privacy.
897 Data confidentiality is required for all data frames
898 exchanged within the BSS.
899 This means that this BSS requires the station to
900 use cryptographic means such as WEP, TKIP or AES-CCMP to
901 encrypt/decrypt data frames being exchanged with others.
902 .It Dv R
903 Robust Security Network (RSN).
904 Indicates that the station supports the IEEE 802.11i authentication
905 and key management protocol.
906 .It Li S
907 Short Preamble.
908 Indicates that the network is using short preambles (defined
909 in 802.11b High Rate/DSSS PHY, short preamble utilizes a
910 56 bit sync field in contrast to a 128 bit field used in long
911 preamble mode).
912 .It Li s
913 Short slot time.
914 Indicates that the network is using a short slot time.
915 .El
916 .Pp
917 The
918 .Cm list scan
919 request can be used to show recent scan results without
920 initiating a new scan.
921 .Pp
922 The
923 .Fl v
924 flag may be used to prevent the shortening of long SSIDs.
925 .It Cm stationname Ar name
926 Set the name of this station.
927 It appears that the station name is not really part of the IEEE 802.11
928 protocol though all interfaces seem to support it.
929 As such it only
930 seems to be meaningful to identical or virtually identical equipment.
931 Setting the station name is identical in syntax to setting the SSID.
932 .It Cm txpower Ar power
933 Set the power used to transmit frames.
934 The
935 .Ar power
936 argument
937 is a unitless value in the range 0 to 100 that is interpreted
938 by drivers to derive a device-specific value.
939 Out of range values are truncated.
940 Typically only a few discreet power settings are available and
941 the driver will use the setting closest to the specified value.
942 Not all adaptors support changing the transmit power.
943 .It Cm wepmode Ar mode
944 Set the desired WEP mode.
945 Not all adaptors support all modes.
946 The set of valid modes is
947 .Cm off , on ,
948 and
949 .Cm mixed .
950 The
951 .Cm mixed
952 mode explicitly tells the adaptor to allow association with access
953 points which allow both encrypted and unencrypted traffic.
954 On these adaptors,
955 .Cm on
956 means that the access point must only allow encrypted connections.
957 On other adaptors,
958 .Cm on
959 is generally another name for
960 .Cm mixed .
961 Modes are case insensitive.
962 .It Cm weptxkey Ar index
963 Set the WEP key to be used for transmission.
964 This is the same as setting the default transmission key with
965 .Cm deftxkey .
966 .It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
967 Set the selected WEP key.
968 If an
969 .Ar index
970 is not given, key 1 is set.
971 A WEP key will be either 5 or 13
972 characters (40 or 104 bits) depending of the local network and the
973 capabilities of the adaptor.
974 It may be specified either as a plain
975 string or as a string of hexadecimal digits preceded by
976 .Ql 0x .
977 For maximum portability, hex keys are recommended;
978 the mapping of text keys to WEP encryption is usually driver-specific.
979 In particular, the
980 .Tn Windows
981 drivers do this mapping differently to
982 .Fx .
983 A key may be cleared by setting it to
984 .Ql - .
985 If WEP is supported then there are at least four keys.
986 Some adaptors support more than four keys.
987 If that is the case, then the first four keys
988 (1-4) will be the standard temporary keys and any others will be adaptor
989 specific keys such as permanent keys stored in NVRAM.
990 .It Cm wme
991 Enable Wireless Multimedia Extensions (WME) support, if available,
992 for the specified interface.
993 WME is a subset of the IEEE 802.11e standard to support the
994 efficient communication of realtime and multimedia data.
995 To disable WME support, use
996 .Fl wme .
997 .Pp
998 The following parameters are meaningful only when WME support is in use.
999 Parameters are specified per-AC (Access Category) and
1000 split into those that are used by a station when acting
1001 as an access point and those for client stations in the BSS.
1002 The latter are received from the access point and may not be changed
1003 (at the station).
1004 The following Access Categories are recognized:
1005 .Pp
1006 .Bl -tag -width ".Cm AC_BK" -compact
1007 .It Cm AC_BE
1008 (or
1009 .Cm BE )
1010 best effort delivery,
1011 .It Cm AC_BK
1012 (or
1013 .Cm BK )
1014 background traffic,
1015 .It Cm AC_VI
1016 (or
1017 .Cm VI )
1018 video traffic,
1019 .It Cm AC_VO
1020 (or
1021 .Cm VO )
1022 voice traffic.
1023 .El
1024 .Pp
1025 AC parameters are case-insensitive.
1026 Traffic classification is done in the operating system using the
1027 vlan priority associated with data frames or the
1028 ToS (Type of Service) indication in IP-encapsulated frames.
1029 If neither information is present, traffic is assigned to the
1030 Best Effort (BE) category.
1031 .Bl -tag -width indent
1032 .It Cm ack Ar ac
1033 Set the ACK policy for QoS transmissions by the local station;
1034 this controls whether or not data frames transmitted by a station
1035 require an ACK response from the receiving station.
1036 To disable waiting for an ACK use
1037 .Fl ack .
1038 This parameter is applied only to the local station.
1039 .It Cm acm Ar ac
1040 Enable the Admission Control Mandatory (ACM) mechanism
1041 for transmissions by the local station.
1042 To disable the ACM use
1043 .Fl acm .
1044 On stations in a BSS this parameter is read-only and indicates
1045 the setting received from the access point.
1046 NB: ACM is not supported right now.
1047 .It Cm aifs Ar ac Ar count
1048 Set the Arbitration Inter Frame Spacing (AIFS)
1049 channel access parameter to use for transmissions
1050 by the local station.
1051 On stations in a BSS this parameter is read-only and indicates
1052 the setting received from the access point.
1053 .It Cm cwmin Ar ac Ar count
1054 Set the CWmin channel access parameter to use for transmissions
1055 by the local station.
1056 On stations in a BSS this parameter is read-only and indicates
1057 the setting received from the access point.
1058 .It Cm cwmax Ar ac Ar count
1059 Set the CWmax channel access parameter to use for transmissions
1060 by the local station.
1061 On stations in a BSS this parameter is read-only and indicates
1062 the setting received from the access point.
1063 .It Cm txoplimit Ar ac Ar limit
1064 Set the Transmission Opportunity Limit channel access parameter
1065 to use for transmissions by the local station.
1066 This parameter defines an interval of time when a WME station
1067 has the right to initiate transmissions onto the wireless medium.
1068 On stations in a BSS this parameter is read-only and indicates
1069 the setting received from the access point.
1070 .It Cm bss:aifs Ar ac Ar count
1071 Set the AIFS channel access parameter to send to stations in a BSS.
1072 This parameter is meaningful only when operating in ap mode.
1073 .It Cm bss:cwmin Ar ac Ar count
1074 Set the CWmin channel access parameter to send to stations in a BSS.
1075 This parameter is meaningful only when operating in ap mode.
1076 .It Cm bss:cwmax Ar ac Ar count
1077 Set the CWmax channel access parameter to send to stations in a BSS.
1078 This parameter is meaningful only when operating in ap mode.
1079 .It Cm bss:txoplimit Ar ac Ar limit
1080 Set the TxOpLimit channel access parameter to send to stations in a BSS.
1081 This parameter is meaningful only when operating in ap mode.
1082 .El
1083 .El
1084 .Pp
1085 The following parameters support an optional access control list
1086 feature available with some adaptors when operating in ap mode; see
1087 .Xr wlan_acl 4 .
1088 This facility allows an access point to accept/deny association
1089 requests based on the MAC address of the station.
1090 Note that this feature does not significantly enhance security
1091 as MAC address spoofing is easy to do.
1092 .Bl -tag -width indent
1093 .It Cm mac:add Ar address
1094 Add the specified MAC address to the database.
1095 Depending on the policy setting association requests from the
1096 specified station will be allowed or denied.
1097 .It Cm mac:allow
1098 Set the ACL policy to permit association only by
1099 stations registered in the database.
1100 .It Cm mac:del Ar address
1101 Delete the specified MAC address from the database.
1102 .It Cm mac:deny
1103 Set the ACL policy to deny association only by
1104 stations registered in the database.
1105 .It Cm mac:kick Ar address
1106 Force the specified station to be deauthenticated.
1107 This typically is done to block a station after updating the
1108 address database.
1109 .It Cm mac:open
1110 Set the ACL policy to allow all stations to associate.
1111 .It Cm mac:flush
1112 Delete all entries in the database.
1113 .El
1114 .Pp
1115 The following parameters are for compatibility with other systems:
1116 .Bl -tag -width indent
1117 .It Cm nwid Ar ssid
1118 Another name for the
1119 .Cm ssid
1120 parameter.
1121 Included for
1122 .Nx
1123 compatibility.
1124 .It Cm station Ar name
1125 Another name for the
1126 .Cm stationname
1127 parameter.
1128 Included for
1129 .Bsx
1130 compatibility.
1131 .It Cm wep
1132 Another way of saying
1133 .Cm wepmode on .
1134 Included for
1135 .Bsx
1136 compatibility.
1137 .It Fl wep
1138 Another way of saying
1139 .Cm wepmode off .
1140 Included for
1141 .Bsx
1142 compatibility.
1143 .It Cm nwkey key
1144 Another way of saying:
1145 .Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
1146 Included for
1147 .Nx
1148 compatibility.
1149 .It Cm nwkey Xo
1150 .Sm off
1151 .Ar n : k1 , k2 , k3 , k4
1152 .Sm on
1153 .Xc
1154 Another way of saying
1155 .Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
1156 Included for
1157 .Nx
1158 compatibility.
1159 .It Fl nwkey
1160 Another way of saying
1161 .Cm wepmode off .
1162 Included for
1163 .Nx
1164 compatibility.
1165 .El
1166 .Pp
1167 The following parameters are specific to bridge interfaces:
1168 .Bl -tag -width indent
1169 .It Cm addm Ar interface
1170 Add the interface named by
1171 .Ar interface
1172 as a member of the bridge.
1173 The interface is put into promiscuous mode
1174 so that it can receive every packet sent on the network.
1175 .It Cm deletem Ar interface
1176 Remove the interface named by
1177 .Ar interface
1178 from the bridge.
1179 Promiscuous mode is disabled on the interface when
1180 it is removed from the bridge.
1181 .It Cm maxaddr Ar size
1182 Set the size of the bridge address cache to
1183 .Ar size .
1184 The default is 100 entries.
1185 .It Cm timeout Ar seconds
1186 Set the timeout of address cache entries to
1187 .Ar seconds
1188 seconds.
1189 If
1190 .Ar seconds
1191 is zero, then address cache entries will not be expired.
1192 The default is 240 seconds.
1193 .It Cm addr
1194 Display the addresses that have been learned by the bridge.
1195 .It Cm static Ar interface-name Ar address
1196 Add a static entry into the address cache pointing to
1197 .Ar interface-name .
1198 Static entries are never aged out of the cache or re-placed, even if the
1199 address is seen on a different interface.
1200 .It Cm deladdr Ar address
1201 Delete
1202 .Ar address
1203 from the address cache.
1204 .It Cm flush
1205 Delete all dynamically-learned addresses from the address cache.
1206 .It Cm flushall
1207 Delete all addresses, including static addresses, from the address cache.
1208 .It Cm discover Ar interface
1209 Mark an interface as a
1210 .Dq discovering
1211 interface.
1212 When the bridge has no address cache entry
1213 (either dynamic or static)
1214 for the destination address of a packet,
1215 the bridge will forward the packet to all
1216 member interfaces marked as
1217 .Dq discovering .
1218 This is the default for all interfaces added to a bridge.
1219 .It Fl discover Ar interface
1220 Clear the
1221 .Dq discovering
1222 attribute on a member interface.
1223 For packets without the
1224 .Dq discovering
1225 attribute, the only packets forwarded on the interface are broadcast
1226 or multicast packets and packets for which the destination address
1227 is known to be on the interface's segment.
1228 .It Cm learn Ar interface
1229 Mark an interface as a
1230 .Dq learning
1231 interface.
1232 When a packet arrives on such an interface, the source
1233 address of the packet is entered into the address cache as being a
1234 destination address on the interface's segment.
1235 This is the default for all interfaces added to a bridge.
1236 .It Fl learn Ar interface
1237 Clear the
1238 .Dq learning
1239 attribute on a member interface.
1240 .It Cm span Ar interface
1241 Add the interface named by
1242 .Ar interface
1243 as a span port on the bridge.
1244 Span ports transmit a copy of every frame received by the bridge.
1245 This is most useful for snooping a bridged network passively on
1246 another host connected to one of the span ports of the bridge.
1247 .It Fl span Ar interface
1248 Delete the interface named by
1249 .Ar interface
1250 from the list of span ports of the bridge.
1251 .It Cm stp Ar interface
1252 Enable Spanning Tree protocol on
1253 .Ar interface .
1254 The
1255 .Xr bridge 4
1256 driver has support for the IEEE 802.1D Spanning Tree protocol (STP).
1257 Spanning Tree is used to detect and remove loops in a network topology.
1258 .It Fl stp Ar interface
1259 Disable Spanning Tree protocol on
1260 .Ar interface .
1261 This is the default for all interfaces added to a bridge.
1262 .It Cm maxage Ar seconds
1263 Set the time that a Spanning Tree protocol configuration is valid.
1264 The default is 20 seconds.
1265 The minimum is 1 second and the maximum is 255 seconds.
1266 .It Cm fwddelay Ar seconds
1267 Set the time that must pass before an interface begins forwarding
1268 packets when Spanning Tree is enabled.
1269 The default is 15 seconds.
1270 The minimum is 1 second and the maximum is 255 seconds.
1271 .It Cm hellotime Ar seconds
1272 Set the time between broadcasting of Spanning Tree protocol
1273 configuration messages.
1274 The default is 2 seconds.
1275 The minimum is 1 second and the maximum is 255 seconds.
1276 .It Cm priority Ar value
1277 Set the bridge priority for Spanning Tree.
1278 The default is 32768.
1279 The minimum is 0 and the maximum is 65536.
1280 .It Cm ifpriority Ar interface Ar value
1281 Set the Spanning Tree priority of
1282 .Ar interface
1283 to
1284 .Ar value .
1285 The default is 128.
1286 The minimum is 0 and the maximum is 255.
1287 .It Cm ifpathcost Ar interface Ar value
1288 Set the Spanning Tree path cost of
1289 .Ar interface
1290 to
1291 .Ar value .
1292 The default is 55.
1293 The minimum is 0 and the maximum is 65535.
1294 .El
1295 .Pp
1296 The following parameters are specific to IP tunnel interfaces,
1297 .Xr gif 4 :
1298 .Bl -tag -width indent
1299 .It Cm tunnel Ar src_addr dest_addr
1300 Configure the physical source and destination address for IP tunnel
1301 interfaces.
1302 The arguments
1303 .Ar src_addr
1304 and
1305 .Ar dest_addr
1306 are interpreted as the outer source/destination for the encapsulating
1307 IPv4/IPv6 header.
1308 .It Fl tunnel
1309 Unconfigure the physical source and destination address for IP tunnel
1310 interfaces previously configured with
1311 .Cm tunnel .
1312 .It Cm deletetunnel
1313 Another name for the
1314 .Fl tunnel
1315 parameter.
1316 .El
1317 .Pp
1318 The following parameters are specific to
1319 .Xr vlan 4
1320 interfaces:
1321 .Bl -tag -width indent
1322 .It Cm vlan Ar vlan_tag
1323 Set the VLAN tag value to
1324 .Ar vlan_tag .
1325 This value is a 16-bit number which is used to create an 802.1Q
1326 VLAN header for packets sent from the
1327 .Xr vlan 4
1328 interface.
1329 Note that
1330 .Cm vlan
1331 and
1332 .Cm vlandev
1333 must both be set at the same time.
1334 .It Cm vlandev Ar iface
1335 Associate the physical interface
1336 .Ar iface
1337 with a
1338 .Xr vlan 4
1339 interface.
1340 Packets transmitted through the
1341 .Xr vlan 4
1342 interface will be
1343 diverted to the specified physical interface
1344 .Ar iface
1345 with 802.1Q VLAN encapsulation.
1346 Packets with 802.1Q encapsulation received
1347 by the parent interface with the correct VLAN tag will be diverted to
1348 the associated
1349 .Xr vlan 4
1350 pseudo-interface.
1351 The
1352 .Xr vlan 4
1353 interface is assigned a
1354 copy of the parent interface's flags and the parent's ethernet address.
1355 The
1356 .Cm vlandev
1357 and
1358 .Cm vlan
1359 must both be set at the same time.
1360 If the
1361 .Xr vlan 4
1362 interface already has
1363 a physical interface associated with it, this command will fail.
1364 To
1365 change the association to another physical interface, the existing
1366 association must be cleared first.
1367 .Pp
1368 Note: if the hardware tagging capability
1369 is set on the parent interface, the
1370 .Xr vlan 4
1371 pseudo
1372 interface's behavior changes:
1373 the
1374 .Xr vlan 4
1375 interface recognizes that the
1376 parent interface supports insertion and extraction of VLAN tags on its
1377 own (usually in firmware) and that it should pass packets to and from
1378 the parent unaltered.
1379 .It Fl vlandev Op Ar iface
1380 If the driver is a
1381 .Xr vlan 4
1382 pseudo device, disassociate the parent interface from it.
1383 This breaks the link between the
1384 .Xr vlan 4
1385 interface and its parent,
1386 clears its VLAN tag, flags and its link address and shuts the interface down.
1387 The
1388 .Ar iface
1389 argument is useless and hence deprecated.
1390 .El
1391 .Pp
1392 The following parameters are specific to
1393 .Xr carp 4
1394 interfaces:
1395 .Bl -tag -width indent
1396 .It Cm advbase Ar seconds
1397 Specifies the base of the advertisement interval in seconds.
1398 The acceptable values are 1 to 255.
1399 The default value is 1.
1400 .\" The default value is
1401 .\" .Dv CARP_DFLTINTV .
1402 .It Cm advskew Ar interval
1403 Specifies the skew to add to the base advertisement interval to
1404 make one host advertise slower than another host.
1405 It is specified in 1/256 of seconds.
1406 The acceptable values are 1 to 254.
1407 The default value is 0.
1408 .It Cm pass Ar phrase
1409 Set the authentication key to
1410 .Ar phrase .
1411 .It Cm vhid Ar n
1412 Set the virtual host ID.
1413 This is a required setting.
1414 Acceptable values are 1 to 255.
1415 .El
1416 .Pp
1417 The
1418 .Nm
1419 utility displays the current configuration for a network interface
1420 when no optional parameters are supplied.
1421 If a protocol family is specified,
1422 .Nm
1423 will report only the details specific to that protocol family.
1424 .Pp
1425 If the
1426 .Fl m
1427 flag is passed before an interface name,
1428 .Nm
1429 will display the capability list and all
1430 of the supported media for the specified interface.
1431 If
1432 .Fl L
1433 flag is supplied, address lifetime is displayed for IPv6 addresses,
1434 as time offset string.
1435 .Pp
1436 Optionally, the
1437 .Fl a
1438 flag may be used instead of an interface name.
1439 This flag instructs
1440 .Nm
1441 to display information about all interfaces in the system.
1442 The
1443 .Fl d
1444 flag limits this to interfaces that are down, and
1445 .Fl u
1446 limits this to interfaces that are up.
1447 When no arguments are given,
1448 .Fl a
1449 is implied.
1450 .Pp
1451 The
1452 .Fl l
1453 flag may be used to list all available interfaces on the system, with
1454 no other additional information.
1455 Use of this flag is mutually exclusive
1456 with all other flags and commands, except for
1457 .Fl d
1458 (only list interfaces that are down)
1459 and
1460 .Fl u
1461 (only list interfaces that are up).
1462 .Pp
1463 The
1464 .Fl v
1465 flag may be used to get more verbose status for an interface.
1466 .Pp
1467 The
1468 .Fl C
1469 flag may be used to list all of the interface cloners available on
1470 the system, with no additional information.
1471 Use of this flag is mutually exclusive with all other flags and commands.
1472 .Pp
1473 The
1474 .Fl k
1475 flag causes keying information for the interface, if available, to be
1476 printed.
1477 For example, the values of 802.11 WEP keys will be printed, if accessible to
1478 the current user.
1479 This information is not printed by default, as it may be considered
1480 sensitive.
1481 .Pp
1482 Only the super-user may modify the configuration of a network interface.
1483 .Sh DIAGNOSTICS
1484 Messages indicating the specified interface does not exist, the
1485 requested address is unknown, or the user is not privileged and
1486 tried to alter an interface's configuration.
1487 .Sh SEE ALSO
1488 .Xr netstat 1 ,
1489 .Xr carp 4 ,
1490 .Xr ifmedia 4 ,
1491 .Xr netintro 4 ,
1492 .Xr polling 4 ,
1493 .Xr vlan 4 ,
1494 .\" .Xr eon 5 ,
1495 .Xr rc 8 ,
1496 .Xr routed 8 ,
1497 .Xr sysctl 8
1498 .Sh HISTORY
1499 The
1500 .Nm
1501 utility appeared in
1502 .Bx 4.2 .
1503 .Sh BUGS
1504 Basic IPv6 node operation requires a link-local address on each
1505 interface configured for IPv6.
1506 Normally, such an address is automatically configured by the
1507 kernel on each interface added to the system; this behaviour may
1508 be disabled by setting the sysctl MIB variable
1509 .Va net.inet6.ip6.auto_linklocal
1510 to 0.
1511 .Pp
1512 If you delete such an address using
1513 .Nm ,
1514 the kernel may act very odd.
1515 Do this at your own risk.