xref: /freebsd/sbin/ifconfig/ifconfig.8 (revision d7097da403c9230a00dfe896f2a9529c08e9c4f2)
18fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
68fae3551SRodney W. Grimes.\" are met:
78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
88fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
108fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
118fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
128fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
138fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
148fae3551SRodney W. Grimes.\"    without specific prior written permission.
158fae3551SRodney W. Grimes.\"
168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
198fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
268fae3551SRodney W. Grimes.\" SUCH DAMAGE.
278fae3551SRodney W. Grimes.\"
280761cb29SGarrett Wollman.\"     From: @(#)ifconfig.8	8.3 (Berkeley) 1/5/94
297f3dea24SPeter Wemm.\" $FreeBSD$
308fae3551SRodney W. Grimes.\"
31d7ccef33SSam Leffler.Dd July 25, 2006
328fae3551SRodney W. Grimes.Dt IFCONFIG 8
33b09b4efbSRuslan Ermilov.Os
348fae3551SRodney W. Grimes.Sh NAME
358fae3551SRodney W. Grimes.Nm ifconfig
368fae3551SRodney W. Grimes.Nd configure network interface parameters
378fae3551SRodney W. Grimes.Sh SYNOPSIS
387c7fb079SRuslan Ermilov.Nm
39abc3361aSArchie Cobbs.Op Fl L
40b7eb47e2SRobert Watson.Op Fl k
41ca299b1fSPoul-Henning Kamp.Op Fl m
42abc3361aSArchie Cobbs.Ar interface
433e61dca0SBrooks Davis.Op Cm create
44abc3361aSArchie Cobbs.Op Ar address_family
458fae3551SRodney W. Grimes.Oo
46eb2a1701SDima Dorfman.Ar address
478fae3551SRodney W. Grimes.Op Ar dest_address
488fae3551SRodney W. Grimes.Oc
498fae3551SRodney W. Grimes.Op Ar parameters
507c7fb079SRuslan Ermilov.Nm
513e61dca0SBrooks Davis.Ar interface
523e61dca0SBrooks Davis.Cm destroy
533e61dca0SBrooks Davis.Nm
54b5436146SPeter Wemm.Fl a
55abc3361aSArchie Cobbs.Op Fl L
56b5436146SPeter Wemm.Op Fl d
57ca299b1fSPoul-Henning Kamp.Op Fl m
58b5436146SPeter Wemm.Op Fl u
595faf8dcbSSam Leffler.Op Fl v
60e333b944SPhilippe Charnier.Op Ar address_family
617c7fb079SRuslan Ermilov.Nm
62b5436146SPeter Wemm.Fl l
63b5436146SPeter Wemm.Op Fl d
64b5436146SPeter Wemm.Op Fl u
65e333b944SPhilippe Charnier.Op Ar address_family
667c7fb079SRuslan Ermilov.Nm
67abc3361aSArchie Cobbs.Op Fl L
68abc3361aSArchie Cobbs.Op Fl d
69b7eb47e2SRobert Watson.Op Fl k
70ca299b1fSPoul-Henning Kamp.Op Fl m
71abc3361aSArchie Cobbs.Op Fl u
725faf8dcbSSam Leffler.Op Fl v
733e61dca0SBrooks Davis.Op Fl C
740dad3f0eSMax Laier.Nm
750dad3f0eSMax Laier.Op Fl g Ar groupname
768fae3551SRodney W. Grimes.Sh DESCRIPTION
77e1205e80SPhilippe CharnierThe
78e1205e80SPhilippe Charnier.Nm
79e1205e80SPhilippe Charnierutility is used to assign an address
808fae3551SRodney W. Grimesto a network interface and/or configure
818fae3551SRodney W. Grimesnetwork interface parameters.
82e1205e80SPhilippe CharnierThe
83e1205e80SPhilippe Charnier.Nm
84e1205e80SPhilippe Charnierutility must be used at boot time to define the network address
858fae3551SRodney W. Grimesof each interface present on a machine; it may also be used at
868fae3551SRodney W. Grimesa later time to redefine an interface's address
878fae3551SRodney W. Grimesor other operating parameters.
888fae3551SRodney W. Grimes.Pp
89e333b944SPhilippe CharnierThe following options are available:
90e333b944SPhilippe Charnier.Bl -tag -width indent
91e333b944SPhilippe Charnier.It Ar address
928fae3551SRodney W. GrimesFor the
93e333b944SPhilippe Charnier.Tn DARPA Ns -Internet
948fae3551SRodney W. Grimesfamily,
958fae3551SRodney W. Grimesthe address is either a host name present in the host name data
968fae3551SRodney W. Grimesbase,
978fae3551SRodney W. Grimes.Xr hosts 5 ,
988fae3551SRodney W. Grimesor a
998fae3551SRodney W. Grimes.Tn DARPA
1008fae3551SRodney W. GrimesInternet address expressed in the Internet standard
1018fae3551SRodney W. Grimes.Dq dot notation .
10212813062SJesper Skriver.Pp
10312813062SJesper SkriverIt is also possible to use the CIDR notation (also known as the
10412813062SJesper Skriverslash notation) to include the netmask.
10512813062SJesper SkriverThat is, one can specify an address like
10619fe4826SRuslan Ermilov.Li 192.168.0.1/16 .
1079f1741caSRuslan Ermilov.Pp
1089f1741caSRuslan ErmilovFor
1099f1741caSRuslan Ermilov.Dq inet6
1109f1741caSRuslan Ermilovfamily, it is also possible to specify the prefix length using the slash
1119f1741caSRuslan Ermilovnotation, like
1129f1741caSRuslan Ermilov.Li ::1/128 .
1139f1741caSRuslan ErmilovSee the
1149f1741caSRuslan Ermilov.Cm prefixlen
1159f1741caSRuslan Ermilovparameter below for more information.
116cbc17e71SGarrett Wollman.\" For the Xerox Network Systems(tm) family,
117cbc17e71SGarrett Wollman.\" addresses are
118cbc17e71SGarrett Wollman.\" .Ar net:a.b.c.d.e.f ,
119cbc17e71SGarrett Wollman.\" where
120cbc17e71SGarrett Wollman.\" .Ar net
121cbc17e71SGarrett Wollman.\" is the assigned network number (in decimal),
122cbc17e71SGarrett Wollman.\" and each of the six bytes of the host number,
123cbc17e71SGarrett Wollman.\" .Ar a
124cbc17e71SGarrett Wollman.\" through
125cbc17e71SGarrett Wollman.\" .Ar f ,
126cbc17e71SGarrett Wollman.\" are specified in hexadecimal.
127b80875bcSDima Dorfman.\" The host number may be omitted on IEEE 802 protocol
128b80875bcSDima Dorfman.\" (Ethernet, FDDI, and Token Ring) interfaces,
129cbc17e71SGarrett Wollman.\" which use the hardware physical address,
130cbc17e71SGarrett Wollman.\" and on interfaces other than the first.
1310761cb29SGarrett Wollman.\" For the
1320761cb29SGarrett Wollman.\" .Tn ISO
1330761cb29SGarrett Wollman.\" family, addresses are specified as a long hexadecimal string,
134b09b4efbSRuslan Ermilov.\" as in the Xerox family.
135b09b4efbSRuslan Ermilov.\" However, two consecutive dots imply a zero
1360761cb29SGarrett Wollman.\" byte, and the dots are optional, if the user wishes to (carefully)
1370761cb29SGarrett Wollman.\" count out long strings of digits in network byte order.
1381876df83SRuslan Ermilov.Pp
1391876df83SRuslan ErmilovThe link-level
1401876df83SRuslan Ermilov.Pq Dq link
1411876df83SRuslan Ermilovaddress
1421876df83SRuslan Ermilovis specified as a series of colon-separated hex digits.
1431876df83SRuslan ErmilovThis can be used to
1449806e231SRuslan Ermilove.g.\& set a new MAC address on an ethernet interface, though the
1451876df83SRuslan Ermilovmechanism used is not ethernet-specific.
1461876df83SRuslan ErmilovIf the interface is already
1471876df83SRuslan Ermilovup when this option is used, it will be briefly brought down and
1481876df83SRuslan Ermilovthen brought back up again in order to ensure that the receive
1491876df83SRuslan Ermilovfilter in the underlying ethernet hardware is properly reprogrammed.
1508fae3551SRodney W. Grimes.It Ar address_family
151e333b944SPhilippe CharnierSpecify the
152b09b4efbSRuslan Ermilovaddress family
1538fae3551SRodney W. Grimeswhich affects interpretation of the remaining parameters.
1548fae3551SRodney W. GrimesSince an interface can receive transmissions in differing protocols
155e71057d8SMike Pritchardwith different naming schemes, specifying the address family is recommended.
1568fae3551SRodney W. GrimesThe address or protocol families currently
1578fae3551SRodney W. Grimessupported are
158e05f2836SJulian Elischer.Dq inet ,
159cfa1ca9dSYoshinobu Inoue.Dq inet6 ,
160e05f2836SJulian Elischer.Dq atalk ,
1611876df83SRuslan Ermilov.Dq ipx ,
1620761cb29SGarrett Wollman.\" .Dq iso ,
1638fae3551SRodney W. Grimesand
1641876df83SRuslan Ermilov.Dq link .
165cbc17e71SGarrett Wollman.\" and
166cbc17e71SGarrett Wollman.\" .Dq ns .
167d29a2061SDima DorfmanThe default is
168d29a2061SDima Dorfman.Dq inet .
1691876df83SRuslan Ermilov.Dq ether
1701876df83SRuslan Ermilovand
1711876df83SRuslan Ermilov.Dq lladdr
1721876df83SRuslan Ermilovare synonyms for
1731876df83SRuslan Ermilov.Dq link .
174e333b944SPhilippe Charnier.It Ar dest_address
175e333b944SPhilippe CharnierSpecify the address of the correspondent on the other end
176e333b944SPhilippe Charnierof a point to point link.
177e333b944SPhilippe Charnier.It Ar interface
178e333b944SPhilippe CharnierThis
1798fae3551SRodney W. Grimesparameter is a string of the form
1808fae3551SRodney W. Grimes.Dq name unit ,
1818fae3551SRodney W. Grimesfor example,
182b09b4efbSRuslan Ermilov.Dq Li ed0 .
1830dad3f0eSMax Laier.It Ar groupname
1840dad3f0eSMax LaierList the interfaces in the given group.
1858fae3551SRodney W. Grimes.El
1868fae3551SRodney W. Grimes.Pp
1878fae3551SRodney W. GrimesThe following parameters may be set with
1887c7fb079SRuslan Ermilov.Nm :
189e333b944SPhilippe Charnier.Bl -tag -width indent
190d6d1cb48SRobert Watson.It Cm add
191d0353b83SRuslan ErmilovAnother name for the
192d0353b83SRuslan Ermilov.Cm alias
193d0353b83SRuslan Ermilovparameter.
194d0353b83SRuslan ErmilovIntroduced for compatibility
195b09b4efbSRuslan Ermilovwith
196b09b4efbSRuslan Ermilov.Bsx .
1978fae3551SRodney W. Grimes.It Cm alias
1988fae3551SRodney W. GrimesEstablish an additional network address for this interface.
1998fae3551SRodney W. GrimesThis is sometimes useful when changing network numbers, and
2008fae3551SRodney W. Grimesone wishes to accept packets addressed to the old interface.
20199aa831bSChris CostelloIf the address is on the same subnet as the first network address
202aaa34889SBrian Somersfor this interface, a non-conflicting netmask must be given.
203aaa34889SBrian SomersUsually
204b09b4efbSRuslan Ermilov.Li 0xffffffff
205aaa34889SBrian Somersis most appropriate.
206fac3d981SDavid E. O'Brien.It Fl alias
207fac3d981SDavid E. O'BrienRemove the network address specified.
208fac3d981SDavid E. O'BrienThis would be used if you incorrectly specified an alias, or it
209fac3d981SDavid E. O'Brienwas no longer needed.
210fac3d981SDavid E. O'BrienIf you have incorrectly set an NS address having the side effect
211fac3d981SDavid E. O'Brienof specifying the host portion, removing all NS addresses will
212fac3d981SDavid E. O'Brienallow you to respecify the host portion.
213cfa1ca9dSYoshinobu Inoue.It Cm anycast
214b09b4efbSRuslan Ermilov(Inet6 only.)
215cfa1ca9dSYoshinobu InoueSpecify that the address configured is an anycast address.
216cfa1ca9dSYoshinobu InoueBased on the current specification,
217cfa1ca9dSYoshinobu Inoueonly routers may configure anycast addresses.
218cfa1ca9dSYoshinobu InoueAnycast address will not be used as source address of any of outgoing
219cfa1ca9dSYoshinobu InoueIPv6 packets.
2208fae3551SRodney W. Grimes.It Cm arp
221b09b4efbSRuslan ErmilovEnable the use of the Address Resolution Protocol
222b09b4efbSRuslan Ermilov.Pq Xr arp 4
223b09b4efbSRuslan Ermilovin mapping
2248fae3551SRodney W. Grimesbetween network level addresses and link level addresses (default).
2258fae3551SRodney W. GrimesThis is currently implemented for mapping between
2268fae3551SRodney W. Grimes.Tn DARPA
2278fae3551SRodney W. GrimesInternet
228b80875bcSDima Dorfmanaddresses and
229b80875bcSDima Dorfman.Tn IEEE
230b80875bcSDima Dorfman802 48-bit MAC addresses (Ethernet, FDDI, and Token Ring addresses).
2318fae3551SRodney W. Grimes.It Fl arp
232b09b4efbSRuslan ErmilovDisable the use of the Address Resolution Protocol
233b09b4efbSRuslan Ermilov.Pq Xr arp 4 .
234deb62e28SRuslan Ermilov.It Cm staticarp
235deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
236deb62e28SRuslan Ermilovthe host will only reply to requests for its addresses,
237deb62e28SRuslan Ermilovand will never send any requests.
238deb62e28SRuslan Ermilov.It Fl staticarp
239deb62e28SRuslan ErmilovIf the Address Resolution Protocol is enabled,
240deb62e28SRuslan Ermilovthe host will perform normally,
241deb62e28SRuslan Ermilovsending out requests and listening for replies.
2428fae3551SRodney W. Grimes.It Cm broadcast
243b09b4efbSRuslan Ermilov(Inet only.)
2448fae3551SRodney W. GrimesSpecify the address to use to represent broadcasts to the
2458fae3551SRodney W. Grimesnetwork.
2468fae3551SRodney W. GrimesThe default broadcast address is the address with a host part of all 1's.
2478fae3551SRodney W. Grimes.It Cm debug
2488fae3551SRodney W. GrimesEnable driver dependent debugging code; usually, this turns on
2498fae3551SRodney W. Grimesextra console error logging.
2508fae3551SRodney W. Grimes.It Fl debug
2518fae3551SRodney W. GrimesDisable driver dependent debugging code.
252ffb079beSMaxim Sobolev.It Cm promisc
253ffb079beSMaxim SobolevPut interface into permanently promiscuous mode.
254ffb079beSMaxim Sobolev.It Fl promisc
255ffb079beSMaxim SobolevDisable permanently promiscuous mode.
2568fae3551SRodney W. Grimes.It Cm delete
257d0353b83SRuslan ErmilovAnother name for the
258d0353b83SRuslan Ermilov.Fl alias
259d0353b83SRuslan Ermilovparameter.
2608fae3551SRodney W. Grimes.It Cm down
261d0353b83SRuslan ErmilovMark an interface
262d0353b83SRuslan Ermilov.Dq down .
263d0353b83SRuslan ErmilovWhen an interface is marked
264d0353b83SRuslan Ermilov.Dq down ,
265d0353b83SRuslan Ermilovthe system will not attempt to
2668fae3551SRodney W. Grimestransmit messages through that interface.
2678fae3551SRodney W. GrimesIf possible, the interface will be reset to disable reception as well.
2688fae3551SRodney W. GrimesThis action does not automatically disable routes using the interface.
2690dad3f0eSMax Laier.It Cm group Ar group-name
2700dad3f0eSMax LaierAssign the interface to a
2710dad3f0eSMax Laier.Dq group .
2720dad3f0eSMax LaierAny interface can be in multiple groups.
2730dad3f0eSMax Laier.Pp
2740dad3f0eSMax LaierCloned interfaces are members of their interface family group by default.
2750dad3f0eSMax LaierFor example, a PPP interface such as
2760dad3f0eSMax Laier.Em ppp0
2770dad3f0eSMax Laieris a member of the PPP interface family group,
2780dad3f0eSMax Laier.Em ppp .
2790dad3f0eSMax Laier.\" The interface(s) the default route(s) point to are members of the
2800dad3f0eSMax Laier.\" .Em egress
2810dad3f0eSMax Laier.\" interface group.
2820dad3f0eSMax Laier.It Cm -group Ar group-name
2830dad3f0eSMax LaierRemove the interface from the given
2840dad3f0eSMax Laier.Dq group .
285331a2db8SHajimu UMEMOTO.It Cm eui64
286331a2db8SHajimu UMEMOTO(Inet6 only.)
287331a2db8SHajimu UMEMOTOFill interface index
288a61d9c47SRuslan Ermilov(lowermost 64bit of an IPv6 address)
289331a2db8SHajimu UMEMOTOautomatically.
29081511867STim J. Robbins.It Cm ipdst
29181511867STim J. RobbinsThis is used to specify an Internet host who is willing to receive
29281511867STim J. RobbinsIP packets encapsulating IPX packets bound for a remote network.
29381511867STim J. RobbinsAn apparent point to point link is constructed, and
29481511867STim J. Robbinsthe address specified will be taken as the IPX address and network
29581511867STim J. Robbinsof the destination.
29676b4b15fSChris Costello.It Cm maclabel Ar label
29776b4b15fSChris CostelloIf Mandatory Access Control support is enabled in the kernel,
29876b4b15fSChris Costelloset the MAC label to
29976b4b15fSChris Costello.Ar label .
30076b4b15fSChris Costello.\" (see
30176b4b15fSChris Costello.\" .Xr maclabel 7 ) .
302b5436146SPeter Wemm.It Cm media Ar type
303920de530SPeter WemmIf the driver supports the media selection system, set the media type
304920de530SPeter Wemmof the interface to
305b5436146SPeter Wemm.Ar type .
306b5436146SPeter WemmSome interfaces support the mutually exclusive use of one of several
307b09b4efbSRuslan Ermilovdifferent physical media connectors.
3084e9e907dSRuslan ErmilovFor example, a 10Mbit/s Ethernet
309b5436146SPeter Wemminterface might support the use of either
310b5436146SPeter Wemm.Tn AUI
311b09b4efbSRuslan Ermilovor twisted pair connectors.
312b09b4efbSRuslan ErmilovSetting the media type to
3134e9e907dSRuslan Ermilov.Cm 10base5/AUI
314b5436146SPeter Wemmwould change the currently active connector to the AUI port.
315b5436146SPeter WemmSetting it to
3164e9e907dSRuslan Ermilov.Cm 10baseT/UTP
317b09b4efbSRuslan Ermilovwould activate twisted pair.
318b09b4efbSRuslan ErmilovRefer to the interfaces' driver
319920de530SPeter Wemmspecific documentation or man page for a complete list of the
320920de530SPeter Wemmavailable types.
321b5436146SPeter Wemm.It Cm mediaopt Ar opts
322920de530SPeter WemmIf the driver supports the media selection system, set the specified
323920de530SPeter Wemmmedia options on the interface.
324b09b4efbSRuslan ErmilovThe
325b09b4efbSRuslan Ermilov.Ar opts
326b09b4efbSRuslan Ermilovargument
327b5436146SPeter Wemmis a comma delimited list of options to apply to the interface.
328b5436146SPeter WemmRefer to the interfaces' driver specific man page for a complete
329b5436146SPeter Wemmlist of available options.
330b5436146SPeter Wemm.It Fl mediaopt Ar opts
331920de530SPeter WemmIf the driver supports the media selection system, disable the
332920de530SPeter Wemmspecified media options on the interface.
333e519b1a5SSam Leffler.It Cm mode Ar mode
334e519b1a5SSam LefflerIf the driver supports the media selection system, set the specified
335e519b1a5SSam Leffleroperating mode on the interface to
336e519b1a5SSam Leffler.Ar mode .
337e519b1a5SSam LefflerFor IEEE 802.11 wireless interfaces that support multiple operating modes
338eb9a85caSRuslan Ermilovthis directive is used to select between 802.11a
3394e9e907dSRuslan Ermilov.Pq Cm 11a ,
340eb9a85caSRuslan Ermilov802.11b
3414e9e907dSRuslan Ermilov.Pq Cm 11b ,
342eb9a85caSRuslan Ermilovand 802.11g
3434e9e907dSRuslan Ermilov.Pq Cm 11g
344e519b1a5SSam Leffleroperating modes.
34597bebf0aSBrooks Davis.It Cm name Ar name
34697bebf0aSBrooks DavisSet the interface name to
34797bebf0aSBrooks Davis.Ar name .
3488fbad60dSRuslan Ermilov.It Cm rxcsum , txcsum
3498fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
3508fbad60dSRuslan Ermilovenable receive (or transmit) checksum offloading on the interface.
3518fbad60dSRuslan ErmilovSome drivers may not be able to enable these flags independently
3528fbad60dSRuslan Ermilovof each other, so setting one may also set the other.
3538fbad60dSRuslan ErmilovThe driver will offload as much checksum work as it can reliably
3548fbad60dSRuslan Ermilovsupport, the exact level of offloading varies between drivers.
35521414470SRuslan Ermilov.It Fl rxcsum , txcsum
3568fbad60dSRuslan ErmilovIf the driver supports user-configurable checksum offloading,
3578fbad60dSRuslan Ermilovdisable receive (or transmit) checksum offloading on the interface.
3588fbad60dSRuslan ErmilovThese settings may not always be independent of each other.
359d7097da4SAndre Oppermann.It Cm tso
360d7097da4SAndre OppermannIf the driver supports
361d7097da4SAndre Oppermann.Xr tcp 4
362d7097da4SAndre Oppermannsegmentation offloading, enable TSO on the interface.
363d7097da4SAndre OppermannSome drivers may not be able to support TSO for
364d7097da4SAndre Oppermann.Xr ip 4
365d7097da4SAndre Oppermannand
366d7097da4SAndre Oppermann.Xr ip6 4
367d7097da4SAndre Oppermannpackets, so they may enable only one of them.
368d7097da4SAndre Oppermann.It Fl tso
369d7097da4SAndre OppermannIf the driver supports
370d7097da4SAndre Oppermann.Xr tcp 4
371d7097da4SAndre Oppermannsegmentation offloading, disable TSO on the interface.
372d7097da4SAndre OppermannIt will always disable TSO for
373d7097da4SAndre Oppermann.Xr ip 4
374d7097da4SAndre Oppermannand
375d7097da4SAndre Oppermann.Xr ip6 4 .
376163653e8SYaroslav Tykhiy.It Cm vlanmtu , vlanhwtag
377163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, enable
378163653e8SYaroslav Tykhiyreception of extended frames or tag processing in hardware,
379163653e8SYaroslav Tykhiyrespectively.
380163653e8SYaroslav TykhiyNote that this must be issued on a physical interface associated with
381163653e8SYaroslav Tykhiy.Xr vlan 4 ,
382163653e8SYaroslav Tykhiynot on a
383163653e8SYaroslav Tykhiy.Xr vlan 4
384163653e8SYaroslav Tykhiyinterface itself.
385163653e8SYaroslav Tykhiy.It Fl vlanmtu , vlanhwtag
386163653e8SYaroslav TykhiyIf the driver offers user-configurable VLAN support, disable
387163653e8SYaroslav Tykhiyreception of extended frames or tag processing in hardware,
388163653e8SYaroslav Tykhiyrespectively.
3893a3b019aSRuslan Ermilov.It Cm polling
3901f8f09b0SGleb SmirnoffTurn on
3913a3b019aSRuslan Ermilov.Xr polling 4
3921f8f09b0SGleb Smirnofffeature and disable interrupts on the interface, if driver supports
3931f8f09b0SGleb Smirnoffthis mode.
3943a3b019aSRuslan Ermilov.It Fl polling
3951f8f09b0SGleb SmirnoffTurn off
3963a3b019aSRuslan Ermilov.Xr polling 4
3971f8f09b0SGleb Smirnofffeature and enable interrupt mode on the interface.
3983e61dca0SBrooks Davis.It Cm create
3993e61dca0SBrooks DavisCreate the specified network pseudo-device.
4003e61dca0SBrooks DavisIf the interface is given without a unit number, try to create a new
4013e61dca0SBrooks Davisdevice with an arbitrary unit number.
402525d500eSDima DorfmanIf creation of an arbitrary device is successful, the new device name is
40397bebf0aSBrooks Davisprinted to standard output unless the interface is renamed or destroyed
40497bebf0aSBrooks Davisin the same
40597bebf0aSBrooks Davis.Nm
40697bebf0aSBrooks Davisinvocation.
4073e61dca0SBrooks Davis.It Cm destroy
4083e61dca0SBrooks DavisDestroy the specified network pseudo-device.
4093e61dca0SBrooks Davis.It Cm plumb
4103e61dca0SBrooks DavisAnother name for the
411b8a7fd3fSYaroslav Tykhiy.Cm create
4123e61dca0SBrooks Davisparameter.
413b09b4efbSRuslan ErmilovIncluded for
414b09b4efbSRuslan Ermilov.Tn Solaris
415b09b4efbSRuslan Ermilovcompatibility.
4163e61dca0SBrooks Davis.It Cm unplumb
4173e61dca0SBrooks DavisAnother name for the
418b8a7fd3fSYaroslav Tykhiy.Cm destroy
4193e61dca0SBrooks Davisparameter.
420b09b4efbSRuslan ErmilovIncluded for
421b09b4efbSRuslan Ermilov.Tn Solaris
422b09b4efbSRuslan Ermilovcompatibility.
4238fae3551SRodney W. Grimes.It Cm metric Ar n
4248fae3551SRodney W. GrimesSet the routing metric of the interface to
4258fae3551SRodney W. Grimes.Ar n ,
4268fae3551SRodney W. Grimesdefault 0.
4278fae3551SRodney W. GrimesThe routing metric is used by the routing protocol
4288fae3551SRodney W. Grimes.Pq Xr routed 8 .
4298fae3551SRodney W. GrimesHigher metrics have the effect of making a route
4308fae3551SRodney W. Grimesless favorable; metrics are counted as addition hops
4318fae3551SRodney W. Grimesto the destination network or host.
4324db32b03SDavid Greenman.It Cm mtu Ar n
4334db32b03SDavid GreenmanSet the maximum transmission unit of the interface to
4344db32b03SDavid Greenman.Ar n ,
4354db32b03SDavid Greenmandefault is interface specific.
436b09b4efbSRuslan ErmilovThe MTU is used to limit the size of packets that are transmitted on an
4374db32b03SDavid Greenmaninterface.
438b09b4efbSRuslan ErmilovNot all interfaces support setting the MTU, and some interfaces have
4394db32b03SDavid Greenmanrange restrictions.
4408fae3551SRodney W. Grimes.It Cm netmask Ar mask
441b09b4efbSRuslan Ermilov.\" (Inet and ISO.)
442b09b4efbSRuslan Ermilov(Inet only.)
4438fae3551SRodney W. GrimesSpecify how much of the address to reserve for subdividing
4448fae3551SRodney W. Grimesnetworks into sub-networks.
4458fae3551SRodney W. GrimesThe mask includes the network part of the local address
4468fae3551SRodney W. Grimesand the subnet part, which is taken from the host field of the address.
4478fae3551SRodney W. GrimesThe mask can be specified as a single hexadecimal number
448b09b4efbSRuslan Ermilovwith a leading
449b09b4efbSRuslan Ermilov.Ql 0x ,
450b09b4efbSRuslan Ermilovwith a dot-notation Internet address,
4518fae3551SRodney W. Grimesor with a pseudo-network name listed in the network table
4528fae3551SRodney W. Grimes.Xr networks 5 .
4538fae3551SRodney W. GrimesThe mask contains 1's for the bit positions in the 32-bit address
4548fae3551SRodney W. Grimeswhich are to be used for the network and subnet parts,
4558fae3551SRodney W. Grimesand 0's for the host part.
4568fae3551SRodney W. GrimesThe mask should contain at least the standard network portion,
4578fae3551SRodney W. Grimesand the subnet field should be contiguous with the network
4588fae3551SRodney W. Grimesportion.
45912813062SJesper Skriver.Pp
46012813062SJesper SkriverThe netmask can also be specified in CIDR notation after the address.
46112813062SJesper SkriverSee the
46212813062SJesper Skriver.Ar address
46312813062SJesper Skriveroption above for more information.
464cfa1ca9dSYoshinobu Inoue.It Cm prefixlen Ar len
465b09b4efbSRuslan Ermilov(Inet6 only.)
466cfa1ca9dSYoshinobu InoueSpecify that
467cfa1ca9dSYoshinobu Inoue.Ar len
468cfa1ca9dSYoshinobu Inouebits are reserved for subdividing networks into sub-networks.
469cfa1ca9dSYoshinobu InoueThe
470cfa1ca9dSYoshinobu Inoue.Ar len
471cfa1ca9dSYoshinobu Inouemust be integer, and for syntactical reason it must be between 0 to 128.
472cfa1ca9dSYoshinobu InoueIt is almost always 64 under the current IPv6 assignment rule.
473bfc03b18SStephen McKayIf the parameter is omitted, 64 is used.
4749f1741caSRuslan Ermilov.Pp
4759f1741caSRuslan ErmilovThe prefix can also be specified using the slash notation after the address.
4769f1741caSRuslan ErmilovSee the
4779f1741caSRuslan Ermilov.Ar address
4789f1741caSRuslan Ermilovoption above for more information.
47949830e2aSSheldon Hearn.\" see
4808fae3551SRodney W. Grimes.\" Xr eon 5 .
4810761cb29SGarrett Wollman.\" .It Cm nsellength Ar n
4820761cb29SGarrett Wollman.\" .Pf ( Tn ISO
4830761cb29SGarrett Wollman.\" only)
4840761cb29SGarrett Wollman.\" This specifies a trailing number of bytes for a received
4850761cb29SGarrett Wollman.\" .Tn NSAP
4860761cb29SGarrett Wollman.\" used for local identification, the remaining leading part of which is
4870761cb29SGarrett Wollman.\" taken to be the
4880761cb29SGarrett Wollman.\" .Tn NET
4890761cb29SGarrett Wollman.\" (Network Entity Title).
4900761cb29SGarrett Wollman.\" The default value is 1, which is conformant to US
4910761cb29SGarrett Wollman.\" .Tn GOSIP .
4920761cb29SGarrett Wollman.\" When an ISO address is set in an ifconfig command,
4930761cb29SGarrett Wollman.\" it is really the
4940761cb29SGarrett Wollman.\" .Tn NSAP
4950761cb29SGarrett Wollman.\" which is being specified.
4960761cb29SGarrett Wollman.\" For example, in
4970761cb29SGarrett Wollman.\" .Tn US GOSIP ,
4980761cb29SGarrett Wollman.\" 20 hex digits should be
4990761cb29SGarrett Wollman.\" specified in the
5000761cb29SGarrett Wollman.\" .Tn ISO NSAP
5010761cb29SGarrett Wollman.\" to be assigned to the interface.
5020761cb29SGarrett Wollman.\" There is some evidence that a number different from 1 may be useful
5030761cb29SGarrett Wollman.\" for
5040761cb29SGarrett Wollman.\" .Tn AFI
5050761cb29SGarrett Wollman.\" 37 type addresses.
506b112c02bSBen Smithurst.It Cm range Ar netrange
50791badbbeSJulian ElischerUnder appletalk, set the interface to respond to a
50823dafeacSBen Smithurst.Ar netrange
50923dafeacSBen Smithurstof the form
51023dafeacSBen Smithurst.Ar startnet Ns - Ns Ar endnet .
511ef8f7ac9SSheldon HearnAppletalk uses this scheme instead of
512e333b944SPhilippe Charniernetmasks though
513f050f700SMike Pritchard.Fx
514e333b944SPhilippe Charnierimplements it internally as a set of netmasks.
515d6d1cb48SRobert Watson.It Cm remove
516d0353b83SRuslan ErmilovAnother name for the
517d0353b83SRuslan Ermilov.Fl alias
518d0353b83SRuslan Ermilovparameter.
519d0353b83SRuslan ErmilovIntroduced for compatibility
520b09b4efbSRuslan Ermilovwith
521b09b4efbSRuslan Ermilov.Bsx .
52291badbbeSJulian Elischer.It Cm phase
52391badbbeSJulian ElischerThe argument following this specifies the version (phase) of the
524ef8f7ac9SSheldon HearnAppletalk network attached to the interface.
525ef8f7ac9SSheldon HearnValues of 1 or 2 are permitted.
526b09b4efbSRuslan Ermilov.Sm off
527b09b4efbSRuslan Ermilov.It Cm link Op Cm 0 No - Cm 2
528b09b4efbSRuslan Ermilov.Sm on
5298fae3551SRodney W. GrimesEnable special processing of the link level of the interface.
5308fae3551SRodney W. GrimesThese three options are interface specific in actual effect, however,
531ef8f7ac9SSheldon Hearnthey are in general used to select special modes of operation.
532ef8f7ac9SSheldon HearnAn example
533b5436146SPeter Wemmof this is to enable SLIP compression, or to select the connector type
534b09b4efbSRuslan Ermilovfor some Ethernet cards.
535b09b4efbSRuslan ErmilovRefer to the man page for the specific driver
536b5436146SPeter Wemmfor more information.
537b09b4efbSRuslan Ermilov.Sm off
538b09b4efbSRuslan Ermilov.It Fl link Op Cm 0 No - Cm 2
539b09b4efbSRuslan Ermilov.Sm on
5408fae3551SRodney W. GrimesDisable special processing at the link level with the specified interface.
541afbe3a0fSPoul-Henning Kamp.It Cm monitor
542afbe3a0fSPoul-Henning KampPut the interface in monitor mode.
5433706a3a8SRuslan ErmilovNo packets are transmitted, and received packets are discarded after
544afbe3a0fSPoul-Henning Kamp.Xr bpf 4
545afbe3a0fSPoul-Henning Kampprocessing.
546afbe3a0fSPoul-Henning Kamp.It Fl monitor
547afbe3a0fSPoul-Henning KampTake the interface out of monitor mode.
5488fae3551SRodney W. Grimes.It Cm up
549e333b944SPhilippe CharnierMark an interface
550e333b944SPhilippe Charnier.Dq up .
551e333b944SPhilippe CharnierThis may be used to enable an interface after an
552b09b4efbSRuslan Ermilov.Dq Nm Cm down .
5538fae3551SRodney W. GrimesIt happens automatically when setting the first address on an interface.
5548fae3551SRodney W. GrimesIf the interface was reset when previously marked down,
5558fae3551SRodney W. Grimesthe hardware will be re-initialized.
5565faf8dcbSSam Leffler.El
5575faf8dcbSSam Leffler.Pp
5585faf8dcbSSam LefflerThe following parameters are specific to IEEE 802.11 wireless interfaces:
5595faf8dcbSSam Leffler.Bl -tag -width indent
5605faf8dcbSSam Leffler.It Cm apbridge
56121414470SRuslan ErmilovWhen operating as an access point, pass packets between
5625faf8dcbSSam Lefflerwireless clients directly (default).
5635faf8dcbSSam LefflerTo instead let them pass up through the
56421414470SRuslan Ermilovsystem and be forwarded using some other mechanism, use
56521414470SRuslan Ermilov.Fl apbridge .
5665faf8dcbSSam LefflerDisabling the internal bridging
5675faf8dcbSSam Leffleris useful when traffic is to be processed with
5685faf8dcbSSam Lefflerpacket filtering.
569419d8080SPoul-Henning Kamp.It Cm authmode Ar mode
5705faf8dcbSSam LefflerSet the desired authentication mode in infrastructure mode.
571b09b4efbSRuslan ErmilovNot all adaptors support all modes.
572b09b4efbSRuslan ErmilovThe set of
573419d8080SPoul-Henning Kampvalid modes is
5744e9e907dSRuslan Ermilov.Cm none , open , shared
57521414470SRuslan Ermilov(shared key),
5764e9e907dSRuslan Ermilov.Cm 8021x
57721414470SRuslan Ermilov(IEEE 802.1x),
578aeffcba3SSam Lefflerand
5794e9e907dSRuslan Ermilov.Cm wpa
58021414470SRuslan Ermilov(IEEE WPA/WPA2/802.11i).
5815faf8dcbSSam LefflerThe
5824e9e907dSRuslan Ermilov.Cm 8021x
583419d8080SPoul-Henning Kampand
5844e9e907dSRuslan Ermilov.Cm wpa
585aeffcba3SSam Lefflermodes are only useful when using an authentication service
5865faf8dcbSSam Leffler(a supplicant for client operation or an authenticator when
5875faf8dcbSSam Leffleroperating as an access point).
588419d8080SPoul-Henning KampModes are case insensitive.
589aeffcba3SSam Leffler.It Cm bintval Ar interval
590aeffcba3SSam LefflerSet the interval at which beacon frames are sent when operating in
591aeffcba3SSam Lefflerad-hoc or ap mode.
592aeffcba3SSam LefflerThe
593aeffcba3SSam Leffler.Ar interval
594aeffcba3SSam Lefflerparameter is specified in TU's (1/1024 msecs).
595aeffcba3SSam LefflerBy default beacon frames are transmitted every 100 TU's.
596d7ccef33SSam Leffler.It Cm bmissthreshold Ar count
597d7ccef33SSam LefflerSet the number of consecutive missed beacons at which the station
598d7ccef33SSam Lefflerwill attempt to roam (i.e. search for a new access point).
599d7ccef33SSam LefflerThe
600d7ccef33SSam Leffler.Ar count
601d7ccef33SSam Lefflerparameter is must be in the range 1 to 255; though the
602d7ccef33SSam Lefflerupper bound may be reduced according to device capabilities..
603d7ccef33SSam LefflerThe default threshold is 7 consecutive missed beacons; but
604d7ccef33SSam Lefflerthis may be overridden by the device driver.
605d7ccef33SSam LefflerAnother name for the
606d7ccef33SSam Leffler.Cm bmissthreshold
607d7ccef33SSam Lefflerparameter is
608d7ccef33SSam Leffler.Cm bmiss .
6095faf8dcbSSam Leffler.It Cm bssid Ar address
6105faf8dcbSSam LefflerSpecify the MAC address of the access point to use when operating
6115faf8dcbSSam Leffleras a station in a BSS network.
6125faf8dcbSSam LefflerThis overrides any automatic selection done by the system.
61321414470SRuslan ErmilovTo disable a previously selected access point, supply
6144e9e907dSRuslan Ermilov.Cm any , none ,
6155faf8dcbSSam Leffleror
6164e9e907dSRuslan Ermilov.Cm -
6175faf8dcbSSam Lefflerfor the address.
6185faf8dcbSSam LefflerThis option is useful when more than one access points have the same SSID.
6195faf8dcbSSam LefflerAnother name for the
6205faf8dcbSSam Leffler.Cm bssid
6215faf8dcbSSam Lefflerparameter is
6225faf8dcbSSam Leffler.Cm ap .
62329d58c71SSam Leffler.It Cm burst
62429d58c71SSam LefflerEnable packet bursting.
62529d58c71SSam LefflerPacket bursting is a transmission technique whereby the wireless
62629d58c71SSam Lefflermedium is acquired once to send multiple frames and the interframe
62729d58c71SSam Lefflerspacing is reduced.
62829d58c71SSam LefflerThis technique can significantly increase throughput by reducing
62929d58c71SSam Lefflertransmission overhead.
63029d58c71SSam LefflerPacket bursting is supported by the 802.11e QoS specification
63129d58c71SSam Lefflerand some devices that do not support QoS may still be capable.
63229d58c71SSam LefflerBy default packet bursting is enabled if a device is capable
63329d58c71SSam Lefflerof doing it.
63429d58c71SSam LefflerTo disable packet bursting, use
63529d58c71SSam Leffler.Fl burst .
6365faf8dcbSSam Leffler.It Cm chanlist Ar channels
6375faf8dcbSSam LefflerSet the desired channels to use when scanning for access
6385faf8dcbSSam Lefflerpoints, neighbors in an IBSS network, or looking for unoccupied
6395faf8dcbSSam Lefflerchannels when operating as an access point.
6405faf8dcbSSam LefflerThe set of channels is specified as a comma-separated list with
64121414470SRuslan Ermiloveach element in the list representing either a single channel number or a range
6425faf8dcbSSam Lefflerof the form
6435faf8dcbSSam Leffler.Dq Li a-b .
6445faf8dcbSSam LefflerChannel numbers must be in the range 1 to 255 and be permissible
6455faf8dcbSSam Leffleraccording to the operating characteristics of the device.
6465faf8dcbSSam Leffler.It Cm channel Ar number
6475faf8dcbSSam LefflerSet a single desired channel.
6485faf8dcbSSam LefflerChannels range from 1 to 255, but the exact selection available
6495faf8dcbSSam Lefflerdepends on the region your adaptor was manufactured for.
6505faf8dcbSSam LefflerSetting
6515faf8dcbSSam Lefflerthe channel to
6524e9e907dSRuslan Ermilov.Li 0 ,
6534e9e907dSRuslan Ermilov.Cm any ,
6545faf8dcbSSam Leffleror
6554e9e907dSRuslan Ermilov.Cm -
6565faf8dcbSSam Lefflerwill give you the default for your adaptor.
657aeffcba3SSam LefflerSome
6585faf8dcbSSam Leffleradaptors ignore this setting unless you are in ad-hoc mode.
6595faf8dcbSSam LefflerAlternatively the frequency, in megahertz, may be specified
6605faf8dcbSSam Lefflerinstead of the channel number.
6614e0a8f0dSSam Leffler.It Cm deftxkey Ar index
6624e0a8f0dSSam LefflerSet the default key to use for transmission.
6634e0a8f0dSSam LefflerTypically this is only set when using WEP encryption.
6644e0a8f0dSSam LefflerThe
6654e0a8f0dSSam Leffler.Cm weptxkey
6664e0a8f0dSSam Leffleris an alias for this request; it is provided for backwards compatibility.
667aeffcba3SSam Leffler.It Cm dtimperiod Ar period
668aeffcba3SSam LefflerSet the
669aeffcba3SSam LefflerDTIM
670aeffcba3SSam Lefflerperiod for transmitting buffered multicast data frames when
671aeffcba3SSam Leffleroperating in ap mode.
672aeffcba3SSam LefflerThe
673aeffcba3SSam Leffler.Ar period
674aeffcba3SSam Lefflerspecifies the number of beacon intervals between DTIM
675aeffcba3SSam Lefflerand must be in the range 1 to 15.
6764e9e907dSRuslan ErmilovBy default DTIM is 1 (i.e., DTIM occurs at each beacon).
677aeffcba3SSam Leffler.It Cm fragthreshold Ar length
678aeffcba3SSam LefflerSet the threshold for which transmitted frames are broken into fragments.
679aeffcba3SSam LefflerThe
680aeffcba3SSam Leffler.Ar length
681aeffcba3SSam Lefflerargument is the frame size in bytes and must be in the range 256 to 2346.
682aeffcba3SSam LefflerSetting
683aeffcba3SSam Leffler.Ar length
684aeffcba3SSam Lefflerto
6854e9e907dSRuslan Ermilov.Li 2346 ,
6864e9e907dSRuslan Ermilov.Cm any ,
687aeffcba3SSam Leffleror
6884e9e907dSRuslan Ermilov.Cm -
689aeffcba3SSam Lefflerdisables transmit fragmentation.
690aeffcba3SSam LefflerNot all adaptors honor the fragmentation threshold.
6915faf8dcbSSam Leffler.It Cm hidessid
69221414470SRuslan ErmilovWhen operating as an access point, do not broadcast the SSID
693aeffcba3SSam Lefflerin beacon frames or respond to probe request frames unless
6944e9e907dSRuslan Ermilovthey are directed to the ap (i.e., they include the ap's SSID).
695aeffcba3SSam LefflerBy default, the SSID is included in beacon frames and
696aeffcba3SSam Lefflerundirected probe request frames are answered.
697aeffcba3SSam LefflerTo re-enable the broadcast of the SSID etc., use
6985faf8dcbSSam Leffler.Fl hidessid .
6994e9e907dSRuslan Ermilov.It Cm list active
700aeffcba3SSam LefflerDisplay the list of channels available for use taking into account
701aeffcba3SSam Lefflerany restrictions set with the
7024e9e907dSRuslan Ermilov.Cm chanlist
703451486b5SSam Lefflerdirective.
704451486b5SSam LefflerSee the description of
705451486b5SSam Leffler.Cm list chan
706451486b5SSam Lefflerfor more information.
7074e9e907dSRuslan Ermilov.It Cm list caps
708aeffcba3SSam LefflerDisplay the adaptor's capabilities, including the operating
709aeffcba3SSam Lefflermodes supported.
7104e9e907dSRuslan Ermilov.It Cm list chan
711aeffcba3SSam LefflerDisplay the list of channels available for use.
712451486b5SSam LefflerChannels are shown with their IEEE channel number, equivalent
713451486b5SSam Lefflerfrequency, and usage modes.
714451486b5SSam LefflerChannels identified as
715451486b5SSam Leffler.Ql 11g
716451486b5SSam Lefflerare also usable in
717451486b5SSam Leffler.Ql 11b
718451486b5SSam Lefflermode.
719451486b5SSam LefflerChannels identified as
720451486b5SSam Leffler.Ql 11a Turbo
721451486b5SSam Lefflermay be used only for Atheros' Static Turbo mode
722451486b5SSam Leffler.Pq specified with Cm mediaopt turbo .
723451486b5SSam LefflerChannels marked with a
724451486b5SSam Leffler.Ql *
725451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned.
726451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until
727451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication;
728451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating
729451486b5SSam Leffleron the channel.
7304e9e907dSRuslan Ermilov.Cm list freq
731aeffcba3SSam Leffleris another way of requesting this information.
7324e9e907dSRuslan Ermilov.It Cm list mac
73329f0e929SSam LefflerDisplay the current MAC Access Control List state.
73429f0e929SSam LefflerEach address is prefixed with a character that indicates the
73529f0e929SSam Lefflercurrent policy applied to it:
7364e9e907dSRuslan Ermilov.Ql +
73729f0e929SSam Lefflerindicates the address is allowed access,
7384e9e907dSRuslan Ermilov.Ql -
73929f0e929SSam Lefflerindicates the address is denied access,
7404e9e907dSRuslan Ermilov.Ql *
74129f0e929SSam Lefflerindicates the address is present but the current policy open
7424e9e907dSRuslan Ermilov(so the ACL is not consulted).
7434e9e907dSRuslan Ermilov.It Cm list scan
744aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors
745aeffcba3SSam Lefflerlocated in the vicinity.
746aeffcba3SSam LefflerThis information may be updated automatically by the adaptor
747aeffcba3SSam Lefflerand/or with a
7484e9e907dSRuslan Ermilov.Cm scan
749aeffcba3SSam Lefflerrequest.
7504e9e907dSRuslan Ermilov.Cm list ap
751aeffcba3SSam Leffleris another way of requesting this information.
7524e9e907dSRuslan Ermilov.It Cm list sta
753aeffcba3SSam LefflerWhen operating as an access point display the stations that are
754aeffcba3SSam Lefflercurrently associated.
755aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as
756aeffcba3SSam Lefflerneighbors in the IBSS.
75797d7b28eSSam LefflerCapabilities advertised by the stations are described under
75897d7b28eSSam Lefflerthe
75997d7b28eSSam Leffler.Cm scan
76097d7b28eSSam Lefflerrequest.
76197d7b28eSSam LefflerDepending on the capabilities of the stations the following
76297d7b28eSSam Lefflerflags can be included in the output:
76397d7b28eSSam Leffler.Bl -tag -width 3n
76497d7b28eSSam Leffler.It Li A
76597d7b28eSSam LefflerAuthorized.
76697d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames.
76797d7b28eSSam Leffler.It Li E
76897d7b28eSSam LefflerExtended Rate Phy (ERP).
76997d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network
77097d7b28eSSam Lefflerusing extended transmit rates.
77197d7b28eSSam Leffler.It Li P
77297d7b28eSSam LefflerPower Save.
77397d7b28eSSam LefflerIndicates that the station is operating in power save mode.
77497d7b28eSSam Leffler.It Li Q
77597d7b28eSSam LefflerQuality of Service (QoS).
77697d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for
77797d7b28eSSam Lefflerdata frame.
77897d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled.
77997d7b28eSSam Leffler.El
7804e9e907dSRuslan Ermilov.It Cm list wme
781aeffcba3SSam LefflerDisplay the current parameters to use when operating in WME mode.
782aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be
783aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful
784aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled.
785aeffcba3SSam LefflerSee the description of the
7864e9e907dSRuslan Ermilov.Cm wme
787aeffcba3SSam Lefflerdirective for information on the various parameters.
788439b4702SSam Leffler.It Cm mcastrate Ar rate
789439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames.
790439b4702SSam LefflerRates are specified as megabits/second in decimal; e.g. 5.5 for 5.5 Mb/s.
791439b4702SSam LefflerThis rate should be valid for the current operating conditions;
792439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an
793439b4702SSam Lefflerappropriate rate.
794419d8080SPoul-Henning Kamp.It Cm powersave
7955faf8dcbSSam LefflerEnable powersave operation.
79621414470SRuslan ErmilovWhen operating as a client, the station will conserve power by
7975faf8dcbSSam Lefflerperiodically turning off the radio and listening for
7985faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting.
7995faf8dcbSSam LefflerThe station must then retrieve the packets.
80021414470SRuslan ErmilovWhen operating as an access point, the station must honor power
8015faf8dcbSSam Lefflersave operation of associated clients.
8025faf8dcbSSam LefflerNot all devices support power save operation, either as a client
8035faf8dcbSSam Leffleror as an access point.
8045faf8dcbSSam LefflerUse
8055faf8dcbSSam Leffler.Fl powersave
8065faf8dcbSSam Lefflerto disable powersave operation.
807419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep
8085faf8dcbSSam LefflerSet the desired max powersave sleep time in milliseconds.
809a6b03f42SSam Leffler.It Cm protmode Ar technique
8105faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified
811d04b5dfeSRuslan Ermilov.Ar technique
812d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network.
813a6b03f42SSam LefflerThe set of valid techniques is
8144e9e907dSRuslan Ermilov.Cm off , cts
815a6b03f42SSam Leffler(CTS to self),
816a6b03f42SSam Lefflerand
8174e9e907dSRuslan Ermilov.Cm rtscts
818a6b03f42SSam Leffler(RTS/CTS).
819a6b03f42SSam LefflerTechnique names are case insensitive.
820fa56f745SSam Leffler.It Cm pureg
821fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only
822fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not
823fa56f745SSam Lefflerpermitted to associate).
824fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use
825fa56f745SSam Leffler.Fl pureg .
8265faf8dcbSSam Leffler.It Cm roaming Ar mode
8275faf8dcbSSam LefflerWhen operating as a station, control how the system will
8285faf8dcbSSam Lefflerbehave when communication with the current access point
8295faf8dcbSSam Leffleris broken.
83021414470SRuslan ErmilovThe
83121414470SRuslan Ermilov.Ar mode
83221414470SRuslan Ermilovargument may be one of
8334e9e907dSRuslan Ermilov.Cm device
8345faf8dcbSSam Leffler(leave it to the hardware device to decide),
8354e9e907dSRuslan Ermilov.Cm auto
83621414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate),
8374e9e907dSRuslan Ermilov.Cm manual
8385faf8dcbSSam Leffler(do nothing until explicitly instructed).
83921414470SRuslan ErmilovBy default, the device is left to handle this if it is
84021414470SRuslan Ermilovcapable; otherwise, the operating system will automatically
8415faf8dcbSSam Lefflerattempt to reestablish communication.
8425faf8dcbSSam LefflerManual mode is mostly useful when an application wants to
8435faf8dcbSSam Lefflercontrol the selection of an access point.
844a6b03f42SSam Leffler.It Cm rtsthreshold Ar length
8455faf8dcbSSam LefflerSet the threshold for which
846a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an
847a6b03f42SSam LefflerRTS
848a6b03f42SSam Lefflercontrol frame.
849d04b5dfeSRuslan ErmilovThe
850d04b5dfeSRuslan Ermilov.Ar length
851d04b5dfeSRuslan Ermilovargument
852aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346.
853aeffcba3SSam LefflerSetting
854aeffcba3SSam Leffler.Ar length
855aeffcba3SSam Lefflerto
8564e9e907dSRuslan Ermilov.Li 2346 ,
8574e9e907dSRuslan Ermilov.Cm any ,
858aeffcba3SSam Leffleror
8594e9e907dSRuslan Ermilov.Cm -
860aeffcba3SSam Lefflerdisables transmission of RTS frames.
861a6b03f42SSam LefflerNot all adaptors support setting the RTS threshold.
8625faf8dcbSSam Leffler.It Cm ssid Ar ssid
8635faf8dcbSSam LefflerSet the desired Service Set Identifier (aka network name).
8645faf8dcbSSam LefflerThe SSID is a string up to 32 characters
8655faf8dcbSSam Lefflerin length and may be specified as either a normal string or in
866e7951bdfSChristian Bruefferhexadecimal when preceded by
8675faf8dcbSSam Leffler.Ql 0x .
8685faf8dcbSSam LefflerAdditionally, the SSID may be cleared by setting it to
8695faf8dcbSSam Leffler.Ql - .
8705faf8dcbSSam Leffler.It Cm scan
871aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and
872aeffcba3SSam Lefflerdisplay all stations found.
873aeffcba3SSam LefflerOnly the super-user can initiate a scan.
8741a44eb07SChristian BruefferDepending on the capabilities of the APs, the following
8751a44eb07SChristian Bruefferflags can be included in the output:
876ef95d02dSChristian Brueffer.Bl -tag -width 3n
877df755936SScott Long.It Li A
878df755936SScott LongChannel Agility.
879df755936SScott LongIndicates that the station support channel hopping as described by the
880df755936SScott LongIEEE 802.11b specification.
881df755936SScott Long.It Li B
882df755936SScott LongPacket Binary Convolution Code (PBCC).
883df755936SScott LongA modulation alternative to the standard OFDM method.
884df755936SScott Long.It Dv C
885df755936SScott LongPollreq
886df755936SScott Long.It Dv c
887df755936SScott LongPollable
888df755936SScott Long.It Dv D
889df755936SScott LongDirect Sequence Spread Spectrum (DSSSOFDM).
890df755936SScott LongIndicates the the station supports DSSS modulation.
891ef95d02dSChristian Brueffer.It Li E
8921a44eb07SChristian BruefferExtended Service Set (ESS).
8931a44eb07SChristian BruefferIndicates that the station is part of an infrastructure network
8941a44eb07SChristian Brueffer(in contrast to an IBSS/ad-hoc network).
895ef95d02dSChristian Brueffer.It Li I
8961a44eb07SChristian BruefferIBSS/ad-hoc network.
8971a44eb07SChristian BruefferIndicates that the station is part of an ad-hoc network
8981a44eb07SChristian Brueffer(in contrast to an ESS network).
899ef95d02dSChristian Brueffer.It Li P
9001a44eb07SChristian BruefferPrivacy.
901aeffcba3SSam LefflerData confidentiality is required for all data frames
9021a44eb07SChristian Bruefferexchanged within the BSS.
9031a44eb07SChristian BruefferThis means that this BSS requires the station to
9041a44eb07SChristian Bruefferuse cryptographic means such as WEP, TKIP or AES-CCMP to
9051a44eb07SChristian Bruefferencrypt/decrypt data frames being exchanged with others.
906df755936SScott Long.It Dv R
907df755936SScott LongRobust Security Network (RSN).
908df755936SScott LongIndicates that the station supports the IEEE 802.11i authentication
909df755936SScott Longand key management protocol.
910ef95d02dSChristian Brueffer.It Li S
9111a44eb07SChristian BruefferShort Preamble.
9121a44eb07SChristian BruefferIndicates that the network is using short preambles (defined
9131a44eb07SChristian Bruefferin 802.11b High Rate/DSSS PHY, short preamble utilizes a
9141a44eb07SChristian Brueffer56 bit sync field in contrast to a 128 bit field used in long
9151a44eb07SChristian Bruefferpreamble mode).
916ef95d02dSChristian Brueffer.It Li s
9171a44eb07SChristian BruefferShort slot time.
918aeffcba3SSam LefflerIndicates that the network is using a short slot time.
9191a44eb07SChristian Brueffer.El
920aeffcba3SSam Leffler.Pp
921aeffcba3SSam LefflerThe
9224e9e907dSRuslan Ermilov.Cm list scan
923aeffcba3SSam Lefflerrequest can be used to show recent scan results without
924aeffcba3SSam Lefflerinitiating a new scan.
9255faf8dcbSSam Leffler.It Cm stationname Ar name
9265faf8dcbSSam LefflerSet the name of this station.
9275faf8dcbSSam LefflerIt appears that the station name is not really part of the IEEE 802.11
9285faf8dcbSSam Lefflerprotocol though all interfaces seem to support it.
9295faf8dcbSSam LefflerAs such it only
9305faf8dcbSSam Lefflerseems to be meaningful to identical or virtually identical equipment.
9315faf8dcbSSam LefflerSetting the station name is identical in syntax to setting the SSID.
932a6b03f42SSam Leffler.It Cm txpower Ar power
9335faf8dcbSSam LefflerSet the power used to transmit frames.
934d04b5dfeSRuslan ErmilovThe
935d04b5dfeSRuslan Ermilov.Ar power
936d04b5dfeSRuslan Ermilovargument
937a6b03f42SSam Leffleris a unitless value in the range 0 to 100 that is interpreted
938a6b03f42SSam Lefflerby drivers to derive a device-specific value.
939a6b03f42SSam LefflerOut of range values are truncated.
940a6b03f42SSam LefflerTypically only a few discreet power settings are available and
941a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value.
942a6b03f42SSam LefflerNot all adaptors support changing the transmit power.
943419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode
9445faf8dcbSSam LefflerSet the desired WEP mode.
945b09b4efbSRuslan ErmilovNot all adaptors support all modes.
946b09b4efbSRuslan ErmilovThe set of valid modes is
9474e9e907dSRuslan Ermilov.Cm off , on ,
948419d8080SPoul-Henning Kampand
9494e9e907dSRuslan Ermilov.Cm mixed .
950d04b5dfeSRuslan ErmilovThe
9514e9e907dSRuslan Ermilov.Cm mixed
952419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access
953b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic.
954b09b4efbSRuslan ErmilovOn these adaptors,
9554e9e907dSRuslan Ermilov.Cm on
956b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections.
957b09b4efbSRuslan ErmilovOn other adaptors,
9584e9e907dSRuslan Ermilov.Cm on
959419d8080SPoul-Henning Kampis generally another name for
9604e9e907dSRuslan Ermilov.Cm mixed .
961419d8080SPoul-Henning KampModes are case insensitive.
962419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index
9635faf8dcbSSam LefflerSet the WEP key to be used for transmission.
9644e0a8f0dSSam LefflerThis is the same as setting the default transmission key with
9654e0a8f0dSSam Leffler.Cm deftxkey .
966b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
9675faf8dcbSSam LefflerSet the selected WEP key.
968b09b4efbSRuslan ErmilovIf an
969419d8080SPoul-Henning Kamp.Ar index
970b09b4efbSRuslan Ermilovis not given, key 1 is set.
971b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13
972419d8080SPoul-Henning Kampcharacters (40 or 104 bits) depending of the local network and the
973b09b4efbSRuslan Ermilovcapabilities of the adaptor.
974b09b4efbSRuslan ErmilovIt may be specified either as a plain
975e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by
976b09b4efbSRuslan Ermilov.Ql 0x .
977d8f2e345SWarner LoshFor maximum portability, hex keys are recommended;
978d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific.
9793706a3a8SRuslan ErmilovIn particular, the
9803706a3a8SRuslan Ermilov.Tn Windows
9813706a3a8SRuslan Ermilovdrivers do this mapping differently to
982a61d9c47SRuslan Ermilov.Fx .
983419d8080SPoul-Henning KampA key may be cleared by setting it to
984b09b4efbSRuslan Ermilov.Ql - .
985b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys.
986b94231daSDima DorfmanSome adaptors support more than four keys.
987b09b4efbSRuslan ErmilovIf that is the case, then the first four keys
988419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor
989419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM.
9905faf8dcbSSam Leffler.It Cm wme
991aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available,
9925faf8dcbSSam Lefflerfor the specified interface.
9935faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the
9945faf8dcbSSam Lefflerefficient communication of realtime and multimedia data.
99521414470SRuslan ErmilovTo disable WME support, use
9965faf8dcbSSam Leffler.Fl wme .
997aeffcba3SSam Leffler.Pp
998aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use.
999aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and
1000aeffcba3SSam Lefflersplit into those that are used by a station when acting
1001aeffcba3SSam Leffleras an access point and those for client stations in the BSS.
1002aeffcba3SSam LefflerThe latter are received from the access point and may not be changed
1003aeffcba3SSam Leffler(at the station).
1004aeffcba3SSam LefflerThe following Access Categories are recognized:
1005aeffcba3SSam Leffler.Pp
10064e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact
1007aeffcba3SSam Leffler.It Cm AC_BE
10084e9e907dSRuslan Ermilov(or
10094e9e907dSRuslan Ermilov.Cm BE )
10104e9e907dSRuslan Ermilovbest effort delivery,
1011aeffcba3SSam Leffler.It Cm AC_BK
10124e9e907dSRuslan Ermilov(or
10134e9e907dSRuslan Ermilov.Cm BK )
10144e9e907dSRuslan Ermilovbackground traffic,
1015aeffcba3SSam Leffler.It Cm AC_VI
10164e9e907dSRuslan Ermilov(or
10174e9e907dSRuslan Ermilov.Cm VI )
10184e9e907dSRuslan Ermilovvideo traffic,
1019aeffcba3SSam Leffler.It Cm AC_VO
10204e9e907dSRuslan Ermilov(or
10214e9e907dSRuslan Ermilov.Cm VO )
10224e9e907dSRuslan Ermilovvoice traffic.
10235faf8dcbSSam Leffler.El
10245faf8dcbSSam Leffler.Pp
1025aeffcba3SSam LefflerAC parameters are case-insensitive.
1026aeffcba3SSam LefflerTraffic classification is done in the operating system using the
1027aeffcba3SSam Lefflervlan priority associated with data frames or the
1028aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames.
10294e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the
1030aeffcba3SSam LefflerBest Effort (BE) category.
1031aeffcba3SSam Leffler.Bl -tag -width indent
1032aeffcba3SSam Leffler.It Cm ack Ar ac
1033aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station;
1034aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station
1035aeffcba3SSam Lefflerrequire an ACK response from the receiving station.
1036aeffcba3SSam LefflerTo disable waiting for an ACK use
1037aeffcba3SSam Leffler.Fl ack .
1038aeffcba3SSam LefflerThis parameter is applied only to the local station.
1039aeffcba3SSam Leffler.It Cm acm Ar ac
1040aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism
1041aeffcba3SSam Lefflerfor transmissions by the local station.
1042aeffcba3SSam LefflerTo disable the ACM use
1043aeffcba3SSam Leffler.Fl acm .
1044aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1045aeffcba3SSam Lefflerthe setting received from the access point.
1046aeffcba3SSam LefflerNB: ACM is not supported right now.
1047aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count
1048aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS)
1049aeffcba3SSam Lefflerchannel access parameter to use for transmissions
1050aeffcba3SSam Lefflerby the local station.
1051aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1052aeffcba3SSam Lefflerthe setting received from the access point.
1053aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count
1054aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions
1055aeffcba3SSam Lefflerby the local station.
1056aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1057aeffcba3SSam Lefflerthe setting received from the access point.
1058aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count
1059aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions
1060aeffcba3SSam Lefflerby the local station.
1061aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1062aeffcba3SSam Lefflerthe setting received from the access point.
1063aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit
1064aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter
1065aeffcba3SSam Lefflerto use for transmissions by the local station.
1066aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station
1067aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium.
1068aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1069aeffcba3SSam Lefflerthe setting received from the access point.
1070aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count
1071aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS.
1072aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1073aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count
1074aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS.
1075aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1076aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count
1077aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS.
1078aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1079aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit
1080aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS.
1081aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1082aeffcba3SSam Leffler.El
1083aeffcba3SSam Leffler.El
1084aeffcba3SSam Leffler.Pp
1085aeffcba3SSam LefflerThe following parameters support an optional access control list
1086aeffcba3SSam Lefflerfeature available with some adaptors when operating in ap mode; see
1087aeffcba3SSam Leffler.Xr wlan_acl 4 .
1088aeffcba3SSam LefflerThis facility allows an access point to accept/deny association
1089aeffcba3SSam Lefflerrequests based on the MAC address of the station.
1090aeffcba3SSam LefflerNote that this feature does not significantly enhance security
1091aeffcba3SSam Leffleras MAC address spoofing is easy to do.
1092aeffcba3SSam Leffler.Bl -tag -width indent
1093aeffcba3SSam Leffler.It Cm mac:add Ar address
1094aeffcba3SSam LefflerAdd the specified MAC address to the database.
1095aeffcba3SSam LefflerDepending on the policy setting association requests from the
1096aeffcba3SSam Lefflerspecified station will be allowed or denied.
1097aeffcba3SSam Leffler.It Cm mac:allow
1098aeffcba3SSam LefflerSet the ACL policy to permit association only by
1099aeffcba3SSam Lefflerstations registered in the database.
1100e70fcb23SSam Leffler.It Cm mac:del Ar address
1101aeffcba3SSam LefflerDelete the specified MAC address from the database.
1102aeffcba3SSam Leffler.It Cm mac:deny
1103aeffcba3SSam LefflerSet the ACL policy to deny association only by
1104aeffcba3SSam Lefflerstations registered in the database.
1105e70fcb23SSam Leffler.It Cm mac:kick Ar address
110629f0e929SSam LefflerForce the specified station to be deauthenticated.
110729f0e929SSam LefflerThis typically is done to block a station after updating the
110829f0e929SSam Leffleraddress database.
1109aeffcba3SSam Leffler.It Cm mac:open
1110aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate.
1111aeffcba3SSam Leffler.It Cm mac:flush
1112aeffcba3SSam LefflerDelete all entries in the database.
1113aeffcba3SSam Leffler.El
1114aeffcba3SSam Leffler.Pp
1115aeffcba3SSam LefflerThe following parameters are for compatibility with other systems:
11165faf8dcbSSam Leffler.Bl -tag -width indent
11175faf8dcbSSam Leffler.It Cm nwid Ar ssid
11185faf8dcbSSam LefflerAnother name for the
11195faf8dcbSSam Leffler.Cm ssid
11205faf8dcbSSam Lefflerparameter.
11215faf8dcbSSam LefflerIncluded for
11225faf8dcbSSam Leffler.Nx
11235faf8dcbSSam Lefflercompatibility.
11245faf8dcbSSam Leffler.It Cm station Ar name
11255faf8dcbSSam LefflerAnother name for the
11265faf8dcbSSam Leffler.Cm stationname
11275faf8dcbSSam Lefflerparameter.
11285faf8dcbSSam LefflerIncluded for
11295faf8dcbSSam Leffler.Bsx
11305faf8dcbSSam Lefflercompatibility.
1131419d8080SPoul-Henning Kamp.It Cm wep
1132419d8080SPoul-Henning KampAnother way of saying
1133b09b4efbSRuslan Ermilov.Cm wepmode on .
1134b09b4efbSRuslan ErmilovIncluded for
1135b09b4efbSRuslan Ermilov.Bsx
1136b09b4efbSRuslan Ermilovcompatibility.
1137b09b4efbSRuslan Ermilov.It Fl wep
1138419d8080SPoul-Henning KampAnother way of saying
1139b09b4efbSRuslan Ermilov.Cm wepmode off .
1140b09b4efbSRuslan ErmilovIncluded for
1141b09b4efbSRuslan Ermilov.Bsx
1142b09b4efbSRuslan Ermilovcompatibility.
1143419d8080SPoul-Henning Kamp.It Cm nwkey key
1144419d8080SPoul-Henning KampAnother way of saying:
1145b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
1146b09b4efbSRuslan ErmilovIncluded for
1147b09b4efbSRuslan Ermilov.Nx
1148b09b4efbSRuslan Ermilovcompatibility.
1149b09b4efbSRuslan Ermilov.It Cm nwkey Xo
1150b09b4efbSRuslan Ermilov.Sm off
1151b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4
1152b09b4efbSRuslan Ermilov.Sm on
1153b09b4efbSRuslan Ermilov.Xc
1154419d8080SPoul-Henning KampAnother way of saying
1155b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
1156b09b4efbSRuslan ErmilovIncluded for
1157b09b4efbSRuslan Ermilov.Nx
1158b09b4efbSRuslan Ermilovcompatibility.
1159b09b4efbSRuslan Ermilov.It Fl nwkey
1160419d8080SPoul-Henning KampAnother way of saying
1161b09b4efbSRuslan Ermilov.Cm wepmode off .
1162b09b4efbSRuslan ErmilovIncluded for
1163b09b4efbSRuslan Ermilov.Nx
1164b09b4efbSRuslan Ermilovcompatibility.
11658fae3551SRodney W. Grimes.El
11668fae3551SRodney W. Grimes.Pp
11677afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces:
11687afc53b8SAndrew Thompson.Bl -tag -width indent
11697afc53b8SAndrew Thompson.It Cm addm Ar interface
11707afc53b8SAndrew ThompsonAdd the interface named by
11717afc53b8SAndrew Thompson.Ar interface
11727afc53b8SAndrew Thompsonas a member of the bridge.
11737afc53b8SAndrew ThompsonThe interface is put into promiscuous mode
11747afc53b8SAndrew Thompsonso that it can receive every packet sent on the network.
11757afc53b8SAndrew Thompson.It Cm deletem Ar interface
11767afc53b8SAndrew ThompsonRemove the interface named by
11777afc53b8SAndrew Thompson.Ar interface
11787afc53b8SAndrew Thompsonfrom the bridge.
11797afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when
11807afc53b8SAndrew Thompsonit is removed from the bridge.
11817afc53b8SAndrew Thompson.It Cm maxaddr Ar size
11827afc53b8SAndrew ThompsonSet the size of the bridge address cache to
11837afc53b8SAndrew Thompson.Ar size .
11847afc53b8SAndrew ThompsonThe default is 100 entries.
11857afc53b8SAndrew Thompson.It Cm timeout Ar seconds
11867afc53b8SAndrew ThompsonSet the timeout of address cache entries to
11877afc53b8SAndrew Thompson.Ar seconds
11887afc53b8SAndrew Thompsonseconds.
11897afc53b8SAndrew ThompsonIf
11907afc53b8SAndrew Thompson.Ar seconds
11917afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired.
11927afc53b8SAndrew ThompsonThe default is 240 seconds.
1193db7d6dc1SAndrew Thompson.It Cm addr
1194db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge.
1195db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address
1196db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to
1197db7d6dc1SAndrew Thompson.Ar interface-name .
1198db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the
1199db7d6dc1SAndrew Thompsonaddress is seen on a different interface.
12007afc53b8SAndrew Thompson.It Cm deladdr Ar address
12017afc53b8SAndrew ThompsonDelete
12027afc53b8SAndrew Thompson.Ar address
12037afc53b8SAndrew Thompsonfrom the address cache.
12047afc53b8SAndrew Thompson.It Cm flush
12057afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache.
12067afc53b8SAndrew Thompson.It Cm flushall
12077afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache.
12087afc53b8SAndrew Thompson.It Cm discover Ar interface
12097afc53b8SAndrew ThompsonMark an interface as a
12107afc53b8SAndrew Thompson.Dq discovering
12117afc53b8SAndrew Thompsoninterface.
12127afc53b8SAndrew ThompsonWhen the bridge has no address cache entry
12137afc53b8SAndrew Thompson(either dynamic or static)
12147afc53b8SAndrew Thompsonfor the destination address of a packet,
12157afc53b8SAndrew Thompsonthe bridge will forward the packet to all
12167afc53b8SAndrew Thompsonmember interfaces marked as
12177afc53b8SAndrew Thompson.Dq discovering .
12187afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12197afc53b8SAndrew Thompson.It Cm -discover Ar interface
12207afc53b8SAndrew ThompsonClear the
12217afc53b8SAndrew Thompson.Dq discovering
12227afc53b8SAndrew Thompsonattribute on a member interface.
12237afc53b8SAndrew ThompsonFor packets without the
12247afc53b8SAndrew Thompson.Dq discovering
12257afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast
12267afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address
12277afc53b8SAndrew Thompsonis known to be on the interface's segment.
12287afc53b8SAndrew Thompson.It Cm learn Ar interface
12297afc53b8SAndrew ThompsonMark an interface as a
12307afc53b8SAndrew Thompson.Dq learning
12317afc53b8SAndrew Thompsoninterface.
12327afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source
12337afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a
12347afc53b8SAndrew Thompsondestination address on the interface's segment.
12357afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12367afc53b8SAndrew Thompson.It Cm -learn Ar interface
12377afc53b8SAndrew ThompsonClear the
12387afc53b8SAndrew Thompson.Dq learning
12397afc53b8SAndrew Thompsonattribute on a member interface.
124091f6764eSAndrew Thompson.It Cm span Ar interface
124191f6764eSAndrew ThompsonAdd the interface named by
124291f6764eSAndrew Thompson.Ar interface
124391f6764eSAndrew Thompsonas a span port on the bridge.
124491f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge.
124591f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on
124691f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge.
124791f6764eSAndrew Thompson.It Cm -span Ar interface
124891f6764eSAndrew ThompsonDelete the interface named by
124991f6764eSAndrew Thompson.Ar interface
125091f6764eSAndrew Thompsonfrom the list of span ports of the bridge.
12517afc53b8SAndrew Thompson.It Cm stp Ar interface
12527afc53b8SAndrew ThompsonEnable Spanning Tree protocol on
12537afc53b8SAndrew Thompson.Ar interface .
12547afc53b8SAndrew ThompsonThe
12557afc53b8SAndrew Thompson.Xr if_bridge 4
12567afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP).
12577afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology.
12587afc53b8SAndrew Thompson.It Cm -stp Ar interface
12597afc53b8SAndrew ThompsonDisable Spanning Tree protocol on
12607afc53b8SAndrew Thompson.Ar interface .
12617afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12627afc53b8SAndrew Thompson.It Cm maxage Ar seconds
12637afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid.
12647afc53b8SAndrew ThompsonThe default is 20 seconds.
12657afc53b8SAndrew ThompsonThe minimum is 1 second and the maximum is 255 seconds.
12667afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds
12677afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding
12687afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled.
12697afc53b8SAndrew ThompsonThe default is 15 seconds.
12707afc53b8SAndrew ThompsonThe minimum is 1 second and the maximum is 255 seconds.
12717afc53b8SAndrew Thompson.It Cm hellotime Ar seconds
12727afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol
12737afc53b8SAndrew Thompsonconfiguration messages.
12747afc53b8SAndrew ThompsonThe default is 2 seconds.
12757afc53b8SAndrew ThompsonThe minimum is 1 second and the maximum is 255 seconds.
12767afc53b8SAndrew Thompson.It Cm priority Ar value
12777afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree.
12787afc53b8SAndrew ThompsonThe default is 32768.
12797afc53b8SAndrew ThompsonThe minimum is 0 and the maximum is 65536.
12807afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value
12817afc53b8SAndrew ThompsonSet the Spanning Tree priority of
12827afc53b8SAndrew Thompson.Ar interface
12837afc53b8SAndrew Thompsonto
12847afc53b8SAndrew Thompson.Ar value .
12857afc53b8SAndrew ThompsonThe default is 128.
12867afc53b8SAndrew ThompsonThe minimum is 0 and the maximum is 255.
12877afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value
12887afc53b8SAndrew ThompsonSet the Spanning Tree path cost of
12897afc53b8SAndrew Thompson.Ar interface
12907afc53b8SAndrew Thompsonto
12917afc53b8SAndrew Thompson.Ar value .
12927afc53b8SAndrew ThompsonThe default is 55.
12937afc53b8SAndrew ThompsonThe minimum is 0 and the maximum is 65535.
12947afc53b8SAndrew Thompson.El
12957afc53b8SAndrew Thompson.Pp
1296163653e8SYaroslav TykhiyThe following parameters are specific to IP tunnel interfaces,
1297163653e8SYaroslav Tykhiy.Xr gif 4 :
1298163653e8SYaroslav Tykhiy.Bl -tag -width indent
1299163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr
1300163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel
1301163653e8SYaroslav Tykhiyinterfaces.
1302163653e8SYaroslav TykhiyThe arguments
1303163653e8SYaroslav Tykhiy.Ar src_addr
1304163653e8SYaroslav Tykhiyand
1305163653e8SYaroslav Tykhiy.Ar dest_addr
1306163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating
1307163653e8SYaroslav TykhiyIPv4/IPv6 header.
13089e241c5eSYaroslav Tykhiy.It Fl tunnel
1309163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel
1310163653e8SYaroslav Tykhiyinterfaces previously configured with
1311163653e8SYaroslav Tykhiy.Cm tunnel .
13129e241c5eSYaroslav Tykhiy.It Cm deletetunnel
13139e241c5eSYaroslav TykhiyAnother name for the
13149e241c5eSYaroslav Tykhiy.Fl tunnel
13159e241c5eSYaroslav Tykhiyparameter.
1316163653e8SYaroslav Tykhiy.El
1317163653e8SYaroslav Tykhiy.Pp
1318163653e8SYaroslav TykhiyThe following parameters are specific to
1319ced42c6cSCeri Davies.Xr pfsync 4
1320ced42c6cSCeri Daviesinterfaces:
1321ced42c6cSCeri Davies.Bl -tag -width indent
1322ced42c6cSCeri Davies.It Cm maxupd Ar n
1323ced42c6cSCeri DaviesSet the maximum number of updates for a single state which
1324ced42c6cSCeri Daviescan be collapsed into one.
1325ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128.
1326ced42c6cSCeri Davies.El
1327ced42c6cSCeri Davies.Pp
1328ced42c6cSCeri DaviesThe following parameters are specific to
1329163653e8SYaroslav Tykhiy.Xr vlan 4
1330163653e8SYaroslav Tykhiyinterfaces:
1331163653e8SYaroslav Tykhiy.Bl -tag -width indent
1332163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag
1333163653e8SYaroslav TykhiySet the VLAN tag value to
1334163653e8SYaroslav Tykhiy.Ar vlan_tag .
1335163653e8SYaroslav TykhiyThis value is a 16-bit number which is used to create an 802.1Q
1336163653e8SYaroslav TykhiyVLAN header for packets sent from the
1337163653e8SYaroslav Tykhiy.Xr vlan 4
1338163653e8SYaroslav Tykhiyinterface.
1339163653e8SYaroslav TykhiyNote that
1340163653e8SYaroslav Tykhiy.Cm vlan
1341163653e8SYaroslav Tykhiyand
1342163653e8SYaroslav Tykhiy.Cm vlandev
1343163653e8SYaroslav Tykhiymust both be set at the same time.
1344163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface
1345163653e8SYaroslav TykhiyAssociate the physical interface
1346163653e8SYaroslav Tykhiy.Ar iface
1347163653e8SYaroslav Tykhiywith a
1348163653e8SYaroslav Tykhiy.Xr vlan 4
1349163653e8SYaroslav Tykhiyinterface.
1350163653e8SYaroslav TykhiyPackets transmitted through the
1351163653e8SYaroslav Tykhiy.Xr vlan 4
1352163653e8SYaroslav Tykhiyinterface will be
1353163653e8SYaroslav Tykhiydiverted to the specified physical interface
1354163653e8SYaroslav Tykhiy.Ar iface
1355163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation.
1356163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received
1357163653e8SYaroslav Tykhiyby the parent interface with the correct VLAN tag will be diverted to
1358163653e8SYaroslav Tykhiythe associated
1359163653e8SYaroslav Tykhiy.Xr vlan 4
1360163653e8SYaroslav Tykhiypseudo-interface.
1361163653e8SYaroslav TykhiyThe
1362163653e8SYaroslav Tykhiy.Xr vlan 4
1363163653e8SYaroslav Tykhiyinterface is assigned a
1364163653e8SYaroslav Tykhiycopy of the parent interface's flags and the parent's ethernet address.
1365163653e8SYaroslav TykhiyThe
1366163653e8SYaroslav Tykhiy.Cm vlandev
1367163653e8SYaroslav Tykhiyand
1368163653e8SYaroslav Tykhiy.Cm vlan
1369163653e8SYaroslav Tykhiymust both be set at the same time.
1370163653e8SYaroslav TykhiyIf the
1371163653e8SYaroslav Tykhiy.Xr vlan 4
1372163653e8SYaroslav Tykhiyinterface already has
1373163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail.
1374163653e8SYaroslav TykhiyTo
1375163653e8SYaroslav Tykhiychange the association to another physical interface, the existing
1376163653e8SYaroslav Tykhiyassociation must be cleared first.
1377163653e8SYaroslav Tykhiy.Pp
1378163653e8SYaroslav TykhiyNote: if the hardware tagging capability
1379163653e8SYaroslav Tykhiyis set on the parent interface, the
1380163653e8SYaroslav Tykhiy.Xr vlan 4
1381163653e8SYaroslav Tykhiypseudo
1382163653e8SYaroslav Tykhiyinterface's behavior changes:
1383163653e8SYaroslav Tykhiythe
1384163653e8SYaroslav Tykhiy.Xr vlan 4
1385163653e8SYaroslav Tykhiyinterface recognizes that the
1386163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its
1387163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from
1388163653e8SYaroslav Tykhiythe parent unaltered.
1389b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface
1390163653e8SYaroslav TykhiyIf the driver is a
1391163653e8SYaroslav Tykhiy.Xr vlan 4
1392b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it.
1393163653e8SYaroslav TykhiyThis breaks the link between the
1394163653e8SYaroslav Tykhiy.Xr vlan 4
1395163653e8SYaroslav Tykhiyinterface and its parent,
1396163653e8SYaroslav Tykhiyclears its VLAN tag, flags and its link address and shuts the interface down.
1397b0dcc11cSYaroslav TykhiyThe
1398b0dcc11cSYaroslav Tykhiy.Ar iface
1399b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated.
1400163653e8SYaroslav Tykhiy.El
1401163653e8SYaroslav Tykhiy.Pp
1402556c9a4cSJesus R. CamouThe following parameters are specific to
1403556c9a4cSJesus R. Camou.Xr carp 4
1404556c9a4cSJesus R. Camouinterfaces:
1405556c9a4cSJesus R. Camou.Bl -tag -width indent
1406556c9a4cSJesus R. Camou.It Cm advbase Ar seconds
1407556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds.
1408556c9a4cSJesus R. CamouThe acceptable values are 1 to 255.
1409556c9a4cSJesus R. CamouThe default value is 1.
1410556c9a4cSJesus R. Camou.\" The default value is
1411556c9a4cSJesus R. Camou.\" .Dv CARP_DFLTINTV .
1412556c9a4cSJesus R. Camou.It Cm advskew Ar interval
1413556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to
1414556c9a4cSJesus R. Camoumake one host advertise slower than another host.
1415556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds.
1416556c9a4cSJesus R. CamouThe acceptable values are 1 to 254.
1417556c9a4cSJesus R. CamouThe default value is 0.
1418556c9a4cSJesus R. Camou.It Cm pass Ar phrase
1419556c9a4cSJesus R. CamouSet the authentication key to
1420556c9a4cSJesus R. Camou.Ar phrase .
1421556c9a4cSJesus R. Camou.It Cm vhid Ar n
1422556c9a4cSJesus R. CamouSet the virtual host ID.
1423556c9a4cSJesus R. CamouThis is a required setting.
1424556c9a4cSJesus R. CamouAcceptable values are 1 to 255.
1425556c9a4cSJesus R. Camou.El
1426556c9a4cSJesus R. Camou.Pp
1427e1205e80SPhilippe CharnierThe
1428e1205e80SPhilippe Charnier.Nm
1429e1205e80SPhilippe Charnierutility displays the current configuration for a network interface
14308fae3551SRodney W. Grimeswhen no optional parameters are supplied.
14318fae3551SRodney W. GrimesIf a protocol family is specified,
1432e333b944SPhilippe Charnier.Nm
1433e333b944SPhilippe Charnierwill report only the details specific to that protocol family.
1434b5436146SPeter Wemm.Pp
1435ca299b1fSPoul-Henning KampIf the
1436ca299b1fSPoul-Henning Kamp.Fl m
1437b09b4efbSRuslan Ermilovflag is passed before an interface name,
1438b09b4efbSRuslan Ermilov.Nm
1439fc281403SRuslan Ermilovwill display the capability list and all
1440ca299b1fSPoul-Henning Kampof the supported media for the specified interface.
1441cfa1ca9dSYoshinobu InoueIf
1442cfa1ca9dSYoshinobu Inoue.Fl L
1443b112c02bSBen Smithurstflag is supplied, address lifetime is displayed for IPv6 addresses,
1444cfa1ca9dSYoshinobu Inoueas time offset string.
1445cfa1ca9dSYoshinobu Inoue.Pp
1446b5436146SPeter WemmOptionally, the
1447b5436146SPeter Wemm.Fl a
1448b09b4efbSRuslan Ermilovflag may be used instead of an interface name.
1449b09b4efbSRuslan ErmilovThis flag instructs
1450b5436146SPeter Wemm.Nm
1451b5436146SPeter Wemmto display information about all interfaces in the system.
1452e333b944SPhilippe CharnierThe
1453b5436146SPeter Wemm.Fl d
1454e333b944SPhilippe Charnierflag limits this to interfaces that are down, and
1455b5436146SPeter Wemm.Fl u
1456b5436146SPeter Wemmlimits this to interfaces that are up.
1457abc3361aSArchie CobbsWhen no arguments are given,
1458abc3361aSArchie Cobbs.Fl a
1459abc3361aSArchie Cobbsis implied.
1460b5436146SPeter Wemm.Pp
1461b5436146SPeter WemmThe
1462b5436146SPeter Wemm.Fl l
1463b5436146SPeter Wemmflag may be used to list all available interfaces on the system, with
1464b09b4efbSRuslan Ermilovno other additional information.
1465b09b4efbSRuslan ErmilovUse of this flag is mutually exclusive
1466b5436146SPeter Wemmwith all other flags and commands, except for
1467b5436146SPeter Wemm.Fl d
1468b5436146SPeter Wemm(only list interfaces that are down)
1469b5436146SPeter Wemmand
1470b5436146SPeter Wemm.Fl u
1471b5436146SPeter Wemm(only list interfaces that are up).
14728fae3551SRodney W. Grimes.Pp
14733e61dca0SBrooks DavisThe
14745faf8dcbSSam Leffler.Fl v
14755faf8dcbSSam Lefflerflag may be used to get more verbose status for an interface.
14765faf8dcbSSam Leffler.Pp
14775faf8dcbSSam LefflerThe
14783e61dca0SBrooks Davis.Fl C
14793e61dca0SBrooks Davisflag may be used to list all of the interface cloners available on
14803e61dca0SBrooks Davisthe system, with no additional information.
14813e61dca0SBrooks DavisUse of this flag is mutually exclusive with all other flags and commands.
14823e61dca0SBrooks Davis.Pp
1483b7eb47e2SRobert WatsonThe
1484b7eb47e2SRobert Watson.Fl k
1485b7eb47e2SRobert Watsonflag causes keying information for the interface, if available, to be
1486b7eb47e2SRobert Watsonprinted.
1487b7eb47e2SRobert WatsonFor example, the values of 802.11 WEP keys will be printed, if accessible to
1488b7eb47e2SRobert Watsonthe current user.
1489b7eb47e2SRobert WatsonThis information is not printed by default, as it may be considered
1490b7eb47e2SRobert Watsonsensitive.
1491b7eb47e2SRobert Watson.Pp
14928fae3551SRodney W. GrimesOnly the super-user may modify the configuration of a network interface.
1493920de530SPeter Wemm.Sh NOTES
1494920de530SPeter WemmThe media selection system is relatively new and only some drivers support
1495920de530SPeter Wemmit (or have need for it).
14968fae3551SRodney W. Grimes.Sh DIAGNOSTICS
149720d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the
14988fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and
14998fae3551SRodney W. Grimestried to alter an interface's configuration.
15008fae3551SRodney W. Grimes.Sh SEE ALSO
15018fae3551SRodney W. Grimes.Xr netstat 1 ,
15024029efa5SChristian Brueffer.Xr carp 4 ,
15038fae3551SRodney W. Grimes.Xr netintro 4 ,
1504ced42c6cSCeri Davies.Xr pfsync 4 ,
15054029efa5SChristian Brueffer.Xr polling 4 ,
1506588e78c5SYaroslav Tykhiy.Xr vlan 4 ,
1507b09b4efbSRuslan Ermilov.\" .Xr eon 5 ,
15088fae3551SRodney W. Grimes.Xr rc 8 ,
15094b32efacSBruce M Simpson.Xr routed 8 ,
15104b32efacSBruce M Simpson.Xr sysctl 8
15118fae3551SRodney W. Grimes.Sh HISTORY
15128fae3551SRodney W. GrimesThe
15138fae3551SRodney W. Grimes.Nm
1514e1205e80SPhilippe Charnierutility appeared in
15158fae3551SRodney W. Grimes.Bx 4.2 .
15166087df9eSRuslan Ermilov.Sh BUGS
15176087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each
15186087df9eSRuslan Ermilovinterface configured for IPv6.
15196087df9eSRuslan ErmilovNormally, such an address is automatically configured by the
15206087df9eSRuslan Ermilovkernel on each interface added to the system; this behaviour may
15216087df9eSRuslan Ermilovbe disabled by setting the sysctl MIB variable
15226087df9eSRuslan Ermilov.Va net.inet6.ip6.auto_linklocal
15236087df9eSRuslan Ermilovto 0.
15246087df9eSRuslan Ermilov.Pp
15256087df9eSRuslan ErmilovIf you delete such an address using
15266087df9eSRuslan Ermilov.Nm ,
15276087df9eSRuslan Ermilovthe kernel may act very oddly.
15286087df9eSRuslan ErmilovDo this at your own risk.
1529