1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
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
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.25 2008/11/14 12:52:04 sephe Exp $
33 .Dd September 30, 2007
38 .Nd configure network interface parameters
79 utility is used to assign an address
80 to a network interface and/or configure
81 network interface parameters.
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.
89 The following options are available:
90 .Bl -tag -width indent
93 .Tn DARPA Ns -Internet
95 the address is either a host name present in the host name data
100 Internet address expressed in the Internet standard
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
110 family, it is also possible to specify the prefix length using the slash
115 parameter below for more information.
116 .\" For the Xerox Network Systems(tm) family,
118 .\" .Ar net:a.b.c.d.e.f ,
121 .\" is the assigned network number (in decimal),
122 .\" and each of the six bytes of the host number,
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.
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.
142 is specified as a series of colon-separated hex digits.
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
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
175 Specify the address of the correspondent on the other end
176 of a point to point link.
179 parameter is a string of the form
185 The following parameters may be set with
187 .Bl -tag -width indent
192 Introduced for compatibility
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.
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.
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
219 Enable the use of the Address Resolution Protocol
222 between network level addresses and link level addresses (default).
223 This is currently implemented for mapping between
228 802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses).
230 Disable the use of the Address Resolution Protocol
233 If the Address Resolution Protocol is enabled,
234 the host will only reply to requests for its addresses,
235 and will never send any requests.
237 If the Address Resolution Protocol is enabled,
238 the host will perform normally,
239 sending out requests and listening for replies.
242 Specify the address to use to represent broadcasts to the
244 The default broadcast address is the address with a host part of all 1's.
246 Enable driver dependent debugging code; usually, this turns on
247 extra console error logging.
249 Disable driver dependent debugging code.
251 Put interface into permanently promiscuous mode.
253 Disable permanently promiscuous mode.
261 When an interface is marked
263 the system will not attempt to
264 transmit messages through that interface.
265 If possible, the interface will be reset to disable reception as well.
266 This action does not automatically disable routes using the interface.
270 (lowermost 64bit of an IPv6 address)
273 This is used to specify an Internet host who is willing to receive
274 IP packets encapsulating IPX packets bound for a remote network.
275 An apparent point to point link is constructed, and
276 the address specified will be taken as the IPX address and network
279 If the driver supports the media selection system, set the media type
282 Some interfaces support the mutually exclusive use of one of several
283 different physical media connectors.
284 For example, a 10Mbit/s Ethernet
285 interface might support the use of either
287 or twisted pair connectors.
288 Setting the media type to
290 would change the currently active connector to the AUI port.
293 would activate twisted pair.
294 Refer to the interfaces' driver
295 specific documentation or man page for a complete list of the
297 .It Cm mediaopt Ar opts
298 If the driver supports the media selection system, set the specified
299 media options on the interface.
303 is a comma delimited list of options to apply to the interface.
304 Refer to the interfaces' driver specific man page for a complete
305 list of available options.
306 .It Fl mediaopt Ar opts
307 If the driver supports the media selection system, disable the
308 specified media options on the interface.
310 If the driver supports the media selection system, set the specified
311 operating mode on the interface to
313 For IEEE 802.11 wireless interfaces that support multiple operating modes
314 this directive is used to select between 802.11a
322 Set the interface name to
325 If the driver supports receive side scaling,
326 enable receive side scaling on the interface.
328 If the driver supports receive side scaling,
329 disable receive side scaling on the interface.
330 .It Cm rxcsum , txcsum
331 If the driver supports user-configurable checksum offloading,
332 enable receive (or transmit) checksum offloading on the interface.
333 Some drivers may not be able to enable these flags independently
334 of each other, so setting one may also set the other.
335 The driver will offload as much checksum work as it can reliably
336 support, the exact level of offloading varies between drivers.
337 .It Fl rxcsum , txcsum
338 If the driver supports user-configurable checksum offloading,
339 disable receive (or transmit) checksum offloading on the interface.
340 These settings may not always be independent of each other.
341 .It Cm vlanmtu , vlanhwtag
342 If the driver offers user-configurable VLAN support, enable
343 reception of extended frames or tag processing in hardware,
345 Note that this must be issued on a physical interface associated with
350 .It Fl vlanmtu , vlanhwtag
351 If the driver offers user-configurable VLAN support, disable
352 reception of extended frames or tag processing in hardware,
354 .It Cm pollcpu Ar cpu
357 feature and disable interrupts on the interface,
358 if the driver supports this mode and
362 Driver will be polled by
367 feature and disable interrupts on the interface, if the driver supports
372 feature and enable interrupt mode on the interface.
374 Create the specified network pseudo-device.
375 If the interface is given without a unit number, try to create a new
376 device with an arbitrary unit number.
377 If creation of an arbitrary device is successful, the new device name is
378 printed to standard output unless the interface is renamed or destroyed
383 Destroy the specified network pseudo-device.
399 Set the routing metric of the interface to
402 The routing metric is used by the routing protocol
404 Higher metrics have the effect of making a route
405 less favorable; metrics are counted as additional hops
406 to the destination network or host.
408 Set the maximum transmission unit of the interface to
410 default is interface specific.
411 The MTU is used to limit the size of packets that are transmitted on an
413 Not all interfaces support setting the MTU, and some interfaces have
415 .It Cm netmask Ar mask
418 Specify how much of the address to reserve for subdividing
419 networks into sub-networks.
420 The mask includes the network part of the local address
421 and the subnet part, which is taken from the host field of the address.
422 The mask can be specified as a single hexadecimal number
425 with a dot-notation Internet address,
426 or with a pseudo-network name listed in the network table
428 The mask contains 1's for the bit positions in the 32-bit address
429 which are to be used for the network and subnet parts,
430 and 0's for the host part.
431 The mask should contain at least the standard network portion,
432 and the subnet field should be contiguous with the network
435 The netmask can also be specified in CIDR notation after the address.
438 option above for more information.
441 Enable autoconfiguration.
443 Disable autoconfiguration.
446 Set preferred lifetime for the address.
449 Set valid lifetime for the address.
450 .It Cm prefixlen Ar len
454 bits are reserved for subdividing networks into sub-networks.
457 must be integer, and for syntactical reason it must be between 0 to 128.
458 It is almost always 64 under the current IPv6 assignment rule.
459 If the parameter is omitted, 64 is used.
461 The prefix can also be specified using the slash notation after the address.
464 option above for more information.
467 Set the IPv6 deprecated address bit.
470 Clear the IPv6 deprecated address bit.
473 Set the IPv6 tentative address bit.
476 Clear the IPv6 tentative address bit.
479 .\" .It Cm nsellength Ar n
482 .\" This specifies a trailing number of bytes for a received
484 .\" used for local identification, the remaining leading part of which is
487 .\" (Network Entity Title).
488 .\" The default value is 1, which is conformant to US
490 .\" When an ISO address is set in an ifconfig command,
493 .\" which is being specified.
496 .\" 20 hex digits should be
499 .\" to be assigned to the interface.
500 .\" There is some evidence that a number different from 1 may be useful
503 .\" 37 type addresses.
504 .It Cm range Ar netrange
505 Under appletalk, set the interface to respond to a
508 .Ar startnet Ns - Ns Ar endnet .
509 Appletalk uses this scheme instead of
512 implements it internally as a set of netmasks.
517 Introduced for compatibility
521 The argument following this specifies the version (phase) of the
522 Appletalk network attached to the interface.
523 Values of 1 or 2 are permitted.
525 .It Cm link Op Cm 0 No - Cm 2
527 Enable special processing of the link level of the interface.
528 These three options are interface specific in actual effect, however,
529 they are in general used to select special modes of operation.
531 of this is to enable SLIP compression, or to select the connector type
532 for some Ethernet cards.
533 Refer to the man page for the specific driver
534 for more information.
536 .It Fl link Op Cm 0 No - Cm 2
538 Disable special processing at the link level with the specified interface.
552 Put the interface in monitor mode.
553 No packets are transmitted, and received packets are discarded after
557 Take the interface out of monitor mode.
561 This may be used to enable an interface after an
563 It happens automatically when setting the first address on an interface.
564 If the interface was reset when previously marked down,
565 the hardware will be re-initialized.
568 The following parameters are specific to IEEE 802.11 wireless interfaces:
569 .Bl -tag -width indent
571 When operating as an access point, pass packets between
572 wireless clients directly (default).
573 To instead let them pass up through the
574 system and be forwarded using some other mechanism, use
576 Disabling the internal bridging
577 is useful when traffic is to be processed with
579 .It Cm authmode Ar mode
580 Set the desired authentication mode in infrastructure mode.
581 Not all adaptors support all modes.
584 .Cm none , open , shared
590 (IEEE WPA/WPA2/802.11i).
595 modes are only useful when using an authentication service
596 (a supplicant for client operation or an authenticator when
597 operating as an access point).
598 Modes are case insensitive.
599 .It Cm bintval Ar interval
600 Set the interval at which beacon frames are sent when operating in
604 parameter is specified in TU's (1024 usecs).
605 By default beacon frames are transmitted every 100 TU's.
606 .It Cm bmissthreshold Ar count
607 Set the number of consecutive missed beacons at which the station
608 will attempt to roam (i.e. search for a new access point).
611 parameter is must be in the range 1 to 255;
612 though the upper bound may be reduced according to device capabilities..
613 The default threshold is 7 consecutive missed beacons;
614 but this may be overridden by the device driver.
619 .It Cm bssid Ar address
620 Specify the MAC address of the access point to use when operating
621 as a station in a BSS network.
622 This overrides any automatic selection done by the system.
623 To disable a previously selected access point, supply
628 This option is useful when more than one access point uses the same SSID.
634 Enable packet bursting.
635 Packet bursting is a transmission technique whereby the wireless
636 medium is acquired once to send multiple frames and the interframe
638 This technique can significantly increase throughput by reducing
639 transmission overhead.
640 Packet bursting is supported by the 802.11e QoS specification
641 and some devices that do not support QoS may still be capable.
642 By default packet bursting is enabled if a device is capable
644 To disable packet bursting, use
646 .It Cm chanlist Ar channels
647 Set the desired channels to use when scanning for access
648 points, neighbors in an IBSS network, or looking for unoccupied
649 channels when operating as an access point.
650 The set of channels is specified as a comma-separated list with
651 each element in the list representing either a single channel number or a range
654 Channel numbers must be in the range 1 to 255 and be permissible
655 according to the operating characteristics of the device.
656 .It Cm channel Ar number
657 Set a single desired channel.
658 Channels range from 1 to 255, but the exact selection available
659 depends on the region your adaptor was manufactured for.
666 will give you the default for your adaptor.
668 adaptors ignore this setting unless you are in ad-hoc mode.
669 Alternatively the frequency, in megahertz, may be specified
670 instead of the channel number.
671 .It Cm deftxkey Ar index
672 Set the default key to use for transmission.
673 Typically this is only set when using WEP encryption.
676 is an alias for this request; it is provided for backwards compatibility.
677 .It Cm dtimperiod Ar period
680 period for transmitting buffered multicast data frames when
681 operating in ap mode.
684 specifies the number of beacon intervals between DTIM
685 and must be in the range 1 to 15.
686 By default DTIM is 1 (i.e., DTIM occurs at each beacon).
687 .It Cm fragthreshold Ar length
688 Set the threshold for which transmitted frames are broken into fragments.
691 argument is the frame size in bytes and must be in the range 256 to 2346.
699 disables transmit fragmentation.
700 Not all adaptors honor the fragmentation threshold.
702 When operating as an access point, do not broadcast the SSID
703 in beacon frames or respond to probe request frames unless
704 they are directed to the ap (i.e., they include the ap's SSID).
705 By default, the SSID is included in beacon frames and
706 undirected probe request frames are answered.
707 To re-enable the broadcast of the SSID etc., use
710 Display the list of channels available for use taking into account
711 any restrictions set with the
714 See the description of
716 for more information.
718 Display the adaptor's capabilities, including the operating
721 Display the list of channels available for use.
722 Channels are shown with their IEEE channel number, equivalent
723 frequency, and usage modes.
724 Channels identified as
729 Channels identified as
731 may be used only for Atheros' Static Turbo mode
733 .Cm mediaopt turbo ) .
734 Channels marked with a
736 have a regulatory constraint that they be passively scanned.
737 This means a station is not permitted to transmit on the channel until
738 it identifies the channel is being used for 802.11 communication;
739 typically by hearing a beacon frame from an access point operating
742 is another way of requesting this information.
744 Display the current MAC Access Control List state.
745 Each address is prefixed with a character that indicates the
746 current policy applied to it:
748 indicates the address is allowed access,
750 indicates the address is denied access,
752 indicates the address is present but the current policy open
753 (so the ACL is not consulted).
755 Display the access points and/or ad-hoc neighbors
756 located in the vicinity.
759 flag may be used to display long SSIDs.
760 This information may be updated automatically by the adaptor
765 is another way of requesting this information.
767 When operating as an access point display the stations that are
768 currently associated.
769 When operating in ad-hoc mode display stations identified as
770 neighbors in the IBSS.
772 Display the current parameters to use when operating in WME mode.
773 When WME mode is enabled for an adaptor this information will be
774 displayed with the regular status; this command is mostly useful
775 for examining parameters when WME mode is disabled.
776 See the description of the
778 directive for information on the various parameters.
779 .It Cm mcastrate Ar rate
780 Set the rate for transmitting multicast/broadcast frames.
781 Rates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mbit/s.
782 This rate should be valid for the current operating conditions;
783 if an invalid rate is specified drivers are free to chose an
786 Enable powersave operation.
787 When operating as a client, the station will conserve power by
788 periodically turning off the radio and listening for
789 messages from the access point telling it there are packets waiting.
790 The station must then retrieve the packets.
791 When operating as an access point, the station must honor power
792 save operation of associated clients.
793 Not all devices support power save operation, either as a client
794 or as an access point.
797 to disable powersave operation.
798 .It Cm powersavemode Ar mode
800 The set of valid modes is
811 .It Cm powersavesleep Ar sleep
812 Set the desired max powersave sleep time in TU's (1024 usecs).
813 By default the max powersave sleep time is 100 TU's.
814 .It Cm protmode Ar technique
815 For interfaces operating in 802.11g, use the specified
817 for protecting OFDM frames in a mixed 11b/11g network.
818 The set of valid techniques is
824 Technique names are case insensitive.
826 When operating as an access point in 802.11g mode allow only
827 11g-capable stations to associate (11b-only stations are not
828 permitted to associate).
829 To allow both 11g and 11b-only stations to associate, use
831 .It Cm roaming Ar mode
832 When operating as a station, control how the system will
833 behave when communication with the current access point
837 argument may be one of
839 (leave it to the hardware device to decide),
841 (handle either in the device or the operating system\[em]as appropriate),
843 (do nothing until explicitly instructed).
844 By default, the device is left to handle this if it is
845 capable; otherwise, the operating system will automatically
846 attempt to reestablish communication.
847 Manual mode is mostly useful when an application wants to
848 control the selection of an access point.
849 .It Cm ratectl Ar algorithm
850 Set the TX rate control algorithm.
855 (Onoe TX rate control algorithm),
857 (Sample TX rate control algorithm)
860 (AMRR TX rate control algorithm).
862 names are case sensitive.
863 .It Cm rtsthreshold Ar length
864 Set the threshold for which
865 transmitted frames are preceded by transmission of an
871 is the frame size in bytes and must be in the range 1 to 2346.
879 disables transmission of RTS frames.
880 Not all adaptors support setting the RTS threshold.
882 Set the desired Service Set Identifier (aka network name).
883 The SSID is a string up to 32 characters
884 in length and may be specified as either a normal string or in
885 hexadecimal when preceded by
887 Additionally, the SSID may be cleared by setting it to
890 Initiate a scan of neighboring stations, wait for it to complete, and
891 display all stations found.
892 Only the super-user can initiate a scan.
893 Depending on the capabilities of the APs, the following
894 flags can be included in the output:
898 Indicates that the station support channel hopping as described by the
899 IEEE 802.11b specification.
901 Packet Binary Convolution Code (PBCC).
902 A modulation alternative to the standard OFDM method.
908 Direct Sequence Spread Spectrum - Orthogonal Frequency Division
909 Multiplexing (DSSS-OFDM).
910 Indicates the the station supports DSSS-OFDM modulation.
912 Extended Service Set (ESS).
913 Indicates that the station is part of an infrastructure network
914 (in contrast to an IBSS/ad-hoc network).
917 Indicates that the station is part of an ad-hoc network
918 (in contrast to an ESS network).
921 Data confidentiality is required for all data frames
922 exchanged within the BSS.
923 This means that this BSS requires the station to
924 use cryptographic means such as WEP, TKIP or AES-CCMP to
925 encrypt/decrypt data frames being exchanged with others.
927 Robust Security Network (RSN).
928 Indicates that the station supports the IEEE 802.11i authentication
929 and key management protocol.
932 Indicates that the network is using short preambles (defined
933 in 802.11b High Rate/DSSS PHY, short preamble utilizes a
934 56 bit sync field in contrast to a 128 bit field used in long
938 Indicates that the network is using a short slot time.
943 request can be used to show recent scan results without
944 initiating a new scan.
948 flag may be used to prevent the shortening of long SSIDs.
949 .It Cm stationname Ar name
950 Set the name of this station.
951 It appears that the station name is not really part of the IEEE 802.11
952 protocol though all interfaces seem to support it.
954 seems to be meaningful to identical or virtually identical equipment.
955 Setting the station name is identical in syntax to setting the SSID.
956 .It Cm txpower Ar power
957 Set the power used to transmit frames.
961 is a unitless value in the range 0 to 100 that is interpreted
962 by drivers to derive a device-specific value.
963 Out of range values are truncated.
964 Typically only a few discreet power settings are available and
965 the driver will use the setting closest to the specified value.
966 Not all adaptors support changing the transmit power.
967 .It Cm wepmode Ar mode
968 Set the desired WEP mode.
969 Not all adaptors support all modes.
970 The set of valid modes is
976 mode explicitly tells the adaptor to allow association with access
977 points which allow both encrypted and unencrypted traffic.
980 means that the access point must only allow encrypted connections.
983 is generally another name for
985 Modes are case insensitive.
986 .It Cm weptxkey Ar index
987 Set the WEP key to be used for transmission.
988 This is the same as setting the default transmission key with
990 .It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
991 Set the selected WEP key.
994 is not given, key 1 is set.
995 A WEP key will be either 5 or 13
996 characters (40 or 104 bits) depending of the local network and the
997 capabilities of the adaptor.
998 It may be specified either as a plain
999 string or as a string of hexadecimal digits preceded by
1001 For maximum portability, hex keys are recommended;
1002 the mapping of text keys to WEP encryption is usually driver-specific.
1005 drivers do this mapping differently to
1007 A key may be cleared by setting it to
1009 If WEP is supported then there are at least four keys.
1010 Some adaptors support more than four keys.
1011 If that is the case, then the first four keys
1012 (1-4) will be the standard temporary keys and any others will be adaptor
1013 specific keys such as permanent keys stored in NVRAM.
1015 Enable Wireless Multimedia Extensions (WME) support, if available,
1016 for the specified interface.
1017 WME is a subset of the IEEE 802.11e standard to support the
1018 efficient communication of realtime and multimedia data.
1019 To disable WME support, use
1022 The following parameters are meaningful only when WME support is in use.
1023 Parameters are specified per-AC (Access Category) and
1024 split into those that are used by a station when acting
1025 as an access point and those for client stations in the BSS.
1026 The latter are received from the access point and may not be changed
1028 The following Access Categories are recognized:
1030 .Bl -tag -width ".Cm AC_BK" -compact
1034 best effort delivery,
1049 AC parameters are case-insensitive.
1050 Traffic classification is done in the operating system using the
1051 vlan priority associated with data frames or the
1052 ToS (Type of Service) indication in IP-encapsulated frames.
1053 If neither information is present, traffic is assigned to the
1054 Best Effort (BE) category.
1055 .Bl -tag -width indent
1057 Set the ACK policy for QoS transmissions by the local station;
1058 this controls whether or not data frames transmitted by a station
1059 require an ACK response from the receiving station.
1060 To disable waiting for an ACK use
1062 This parameter is applied only to the local station.
1064 Enable the Admission Control Mandatory (ACM) mechanism
1065 for transmissions by the local station.
1066 To disable the ACM use
1068 On stations in a BSS this parameter is read-only and indicates
1069 the setting received from the access point.
1070 NB: ACM is not supported right now.
1071 .It Cm aifs Ar ac Ar count
1072 Set the Arbitration Inter Frame Spacing (AIFS)
1073 channel access parameter to use for transmissions
1074 by the local station.
1075 On stations in a BSS this parameter is read-only and indicates
1076 the setting received from the access point.
1077 .It Cm cwmin Ar ac Ar count
1078 Set the CWmin channel access parameter to use for transmissions
1079 by the local station.
1080 On stations in a BSS this parameter is read-only and indicates
1081 the setting received from the access point.
1082 .It Cm cwmax Ar ac Ar count
1083 Set the CWmax channel access parameter to use for transmissions
1084 by the local station.
1085 On stations in a BSS this parameter is read-only and indicates
1086 the setting received from the access point.
1087 .It Cm txoplimit Ar ac Ar limit
1088 Set the Transmission Opportunity Limit channel access parameter
1089 to use for transmissions by the local station.
1090 This parameter defines an interval of time when a WME station
1091 has the right to initiate transmissions onto the wireless medium.
1092 On stations in a BSS this parameter is read-only and indicates
1093 the setting received from the access point.
1094 .It Cm bss:aifs Ar ac Ar count
1095 Set the AIFS channel access parameter to send to stations in a BSS.
1096 This parameter is meaningful only when operating in ap mode.
1097 .It Cm bss:cwmin Ar ac Ar count
1098 Set the CWmin channel access parameter to send to stations in a BSS.
1099 This parameter is meaningful only when operating in ap mode.
1100 .It Cm bss:cwmax Ar ac Ar count
1101 Set the CWmax channel access parameter to send to stations in a BSS.
1102 This parameter is meaningful only when operating in ap mode.
1103 .It Cm bss:txoplimit Ar ac Ar limit
1104 Set the TxOpLimit channel access parameter to send to stations in a BSS.
1105 This parameter is meaningful only when operating in ap mode.
1109 The following parameters support an optional access control list
1110 feature available with some adaptors when operating in ap mode; see
1112 This facility allows an access point to accept/deny association
1113 requests based on the MAC address of the station.
1114 Note that this feature does not significantly enhance security
1115 as MAC address spoofing is easy to do.
1116 .Bl -tag -width indent
1117 .It Cm mac:add Ar address
1118 Add the specified MAC address to the database.
1119 Depending on the policy setting association requests from the
1120 specified station will be allowed or denied.
1122 Set the ACL policy to permit association only by
1123 stations registered in the database.
1124 .It Cm mac:del Ar address
1125 Delete the specified MAC address from the database.
1127 Set the ACL policy to deny association only by
1128 stations registered in the database.
1129 .It Cm mac:kick Ar address
1130 Force the specified station to be deauthenticated.
1131 This typically is done to block a station after updating the
1134 Set the ACL policy to allow all stations to associate.
1136 Delete all entries in the database.
1139 The following parameters are for compatibility with other systems:
1140 .Bl -tag -width indent
1142 Another name for the
1148 .It Cm station Ar name
1149 Another name for the
1156 Another way of saying
1162 Another way of saying
1168 Another way of saying:
1169 .Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
1175 .Ar n : k1 , k2 , k3 , k4
1178 Another way of saying
1179 .Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
1184 Another way of saying
1191 The following parameters are specific to bridge interfaces:
1192 .Bl -tag -width indent
1193 .It Cm addm Ar interface
1194 Add the interface named by
1196 as a member of the bridge.
1197 The interface is put into promiscuous mode
1198 so that it can receive every packet sent on the network.
1199 .It Cm deletem Ar interface
1200 Remove the interface named by
1203 Promiscuous mode is disabled on the interface when
1204 it is removed from the bridge.
1205 .It Cm maxaddr Ar size
1206 Set the size of the bridge address cache to
1208 The default is 100 entries.
1209 .It Cm timeout Ar seconds
1210 Set the timeout of address cache entries to
1215 is zero, then address cache entries will not be expired.
1216 The default is 1200 seconds.
1218 Display the addresses that have been learned by the bridge.
1219 .It Cm static Ar interface-name Ar address
1220 Add a static entry into the address cache pointing to
1221 .Ar interface-name .
1222 Static entries are never aged out of the cache or re-placed, even if the
1223 address is seen on a different interface.
1224 .It Cm deladdr Ar address
1227 from the address cache.
1229 Delete all dynamically-learned addresses from the address cache.
1231 Delete all addresses, including static addresses, from the address cache.
1232 .It Cm discover Ar interface
1233 Mark an interface as a
1236 When the bridge has no address cache entry
1237 (either dynamic or static)
1238 for the destination address of a packet,
1239 the bridge will forward the packet to all
1240 member interfaces marked as
1242 This is the default for all interfaces added to a bridge.
1243 .It Fl discover Ar interface
1246 attribute on a member interface.
1247 For packets without the
1249 attribute, the only packets forwarded on the interface are broadcast
1250 or multicast packets and packets for which the destination address
1251 is known to be on the interface's segment.
1252 .It Cm learn Ar interface
1253 Mark an interface as a
1256 When a packet arrives on such an interface, the source
1257 address of the packet is entered into the address cache as being a
1258 destination address on the interface's segment.
1259 This is the default for all interfaces added to a bridge.
1260 .It Fl learn Ar interface
1263 attribute on a member interface.
1264 .It Cm span Ar interface
1265 Add the interface named by
1267 as a span port on the bridge.
1268 Span ports transmit a copy of every frame received by the bridge.
1269 This is most useful for snooping a bridged network passively on
1270 another host connected to one of the span ports of the bridge.
1271 .It Fl span Ar interface
1272 Delete the interface named by
1274 from the list of span ports of the bridge.
1275 .It Cm stp Ar interface
1276 Enable Spanning Tree protocol on
1280 driver has support for the IEEE 802.1D Spanning Tree protocol (STP).
1281 Spanning Tree is used to detect and remove loops in a network topology.
1282 .It Fl stp Ar interface
1283 Disable Spanning Tree protocol on
1285 This is the default for all interfaces added to a bridge.
1286 .It Cm maxage Ar seconds
1287 Set the time that a Spanning Tree protocol configuration is valid.
1288 The default is 20 seconds.
1289 The minimum is 1 second and the maximum is 255 seconds.
1290 .It Cm fwddelay Ar seconds
1291 Set the time that must pass before an interface begins forwarding
1292 packets when Spanning Tree is enabled.
1293 The default is 15 seconds.
1294 The minimum is 1 second and the maximum is 255 seconds.
1295 .It Cm hellotime Ar seconds
1296 Set the time between broadcasting of Spanning Tree protocol
1297 configuration messages.
1298 The default is 2 seconds.
1299 The minimum is 1 second and the maximum is 255 seconds.
1300 .It Cm priority Ar value
1301 Set the bridge priority for Spanning Tree.
1302 The default is 32768.
1303 The minimum is 0 and the maximum is 65536.
1304 .It Cm ifpriority Ar interface Ar value
1305 Set the Spanning Tree priority of
1310 The minimum is 0 and the maximum is 255.
1311 .It Cm ifpathcost Ar interface Ar value
1312 Set the Spanning Tree path cost of
1317 The minimum is 0 and the maximum is 65535.
1320 The following parameters are specific to IP tunnel interfaces,
1322 .Bl -tag -width indent
1323 .It Cm tunnel Ar src_addr dest_addr
1324 Configure the physical source and destination address for IP tunnel
1330 are interpreted as the outer source/destination for the encapsulating
1333 Unconfigure the physical source and destination address for IP tunnel
1334 interfaces previously configured with
1337 Another name for the
1342 The following parameters are specific to
1345 .Bl -tag -width indent
1346 .It Cm vlan Ar vlan_tag
1347 Set the VLAN tag value to
1349 This value is a 16-bit number which is used to create an 802.1Q
1350 VLAN header for packets sent from the
1357 must both be set at the same time.
1358 .It Cm vlandev Ar iface
1359 Associate the physical interface
1364 Packets transmitted through the
1367 diverted to the specified physical interface
1369 with 802.1Q VLAN encapsulation.
1370 Packets with 802.1Q encapsulation received
1371 by the parent interface with the correct VLAN tag will be diverted to
1377 interface is assigned a
1378 copy of the parent interface's flags and the parent's ethernet address.
1383 must both be set at the same time.
1386 interface already has
1387 a physical interface associated with it, this command will fail.
1389 change the association to another physical interface, the existing
1390 association must be cleared first.
1392 Note: if the hardware tagging capability
1393 is set on the parent interface, the
1396 interface's behavior changes:
1399 interface recognizes that the
1400 parent interface supports insertion and extraction of VLAN tags on its
1401 own (usually in firmware) and that it should pass packets to and from
1402 the parent unaltered.
1403 .It Fl vlandev Op Ar iface
1406 pseudo device, disassociate the parent interface from it.
1407 This breaks the link between the
1409 interface and its parent,
1410 clears its VLAN tag, flags and its link address and shuts the interface down.
1413 argument is useless and hence deprecated.
1416 The following parameters are specific to
1419 .Bl -tag -width indent
1420 .It Cm advbase Ar seconds
1421 Specifies the base of the advertisement interval in seconds.
1422 The acceptable values are 1 to 255.
1423 The default value is 1.
1424 .\" The default value is
1425 .\" .Dv CARP_DFLTINTV .
1426 .It Cm advskew Ar interval
1427 Specifies the skew to add to the base advertisement interval to
1428 make one host advertise slower than another host.
1429 It is specified in 1/256 of seconds.
1430 The acceptable values are 1 to 254.
1431 The default value is 0.
1432 .It Cm pass Ar phrase
1433 Set the authentication key to
1436 Set the virtual host ID.
1437 This is a required setting.
1438 Acceptable values are 1 to 255.
1443 utility displays the current configuration for a network interface
1444 when no optional parameters are supplied.
1445 If a protocol family is specified,
1447 will report only the details specific to that protocol family.
1451 flag is passed before an interface name,
1453 will display the capability list and all
1454 of the supported media for the specified interface.
1457 flag is supplied, address lifetime is displayed for IPv6 addresses,
1458 as time offset string.
1462 flag may be used instead of an interface name.
1465 to display information about all interfaces in the system.
1468 flag limits this to interfaces that are down, and
1470 limits this to interfaces that are up.
1471 When no arguments are given,
1477 flag may be used to list all available interfaces on the system, with
1478 no other additional information.
1479 Use of this flag is mutually exclusive
1480 with all other flags and commands, except for
1482 (only list interfaces that are down)
1485 (only list interfaces that are up).
1489 flag may be used to get more verbose status for an interface.
1493 flag may be used to list all of the interface cloners available on
1494 the system, with no additional information.
1495 Use of this flag is mutually exclusive with all other flags and commands.
1499 flag causes keying information for the interface, if available, to be
1501 For example, the values of 802.11 WEP keys will be printed, if accessible to
1503 This information is not printed by default, as it may be considered
1506 Only the super-user may modify the configuration of a network interface.
1508 Messages indicating the specified interface does not exist, the
1509 requested address is unknown, or the user is not privileged and
1510 tried to alter an interface's configuration.
1528 Basic IPv6 node operation requires a link-local address on each
1529 interface configured for IPv6.
1530 Normally, such an address is automatically configured by the
1531 kernel on each interface added to the system; this behaviour may
1532 be disabled by setting the sysctl MIB variable
1533 .Va net.inet6.ip6.auto_linklocal
1536 If you delete such an address using
1538 the kernel may act very odd.
1539 Do this at your own risk.