xref: /freebsd/sbin/ifconfig/ifconfig.8 (revision 1dfd31abfb032ab564c0e9cd4927bc3b274f79c1)
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.\"
317a6f335eSTom Rhodes.Dd October 9, 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
43009a66bdaSJens Schweikhardtless favorable; metrics are counted as additional 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
5988266d476SRuslan Ermilovwill attempt to roam (i.e., search for a new access point).
599d7ccef33SSam LefflerThe
600d7ccef33SSam Leffler.Ar count
6018266d476SRuslan Ermilovparameter must be in the range 1 to 255; though the
6028266d476SRuslan Ermilovupper 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.
61809a66bdaSJens SchweikhardtThis option is useful when more than one access point uses 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
7228266d476SRuslan Ermilov(specified with
7238266d476SRuslan Ermilov. Cm mediaopt turbo ) .
724451486b5SSam LefflerChannels marked with a
725451486b5SSam Leffler.Ql *
726451486b5SSam Lefflerhave a regulatory constraint that they be passively scanned.
727451486b5SSam LefflerThis means a station is not permitted to transmit on the channel until
728451486b5SSam Lefflerit identifies the channel is being used for 802.11 communication;
729451486b5SSam Lefflertypically by hearing a beacon frame from an access point operating
730451486b5SSam Leffleron the channel.
7314e9e907dSRuslan Ermilov.Cm list freq
732aeffcba3SSam Leffleris another way of requesting this information.
7334e9e907dSRuslan Ermilov.It Cm list mac
73429f0e929SSam LefflerDisplay the current MAC Access Control List state.
73529f0e929SSam LefflerEach address is prefixed with a character that indicates the
73629f0e929SSam Lefflercurrent policy applied to it:
7374e9e907dSRuslan Ermilov.Ql +
73829f0e929SSam Lefflerindicates the address is allowed access,
7394e9e907dSRuslan Ermilov.Ql -
74029f0e929SSam Lefflerindicates the address is denied access,
7414e9e907dSRuslan Ermilov.Ql *
74229f0e929SSam Lefflerindicates the address is present but the current policy open
7434e9e907dSRuslan Ermilov(so the ACL is not consulted).
7444e9e907dSRuslan Ermilov.It Cm list scan
745aeffcba3SSam LefflerDisplay the access points and/or ad-hoc neighbors
746aeffcba3SSam Lefflerlocated in the vicinity.
7477a6f335eSTom RhodesThe
748dadff483SRuslan Ermilov.Fl v
7497a6f335eSTom Rhodesflag may be used to display long SSIDs.
750aeffcba3SSam LefflerThis information may be updated automatically by the adaptor
751aeffcba3SSam Lefflerand/or with a
7524e9e907dSRuslan Ermilov.Cm scan
753aeffcba3SSam Lefflerrequest.
7544e9e907dSRuslan Ermilov.Cm list ap
755aeffcba3SSam Leffleris another way of requesting this information.
7564e9e907dSRuslan Ermilov.It Cm list sta
757aeffcba3SSam LefflerWhen operating as an access point display the stations that are
758aeffcba3SSam Lefflercurrently associated.
759aeffcba3SSam LefflerWhen operating in ad-hoc mode display stations identified as
760aeffcba3SSam Lefflerneighbors in the IBSS.
76197d7b28eSSam LefflerCapabilities advertised by the stations are described under
76297d7b28eSSam Lefflerthe
76397d7b28eSSam Leffler.Cm scan
76497d7b28eSSam Lefflerrequest.
76597d7b28eSSam LefflerDepending on the capabilities of the stations the following
76697d7b28eSSam Lefflerflags can be included in the output:
76797d7b28eSSam Leffler.Bl -tag -width 3n
76897d7b28eSSam Leffler.It Li A
76997d7b28eSSam LefflerAuthorized.
77097d7b28eSSam LefflerIndicates that the station is permitted to send/receive data frames.
77197d7b28eSSam Leffler.It Li E
77297d7b28eSSam LefflerExtended Rate Phy (ERP).
77397d7b28eSSam LefflerIndicates that the station is operating in an 802.11g network
77497d7b28eSSam Lefflerusing extended transmit rates.
77597d7b28eSSam Leffler.It Li P
77697d7b28eSSam LefflerPower Save.
77797d7b28eSSam LefflerIndicates that the station is operating in power save mode.
77897d7b28eSSam Leffler.It Li Q
77997d7b28eSSam LefflerQuality of Service (QoS).
78097d7b28eSSam LefflerIndicates that the station is using QoS encapsulation for
78197d7b28eSSam Lefflerdata frame.
78297d7b28eSSam LefflerQoS encapsulation is enabled only when WME mode is enabled.
78397d7b28eSSam Leffler.El
7844e9e907dSRuslan Ermilov.It Cm list wme
785aeffcba3SSam LefflerDisplay the current parameters to use when operating in WME mode.
786aeffcba3SSam LefflerWhen WME mode is enabled for an adaptor this information will be
787aeffcba3SSam Lefflerdisplayed with the regular status; this command is mostly useful
788aeffcba3SSam Lefflerfor examining parameters when WME mode is disabled.
789aeffcba3SSam LefflerSee the description of the
7904e9e907dSRuslan Ermilov.Cm wme
791aeffcba3SSam Lefflerdirective for information on the various parameters.
792439b4702SSam Leffler.It Cm mcastrate Ar rate
793439b4702SSam LefflerSet the rate for transmitting multicast/broadcast frames.
7948266d476SRuslan ErmilovRates are specified as megabits/second in decimal; e.g.\& 5.5 for 5.5 Mb/s.
795439b4702SSam LefflerThis rate should be valid for the current operating conditions;
796439b4702SSam Lefflerif an invalid rate is specified drivers are free to chose an
797439b4702SSam Lefflerappropriate rate.
798419d8080SPoul-Henning Kamp.It Cm powersave
7995faf8dcbSSam LefflerEnable powersave operation.
80021414470SRuslan ErmilovWhen operating as a client, the station will conserve power by
8015faf8dcbSSam Lefflerperiodically turning off the radio and listening for
8025faf8dcbSSam Lefflermessages from the access point telling it there are packets waiting.
8035faf8dcbSSam LefflerThe station must then retrieve the packets.
80421414470SRuslan ErmilovWhen operating as an access point, the station must honor power
8055faf8dcbSSam Lefflersave operation of associated clients.
8065faf8dcbSSam LefflerNot all devices support power save operation, either as a client
8075faf8dcbSSam Leffleror as an access point.
8085faf8dcbSSam LefflerUse
8095faf8dcbSSam Leffler.Fl powersave
8105faf8dcbSSam Lefflerto disable powersave operation.
811419d8080SPoul-Henning Kamp.It Cm powersavesleep Ar sleep
8125faf8dcbSSam LefflerSet the desired max powersave sleep time in milliseconds.
813a6b03f42SSam Leffler.It Cm protmode Ar technique
8145faf8dcbSSam LefflerFor interfaces operating in 802.11g, use the specified
815d04b5dfeSRuslan Ermilov.Ar technique
816d04b5dfeSRuslan Ermilovfor protecting OFDM frames in a mixed 11b/11g network.
817a6b03f42SSam LefflerThe set of valid techniques is
8184e9e907dSRuslan Ermilov.Cm off , cts
819a6b03f42SSam Leffler(CTS to self),
820a6b03f42SSam Lefflerand
8214e9e907dSRuslan Ermilov.Cm rtscts
822a6b03f42SSam Leffler(RTS/CTS).
823a6b03f42SSam LefflerTechnique names are case insensitive.
824fa56f745SSam Leffler.It Cm pureg
825fa56f745SSam LefflerWhen operating as an access point in 802.11g mode allow only
826fa56f745SSam Leffler11g-capable stations to associate (11b-only stations are not
827fa56f745SSam Lefflerpermitted to associate).
828fa56f745SSam LefflerTo allow both 11g and 11b-only stations to associate, use
829fa56f745SSam Leffler.Fl pureg .
8305faf8dcbSSam Leffler.It Cm roaming Ar mode
8315faf8dcbSSam LefflerWhen operating as a station, control how the system will
8325faf8dcbSSam Lefflerbehave when communication with the current access point
8335faf8dcbSSam Leffleris broken.
83421414470SRuslan ErmilovThe
83521414470SRuslan Ermilov.Ar mode
83621414470SRuslan Ermilovargument may be one of
8374e9e907dSRuslan Ermilov.Cm device
8385faf8dcbSSam Leffler(leave it to the hardware device to decide),
8394e9e907dSRuslan Ermilov.Cm auto
84021414470SRuslan Ermilov(handle either in the device or the operating system\[em]as appropriate),
8414e9e907dSRuslan Ermilov.Cm manual
8425faf8dcbSSam Leffler(do nothing until explicitly instructed).
84321414470SRuslan ErmilovBy default, the device is left to handle this if it is
84421414470SRuslan Ermilovcapable; otherwise, the operating system will automatically
8455faf8dcbSSam Lefflerattempt to reestablish communication.
8465faf8dcbSSam LefflerManual mode is mostly useful when an application wants to
8475faf8dcbSSam Lefflercontrol the selection of an access point.
848a6b03f42SSam Leffler.It Cm rtsthreshold Ar length
8495faf8dcbSSam LefflerSet the threshold for which
850a6b03f42SSam Lefflertransmitted frames are preceded by transmission of an
851a6b03f42SSam LefflerRTS
852a6b03f42SSam Lefflercontrol frame.
853d04b5dfeSRuslan ErmilovThe
854d04b5dfeSRuslan Ermilov.Ar length
855d04b5dfeSRuslan Ermilovargument
856aeffcba3SSam Leffleris the frame size in bytes and must be in the range 1 to 2346.
857aeffcba3SSam LefflerSetting
858aeffcba3SSam Leffler.Ar length
859aeffcba3SSam Lefflerto
8604e9e907dSRuslan Ermilov.Li 2346 ,
8614e9e907dSRuslan Ermilov.Cm any ,
862aeffcba3SSam Leffleror
8634e9e907dSRuslan Ermilov.Cm -
864aeffcba3SSam Lefflerdisables transmission of RTS frames.
865a6b03f42SSam LefflerNot all adaptors support setting the RTS threshold.
8665faf8dcbSSam Leffler.It Cm ssid Ar ssid
8675faf8dcbSSam LefflerSet the desired Service Set Identifier (aka network name).
8685faf8dcbSSam LefflerThe SSID is a string up to 32 characters
8695faf8dcbSSam Lefflerin length and may be specified as either a normal string or in
870e7951bdfSChristian Bruefferhexadecimal when preceded by
8715faf8dcbSSam Leffler.Ql 0x .
8725faf8dcbSSam LefflerAdditionally, the SSID may be cleared by setting it to
8735faf8dcbSSam Leffler.Ql - .
8745faf8dcbSSam Leffler.It Cm scan
875aeffcba3SSam LefflerInitiate a scan of neighboring stations, wait for it to complete, and
876aeffcba3SSam Lefflerdisplay all stations found.
877aeffcba3SSam LefflerOnly the super-user can initiate a scan.
8781a44eb07SChristian BruefferDepending on the capabilities of the APs, the following
8791a44eb07SChristian Bruefferflags can be included in the output:
880ef95d02dSChristian Brueffer.Bl -tag -width 3n
881df755936SScott Long.It Li A
882df755936SScott LongChannel Agility.
883df755936SScott LongIndicates that the station support channel hopping as described by the
884df755936SScott LongIEEE 802.11b specification.
885df755936SScott Long.It Li B
886df755936SScott LongPacket Binary Convolution Code (PBCC).
887df755936SScott LongA modulation alternative to the standard OFDM method.
888df755936SScott Long.It Dv C
889df755936SScott LongPollreq
890df755936SScott Long.It Dv c
891df755936SScott LongPollable
892df755936SScott Long.It Dv D
893df755936SScott LongDirect Sequence Spread Spectrum (DSSSOFDM).
894df755936SScott LongIndicates the the station supports DSSS modulation.
895ef95d02dSChristian Brueffer.It Li E
8961a44eb07SChristian BruefferExtended Service Set (ESS).
8971a44eb07SChristian BruefferIndicates that the station is part of an infrastructure network
8981a44eb07SChristian Brueffer(in contrast to an IBSS/ad-hoc network).
899ef95d02dSChristian Brueffer.It Li I
9001a44eb07SChristian BruefferIBSS/ad-hoc network.
9011a44eb07SChristian BruefferIndicates that the station is part of an ad-hoc network
9021a44eb07SChristian Brueffer(in contrast to an ESS network).
903ef95d02dSChristian Brueffer.It Li P
9041a44eb07SChristian BruefferPrivacy.
905aeffcba3SSam LefflerData confidentiality is required for all data frames
9061a44eb07SChristian Bruefferexchanged within the BSS.
9071a44eb07SChristian BruefferThis means that this BSS requires the station to
9081a44eb07SChristian Bruefferuse cryptographic means such as WEP, TKIP or AES-CCMP to
9091a44eb07SChristian Bruefferencrypt/decrypt data frames being exchanged with others.
910df755936SScott Long.It Dv R
911df755936SScott LongRobust Security Network (RSN).
912df755936SScott LongIndicates that the station supports the IEEE 802.11i authentication
913df755936SScott Longand key management protocol.
914ef95d02dSChristian Brueffer.It Li S
9151a44eb07SChristian BruefferShort Preamble.
9161a44eb07SChristian BruefferIndicates that the network is using short preambles (defined
9171a44eb07SChristian Bruefferin 802.11b High Rate/DSSS PHY, short preamble utilizes a
9181a44eb07SChristian Brueffer56 bit sync field in contrast to a 128 bit field used in long
9191a44eb07SChristian Bruefferpreamble mode).
920ef95d02dSChristian Brueffer.It Li s
9211a44eb07SChristian BruefferShort slot time.
922aeffcba3SSam LefflerIndicates that the network is using a short slot time.
9231a44eb07SChristian Brueffer.El
924aeffcba3SSam Leffler.Pp
925aeffcba3SSam LefflerThe
9264e9e907dSRuslan Ermilov.Cm list scan
927aeffcba3SSam Lefflerrequest can be used to show recent scan results without
928aeffcba3SSam Lefflerinitiating a new scan.
9297a6f335eSTom Rhodes.Pp
9307a6f335eSTom RhodesThe
931dadff483SRuslan Ermilov.Fl v
9327a6f335eSTom Rhodesflag may be used to prevent the shortening of long SSIDs.
9335faf8dcbSSam Leffler.It Cm stationname Ar name
9345faf8dcbSSam LefflerSet the name of this station.
9355faf8dcbSSam LefflerIt appears that the station name is not really part of the IEEE 802.11
9365faf8dcbSSam Lefflerprotocol though all interfaces seem to support it.
9375faf8dcbSSam LefflerAs such it only
9385faf8dcbSSam Lefflerseems to be meaningful to identical or virtually identical equipment.
9395faf8dcbSSam LefflerSetting the station name is identical in syntax to setting the SSID.
940a6b03f42SSam Leffler.It Cm txpower Ar power
9415faf8dcbSSam LefflerSet the power used to transmit frames.
942d04b5dfeSRuslan ErmilovThe
943d04b5dfeSRuslan Ermilov.Ar power
944d04b5dfeSRuslan Ermilovargument
945a6b03f42SSam Leffleris a unitless value in the range 0 to 100 that is interpreted
946a6b03f42SSam Lefflerby drivers to derive a device-specific value.
947a6b03f42SSam LefflerOut of range values are truncated.
948a6b03f42SSam LefflerTypically only a few discreet power settings are available and
949a6b03f42SSam Lefflerthe driver will use the setting closest to the specified value.
950a6b03f42SSam LefflerNot all adaptors support changing the transmit power.
951419d8080SPoul-Henning Kamp.It Cm wepmode Ar mode
9525faf8dcbSSam LefflerSet the desired WEP mode.
953b09b4efbSRuslan ErmilovNot all adaptors support all modes.
954b09b4efbSRuslan ErmilovThe set of valid modes is
9554e9e907dSRuslan Ermilov.Cm off , on ,
956419d8080SPoul-Henning Kampand
9574e9e907dSRuslan Ermilov.Cm mixed .
958d04b5dfeSRuslan ErmilovThe
9594e9e907dSRuslan Ermilov.Cm mixed
960419d8080SPoul-Henning Kampmode explicitly tells the adaptor to allow association with access
961b09b4efbSRuslan Ermilovpoints which allow both encrypted and unencrypted traffic.
962b09b4efbSRuslan ErmilovOn these adaptors,
9634e9e907dSRuslan Ermilov.Cm on
964b09b4efbSRuslan Ermilovmeans that the access point must only allow encrypted connections.
965b09b4efbSRuslan ErmilovOn other adaptors,
9664e9e907dSRuslan Ermilov.Cm on
967419d8080SPoul-Henning Kampis generally another name for
9684e9e907dSRuslan Ermilov.Cm mixed .
969419d8080SPoul-Henning KampModes are case insensitive.
970419d8080SPoul-Henning Kamp.It Cm weptxkey Ar index
9715faf8dcbSSam LefflerSet the WEP key to be used for transmission.
9724e0a8f0dSSam LefflerThis is the same as setting the default transmission key with
9734e0a8f0dSSam Leffler.Cm deftxkey .
974b09b4efbSRuslan Ermilov.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
9755faf8dcbSSam LefflerSet the selected WEP key.
976b09b4efbSRuslan ErmilovIf an
977419d8080SPoul-Henning Kamp.Ar index
978b09b4efbSRuslan Ermilovis not given, key 1 is set.
979b09b4efbSRuslan ErmilovA WEP key will be either 5 or 13
980419d8080SPoul-Henning Kampcharacters (40 or 104 bits) depending of the local network and the
981b09b4efbSRuslan Ermilovcapabilities of the adaptor.
982b09b4efbSRuslan ErmilovIt may be specified either as a plain
983e7951bdfSChristian Bruefferstring or as a string of hexadecimal digits preceded by
984b09b4efbSRuslan Ermilov.Ql 0x .
985d8f2e345SWarner LoshFor maximum portability, hex keys are recommended;
986d8f2e345SWarner Loshthe mapping of text keys to WEP encryption is usually driver-specific.
9873706a3a8SRuslan ErmilovIn particular, the
9883706a3a8SRuslan Ermilov.Tn Windows
9893706a3a8SRuslan Ermilovdrivers do this mapping differently to
990a61d9c47SRuslan Ermilov.Fx .
991419d8080SPoul-Henning KampA key may be cleared by setting it to
992b09b4efbSRuslan Ermilov.Ql - .
993b09b4efbSRuslan ErmilovIf WEP is supported then there are at least four keys.
994b94231daSDima DorfmanSome adaptors support more than four keys.
995b09b4efbSRuslan ErmilovIf that is the case, then the first four keys
996419d8080SPoul-Henning Kamp(1-4) will be the standard temporary keys and any others will be adaptor
997419d8080SPoul-Henning Kampspecific keys such as permanent keys stored in NVRAM.
9985faf8dcbSSam Leffler.It Cm wme
999aeffcba3SSam LefflerEnable Wireless Multimedia Extensions (WME) support, if available,
10005faf8dcbSSam Lefflerfor the specified interface.
10015faf8dcbSSam LefflerWME is a subset of the IEEE 802.11e standard to support the
10025faf8dcbSSam Lefflerefficient communication of realtime and multimedia data.
100321414470SRuslan ErmilovTo disable WME support, use
10045faf8dcbSSam Leffler.Fl wme .
1005aeffcba3SSam Leffler.Pp
1006aeffcba3SSam LefflerThe following parameters are meaningful only when WME support is in use.
1007aeffcba3SSam LefflerParameters are specified per-AC (Access Category) and
1008aeffcba3SSam Lefflersplit into those that are used by a station when acting
1009aeffcba3SSam Leffleras an access point and those for client stations in the BSS.
1010aeffcba3SSam LefflerThe latter are received from the access point and may not be changed
1011aeffcba3SSam Leffler(at the station).
1012aeffcba3SSam LefflerThe following Access Categories are recognized:
1013aeffcba3SSam Leffler.Pp
10144e9e907dSRuslan Ermilov.Bl -tag -width ".Cm AC_BK" -compact
1015aeffcba3SSam Leffler.It Cm AC_BE
10164e9e907dSRuslan Ermilov(or
10174e9e907dSRuslan Ermilov.Cm BE )
10184e9e907dSRuslan Ermilovbest effort delivery,
1019aeffcba3SSam Leffler.It Cm AC_BK
10204e9e907dSRuslan Ermilov(or
10214e9e907dSRuslan Ermilov.Cm BK )
10224e9e907dSRuslan Ermilovbackground traffic,
1023aeffcba3SSam Leffler.It Cm AC_VI
10244e9e907dSRuslan Ermilov(or
10254e9e907dSRuslan Ermilov.Cm VI )
10264e9e907dSRuslan Ermilovvideo traffic,
1027aeffcba3SSam Leffler.It Cm AC_VO
10284e9e907dSRuslan Ermilov(or
10294e9e907dSRuslan Ermilov.Cm VO )
10304e9e907dSRuslan Ermilovvoice traffic.
10315faf8dcbSSam Leffler.El
10325faf8dcbSSam Leffler.Pp
1033aeffcba3SSam LefflerAC parameters are case-insensitive.
1034aeffcba3SSam LefflerTraffic classification is done in the operating system using the
1035aeffcba3SSam Lefflervlan priority associated with data frames or the
1036aeffcba3SSam LefflerToS (Type of Service) indication in IP-encapsulated frames.
10374e9e907dSRuslan ErmilovIf neither information is present, traffic is assigned to the
1038aeffcba3SSam LefflerBest Effort (BE) category.
1039aeffcba3SSam Leffler.Bl -tag -width indent
1040aeffcba3SSam Leffler.It Cm ack Ar ac
1041aeffcba3SSam LefflerSet the ACK policy for QoS transmissions by the local station;
1042aeffcba3SSam Lefflerthis controls whether or not data frames transmitted by a station
1043aeffcba3SSam Lefflerrequire an ACK response from the receiving station.
1044aeffcba3SSam LefflerTo disable waiting for an ACK use
1045aeffcba3SSam Leffler.Fl ack .
1046aeffcba3SSam LefflerThis parameter is applied only to the local station.
1047aeffcba3SSam Leffler.It Cm acm Ar ac
1048aeffcba3SSam LefflerEnable the Admission Control Mandatory (ACM) mechanism
1049aeffcba3SSam Lefflerfor transmissions by the local station.
1050aeffcba3SSam LefflerTo disable the ACM use
1051aeffcba3SSam Leffler.Fl acm .
1052aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1053aeffcba3SSam Lefflerthe setting received from the access point.
1054aeffcba3SSam LefflerNB: ACM is not supported right now.
1055aeffcba3SSam Leffler.It Cm aifs Ar ac Ar count
1056aeffcba3SSam LefflerSet the Arbitration Inter Frame Spacing (AIFS)
1057aeffcba3SSam Lefflerchannel access parameter to use for transmissions
1058aeffcba3SSam Lefflerby the local station.
1059aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1060aeffcba3SSam Lefflerthe setting received from the access point.
1061aeffcba3SSam Leffler.It Cm cwmin Ar ac Ar count
1062aeffcba3SSam LefflerSet the CWmin channel access parameter to use for transmissions
1063aeffcba3SSam Lefflerby the local station.
1064aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1065aeffcba3SSam Lefflerthe setting received from the access point.
1066aeffcba3SSam Leffler.It Cm cwmax Ar ac Ar count
1067aeffcba3SSam LefflerSet the CWmax channel access parameter to use for transmissions
1068aeffcba3SSam Lefflerby the local station.
1069aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1070aeffcba3SSam Lefflerthe setting received from the access point.
1071aeffcba3SSam Leffler.It Cm txoplimit Ar ac Ar limit
1072aeffcba3SSam LefflerSet the Transmission Opportunity Limit channel access parameter
1073aeffcba3SSam Lefflerto use for transmissions by the local station.
1074aeffcba3SSam LefflerThis parameter defines an interval of time when a WME station
1075aeffcba3SSam Lefflerhas the right to initiate transmissions onto the wireless medium.
1076aeffcba3SSam LefflerOn stations in a BSS this parameter is read-only and indicates
1077aeffcba3SSam Lefflerthe setting received from the access point.
1078aeffcba3SSam Leffler.It Cm bss:aifs Ar ac Ar count
1079aeffcba3SSam LefflerSet the AIFS channel access parameter to send to stations in a BSS.
1080aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1081aeffcba3SSam Leffler.It Cm bss:cwmin Ar ac Ar count
1082aeffcba3SSam LefflerSet the CWmin channel access parameter to send to stations in a BSS.
1083aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1084aeffcba3SSam Leffler.It Cm bss:cwmax Ar ac Ar count
1085aeffcba3SSam LefflerSet the CWmax channel access parameter to send to stations in a BSS.
1086aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1087aeffcba3SSam Leffler.It Cm bss:txoplimit Ar ac Ar limit
1088aeffcba3SSam LefflerSet the TxOpLimit channel access parameter to send to stations in a BSS.
1089aeffcba3SSam LefflerThis parameter is meaningful only when operating in ap mode.
1090aeffcba3SSam Leffler.El
1091aeffcba3SSam Leffler.El
1092aeffcba3SSam Leffler.Pp
1093aeffcba3SSam LefflerThe following parameters support an optional access control list
1094aeffcba3SSam Lefflerfeature available with some adaptors when operating in ap mode; see
1095aeffcba3SSam Leffler.Xr wlan_acl 4 .
1096aeffcba3SSam LefflerThis facility allows an access point to accept/deny association
1097aeffcba3SSam Lefflerrequests based on the MAC address of the station.
1098aeffcba3SSam LefflerNote that this feature does not significantly enhance security
1099aeffcba3SSam Leffleras MAC address spoofing is easy to do.
1100aeffcba3SSam Leffler.Bl -tag -width indent
1101aeffcba3SSam Leffler.It Cm mac:add Ar address
1102aeffcba3SSam LefflerAdd the specified MAC address to the database.
1103aeffcba3SSam LefflerDepending on the policy setting association requests from the
1104aeffcba3SSam Lefflerspecified station will be allowed or denied.
1105aeffcba3SSam Leffler.It Cm mac:allow
1106aeffcba3SSam LefflerSet the ACL policy to permit association only by
1107aeffcba3SSam Lefflerstations registered in the database.
1108e70fcb23SSam Leffler.It Cm mac:del Ar address
1109aeffcba3SSam LefflerDelete the specified MAC address from the database.
1110aeffcba3SSam Leffler.It Cm mac:deny
1111aeffcba3SSam LefflerSet the ACL policy to deny association only by
1112aeffcba3SSam Lefflerstations registered in the database.
1113e70fcb23SSam Leffler.It Cm mac:kick Ar address
111429f0e929SSam LefflerForce the specified station to be deauthenticated.
111529f0e929SSam LefflerThis typically is done to block a station after updating the
111629f0e929SSam Leffleraddress database.
1117aeffcba3SSam Leffler.It Cm mac:open
1118aeffcba3SSam LefflerSet the ACL policy to allow all stations to associate.
1119aeffcba3SSam Leffler.It Cm mac:flush
1120aeffcba3SSam LefflerDelete all entries in the database.
1121aeffcba3SSam Leffler.El
1122aeffcba3SSam Leffler.Pp
1123aeffcba3SSam LefflerThe following parameters are for compatibility with other systems:
11245faf8dcbSSam Leffler.Bl -tag -width indent
11255faf8dcbSSam Leffler.It Cm nwid Ar ssid
11265faf8dcbSSam LefflerAnother name for the
11275faf8dcbSSam Leffler.Cm ssid
11285faf8dcbSSam Lefflerparameter.
11295faf8dcbSSam LefflerIncluded for
11305faf8dcbSSam Leffler.Nx
11315faf8dcbSSam Lefflercompatibility.
11325faf8dcbSSam Leffler.It Cm station Ar name
11335faf8dcbSSam LefflerAnother name for the
11345faf8dcbSSam Leffler.Cm stationname
11355faf8dcbSSam Lefflerparameter.
11365faf8dcbSSam LefflerIncluded for
11375faf8dcbSSam Leffler.Bsx
11385faf8dcbSSam Lefflercompatibility.
1139419d8080SPoul-Henning Kamp.It Cm wep
1140419d8080SPoul-Henning KampAnother way of saying
1141b09b4efbSRuslan Ermilov.Cm wepmode on .
1142b09b4efbSRuslan ErmilovIncluded for
1143b09b4efbSRuslan Ermilov.Bsx
1144b09b4efbSRuslan Ermilovcompatibility.
1145b09b4efbSRuslan Ermilov.It Fl wep
1146419d8080SPoul-Henning KampAnother way of saying
1147b09b4efbSRuslan Ermilov.Cm wepmode off .
1148b09b4efbSRuslan ErmilovIncluded for
1149b09b4efbSRuslan Ermilov.Bsx
1150b09b4efbSRuslan Ermilovcompatibility.
1151419d8080SPoul-Henning Kamp.It Cm nwkey key
1152419d8080SPoul-Henning KampAnother way of saying:
1153b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey 1 wepkey 1:key wepkey 2:- wepkey 3:- wepkey 4:-" .
1154b09b4efbSRuslan ErmilovIncluded for
1155b09b4efbSRuslan Ermilov.Nx
1156b09b4efbSRuslan Ermilovcompatibility.
1157b09b4efbSRuslan Ermilov.It Cm nwkey Xo
1158b09b4efbSRuslan Ermilov.Sm off
1159b09b4efbSRuslan Ermilov.Ar n : k1 , k2 , k3 , k4
1160b09b4efbSRuslan Ermilov.Sm on
1161b09b4efbSRuslan Ermilov.Xc
1162419d8080SPoul-Henning KampAnother way of saying
1163b09b4efbSRuslan Ermilov.Dq Li "wepmode on weptxkey n wepkey 1:k1 wepkey 2:k2 wepkey 3:k3 wepkey 4:k4" .
1164b09b4efbSRuslan ErmilovIncluded for
1165b09b4efbSRuslan Ermilov.Nx
1166b09b4efbSRuslan Ermilovcompatibility.
1167b09b4efbSRuslan Ermilov.It Fl nwkey
1168419d8080SPoul-Henning KampAnother way of saying
1169b09b4efbSRuslan Ermilov.Cm wepmode off .
1170b09b4efbSRuslan ErmilovIncluded for
1171b09b4efbSRuslan Ermilov.Nx
1172b09b4efbSRuslan Ermilovcompatibility.
11738fae3551SRodney W. Grimes.El
11748fae3551SRodney W. Grimes.Pp
11757afc53b8SAndrew ThompsonThe following parameters are specific to bridge interfaces:
11767afc53b8SAndrew Thompson.Bl -tag -width indent
11777afc53b8SAndrew Thompson.It Cm addm Ar interface
11787afc53b8SAndrew ThompsonAdd the interface named by
11797afc53b8SAndrew Thompson.Ar interface
11807afc53b8SAndrew Thompsonas a member of the bridge.
11817afc53b8SAndrew ThompsonThe interface is put into promiscuous mode
11827afc53b8SAndrew Thompsonso that it can receive every packet sent on the network.
11837afc53b8SAndrew Thompson.It Cm deletem Ar interface
11847afc53b8SAndrew ThompsonRemove the interface named by
11857afc53b8SAndrew Thompson.Ar interface
11867afc53b8SAndrew Thompsonfrom the bridge.
11877afc53b8SAndrew ThompsonPromiscuous mode is disabled on the interface when
11887afc53b8SAndrew Thompsonit is removed from the bridge.
11897afc53b8SAndrew Thompson.It Cm maxaddr Ar size
11907afc53b8SAndrew ThompsonSet the size of the bridge address cache to
11917afc53b8SAndrew Thompson.Ar size .
11927afc53b8SAndrew ThompsonThe default is 100 entries.
11937afc53b8SAndrew Thompson.It Cm timeout Ar seconds
11947afc53b8SAndrew ThompsonSet the timeout of address cache entries to
11957afc53b8SAndrew Thompson.Ar seconds
11967afc53b8SAndrew Thompsonseconds.
11977afc53b8SAndrew ThompsonIf
11987afc53b8SAndrew Thompson.Ar seconds
11997afc53b8SAndrew Thompsonis zero, then address cache entries will not be expired.
12007afc53b8SAndrew ThompsonThe default is 240 seconds.
1201db7d6dc1SAndrew Thompson.It Cm addr
1202db7d6dc1SAndrew ThompsonDisplay the addresses that have been learned by the bridge.
1203db7d6dc1SAndrew Thompson.It Cm static Ar interface-name Ar address
1204db7d6dc1SAndrew ThompsonAdd a static entry into the address cache pointing to
1205db7d6dc1SAndrew Thompson.Ar interface-name .
1206db7d6dc1SAndrew ThompsonStatic entries are never aged out of the cache or re-placed, even if the
1207db7d6dc1SAndrew Thompsonaddress is seen on a different interface.
12087afc53b8SAndrew Thompson.It Cm deladdr Ar address
12097afc53b8SAndrew ThompsonDelete
12107afc53b8SAndrew Thompson.Ar address
12117afc53b8SAndrew Thompsonfrom the address cache.
12127afc53b8SAndrew Thompson.It Cm flush
12137afc53b8SAndrew ThompsonDelete all dynamically-learned addresses from the address cache.
12147afc53b8SAndrew Thompson.It Cm flushall
12157afc53b8SAndrew ThompsonDelete all addresses, including static addresses, from the address cache.
12167afc53b8SAndrew Thompson.It Cm discover Ar interface
12177afc53b8SAndrew ThompsonMark an interface as a
12187afc53b8SAndrew Thompson.Dq discovering
12197afc53b8SAndrew Thompsoninterface.
12207afc53b8SAndrew ThompsonWhen the bridge has no address cache entry
12217afc53b8SAndrew Thompson(either dynamic or static)
12227afc53b8SAndrew Thompsonfor the destination address of a packet,
12237afc53b8SAndrew Thompsonthe bridge will forward the packet to all
12247afc53b8SAndrew Thompsonmember interfaces marked as
12257afc53b8SAndrew Thompson.Dq discovering .
12267afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12277afc53b8SAndrew Thompson.It Cm -discover Ar interface
12287afc53b8SAndrew ThompsonClear the
12297afc53b8SAndrew Thompson.Dq discovering
12307afc53b8SAndrew Thompsonattribute on a member interface.
12317afc53b8SAndrew ThompsonFor packets without the
12327afc53b8SAndrew Thompson.Dq discovering
12337afc53b8SAndrew Thompsonattribute, the only packets forwarded on the interface are broadcast
12347afc53b8SAndrew Thompsonor multicast packets and packets for which the destination address
12357afc53b8SAndrew Thompsonis known to be on the interface's segment.
12367afc53b8SAndrew Thompson.It Cm learn Ar interface
12377afc53b8SAndrew ThompsonMark an interface as a
12387afc53b8SAndrew Thompson.Dq learning
12397afc53b8SAndrew Thompsoninterface.
12407afc53b8SAndrew ThompsonWhen a packet arrives on such an interface, the source
12417afc53b8SAndrew Thompsonaddress of the packet is entered into the address cache as being a
12427afc53b8SAndrew Thompsondestination address on the interface's segment.
12437afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12447afc53b8SAndrew Thompson.It Cm -learn Ar interface
12457afc53b8SAndrew ThompsonClear the
12467afc53b8SAndrew Thompson.Dq learning
12477afc53b8SAndrew Thompsonattribute on a member interface.
12483df7fad0SAndrew Thompson.It Cm sticky Ar interface
12493df7fad0SAndrew ThompsonMark an interface as a
12503df7fad0SAndrew Thompson.Dq sticky
12513df7fad0SAndrew Thompsoninterface.
12523df7fad0SAndrew ThompsonDynamically learned address entries are treated at static once entered into
12533df7fad0SAndrew Thompsonthe cache.
12543df7fad0SAndrew ThompsonSticky entries are never aged out of the cache or replaced, even if the
12553df7fad0SAndrew Thompsonaddress is seen on a different interface.
12563df7fad0SAndrew Thompson.It Cm -sticky Ar interface
12573df7fad0SAndrew ThompsonClear the
12583df7fad0SAndrew Thompson.Dq sticky
12593df7fad0SAndrew Thompsonattribute on a member interface.
126091f6764eSAndrew Thompson.It Cm span Ar interface
126191f6764eSAndrew ThompsonAdd the interface named by
126291f6764eSAndrew Thompson.Ar interface
126391f6764eSAndrew Thompsonas a span port on the bridge.
126491f6764eSAndrew ThompsonSpan ports transmit a copy of every frame received by the bridge.
126591f6764eSAndrew ThompsonThis is most useful for snooping a bridged network passively on
126691f6764eSAndrew Thompsonanother host connected to one of the span ports of the bridge.
126791f6764eSAndrew Thompson.It Cm -span Ar interface
126891f6764eSAndrew ThompsonDelete the interface named by
126991f6764eSAndrew Thompson.Ar interface
127091f6764eSAndrew Thompsonfrom the list of span ports of the bridge.
12717afc53b8SAndrew Thompson.It Cm stp Ar interface
12727afc53b8SAndrew ThompsonEnable Spanning Tree protocol on
12737afc53b8SAndrew Thompson.Ar interface .
12747afc53b8SAndrew ThompsonThe
12757afc53b8SAndrew Thompson.Xr if_bridge 4
12767afc53b8SAndrew Thompsondriver has support for the IEEE 802.1D Spanning Tree protocol (STP).
12777afc53b8SAndrew ThompsonSpanning Tree is used to detect and remove loops in a network topology.
12787afc53b8SAndrew Thompson.It Cm -stp Ar interface
12797afc53b8SAndrew ThompsonDisable Spanning Tree protocol on
12807afc53b8SAndrew Thompson.Ar interface .
12817afc53b8SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12823fab7669SAndrew Thompson.It Cm edge Ar interface
12833fab7669SAndrew ThompsonSet
12843fab7669SAndrew Thompson.Ar interface
12853fab7669SAndrew Thompsonas an edge port.
12863fab7669SAndrew ThompsonAn edge port connects directly to end stations cannot create bridging
12873fab7669SAndrew Thompsonloops in the network, this allows it to transition straight to forwarding.
12883fab7669SAndrew Thompson.It Cm -edge Ar interface
12893fab7669SAndrew ThompsonDisable edge status on
12903fab7669SAndrew Thompson.Ar interface .
12913fab7669SAndrew Thompson.It Cm autoedge Ar interface
12923fab7669SAndrew ThompsonAllow
12933fab7669SAndrew Thompson.Ar interface
12943fab7669SAndrew Thompsonto automatically detect edge status.
12953fab7669SAndrew ThompsonThis is the default for all interfaces added to a bridge.
12963fab7669SAndrew Thompson.It Cm -autoedge Ar interface
12973fab7669SAndrew ThompsonDisable automatic edge status on
12983fab7669SAndrew Thompson.Ar interface .
12997afc53b8SAndrew Thompson.It Cm maxage Ar seconds
13007afc53b8SAndrew ThompsonSet the time that a Spanning Tree protocol configuration is valid.
13017afc53b8SAndrew ThompsonThe default is 20 seconds.
13023fab7669SAndrew ThompsonThe minimum is 6 seconds and the maximum is 40 seconds.
13037afc53b8SAndrew Thompson.It Cm fwddelay Ar seconds
13047afc53b8SAndrew ThompsonSet the time that must pass before an interface begins forwarding
13057afc53b8SAndrew Thompsonpackets when Spanning Tree is enabled.
13067afc53b8SAndrew ThompsonThe default is 15 seconds.
13073fab7669SAndrew ThompsonThe minimum is 4 seconds and the maximum is 30 seconds.
13087afc53b8SAndrew Thompson.It Cm hellotime Ar seconds
13097afc53b8SAndrew ThompsonSet the time between broadcasting of Spanning Tree protocol
13107afc53b8SAndrew Thompsonconfiguration messages.
13113fab7669SAndrew ThompsonThe hello time may only be changed when operating in legacy stp mode.
13127afc53b8SAndrew ThompsonThe default is 2 seconds.
13133fab7669SAndrew ThompsonThe minimum is 1 second and the maximum is 2 seconds.
13147afc53b8SAndrew Thompson.It Cm priority Ar value
13157afc53b8SAndrew ThompsonSet the bridge priority for Spanning Tree.
13167afc53b8SAndrew ThompsonThe default is 32768.
13173fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 61440.
13183fab7669SAndrew Thompson.It Cm protocol Ar value
13193fab7669SAndrew ThompsonSet the Spanning Tree protocol.
13203fab7669SAndrew ThompsonThe default is rstp.
13213fab7669SAndrew ThompsonThe available options are stp and rstp.
13221dfd31abSAndrew Thompson.It Cm holdcnt Ar value
13233fab7669SAndrew ThompsonSet the transmit hold count for Spanning Tree.
13243fab7669SAndrew ThompsonThis is the number of packets transmitted before being rate limited.
13253fab7669SAndrew ThompsonThe default is 6.
13263fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 10.
13277afc53b8SAndrew Thompson.It Cm ifpriority Ar interface Ar value
13287afc53b8SAndrew ThompsonSet the Spanning Tree priority of
13297afc53b8SAndrew Thompson.Ar interface
13307afc53b8SAndrew Thompsonto
13317afc53b8SAndrew Thompson.Ar value .
13327afc53b8SAndrew ThompsonThe default is 128.
13333fab7669SAndrew ThompsonThe minimum is 0 and the maximum is 240.
13347afc53b8SAndrew Thompson.It Cm ifpathcost Ar interface Ar value
13357afc53b8SAndrew ThompsonSet the Spanning Tree path cost of
13367afc53b8SAndrew Thompson.Ar interface
13377afc53b8SAndrew Thompsonto
13387afc53b8SAndrew Thompson.Ar value .
13393fab7669SAndrew ThompsonThe default is calculated from the link speed.
13403fab7669SAndrew ThompsonTo change a previously selected path cost back to automatic, set the
13413fab7669SAndrew Thompsoncost to 0.
13423fab7669SAndrew ThompsonThe minimum is 1 and the maximum is 200000000.
13437afc53b8SAndrew Thompson.El
13447afc53b8SAndrew Thompson.Pp
1345163653e8SYaroslav TykhiyThe following parameters are specific to IP tunnel interfaces,
1346163653e8SYaroslav Tykhiy.Xr gif 4 :
1347163653e8SYaroslav Tykhiy.Bl -tag -width indent
1348163653e8SYaroslav Tykhiy.It Cm tunnel Ar src_addr dest_addr
1349163653e8SYaroslav TykhiyConfigure the physical source and destination address for IP tunnel
1350163653e8SYaroslav Tykhiyinterfaces.
1351163653e8SYaroslav TykhiyThe arguments
1352163653e8SYaroslav Tykhiy.Ar src_addr
1353163653e8SYaroslav Tykhiyand
1354163653e8SYaroslav Tykhiy.Ar dest_addr
1355163653e8SYaroslav Tykhiyare interpreted as the outer source/destination for the encapsulating
1356163653e8SYaroslav TykhiyIPv4/IPv6 header.
13579e241c5eSYaroslav Tykhiy.It Fl tunnel
1358163653e8SYaroslav TykhiyUnconfigure the physical source and destination address for IP tunnel
1359163653e8SYaroslav Tykhiyinterfaces previously configured with
1360163653e8SYaroslav Tykhiy.Cm tunnel .
13619e241c5eSYaroslav Tykhiy.It Cm deletetunnel
13629e241c5eSYaroslav TykhiyAnother name for the
13639e241c5eSYaroslav Tykhiy.Fl tunnel
13649e241c5eSYaroslav Tykhiyparameter.
1365163653e8SYaroslav Tykhiy.El
1366163653e8SYaroslav Tykhiy.Pp
1367163653e8SYaroslav TykhiyThe following parameters are specific to
1368ced42c6cSCeri Davies.Xr pfsync 4
1369ced42c6cSCeri Daviesinterfaces:
1370ced42c6cSCeri Davies.Bl -tag -width indent
1371ced42c6cSCeri Davies.It Cm maxupd Ar n
1372ced42c6cSCeri DaviesSet the maximum number of updates for a single state which
1373ced42c6cSCeri Daviescan be collapsed into one.
1374ced42c6cSCeri DaviesThis is an 8-bit number; the default value is 128.
1375ced42c6cSCeri Davies.El
1376ced42c6cSCeri Davies.Pp
1377ced42c6cSCeri DaviesThe following parameters are specific to
1378163653e8SYaroslav Tykhiy.Xr vlan 4
1379163653e8SYaroslav Tykhiyinterfaces:
1380163653e8SYaroslav Tykhiy.Bl -tag -width indent
1381163653e8SYaroslav Tykhiy.It Cm vlan Ar vlan_tag
1382163653e8SYaroslav TykhiySet the VLAN tag value to
1383163653e8SYaroslav Tykhiy.Ar vlan_tag .
1384163653e8SYaroslav TykhiyThis value is a 16-bit number which is used to create an 802.1Q
1385163653e8SYaroslav TykhiyVLAN header for packets sent from the
1386163653e8SYaroslav Tykhiy.Xr vlan 4
1387163653e8SYaroslav Tykhiyinterface.
1388163653e8SYaroslav TykhiyNote that
1389163653e8SYaroslav Tykhiy.Cm vlan
1390163653e8SYaroslav Tykhiyand
1391163653e8SYaroslav Tykhiy.Cm vlandev
1392163653e8SYaroslav Tykhiymust both be set at the same time.
1393163653e8SYaroslav Tykhiy.It Cm vlandev Ar iface
1394163653e8SYaroslav TykhiyAssociate the physical interface
1395163653e8SYaroslav Tykhiy.Ar iface
1396163653e8SYaroslav Tykhiywith a
1397163653e8SYaroslav Tykhiy.Xr vlan 4
1398163653e8SYaroslav Tykhiyinterface.
1399163653e8SYaroslav TykhiyPackets transmitted through the
1400163653e8SYaroslav Tykhiy.Xr vlan 4
1401163653e8SYaroslav Tykhiyinterface will be
1402163653e8SYaroslav Tykhiydiverted to the specified physical interface
1403163653e8SYaroslav Tykhiy.Ar iface
1404163653e8SYaroslav Tykhiywith 802.1Q VLAN encapsulation.
1405163653e8SYaroslav TykhiyPackets with 802.1Q encapsulation received
1406163653e8SYaroslav Tykhiyby the parent interface with the correct VLAN tag will be diverted to
1407163653e8SYaroslav Tykhiythe associated
1408163653e8SYaroslav Tykhiy.Xr vlan 4
1409163653e8SYaroslav Tykhiypseudo-interface.
1410163653e8SYaroslav TykhiyThe
1411163653e8SYaroslav Tykhiy.Xr vlan 4
1412163653e8SYaroslav Tykhiyinterface is assigned a
1413163653e8SYaroslav Tykhiycopy of the parent interface's flags and the parent's ethernet address.
1414163653e8SYaroslav TykhiyThe
1415163653e8SYaroslav Tykhiy.Cm vlandev
1416163653e8SYaroslav Tykhiyand
1417163653e8SYaroslav Tykhiy.Cm vlan
1418163653e8SYaroslav Tykhiymust both be set at the same time.
1419163653e8SYaroslav TykhiyIf the
1420163653e8SYaroslav Tykhiy.Xr vlan 4
1421163653e8SYaroslav Tykhiyinterface already has
1422163653e8SYaroslav Tykhiya physical interface associated with it, this command will fail.
1423163653e8SYaroslav TykhiyTo
1424163653e8SYaroslav Tykhiychange the association to another physical interface, the existing
1425163653e8SYaroslav Tykhiyassociation must be cleared first.
1426163653e8SYaroslav Tykhiy.Pp
1427163653e8SYaroslav TykhiyNote: if the hardware tagging capability
1428163653e8SYaroslav Tykhiyis set on the parent interface, the
1429163653e8SYaroslav Tykhiy.Xr vlan 4
1430163653e8SYaroslav Tykhiypseudo
1431163653e8SYaroslav Tykhiyinterface's behavior changes:
1432163653e8SYaroslav Tykhiythe
1433163653e8SYaroslav Tykhiy.Xr vlan 4
1434163653e8SYaroslav Tykhiyinterface recognizes that the
1435163653e8SYaroslav Tykhiyparent interface supports insertion and extraction of VLAN tags on its
1436163653e8SYaroslav Tykhiyown (usually in firmware) and that it should pass packets to and from
1437163653e8SYaroslav Tykhiythe parent unaltered.
1438b0dcc11cSYaroslav Tykhiy.It Fl vlandev Op Ar iface
1439163653e8SYaroslav TykhiyIf the driver is a
1440163653e8SYaroslav Tykhiy.Xr vlan 4
1441b0dcc11cSYaroslav Tykhiypseudo device, disassociate the parent interface from it.
1442163653e8SYaroslav TykhiyThis breaks the link between the
1443163653e8SYaroslav Tykhiy.Xr vlan 4
1444163653e8SYaroslav Tykhiyinterface and its parent,
1445163653e8SYaroslav Tykhiyclears its VLAN tag, flags and its link address and shuts the interface down.
1446b0dcc11cSYaroslav TykhiyThe
1447b0dcc11cSYaroslav Tykhiy.Ar iface
1448b0dcc11cSYaroslav Tykhiyargument is useless and hence deprecated.
1449163653e8SYaroslav Tykhiy.El
1450163653e8SYaroslav Tykhiy.Pp
1451556c9a4cSJesus R. CamouThe following parameters are specific to
1452556c9a4cSJesus R. Camou.Xr carp 4
1453556c9a4cSJesus R. Camouinterfaces:
1454556c9a4cSJesus R. Camou.Bl -tag -width indent
1455556c9a4cSJesus R. Camou.It Cm advbase Ar seconds
1456556c9a4cSJesus R. CamouSpecifies the base of the advertisement interval in seconds.
1457556c9a4cSJesus R. CamouThe acceptable values are 1 to 255.
1458556c9a4cSJesus R. CamouThe default value is 1.
1459556c9a4cSJesus R. Camou.\" The default value is
1460556c9a4cSJesus R. Camou.\" .Dv CARP_DFLTINTV .
1461556c9a4cSJesus R. Camou.It Cm advskew Ar interval
1462556c9a4cSJesus R. CamouSpecifies the skew to add to the base advertisement interval to
1463556c9a4cSJesus R. Camoumake one host advertise slower than another host.
1464556c9a4cSJesus R. CamouIt is specified in 1/256 of seconds.
1465556c9a4cSJesus R. CamouThe acceptable values are 1 to 254.
1466556c9a4cSJesus R. CamouThe default value is 0.
1467556c9a4cSJesus R. Camou.It Cm pass Ar phrase
1468556c9a4cSJesus R. CamouSet the authentication key to
1469556c9a4cSJesus R. Camou.Ar phrase .
1470556c9a4cSJesus R. Camou.It Cm vhid Ar n
1471556c9a4cSJesus R. CamouSet the virtual host ID.
1472556c9a4cSJesus R. CamouThis is a required setting.
1473556c9a4cSJesus R. CamouAcceptable values are 1 to 255.
1474556c9a4cSJesus R. Camou.El
1475556c9a4cSJesus R. Camou.Pp
1476e1205e80SPhilippe CharnierThe
1477e1205e80SPhilippe Charnier.Nm
1478e1205e80SPhilippe Charnierutility displays the current configuration for a network interface
14798fae3551SRodney W. Grimeswhen no optional parameters are supplied.
14808fae3551SRodney W. GrimesIf a protocol family is specified,
1481e333b944SPhilippe Charnier.Nm
1482e333b944SPhilippe Charnierwill report only the details specific to that protocol family.
1483b5436146SPeter Wemm.Pp
1484ca299b1fSPoul-Henning KampIf the
1485ca299b1fSPoul-Henning Kamp.Fl m
1486b09b4efbSRuslan Ermilovflag is passed before an interface name,
1487b09b4efbSRuslan Ermilov.Nm
1488fc281403SRuslan Ermilovwill display the capability list and all
1489ca299b1fSPoul-Henning Kampof the supported media for the specified interface.
1490cfa1ca9dSYoshinobu InoueIf
1491cfa1ca9dSYoshinobu Inoue.Fl L
1492b112c02bSBen Smithurstflag is supplied, address lifetime is displayed for IPv6 addresses,
1493cfa1ca9dSYoshinobu Inoueas time offset string.
1494cfa1ca9dSYoshinobu Inoue.Pp
1495b5436146SPeter WemmOptionally, the
1496b5436146SPeter Wemm.Fl a
1497b09b4efbSRuslan Ermilovflag may be used instead of an interface name.
1498b09b4efbSRuslan ErmilovThis flag instructs
1499b5436146SPeter Wemm.Nm
1500b5436146SPeter Wemmto display information about all interfaces in the system.
1501e333b944SPhilippe CharnierThe
1502b5436146SPeter Wemm.Fl d
1503e333b944SPhilippe Charnierflag limits this to interfaces that are down, and
1504b5436146SPeter Wemm.Fl u
1505b5436146SPeter Wemmlimits this to interfaces that are up.
1506abc3361aSArchie CobbsWhen no arguments are given,
1507abc3361aSArchie Cobbs.Fl a
1508abc3361aSArchie Cobbsis implied.
1509b5436146SPeter Wemm.Pp
1510b5436146SPeter WemmThe
1511b5436146SPeter Wemm.Fl l
1512b5436146SPeter Wemmflag may be used to list all available interfaces on the system, with
1513b09b4efbSRuslan Ermilovno other additional information.
1514b09b4efbSRuslan ErmilovUse of this flag is mutually exclusive
1515b5436146SPeter Wemmwith all other flags and commands, except for
1516b5436146SPeter Wemm.Fl d
1517b5436146SPeter Wemm(only list interfaces that are down)
1518b5436146SPeter Wemmand
1519b5436146SPeter Wemm.Fl u
1520b5436146SPeter Wemm(only list interfaces that are up).
15218fae3551SRodney W. Grimes.Pp
15223e61dca0SBrooks DavisThe
15235faf8dcbSSam Leffler.Fl v
15245faf8dcbSSam Lefflerflag may be used to get more verbose status for an interface.
15255faf8dcbSSam Leffler.Pp
15265faf8dcbSSam LefflerThe
15273e61dca0SBrooks Davis.Fl C
15283e61dca0SBrooks Davisflag may be used to list all of the interface cloners available on
15293e61dca0SBrooks Davisthe system, with no additional information.
15303e61dca0SBrooks DavisUse of this flag is mutually exclusive with all other flags and commands.
15313e61dca0SBrooks Davis.Pp
1532b7eb47e2SRobert WatsonThe
1533b7eb47e2SRobert Watson.Fl k
1534b7eb47e2SRobert Watsonflag causes keying information for the interface, if available, to be
1535b7eb47e2SRobert Watsonprinted.
1536b7eb47e2SRobert WatsonFor example, the values of 802.11 WEP keys will be printed, if accessible to
1537b7eb47e2SRobert Watsonthe current user.
1538b7eb47e2SRobert WatsonThis information is not printed by default, as it may be considered
1539b7eb47e2SRobert Watsonsensitive.
1540b7eb47e2SRobert Watson.Pp
15418fae3551SRodney W. GrimesOnly the super-user may modify the configuration of a network interface.
1542920de530SPeter Wemm.Sh NOTES
1543920de530SPeter WemmThe media selection system is relatively new and only some drivers support
1544920de530SPeter Wemmit (or have need for it).
15458fae3551SRodney W. Grimes.Sh DIAGNOSTICS
154620d3783aSDaniel O'CallaghanMessages indicating the specified interface does not exist, the
15478fae3551SRodney W. Grimesrequested address is unknown, or the user is not privileged and
15488fae3551SRodney W. Grimestried to alter an interface's configuration.
15498fae3551SRodney W. Grimes.Sh SEE ALSO
15508fae3551SRodney W. Grimes.Xr netstat 1 ,
15514029efa5SChristian Brueffer.Xr carp 4 ,
15528fae3551SRodney W. Grimes.Xr netintro 4 ,
1553ced42c6cSCeri Davies.Xr pfsync 4 ,
15544029efa5SChristian Brueffer.Xr polling 4 ,
1555588e78c5SYaroslav Tykhiy.Xr vlan 4 ,
1556b09b4efbSRuslan Ermilov.\" .Xr eon 5 ,
15578fae3551SRodney W. Grimes.Xr rc 8 ,
15584b32efacSBruce M Simpson.Xr routed 8 ,
15594b32efacSBruce M Simpson.Xr sysctl 8
15608fae3551SRodney W. Grimes.Sh HISTORY
15618fae3551SRodney W. GrimesThe
15628fae3551SRodney W. Grimes.Nm
1563e1205e80SPhilippe Charnierutility appeared in
15648fae3551SRodney W. Grimes.Bx 4.2 .
15656087df9eSRuslan Ermilov.Sh BUGS
15666087df9eSRuslan ErmilovBasic IPv6 node operation requires a link-local address on each
15676087df9eSRuslan Ermilovinterface configured for IPv6.
15686087df9eSRuslan ErmilovNormally, such an address is automatically configured by the
15696087df9eSRuslan Ermilovkernel on each interface added to the system; this behaviour may
15706087df9eSRuslan Ermilovbe disabled by setting the sysctl MIB variable
15716087df9eSRuslan Ermilov.Va net.inet6.ip6.auto_linklocal
15726087df9eSRuslan Ermilovto 0.
15736087df9eSRuslan Ermilov.Pp
15746087df9eSRuslan ErmilovIf you delete such an address using
15756087df9eSRuslan Ermilov.Nm ,
157609a66bdaSJens Schweikhardtthe kernel may act very odd.
15776087df9eSRuslan ErmilovDo this at your own risk.
1578