5013 add support for multiple mac addresses per client
[unleashed.git] / usr / src / man / man1m / dladm.1m
blob0434b690626478812560b3f28a262c093d5070a0
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright (c) 2014, Joyent, Inc. All Rights Reserved
4 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/.
5 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text
6 .\" are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical
7 .\" and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
8 .\"  This notice shall appear on any product containing this material.
9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
11 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
12 .TH DLADM 1M "Jul 17, 2014"
13 .SH NAME
14 dladm \- administer data links
15 .SH SYNOPSIS
16 .LP
17 .nf
18 \fBdladm show-link\fR [\fB-P\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIlink\fR]
19 \fBdladm rename-link\fR [\fB-R\fR \fIroot-dir\fR] \fIlink\fR \fInew-link\fR
20 .fi
22 .LP
23 .nf
24 \fBdladm delete-phys\fR \fIphys-link\fR
25 \fBdladm show-phys\fR [\fB-P\fR] [\fB-m\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fB-H\fR] [\fIphys-link\fR]
26 .fi
28 .LP
29 .nf
30 \fBdladm create-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR \fIpolicy\fR] [\fB-L\fR \fImode\fR]
31      [\fB-T\fR \fItime\fR] [\fB-u\fR \fIaddress\fR] \fB-l\fR \fIether-link1\fR [\fB-l\fR \fIether-link2\fR...] \fIaggr-link\fR
32 \fBdladm modify-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR \fIpolicy\fR] [\fB-L\fR \fImode\fR]
33      [\fB-T\fR \fItime\fR] [\fB-u\fR \fIaddress\fR] \fIaggr-link\fR
34 \fBdladm delete-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIaggr-link\fR
35 \fBdladm add-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIether-link1\fR [\fB-l\fR \fIether-link2\fR...]
36      \fIaggr-link\fR
37 \fBdladm remove-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIether-link1\fR [\fB-l\fR \fIether-link2\fR...]
38      \fIaggr-link\fR
39 \fBdladm show-aggr\fR [\fB-PLx\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
40      [\fIaggr-link\fR]
41 .fi
43 .LP
44 .nf
45 \fBdladm create-bridge\fR [\fB-P\fR \fIprotect\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIpriority\fR]
46      [\fB-m\fR \fImax-age\fR] [\fB-h\fR \fIhello-time\fR] [\fB-d\fR \fIforward-delay\fR] [\fB-f\fR \fIforce-protocol\fR]
47      [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR
48 .fi
50 .LP
51 .nf
52 \fBdladm modify-bridge\fR [\fB-P\fR \fIprotect\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIpriority\fR]
53      [\fB-m\fR \fImax-age\fR] [\fB-h\fR \fIhello-time\fR] [\fB-d\fR \fIforward-delay\fR] [\fB-f\fR \fIforce-protocol\fR]
54      \fIbridge-name\fR
55 .fi
57 .LP
58 .nf
59 \fBdladm delete-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fIbridge-name\fR
60 .fi
62 .LP
63 .nf
64 \fBdladm add-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR [\fB-l\fR \fIlink\fR...]\fIbridge-name\fR
65 .fi
67 .LP
68 .nf
69 \fBdladm remove-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR
70 .fi
72 .LP
73 .nf
74 \fBdladm show-bridge\fR [\fB-flt\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
75      [\fIbridge-name\fR]
76 .fi
78 .LP
79 .nf
80 \fBdladm create-vlan\fR [\fB-ft\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIether-link\fR \fB-v\fR \fIvid\fR [\fIvlan-link\fR]
81 \fBdladm delete-vlan\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIvlan-link\fR
82 \fBdladm show-vlan\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIvlan-link\fR]
83 .fi
85 .LP
86 .nf
87 \fBdladm scan-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIwifi-link\fR]
88 \fBdladm connect-wifi\fR [\fB-e\fR \fIessid\fR] [\fB-i\fR \fIbssid\fR] [\fB-k\fR \fIkey\fR,...]
89      [\fB-s\fR none | wep | wpa ] [\fB-a\fR open | shared] [\fB-b\fR bss | ibss] [\fB-c\fR]
90      [\fB-m\fR a | b | g] [\fB-T\fR \fItime\fR] [\fIwifi-link\fR]
91 \fBdladm disconnect-wifi\fR [\fB-a\fR] [\fIwifi-link\fR]
92 \fBdladm show-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIwifi-link\fR]
93 .fi
95 .LP
96 .nf
97 \fBdladm show-ether\fR [\fB-x\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIether-link\fR]
98 .fi
102 \fBdladm set-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-p\fR \fIprop\fR=\fIvalue\fR[,...] \fIlink\fR
103 \fBdladm reset-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIprop\fR[,...]] \fIlink\fR
104 \fBdladm show-linkprop\fR [\fB-P\fR] [[\fB-c\fR] \fB-o\fR \fIfield\fR[,...]] [\fB-p\fR \fIprop\fR[,...]] [\fIlink\fR]
109 \fBdladm create-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-f\fR \fIfile\fR] \fB-c\fR \fIclass\fR \fIsecobj\fR
110 \fBdladm delete-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIsecobj\fR[,...]
111 \fBdladm show-secobj\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIsecobj\fR,...]
116 \fBdladm create-vnic\fR [\fB-t\fR] \fB-l\fR \fIlink\fR [\fB-R\fR \fIroot-dir\fR] [\fB-m\fR \fIvalue\fR | auto |
117      {factory \fB-n\fR \fIslot-identifier\fR]} | {random [\fB-r\fR \fIprefix\fR]}]
118      [\fB-v\fR \fIvlan-id\fR] [\fB-p\fR \fIprop\fR=\fIvalue\fR[,...]] \fIvnic-link\fR
119 \fBdladm delete-vnic\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIvnic-link\fR
120 \fBdladm show-vnic\fR [\fB-pP\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [\fB-o\fR \fIfield\fR[,...]]
121      [\fB-l\fR \fIlink\fR] [\fIvnic-link\fR]
126 \fBdladm create-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIetherstub\fR
127 \fBdladm delete-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIetherstub\fR
128 \fBdladm show-etherstub\fR [\fIetherstub\fR]
133 \fBdladm create-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-T\fR \fItype\fR [\fB-s\fR \fItsrc\fR] [\fB-d\fR \fItdst\fR]
134      \fIiptun-link\fR
135 \fBdladm modify-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-s\fR \fItsrc\fR] [\fB-d\fR \fItdst\fR] \fIiptun-link\fR
136 \fBdladm delete-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIiptun-link\fR
137 \fBdladm show-iptun\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIiptun-link\fR]
142 \fBdladm show-usage\fR [\fB-a\fR] \fB-f\fR \fIfilename\fR [\fB-p\fR \fIplotfile\fR \fB-F\fR \fIformat\fR] [\fB-s\fR \fItime\fR]
143      [\fB-e\fR \fItime\fR] [\fIlink\fR]
146 .SH DESCRIPTION
149 The \fBdladm\fR command is used to administer data-links. A data-link is
150 represented in the system as a \fBSTREAMS DLPI\fR (v2) interface which can be
151 plumbed under protocol stacks such as \fBTCP/IP\fR. Each data-link relies on
152 either a single network device or an aggregation of devices to send packets to
153 or receive packets from a network.
156 Each \fBdladm\fR subcommand operates on one of the following objects:
158 .ne 2
160 \fB\fBlink\fR\fR
162 .sp .6
163 .RS 4n
164 A datalink, identified by a name. In general, the name can use any alphanumeric
165 characters (or the underscore, \fB_\fR), but must start with an alphabetic
166 character and end with a number. A datalink name can be at most 31 characters,
167 and the ending number must be between 0 and 4294967294 (inclusive). The ending
168 number must not begin with a zero. Datalink names between 3 and 8 characters
169 are recommended.
171 Some subcommands operate only on certain types or classes of datalinks. For
172 those cases, the following object names are used:
174 .ne 2
176 \fB\fBphys-link\fR\fR
178 .sp .6
179 .RS 4n
180 A physical datalink.
184 .ne 2
186 \fB\fBvlan-link\fR\fR
188 .sp .6
189 .RS 4n
190 A VLAN datalink.
194 .ne 2
196 \fB\fBaggr-link\fR\fR
198 .sp .6
199 .RS 4n
200 An aggregation datalink (or a key; see NOTES).
204 .ne 2
206 \fB\fBether-link\fR\fR
208 .sp .6
209 .RS 4n
210 A physical Ethernet datalink.
214 .ne 2
216 \fB\fBwifi-link\fR\fR
218 .sp .6
219 .RS 4n
220 A WiFi datalink.
224 .ne 2
226 \fB\fBvnic-link\fR\fR
228 .sp .6
229 .RS 4n
230 A virtual network interface created on a link or an \fBetherstub\fR. It is a
231 pseudo device that can be treated as if it were an network interface card on a
232 machine.
236 .ne 2
238 \fB\fBiptun-link\fR\fR
240 .sp .6
241 .RS 4n
242 An IP tunnel link.
248 .ne 2
250 \fB\fBdev\fR\fR
252 .sp .6
253 .RS 4n
254 A network device, identified by concatenation of a driver name and an instance
255 number.
259 .ne 2
261 \fB\fBetherstub\fR\fR
263 .sp .6
264 .RS 4n
265 An Ethernet stub can be used instead of a physical NIC to create VNICs. VNICs
266 created on an \fBetherstub\fR will appear to be connected through a virtual
267 switch, allowing complete virtual networks to be built without physical
268 hardware.
272 .ne 2
274 \fB\fBbridge\fR\fR
276 .sp .6
277 .RS 4n
278 A bridge instance, identified by an administratively-chosen name. The name may
279 use any alphanumeric characters or the underscore, \fB_\fR, but must start and
280 end with an alphabetic character. A bridge name can be at most 31 characters.
281 The name \fBdefault\fR is reserved, as are all names starting with \fBSUNW\fR.
283 Note that appending a zero (\fB0\fR) to a bridge name produces a valid link
284 name, used for observability.
288 .ne 2
290 \fB\fBsecobj\fR\fR
292 .sp .6
293 .RS 4n
294 A secure object, identified by an administratively-chosen name. The name can
295 use any alphanumeric characters, as well as underscore (\fB_\fR), period
296 (\fB\&.\fR), and hyphen (\fB-\fR). A secure object name can be at most 32
297 characters.
300 .SS "Options"
303 Each \fBdladm\fR subcommand has its own set of options. However, many of the
304 subcommands have the following as a common option:
306 .ne 2
308 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
310 .sp .6
311 .RS 4n
312 Specifies an alternate root directory where the operation-such as creation,
313 deletion, or renaming-should apply.
316 .SS "SUBCOMMANDS"
319 The following subcommands are supported:
321 .ne 2
323 \fB\fBdladm show-link\fR [\fB-P\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
324 [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]][\fIlink\fR]\fR
326 .sp .6
327 .RS 4n
328 Show link configuration information (the default) or statistics, either for all
329 datalinks or for the specified link \fIlink\fR. By default, the system is
330 configured with one datalink for each known network device.
332 .ne 2
334 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
336 .sp .6
337 .RS 4n
338 A case-insensitive, comma-separated list of output fields to display. When not
339 modified by the \fB-s\fR option (described below), the field name must be one
340 of the fields listed below, or the special value \fBall\fR to display all
341 fields. By default (without \fB-o\fR), \fBshow-link\fR displays all fields.
343 .ne 2
345 \fB\fBLINK\fR\fR
347 .sp .6
348 .RS 4n
349 The name of the datalink.
353 .ne 2
355 \fB\fBCLASS\fR\fR
357 .sp .6
358 .RS 4n
359 The class of the datalink. \fBdladm\fR distinguishes between the following
360 classes:
362 .ne 2
364 \fB\fBphys\fR\fR
366 .sp .6
367 .RS 4n
368 A physical datalink. The \fBshow-phys\fR subcommand displays more detail for
369 this class of datalink.
373 .ne 2
375 \fB\fBaggr\fR\fR
377 .sp .6
378 .RS 4n
379 An IEEE 802.3ad link aggregation. The \fBshow-aggr\fR subcommand displays more
380 detail for this class of datalink.
384 .ne 2
386 \fB\fBvlan\fR\fR
388 .sp .6
389 .RS 4n
390 A VLAN datalink. The \fBshow-vlan\fR subcommand displays more detail for this
391 class of datalink.
395 .ne 2
397 \fB\fBvnic\fR\fR
399 .sp .6
400 .RS 4n
401 A virtual network interface. The \fBshow-vnic\fR subcommand displays more
402 detail for this class of datalink.
408 .ne 2
410 \fB\fBMTU\fR\fR
412 .sp .6
413 .RS 4n
414 The maximum transmission unit size for the datalink being displayed.
418 .ne 2
420 \fB\fBSTATE\fR\fR
422 .sp .6
423 .RS 4n
424 The link state of the datalink. The state can be \fBup\fR, \fBdown\fR, or
425 \fBunknown\fR.
429 .ne 2
431 \fB\fBBRIDGE\fR\fR
433 .sp .6
434 .RS 4n
435 The name of the bridge to which this link is assigned, if any.
439 .ne 2
441 \fB\fBOVER\fR\fR
443 .sp .6
444 .RS 4n
445 The physical datalink(s) over which the datalink is operating. This applies to
446 \fBaggr\fR, \fBbridge\fR, and \fBvlan\fR classes of datalinks. A VLAN is
447 created over a single physical datalink, a bridge has multiple attached links,
448 and an aggregation is comprised of one or more physical datalinks.
451 When the \fB-o\fR option is used in conjunction with the \fB-s\fR option, used
452 to display link statistics, the field name must be one of the fields listed
453 below, or the special value \fBall\fR to display all fields
455 .ne 2
457 \fB\fBLINK\fR\fR
459 .sp .6
460 .RS 4n
461 The name of the datalink.
465 .ne 2
467 \fB\fBIPACKETS\fR\fR
469 .sp .6
470 .RS 4n
471 Number of packets received on this link.
475 .ne 2
477 \fB\fBRBYTES\fR\fR
479 .sp .6
480 .RS 4n
481 Number of bytes received on this link.
485 .ne 2
487 \fB\fBIERRORS\fR\fR
489 .sp .6
490 .RS 4n
491 Number of input errors.
495 .ne 2
497 \fB\fBOPACKETS\fR\fR
499 .sp .6
500 .RS 4n
501 Number of packets sent on this link.
505 .ne 2
507 \fB\fBOBYTES\fR\fR
509 .sp .6
510 .RS 4n
511 Number of bytes received on this link.
515 .ne 2
517 \fB\fBOERRORS\fR\fR
519 .sp .6
520 .RS 4n
521 Number of output errors.
527 .ne 2
529 \fB\fB-p\fR, \fB--parseable\fR\fR
531 .sp .6
532 .RS 4n
533 Display using a stable machine-parseable format. The \fB-o\fR option is
534 required with \fB-p\fR. See "Parseable Output Format", below.
538 .ne 2
540 \fB\fB-P\fR, \fB--persistent\fR\fR
542 .sp .6
543 .RS 4n
544 Display the persistent link configuration.
548 .ne 2
550 \fB\fB-s\fR, \fB--statistics\fR\fR
552 .sp .6
553 .RS 4n
554 Display link statistics.
558 .ne 2
560 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
562 .sp .6
563 .RS 4n
564 Used with the \fB-s\fR option to specify an interval, in seconds, at which
565 statistics should be displayed. If this option is not specified, statistics
566 will be displayed only once.
572 .ne 2
574 \fB\fBdladm rename-link\fR [\fB-R\fR \fIroot-dir\fR] \fIlink\fR
575 \fInew-link\fR\fR
577 .sp .6
578 .RS 4n
579 Rename \fIlink\fR to \fInew-link\fR. This is used to give a link a meaningful
580 name, or to associate existing link configuration such as link properties of a
581 removed device with a new device. See the \fBEXAMPLES\fR section for specific
582 examples of how this subcommand is used.
584 .ne 2
586 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
588 .sp .6
589 .RS 4n
590 See "Options," above.
596 .ne 2
598 \fB\fBdladm delete-phys\fR \fIphys-link\fR\fR
600 .sp .6
601 .RS 4n
602 This command is used to delete the persistent configuration of a link
603 associated with physical hardware which has been removed from the system. See
604 the \fBEXAMPLES\fR section.
608 .ne 2
610 \fB\fBdladm show-phys\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
611 [\fB-H\fR] [\fIphys-link\fR]\fR
613 .sp .6
614 .RS 4n
615 Show the physical device and attributes of all physical links, or of the named
616 physical link. Without \fB-P\fR, only physical links that are available on the
617 running system are displayed.
619 .ne 2
621 \fB\fB-H\fR\fR
623 .sp .6
624 .RS 4n
625 Show hardware resource usage, as returned by the NIC driver. Output from
626 \fB-H\fR displays the following elements:
628 .ne 2
630 \fB\fBLINK\fR\fR
632 .sp .6
633 .RS 4n
634 A physical device corresponding to a NIC driver.
638 .ne 2
640 \fB\fBGROUP\fR\fR
642 .sp .6
643 .RS 4n
644 A collection of rings.
648 .ne 2
650 \fB\fBGROUPTYPE\fR\fR
652 .sp .6
653 .RS 4n
654 RX or TX. All rings in a group are of the same group type.
658 .ne 2
660 \fB\fBRINGS\fR\fR
662 .sp .6
663 .RS 4n
664 A hardware resource used by a data link, subject to assignment by a driver to
665 different groups.
669 .ne 2
671 \fB\fBCLIENTS\fR\fR
673 .sp .6
674 .RS 4n
675 MAC clients that are using the rings within a group.
681 .ne 2
683 \fB\fB-o\fR \fIfield\fR, \fB--output\fR=\fIfield\fR\fR
685 .sp .6
686 .RS 4n
687 A case-insensitive, comma-separated list of output fields to display. The field
688 name must be one of the fields listed below, or the special value \fBall\fR, to
689 display all fields. For each link, the following fields can be displayed:
691 .ne 2
693 \fB\fBLINK\fR\fR
695 .sp .6
696 .RS 4n
697 The name of the datalink.
701 .ne 2
703 \fB\fBMEDIA\fR\fR
705 .sp .6
706 .RS 4n
707 The media type provided by the physical datalink.
711 .ne 2
713 \fB\fBSTATE\fR\fR
715 .sp .6
716 .RS 4n
717 The state of the link. This can be \fBup\fR, \fBdown\fR, or \fBunknown\fR.
721 .ne 2
723 \fB\fBSPEED\fR\fR
725 .sp .6
726 .RS 4n
727 The current speed of the link, in megabits per second.
731 .ne 2
733 \fB\fBDUPLEX\fR\fR
735 .sp .6
736 .RS 4n
737 For Ethernet links, the full/half duplex status of the link is displayed if the
738 link state is \fBup\fR. The duplex is displayed as \fBunknown\fR in all other
739 cases.
743 .ne 2
745 \fB\fBDEVICE\fR\fR
747 .sp .6
748 .RS 4n
749 The name of the physical device under this link.
755 .ne 2
757 \fB\fB-p\fR, \fB--parseable\fR\fR
759 .sp .6
760 .RS 4n
761 Display using a stable machine-parseable format. The \fB-o\fR option is
762 required with \fB-p\fR. See "Parseable Output Format", below.
766 .ne 2
768 \fB\fB-P\fR, \fB--persistent\fR\fR
770 .sp .6
771 .RS 4n
772 This option displays persistent configuration for all links, including those
773 that have been removed from the system. The output provides a \fBFLAGS\fR
774 column in which the \fBr\fR flag indicates that the physical device associated
775 with a physical link has been removed. For such links, \fBdelete-phys\fR can be
776 used to purge the link's configuration from the system.
782 .ne 2
784 \fB\fBdladm create-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR
785 \fIpolicy\fR] [\fB-L\fR \fImode\fR] [\fB-T\fR \fItime\fR] [\fB-u\fR
786 \fIaddress\fR] \fB-l\fR \fIether-link1\fR [\fB-l\fR \fIether-link2\fR...]
787 \fIaggr-link\fR\fR
789 .sp .6
790 .RS 4n
791 Combine a set of links into a single IEEE 802.3ad link aggregation named
792 \fIaggr-link\fR. The use of an integer \fIkey\fR to generate a link name for
793 the aggregation is also supported for backward compatibility. Many of the
794 \fB*\fR\fB-aggr\fR subcommands below also support the use of a \fIkey\fR to
795 refer to a given aggregation, but use of the aggregation link name is
796 preferred. See the \fBNOTES\fR section for more information on keys.
798 \fBdladm\fR supports a number of port selection policies for an aggregation of
799 ports. (See the description of the \fB-P\fR option, below.) If you do not
800 specify a policy, \fBcreate-aggr\fR uses the default, the L4 policy, described
801 under the \fB-P\fR option.
803 .ne 2
805 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
807 .sp .6
808 .RS 4n
809 Each Ethernet link (or port) in the aggregation is specified using an \fB-l\fR
810 option followed by the name of the link to be included in the aggregation.
811 Multiple links are included in the aggregation by specifying multiple \fB-l\fR
812 options. For backward compatibility with previous versions of Solaris, the
813 \fBdladm\fR command also supports the using the \fB-d\fR option (or
814 \fB--dev\fR) with a device name to specify links by their underlying device
815 name. The other \fB*\fR\fB-aggr\fR subcommands that take \fB-l\fRoptions also
816 accept \fB-d\fR.
820 .ne 2
822 \fB\fB-t\fR, \fB--temporary\fR\fR
824 .sp .6
825 .RS 4n
826 Specifies that the aggregation is temporary. Temporary aggregations last until
827 the next reboot.
831 .ne 2
833 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
835 .sp .6
836 .RS 4n
837 See "Options," above.
841 .ne 2
843 \fB\fB-P\fR \fIpolicy\fR, \fB--policy\fR=\fIpolicy\fR\fR
847 \fB\fR
849 .sp .6
850 .RS 4n
851 Specifies the port selection policy to use for load spreading of outbound
852 traffic. The policy specifies which \fIdev\fR object is used to send packets. A
853 policy is a list of one or more layers specifiers separated by commas. A layer
854 specifier is one of the following:
856 .ne 2
858 \fB\fBL2\fR\fR
860 .sp .6
861 .RS 4n
862 Select outbound device according to source and destination \fBMAC\fR addresses
863 of the packet.
867 .ne 2
869 \fB\fBL3\fR\fR
871 .sp .6
872 .RS 4n
873 Select outbound device according to source and destination \fBIP\fR addresses
874 of the packet.
878 .ne 2
880 \fB\fBL4\fR\fR
882 .sp .6
883 .RS 4n
884 Select outbound device according to the upper layer protocol information
885 contained in the packet. For \fBTCP\fR and \fBUDP\fR, this includes source and
886 destination ports. For IPsec, this includes the \fBSPI\fR (Security Parameters
887 Index).
890 For example, to use upper layer protocol information, the following policy can
891 be used:
893 .in +2
895 -P L4
897 .in -2
900 Note that policy L4 is the default.
902 To use the source and destination \fBMAC\fR addresses as well as the source and
903 destination \fBIP\fR addresses, the following policy can be used:
905 .in +2
907 -P L2,L3
909 .in -2
915 .ne 2
917 \fB\fB-L\fR \fImode\fR, \fB--lacp-mode\fR=\fImode\fR\fR
919 .sp .6
920 .RS 4n
921 Specifies whether \fBLACP\fR should be used and, if used, the mode in which it
922 should operate. Supported values are \fBoff\fR, \fBactive\fR or \fBpassive\fR.
926 .ne 2
928 \fB\fB-T\fR \fItime\fR, \fB--lacp-timer\fR=\fItime\fR\fR
932 \fB\fR
934 .sp .6
935 .RS 4n
936 Specifies the \fBLACP\fR timer value. The supported values are \fBshort\fR or
937 \fBlong\fRjjj.
941 .ne 2
943 \fB\fB-u\fR \fIaddress\fR, \fB--unicast\fR=\fIaddress\fR\fR
945 .sp .6
946 .RS 4n
947 Specifies a fixed unicast hardware address to be used for the aggregation. If
948 this option is not specified, then an address is automatically chosen from the
949 set of addresses of the component devices.
955 .ne 2
957 \fB\fBdladm modify-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR
958 \fIpolicy\fR] [\fB-L\fR \fImode\fR] [\fB-T\fR \fItime\fR] [\fB-u\fR
959 \fIaddress\fR] \fIaggr-link\fR\fR
961 .sp .6
962 .RS 4n
963 Modify the parameters of the specified aggregation.
965 .ne 2
967 \fB\fB-t\fR, \fB--temporary\fR\fR
969 .sp .6
970 .RS 4n
971 Specifies that the modification is temporary. Temporary aggregations last until
972 the next reboot.
976 .ne 2
978 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
980 .sp .6
981 .RS 4n
982 See "Options," above.
986 .ne 2
988 \fB\fB-P\fR \fIpolicy\fR, \fB--policy\fR=\fIpolicy\fR\fR
990 .sp .6
991 .RS 4n
992 Specifies the port selection policy to use for load spreading of outbound
993 traffic. See \fBdladm create-aggr\fR for a description of valid policy values.
997 .ne 2
999 \fB\fB-L\fR \fImode\fR, \fB--lacp-mode\fR=\fImode\fR\fR
1001 .sp .6
1002 .RS 4n
1003 Specifies whether \fBLACP\fR should be used and, if used, the mode in which it
1004 should operate. Supported values are \fBoff\fR, \fBactive\fR, or \fBpassive\fR.
1008 .ne 2
1010 \fB\fB-T\fR \fItime\fR, \fB--lacp-timer\fR=\fItime\fR\fR
1014 \fB\fR
1016 .sp .6
1017 .RS 4n
1018 Specifies the \fBLACP\fR timer value. The supported values are \fBshort\fR or
1019 \fBlong\fR.
1023 .ne 2
1025 \fB\fB-u\fR \fIaddress\fR, \fB--unicast\fR=\fIaddress\fR\fR
1027 .sp .6
1028 .RS 4n
1029 Specifies a fixed unicast hardware address to be used for the aggregation. If
1030 this option is not specified, then an address is automatically chosen from the
1031 set of addresses of the component devices.
1037 .ne 2
1039 \fB\fBdladm delete-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
1040 \fIaggr-link\fR\fR
1042 .sp .6
1043 .RS 4n
1044 Deletes the specified aggregation.
1046 .ne 2
1048 \fB\fB-t\fR, \fB--temporary\fR\fR
1050 .sp .6
1051 .RS 4n
1052 Specifies that the deletion is temporary. Temporary deletions last until the
1053 next reboot.
1057 .ne 2
1059 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1061 .sp .6
1062 .RS 4n
1063 See "Options," above.
1069 .ne 2
1071 \fB\fBdladm add-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
1072 \fIether-link1\fR [\fB--link\fR=\fIether-link2\fR...] \fIaggr-link\fR\fR
1074 .sp .6
1075 .RS 4n
1076 Adds links to the specified aggregation.
1078 .ne 2
1080 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
1082 .sp .6
1083 .RS 4n
1084 Specifies an Ethernet link to add to the aggregation. Multiple links can be
1085 added by supplying multiple \fB-l\fR options.
1089 .ne 2
1091 \fB\fB-t\fR, \fB--temporary\fR\fR
1093 .sp .6
1094 .RS 4n
1095 Specifies that the additions are temporary. Temporary additions last until the
1096 next reboot.
1100 .ne 2
1102 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1104 .sp .6
1105 .RS 4n
1106 See "Options," above.
1112 .ne 2
1114 \fB\fBdladm remove-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
1115 \fIether-link1\fR [\fB--l\fR=\fIether-link2\fR...] \fIaggr-link\fR\fR
1117 .sp .6
1118 .RS 4n
1119 Removes links from the specified aggregation.
1121 .ne 2
1123 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
1125 .sp .6
1126 .RS 4n
1127 Specifies an Ethernet link to remove from the aggregation. Multiple links can
1128 be added by supplying multiple \fB-l\fR options.
1132 .ne 2
1134 \fB\fB-t\fR, \fB--temporary\fR\fR
1136 .sp .6
1137 .RS 4n
1138 Specifies that the removals are temporary. Temporary removal last until the
1139 next reboot.
1143 .ne 2
1145 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1147 .sp .6
1148 .RS 4n
1149 See "Options," above.
1155 .ne 2
1157 \fB\fBdladm show-aggr\fR [\fB-PLx\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
1158 [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIaggr-link\fR]\fR
1160 .sp .6
1161 .RS 4n
1162 Show aggregation configuration (the default), \fBLACP\fR information, or
1163 statistics, either for all aggregations or for the specified aggregation.
1165 By default (with no options), the following fields can be displayed:
1167 .ne 2
1169 \fB\fBLINK\fR\fR
1171 .sp .6
1172 .RS 4n
1173 The name of the aggregation link.
1177 .ne 2
1179 \fB\fBPOLICY\fR\fR
1181 .sp .6
1182 .RS 4n
1183 The LACP policy of the aggregation. See the \fBcreate-aggr\fR \fB-P\fR option
1184 for a description of the possible values.
1188 .ne 2
1190 \fB\fBADDRPOLICY\fR\fR
1192 .sp .6
1193 .RS 4n
1194 Either \fBauto\fR, if the aggregation is configured to automatically configure
1195 its unicast MAC address (the default if the \fB-u\fR option was not used to
1196 create or modify the aggregation), or \fBfixed\fR, if \fB-u\fR was used to set
1197 a fixed MAC address.
1201 .ne 2
1203 \fB\fBLACPACTIVITY\fR\fR
1205 .sp .6
1206 .RS 4n
1207 The LACP mode of the aggregation. Possible values are \fBoff\fR, \fBactive\fR,
1208 or \fBpassive\fR, as set by the \fB-l\fR option to \fBcreate-aggr\fR or
1209 \fBmodify-aggr\fR.
1213 .ne 2
1215 \fB\fBLACPTIMER\fR\fR
1217 .sp .6
1218 .RS 4n
1219 The LACP timer value of the aggregation as set by the \fB-T\fR option of
1220 \fBcreate-aggr\fR or \fBmodify-aggr\fR.
1224 .ne 2
1226 \fB\fBFLAGS\fR\fR
1228 .sp .6
1229 .RS 4n
1230 A set of state flags associated with the aggregation. The only possible flag is
1231 \fBf\fR, which is displayed if the administrator forced the creation the
1232 aggregation using the \fB-f\fR option to \fBcreate-aggr\fR. Other flags might
1233 be defined in the future.
1236 The \fBshow-aggr\fR command accepts the following options:
1238 .ne 2
1240 \fB\fB-L\fR, \fB--lacp\fR\fR
1242 .sp .6
1243 .RS 4n
1244 Displays detailed \fBLACP\fR information for the aggregation link and each
1245 underlying port. Most of the state information displayed by this option is
1246 defined by IEEE 802.3. With this option, the following fields can be displayed:
1248 .ne 2
1250 \fB\fBLINK\fR\fR
1252 .sp .6
1253 .RS 4n
1254 The name of the aggregation link.
1258 .ne 2
1260 \fB\fBPORT\fR\fR
1262 .sp .6
1263 .RS 4n
1264 The name of one of the underlying aggregation ports.
1268 .ne 2
1270 \fB\fBAGGREGATABLE\fR\fR
1272 .sp .6
1273 .RS 4n
1274 Whether the port can be added to the aggregation.
1278 .ne 2
1280 \fB\fBSYNC\fR\fR
1282 .sp .6
1283 .RS 4n
1284 If \fByes\fR, the system considers the port to be synchronized and part of the
1285 aggregation.
1289 .ne 2
1291 \fB\fBCOLL\fR\fR
1293 .sp .6
1294 .RS 4n
1295 If \fByes\fR, collection of incoming frames is enabled on the associated port.
1299 .ne 2
1301 \fB\fBDIST\fR\fR
1303 .sp .6
1304 .RS 4n
1305 If \fByes\fR, distribution of outgoing frames is enabled on the associated
1306 port.
1310 .ne 2
1312 \fB\fBDEFAULTED\fR\fR
1314 .sp .6
1315 .RS 4n
1316 If \fByes\fR, the port is using defaulted partner information (that is, has not
1317 received LACP data from the LACP partner).
1321 .ne 2
1323 \fB\fBEXPIRED\fR\fR
1325 .sp .6
1326 .RS 4n
1327 If \fByes\fR, the receive state of the port is in the \fBEXPIRED\fR state.
1333 .ne 2
1335 \fB\fB-x\fR, \fB--extended\fR\fR
1337 .sp .6
1338 .RS 4n
1339 Display additional aggregation information including detailed information on
1340 each underlying port. With \fB-x\fR, the following fields can be displayed:
1342 .ne 2
1344 \fB\fBLINK\fR\fR
1346 .sp .6
1347 .RS 4n
1348 The name of the aggregation link.
1352 .ne 2
1354 \fB\fBPORT\fR\fR
1356 .sp .6
1357 .RS 4n
1358 The name of one of the underlying aggregation ports.
1362 .ne 2
1364 \fB\fBSPEED\fR\fR
1366 .sp .6
1367 .RS 4n
1368 The speed of the link or port in megabits per second.
1372 .ne 2
1374 \fB\fBDUPLEX\fR\fR
1376 .sp .6
1377 .RS 4n
1378 The full/half duplex status of the link or port is displayed if the link state
1379 is \fBup\fR. The duplex status is displayed as \fBunknown\fR in all other
1380 cases.
1384 .ne 2
1386 \fB\fBSTATE\fR\fR
1388 .sp .6
1389 .RS 4n
1390 The link state. This can be \fBup\fR, \fBdown\fR, or \fBunknown\fR.
1394 .ne 2
1396 \fB\fBADDRESS\fR\fR
1398 .sp .6
1399 .RS 4n
1400 The MAC address of the link or port.
1404 .ne 2
1406 \fB\fBPORTSTATE\fR\fR
1408 .sp .6
1409 .RS 4n
1410 This indicates whether the individual aggregation port is in the \fBstandby\fR
1411 or \fBattached\fR state.
1417 .ne 2
1419 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
1421 .sp .6
1422 .RS 4n
1423 A case-insensitive, comma-separated list of output fields to display. The field
1424 name must be one of the fields listed above, or the special value \fBall\fR, to
1425 display all fields. The fields applicable to the \fB-o\fR option are limited to
1426 those listed under each output mode. For example, if using \fB-L\fR, only the
1427 fields listed under \fB-L\fR, above, can be used with \fB-o\fR.
1431 .ne 2
1433 \fB\fB-p\fR, \fB--parseable\fR\fR
1435 .sp .6
1436 .RS 4n
1437 Display using a stable machine-parseable format. The \fB-o\fR option is
1438 required with \fB-p\fR. See "Parseable Output Format", below.
1442 .ne 2
1444 \fB\fB-P\fR, \fB--persistent\fR\fR
1446 .sp .6
1447 .RS 4n
1448 Display the persistent aggregation configuration rather than the state of the
1449 running system.
1453 .ne 2
1455 \fB\fB-s\fR, \fB--statistics\fR\fR
1457 .sp .6
1458 .RS 4n
1459 Displays aggregation statistics.
1463 .ne 2
1465 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
1467 .sp .6
1468 .RS 4n
1469 Used with the \fB-s\fR option to specify an interval, in seconds, at which
1470 statistics should be displayed. If this option is not specified, statistics
1471 will be displayed only once.
1477 .ne 2
1479 \fB\fBdladm create-bridge\fR [ \fB-P\fR \fIprotect\fR] [\fB-R\fR
1480 \fIroot-dir\fR] [ \fB-p\fR \fIpriority\fR] [ \fB-m\fR \fImax-age\fR] [ \fB-h\fR
1481 \fIhello-time\fR] [ \fB-d\fR \fIforward-delay\fR] [ \fB-f\fR
1482 \fIforce-protocol\fR] [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1484 .sp .6
1485 .RS 4n
1486 Create an 802.1D bridge instance and optionally assign one or more network
1487 links to the new bridge. By default, no bridge instances are present on the
1488 system.
1490 In order to bridge between links, you must create at least one bridge instance.
1491 Each bridge instance is separate, and there is no forwarding connection between
1492 bridges.
1494 .ne 2
1496 \fB\fB-P\fR \fIprotect\fR, \fB--protect\fR=\fIprotect\fR\fR
1498 .sp .6
1499 .RS 4n
1500 Specifies a protection method. The defined protection methods are \fBstp\fR for
1501 the Spanning Tree Protocol and trill for \fBTRILL\fR, which is used on
1502 RBridges. The default value is \fBstp\fR.
1506 .ne 2
1508 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1510 .sp .6
1511 .RS 4n
1512 See "Options," above.
1516 .ne 2
1518 \fB\fB-p\fR \fIpriority\fR, \fB--priority\fR=\fIpriority\fR\fR
1520 .sp .6
1521 .RS 4n
1522 Specifies the Bridge Priority. This sets the IEEE STP priority value for
1523 determining the root bridge node in the network. The default value is
1524 \fB32768\fR. Valid values are \fB0\fR (highest priority) to \fB61440\fR (lowest
1525 priority), in increments of 4096.
1527 If a value not evenly divisible by 4096 is used, the system silently rounds
1528 downward to the next lower value that is divisible by 4096.
1532 .ne 2
1534 \fB\fB-m\fR \fImax-age\fR, \fB--max-age\fR=\fImax-age\fR\fR
1536 .sp .6
1537 .RS 4n
1538 Specifies the maximum age for configuration information in seconds. This sets
1539 the STP Bridge Max Age parameter. This value is used for all nodes in the
1540 network if this node is the root bridge. Bridge link information older than
1541 this time is discarded. It defaults to 20 seconds. Valid values are from 6 to
1542 40 seconds. See the \fB-d\fR \fIforward-delay\fR parameter for additional
1543 constraints.
1547 .ne 2
1549 \fB\fB-h\fR \fIhello-time\fR, \fB--hello-time\fR=\fIhello-time\fR\fR
1551 .sp .6
1552 .RS 4n
1553 Specifies the STP Bridge Hello Time parameter. When this node is the root node,
1554 it sends Configuration BPDUs at this interval throughout the network. The
1555 default value is 2 seconds. Valid values are from 1 to 10 seconds. See the
1556 \fB-d\fR \fIforward-delay\fR parameter for additional constraints.
1560 .ne 2
1562 \fB\fB-d\fR \fIforward-delay\fR, \fB--forward-delay\fR=\fIforward-delay\fR\fR
1564 .sp .6
1565 .RS 4n
1566 Specifies the STP Bridge Forward Delay parameter. When this node is the root
1567 node, then all bridges in the network use this timer to sequence the link
1568 states when a port is enabled. The default value is 15 seconds. Valid values
1569 are from 4 to 30 seconds.
1571 Bridges must obey the following two constraints:
1573 .in +2
1575 2 * (\fIforward-delay\fR - 1.0) >= \fImax-age\fR
1577 \fImax-age\fR >= 2 * (\fIhello-time\fR + 1.0)
1579 .in -2
1582 Any parameter setting that would violate those constraints is treated as an
1583 error and causes the command to fail with a diagnostic message. The message
1584 provides valid alternatives to the supplied values.
1588 .ne 2
1590 \fB\fB-f\fR \fIforce-protocol\fR,
1591 \fB--force-protocol\fR=\fIforce-protocol\fR\fR
1593 .sp .6
1594 .RS 4n
1595 Specifies the MSTP forced maximum supported protocol. The default value is 3.
1596 Valid values are non-negative integers. The current implementation does not
1597 support RSTP or MSTP, so this currently has no effect. However, to prevent MSTP
1598 from being used in the future, the parameter may be set to \fB0\fR for STP only
1599 or \fB2\fR for STP and RSTP.
1603 .ne 2
1605 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
1607 .sp .6
1608 .RS 4n
1609 Specifies one or more links to add to the newly-created bridge. This is similar
1610 to creating the bridge and then adding one or more links, as with the
1611 \fBadd-bridge\fR subcommand. However, if any of the links cannot be added, the
1612 entire command fails, and the new bridge itself is not created. To add multiple
1613 links on the same command line, repeat this option for each link. You are
1614 permitted to create bridges without links. For more information about link
1615 assignments, see the \fBadd-bridge\fR subcommand.
1618 Bridge creation and link assignment require the \fBPRIV_SYS_DL_CONFIG\fR
1619 privilege. Bridge creation might fail if the optional bridging feature is not
1620 installed on the system.
1624 .ne 2
1626 \fB\fBdladm modify-bridge\fR [ \fB-P\fR \fIprotect\fR] [\fB-R\fR
1627 \fIroot-dir\fR] [ \fB-p\fR \fIpriority\fR] [ \fB-m\fR \fImax-age\fR] [ \fB-h\fR
1628 \fIhello-time\fR] [ \fB-d\fR \fIforward-delay\fR] [ \fB-f\fR
1629 \fIforce-protocol\fR] [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1631 .sp .6
1632 .RS 4n
1633 Modify the operational parameters of an existing bridge. The options are the
1634 same as for the \fBcreate-bridge\fR subcommand, except that the \fB-l\fR option
1635 is not permitted. To add links to an existing bridge, use the \fBadd-bridge\fR
1636 subcommand.
1638 Bridge parameter modification requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1642 .ne 2
1644 \fB\fBdladm delete-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fIbridge-name\fR\fR
1646 .sp .6
1647 .RS 4n
1648 Delete a bridge instance. The bridge being deleted must not have any attached
1649 links. Use the \fBremove-bridge\fR subcommand to deactivate links before
1650 deleting a bridge.
1652 Bridge deletion requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1654 The \fB-R\fR (\fB--root-dir\fR) option is the same as for the
1655 \fBcreate-bridge\fR subcommand.
1659 .ne 2
1661 \fB\fBdladm add-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR
1662 [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1664 .sp .6
1665 .RS 4n
1666 Add one or more links to an existing bridge. If multiple links are specified,
1667 and adding any one of them results in an error, the command fails and no
1668 changes are made to the system.
1670 Link addition to a bridge requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1672 A link may be a member of at most one bridge. An error occurs when you attempt
1673 to add a link that already belongs to another bridge. To move a link from one
1674 bridge instance to another, remove it from the current bridge before adding it
1675 to a new one.
1677 The links assigned to a bridge must not also be VLANs, VNICs, or tunnels. Only
1678 physical Ethernet datalinks, aggregation datalinks, wireless links, and
1679 Ethernet stubs are permitted to be assigned to a bridge.
1681 Links assigned to a bridge must all have the same MTU. This is checked when the
1682 link is assigned. The link is added to the bridge in a deactivated form if it
1683 is not the first link on the bridge and it has a differing MTU.
1685 Note that systems using bridging should not set the \fBeeprom\fR(1M)
1686 \fBlocal-mac-address?\fR variable to false.
1688 The options are the same as for the \fBcreate-bridge\fR subcommand.
1692 .ne 2
1694 \fB\fBdladm remove-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR
1695 [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1697 .sp .6
1698 .RS 4n
1699 Remove one or more links from a bridge instance. If multiple links are
1700 specified, and removing any one of them would result in an error, the command
1701 fails and none are removed.
1703 Link removal from a bridge requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1705 The options are the same as for the \fBcreate-bridge\fR subcommand.
1709 .ne 2
1711 \fB\fBdladm show-bridge\fR [\fB-flt\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
1712 [[\fB-p\fR] \fB-o\fR \fIfield\fR,...] [\fIbridge-name\fR]\fR
1714 .sp .6
1715 .RS 4n
1716 Show the running status and configuration of bridges, their attached links,
1717 learned forwarding entries, and \fBTRILL\fR nickname databases. When showing
1718 overall bridge status and configuration, the bridge name can be omitted to show
1719 all bridges. The other forms require a specified bridge.
1721 The show-bridge subcommand accepts the following options:
1723 .ne 2
1725 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
1727 .sp .6
1728 .RS 4n
1729 Used with the \fB-s\fR option to specify an interval, in seconds, at which
1730 statistics should be displayed. If this option is not specified, statistics
1731 will be displayed only once.
1735 .ne 2
1737 \fB\fB-s\fR, \fB--statistics\fR\fR
1739 .sp .6
1740 .RS 4n
1741 Display statistics for the specified bridges or for a given bridge's attached
1742 links. This option cannot be used with the \fB-f\fR and \fB-t\fR options.
1746 .ne 2
1748 \fB\fB-p\fR, \fB--parseable\fR\fR
1750 .sp .6
1751 .RS 4n
1752 Display using a stable machine-parsable format. See "Parsable Output Format,"
1753 below.
1757 .ne 2
1759 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
1761 .sp .6
1762 .RS 4n
1763 A case-insensitive, comma-separated list of output fields to display. The field
1764 names are described below. The special value all displays all fields. Each set
1765 of fields has its own default set to display when \fB-o\fR is not specified.
1768 By default, the \fBshow-bridge\fR subcommand shows bridge configuration. The
1769 following fields can be shown:
1771 .ne 2
1773 \fB\fBBRIDGE\fR\fR
1775 .sp .6
1776 .RS 4n
1777 The name of the bridge.
1781 .ne 2
1783 \fB\fBADDRESS\fR\fR
1785 .sp .6
1786 .RS 4n
1787 The Bridge Unique Identifier value (MAC address).
1791 .ne 2
1793 \fB\fBPRIORITY\fR\fR
1795 .sp .6
1796 .RS 4n
1797 Configured priority value; set by \fB-p\fR with \fBcreate-bridge\fR and
1798 \fBmodify-bridge\fR.
1802 .ne 2
1804 \fB\fBBMAXAGE\fR\fR
1806 .sp .6
1807 .RS 4n
1808 Configured bridge maximum age; set by \fB-m\fR with \fBcreate-bridge\fR and
1809 \fBmodify-bridge\fR.
1813 .ne 2
1815 \fB\fBBHELLOTIME\fR\fR
1817 .sp .6
1818 .RS 4n
1819 Configured bridge hello time; set by \fB-h\fR with \fBcreate-bridge\fR and
1820 \fBmodify-bridge\fR.
1824 .ne 2
1826 \fB\fBBFWDDELAY\fR\fR
1828 .sp .6
1829 .RS 4n
1830 Configured forwarding delay; set by \fB-d\fR with \fBcreate-bridge\fR and
1831 \fBmodify-bridge\fR.
1835 .ne 2
1837 \fB\fBFORCEPROTO\fR\fR
1839 .sp .6
1840 .RS 4n
1841 Configured forced maximum protocol; set by \fB-f\fR with \fBcreate-bridge\fR
1842 and \fBmodify-bridge\fR.
1846 .ne 2
1848 \fB\fBTCTIME\fR\fR
1850 .sp .6
1851 .RS 4n
1852 Time, in seconds, since last topology change.
1856 .ne 2
1858 \fB\fBTCCOUNT\fR\fR
1860 .sp .6
1861 .RS 4n
1862 Count of the number of topology changes.
1866 .ne 2
1868 \fB\fBTCHANGE\fR\fR
1870 .sp .6
1871 .RS 4n
1872 This indicates that a topology change was detected.
1876 .ne 2
1878 \fB\fBDESROOT\fR\fR
1880 .sp .6
1881 .RS 4n
1882 Bridge Identifier of the root node.
1886 .ne 2
1888 \fB\fBROOTCOST\fR\fR
1890 .sp .6
1891 .RS 4n
1892 Cost of the path to the root node.
1896 .ne 2
1898 \fB\fBROOTPORT\fR\fR
1900 .sp .6
1901 .RS 4n
1902 Port number used to reach the root node.
1906 .ne 2
1908 \fB\fBMAXAGE\fR\fR
1910 .sp .6
1911 .RS 4n
1912 Maximum age value from the root node.
1916 .ne 2
1918 \fB\fBHELLOTIME\fR\fR
1920 .sp .6
1921 .RS 4n
1922 Hello time value from the root node.
1926 .ne 2
1928 \fB\fBFWDDELAY\fR\fR
1930 .sp .6
1931 .RS 4n
1932 Forward delay value from the root node.
1936 .ne 2
1938 \fB\fBHOLDTIME\fR\fR
1940 .sp .6
1941 .RS 4n
1942 Minimum BPDU interval.
1945 By default, when the \fB-o\fR option is not specified, only the \fBBRIDGE\fR,
1946 \fBADDRESS\fR, \fBPRIORITY\fR, and \fBDESROOT\fR fields are shown.
1948 When the \fB-s\fR option is specified, the \fBshow-bridge\fR subcommand shows
1949 bridge statistics. The following fields can be shown:
1951 .ne 2
1953 \fB\fBBRIDGE\fR\fR
1955 .sp .6
1956 .RS 4n
1957 Bridge name.
1961 .ne 2
1963 \fB\fBDROPS\fR\fR
1965 .sp .6
1966 .RS 4n
1967 Number of packets dropped due to resource problems.
1971 .ne 2
1973 \fB\fBFORWARDS\fR\fR
1975 .sp .6
1976 .RS 4n
1977 Number of packets forwarded from one link to another.
1981 .ne 2
1983 \fB\fBMBCAST\fR\fR
1985 .sp .6
1986 .RS 4n
1987 Number of multicast and broadcast packets handled by the bridge.
1991 .ne 2
1993 \fB\fBRECV\fR\fR
1995 .sp .6
1996 .RS 4n
1997 Number of packets received on all attached links.
2001 .ne 2
2003 \fB\fBSENT\fR\fR
2005 .sp .6
2006 .RS 4n
2007 Number of packets sent on all attached links.
2011 .ne 2
2013 \fB\fBUNKNOWN\fR\fR
2015 .sp .6
2016 .RS 4n
2017 Number of packets handled that have an unknown destination. Such packets are
2018 sent to all links.
2021 By default, when the \fB-o\fR option is not specified, only the \fBBRIDGE\fR,
2022 \fBDROPS\fR, and \fBFORWARDS\fR fields are shown.
2024 The \fBshow-bridge\fR subcommand also accepts the following options:
2026 .ne 2
2028 \fB\fB-l\fR, \fB--link\fR\fR
2030 .sp .6
2031 .RS 4n
2032 Displays link-related status and statistics information for all links attached
2033 to a single bridge instance. By using this option and without the \fB-s\fR
2034 option, the following fields can be displayed for each link:
2036 .ne 2
2038 \fB\fBLINK\fR\fR
2040 .sp .6
2041 .RS 4n
2042 The link name.
2046 .ne 2
2048 \fB\fBINDEX\fR\fR
2050 .sp .6
2051 .RS 4n
2052 Port (link) index number on the bridge.
2056 .ne 2
2058 \fB\fBSTATE\fR\fR
2060 .sp .6
2061 .RS 4n
2062 State of the link. The state can be \fBdisabled\fR, \fBdiscarding\fR,
2063 \fBlearning\fR, \fBforwarding\fR, \fBnon-stp\fR, or \fBbad-mtu\fR.
2067 .ne 2
2069 \fB\fBUPTIME\fR\fR
2071 .sp .6
2072 .RS 4n
2073 Number of seconds since the last reset or initialization.
2077 .ne 2
2079 \fB\fBOPERCOST\fR\fR
2081 .sp .6
2082 .RS 4n
2083 Actual cost in use (1-65535).
2087 .ne 2
2089 \fB\fBOPERP2P\fR\fR
2091 .sp .6
2092 .RS 4n
2093 This indicates whether point-to-point (\fBP2P\fR) mode been detected.
2097 .ne 2
2099 \fB\fBOPEREDGE\fR\fR
2101 .sp .6
2102 .RS 4n
2103 This indicates whether edge mode has been detected.
2107 .ne 2
2109 \fB\fBDESROOT\fR\fR
2111 .sp .6
2112 .RS 4n
2113 The Root Bridge Identifier that has been seen on this port.
2117 .ne 2
2119 \fB\fBDESCOST\fR\fR
2121 .sp .6
2122 .RS 4n
2123 Path cost to the network root node through the designated port.
2127 .ne 2
2129 \fB\fBDESBRIDGE\fR\fR
2131 .sp .6
2132 .RS 4n
2133 Bridge Identifier for this port.
2137 .ne 2
2139 \fB\fBDESPORT\fR\fR
2141 .sp .6
2142 .RS 4n
2143 The ID and priority of the port used to transmit configuration messages for
2144 this port.
2148 .ne 2
2150 \fB\fBTCACK\fR\fR
2152 .sp .6
2153 .RS 4n
2154 This indicates whether Topology Change Acknowledge has been seen.
2157 When the \fB-l\fR option is specified without the \fB-o\fR option, only the
2158 \fBLINK\fR, \fBSTATE\fR, \fBUPTIME\fR, and \fBDESROOT\fR fields are shown.
2160 When the \fB-l\fR option is specified, the \fB-s\fR option can be used to
2161 display the following fields for each link:
2163 .ne 2
2165 \fB\fBLINK\fR\fR
2167 .sp .6
2168 .RS 4n
2169 Link name.
2173 .ne 2
2175 \fB\fBCFGBPDU\fR\fR
2177 .sp .6
2178 .RS 4n
2179 Number of configuration BPDUs received.
2183 .ne 2
2185 \fB\fBTCNBPDU\fR\fR
2187 .sp .6
2188 .RS 4n
2189 Number of topology change BPDUs received.
2193 .ne 2
2195 \fB\fBRSTPBPDU\fR\fR
2197 .sp .6
2198 .RS 4n
2199 Number of Rapid Spanning Tree BPDUs received.
2203 .ne 2
2205 \fB\fBTXBPDU\fR\fR
2207 .sp .6
2208 .RS 4n
2209 Number of BPDUs transmitted.
2213 .ne 2
2215 \fB\fBDROPS\fR\fR
2217 .sp .6
2218 .RS 4n
2219 Number of packets dropped due to resource problems.
2223 .ne 2
2225 \fB\fBRECV\fR\fR
2227 .sp .6
2228 .RS 4n
2229 Number of packets received by the bridge.
2233 .ne 2
2235 \fB\fBXMIT\fR\fR
2237 .sp .6
2238 .RS 4n
2239 Number of packets sent by the bridge.
2242 When the \fB-o\fR option is not specified, only the \fBLINK\fR, \fBDROPS\fR,
2243 \fBRECV\fR, and \fBXMIT\fR fields are shown.
2247 .ne 2
2249 \fB\fB-f\fR, \fB--forwarding\fR\fR
2251 .sp .6
2252 .RS 4n
2253 Displays forwarding entries for a single bridge instance. With this option, the
2254 following fields can be shown for each forwarding entry:
2256 .ne 2
2258 \fB\fBDEST\fR\fR
2260 .sp .6
2261 .RS 4n
2262 Destination MAC address.
2266 .ne 2
2268 \fB\fBAGE\fR\fR
2270 .sp .6
2271 .RS 4n
2272 Age of entry in seconds and milliseconds. Omitted for local entries.
2276 .ne 2
2278 \fB\fBFLAGS\fR\fR
2280 .sp .6
2281 .RS 4n
2282 The \fBL\fR (local) flag is shown if the MAC address belongs to an attached
2283 link or to a VNIC on one of the attached links.
2287 .ne 2
2289 \fB\fBOUTPUT\fR\fR
2291 .sp .6
2292 .RS 4n
2293 For local entries, this is the name of the attached link that has the MAC
2294 address. Otherwise, for bridges that use Spanning Tree Protocol, this is the
2295 output interface name. For RBridges, this is the output \fBTRILL\fR nickname.
2298 When the \fB-o\fR option is not specified, the \fBDEST\fR, \fBAGE\fR,
2299 \fBFLAGS\fR, and \fBOUTPUT\fR fields are shown.
2303 .ne 2
2305 \fB\fB-t\fR, \fB--trill\fR\fR
2307 .sp .6
2308 .RS 4n
2309 Displays \fBTRILL\fR nickname entries for a single bridge instance. With this
2310 option, the following fields can be shown for each \fBTRILL\fR nickname entry:
2312 .ne 2
2314 \fB\fBNICK\fR\fR
2316 .sp .6
2317 .RS 4n
2318 \fBTRILL\fR nickname for this RBridge, which is a number from 1 to 65535.
2322 .ne 2
2324 \fB\fBFLAGS\fR\fR
2326 .sp .6
2327 .RS 4n
2328 The \fBL\fR flag is shown if the nickname identifies the local system.
2332 .ne 2
2334 \fB\fBLINK\fR\fR
2336 .sp .6
2337 .RS 4n
2338 Link name for output when sending messages to this RBridge.
2342 .ne 2
2344 \fB\fBNEXTHOP\fR\fR
2346 .sp .6
2347 .RS 4n
2348 MAC address of the next hop RBridge that is used to reach the RBridge with this
2349 nickname.
2352 When the \fB-o\fR option is not specified, the \fBNICK\fR, \fBFLAGS\fR,
2353 \fBLINK\fR, and \fBNEXTHOP\fR fields are shown.
2359 .ne 2
2361 \fB\fBdladm create-vlan\fR [\fB-ft\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
2362 \fIether-link\fR \fB-v\fR \fIvid\fR [\fIvlan-link\fR]\fR
2364 .sp .6
2365 .RS 4n
2366 Create a tagged VLAN link with an ID of \fIvid\fR over Ethernet link
2367 \fIether-link\fR. The name of the VLAN link can be specified as
2368 \fIvlan\fR-\fIlink\fR. If the name is not specified, a name will be
2369 automatically generated (assuming that \fIether-link\fR is \fIname\fR\fIPPA\fR)
2372 .in +2
2374 <\fIname\fR><1000 * \fIvlan-tag\fR + \fIPPA\fR>
2376 .in -2
2379 For example, if \fIether-link\fR is \fBbge1\fR and \fIvid\fR is 2, the name
2380 generated is \fBbge2001\fR.
2382 .ne 2
2384 \fB\fB-f\fR, \fB--force\fR\fR
2386 .sp .6
2387 .RS 4n
2388 Force the creation of the VLAN link. Some devices do not allow frame sizes
2389 large enough to include a VLAN header. When creating a VLAN link over such a
2390 device, the \fB-f\fR option is needed, and the MTU of the IP interfaces on the
2391 resulting VLAN must be set to 1496 instead of 1500.
2395 .ne 2
2397 \fB\fB-l\fR \fIether-link\fR\fR
2399 .sp .6
2400 .RS 4n
2401 Specifies Ethernet link over which VLAN is created.
2405 .ne 2
2407 \fB\fB-t\fR, \fB--temporary\fR\fR
2409 .sp .6
2410 .RS 4n
2411 Specifies that the VLAN link is temporary. Temporary VLAN links last until the
2412 next reboot.
2416 .ne 2
2418 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
2420 .sp .6
2421 .RS 4n
2422 See "Options," above.
2428 .ne 2
2430 \fB\fBdladm delete-vlan\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
2431 \fIvlan-link\fR\fR
2433 .sp .6
2434 .RS 4n
2435 Delete the VLAN link specified.
2437 The \fBdelete-vlan\fRsubcommand accepts the following options:
2439 .ne 2
2441 \fB\fB-t\fR, \fB--temporary\fR\fR
2443 .sp .6
2444 .RS 4n
2445 Specifies that the deletion is temporary. Temporary deletions last until the
2446 next reboot.
2450 .ne 2
2452 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
2454 .sp .6
2455 .RS 4n
2456 See "Options," above.
2462 .ne 2
2464 \fB\fBdladm show-vlan\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
2465 [\fIvlan-link\fR]\fR
2467 .sp .6
2468 .RS 4n
2469 Display VLAN configuration for all VLAN links or for the specified VLAN link.
2471 The \fBshow-vlan\fRsubcommand accepts the following options:
2473 .ne 2
2475 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
2477 .sp .6
2478 .RS 4n
2479 A case-insensitive, comma-separated list of output fields to display. The field
2480 name must be one of the fields listed below, or the special value \fBall\fR, to
2481 display all fields. For each VLAN link, the following fields can be displayed:
2483 .ne 2
2485 \fB\fBLINK\fR\fR
2487 .sp .6
2488 .RS 4n
2489 The name of the VLAN link.
2493 .ne 2
2495 \fB\fBVID\fR\fR
2497 .sp .6
2498 .RS 4n
2499 The ID associated with the VLAN.
2503 .ne 2
2505 \fB\fBOVER\fR\fR
2507 .sp .6
2508 .RS 4n
2509 The name of the physical link over which this VLAN is configured.
2513 .ne 2
2515 \fB\fBFLAGS\fR\fR
2517 .sp .6
2518 .RS 4n
2519 A set of flags associated with the VLAN link. Possible flags are:
2521 .ne 2
2523 \fB\fBf\fR\fR
2525 .sp .6
2526 .RS 4n
2527 The VLAN was created using the \fB-f\fR option to \fBcreate-vlan\fR.
2531 .ne 2
2533 \fB\fBi\fR\fR
2535 .sp .6
2536 .RS 4n
2537 The VLAN was implicitly created when the DLPI link was opened. These VLAN links
2538 are automatically deleted on last close of the DLPI link (for example, when the
2539 IP interface associated with the VLAN link is unplumbed).
2542 Additional flags might be defined in the future.
2548 .ne 2
2550 \fB\fB-p\fR, \fB--parseable\fR\fR
2552 .sp .6
2553 .RS 4n
2554 Display using a stable machine-parseable format. The \fB-o\fR option is
2555 required with \fB-p\fR. See "Parseable Output Format", below.
2559 .ne 2
2561 \fB\fB-P\fR, \fB--persistent\fR\fR
2563 .sp .6
2564 .RS 4n
2565 Display the persistent VLAN configuration rather than the state of the running
2566 system.
2572 .ne 2
2574 \fB\fBdladm scan-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
2575 [\fIwifi-link\fR]\fR
2577 .sp .6
2578 .RS 4n
2579 Scans for \fBWiFi\fR networks, either on all \fBWiFi\fR links, or just on the
2580 specified \fIwifi-link\fR.
2582 By default, currently all fields but \fBBSSTYPE\fR are displayed.
2584 .ne 2
2586 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
2588 .sp .6
2589 .RS 4n
2590 A case-insensitive, comma-separated list of output fields to display. The field
2591 name must be one of the fields listed below, or the special value \fBall\fR to
2592 display all fields. For each \fBWiFi\fR network found, the following fields can
2593 be displayed:
2595 .ne 2
2597 \fB\fBLINK\fR\fR
2599 .sp .6
2600 .RS 4n
2601 The name of the link the \fBWiFi\fR network is on.
2605 .ne 2
2607 \fB\fBESSID\fR\fR
2609 .sp .6
2610 .RS 4n
2611 The \fBESSID\fR (name) of the \fBWiFi\fR network.
2615 .ne 2
2617 \fB\fBBSSID\fR\fR
2619 .sp .6
2620 .RS 4n
2621 Either the hardware address of the \fBWiFi\fR network's Access Point (for
2622 \fBBSS\fR networks), or the \fBWiFi\fR network's randomly generated unique
2623 token (for \fBIBSS\fR networks).
2627 .ne 2
2629 \fB\fBSEC\fR\fR
2631 .sp .6
2632 .RS 4n
2633 Either \fBnone\fR for a \fBWiFi\fR network that uses no security, \fBwep\fR for
2634 a \fBWiFi\fR network that requires WEP (Wired Equivalent Privacy), or \fBwpa\fR
2635 for a WiFi network that requires WPA (Wi-Fi Protected Access).
2639 .ne 2
2641 \fB\fBMODE\fR\fR
2643 .sp .6
2644 .RS 4n
2645 The supported connection modes: one or more of \fBa\fR, \fBb\fR, or \fBg\fR.
2649 .ne 2
2651 \fB\fBSTRENGTH\fR\fR
2653 .sp .6
2654 .RS 4n
2655 The strength of the signal: one of \fBexcellent\fR, \fBvery good\fR,
2656 \fBgood\fR, \fBweak\fR, or \fBvery weak\fR.
2660 .ne 2
2662 \fB\fBSPEED\fR\fR
2664 .sp .6
2665 .RS 4n
2666 The maximum speed of the \fBWiFi\fR network, in megabits per second.
2670 .ne 2
2672 \fB\fBBSSTYPE\fR\fR
2674 .sp .6
2675 .RS 4n
2676 Either \fBbss\fR for \fBBSS\fR (infrastructure) networks, or \fBibss\fR for
2677 \fBIBSS\fR (ad-hoc) networks.
2683 .ne 2
2685 \fB\fB-p\fR, \fB--parseable\fR\fR
2687 .sp .6
2688 .RS 4n
2689 Display using a stable machine-parseable format. The \fB-o\fR option is
2690 required with \fB-p\fR. See "Parseable Output Format", below.
2696 .ne 2
2698 \fB\fBdladm connect-wifi\fR [\fB-e\fR \fIessid\fR] [\fB-i\fR \fIbssid\fR]
2699 [\fB-k\fR \fIkey\fR,...] [\fB-s\fR \fBnone\fR | \fBwep\fR | \fBwpa\fR]
2700 [\fB-a\fR \fBopen\fR|\fBshared\fR] [\fB-b\fR \fBbss\fR|\fBibss\fR] [\fB-c\fR]
2701 [\fB-m\fR \fBa\fR|\fBb\fR|\fBg\fR] [\fB-T\fR \fItime\fR] [\fIwifi-link\fR]\fR
2703 .sp .6
2704 .RS 4n
2705 Connects to a \fBWiFi\fR network. This consists of four steps: \fIdiscovery\fR,
2706 \fIfiltration\fR, \fIprioritization\fR, and \fIassociation\fR. However, to
2707 enable connections to non-broadcast \fBWiFi\fR networks and to improve
2708 performance, if a \fBBSSID\fR or \fBESSID\fR is specified using the \fB-e\fR or
2709 \fB-i\fR options, then the first three steps are skipped and \fBconnect-wifi\fR
2710 immediately attempts to associate with a \fBBSSID\fR or \fBESSID\fR that
2711 matches the rest of the provided parameters. If this association fails, but
2712 there is a possibility that other networks matching the specified criteria
2713 exist, then the traditional discovery process begins as specified below.
2715 The discovery step finds all available \fBWiFi\fR networks on the specified
2716 WiFi link, which must not yet be connected. For administrative convenience, if
2717 there is only one \fBWiFi\fR link on the system, \fIwifi-link\fR can be
2718 omitted.
2720 Once discovery is complete, the list of networks is filtered according to the
2721 value of the following options:
2723 .ne 2
2725 \fB\fB-e\fR \fIessid,\fR \fB--essid\fR=\fIessid\fR\fR
2727 .sp .6
2728 .RS 4n
2729 Networks that do not have the same \fIessid\fR are filtered out.
2733 .ne 2
2735 \fB\fB-b\fR \fBbss\fR|\fBibss\fR, \fB--bsstype\fR=\fBbss\fR|\fBibss\fR\fR
2737 .sp .6
2738 .RS 4n
2739 Networks that do not have the same \fBbsstype\fR are filtered out.
2743 .ne 2
2745 \fB\fB-m\fR \fBa\fR|\fBb\fR|\fBg\fR, \fB--mode\fR=\fBa\fR|\fBb\fR|\fBg\fR\fR
2747 .sp .6
2748 .RS 4n
2749 Networks not appropriate for the specified 802.11 mode are filtered out.
2753 .ne 2
2755 \fB\fB-k\fR \fIkey,...\fR, \fB--key\fR=\fIkey, ...\fR\fR
2757 .sp .6
2758 .RS 4n
2759 Use the specified \fBsecobj\fR named by the key to connect to the network.
2760 Networks not appropriate for the specified keys are filtered out.
2764 .ne 2
2766 \fB\fB-s\fR \fBnone\fR|\fBwep\fR|\fBwpa\fR,
2767 \fB--sec\fR=\fBnone\fR|\fBwep\fR|\fBwpa\fR\fR
2769 .sp .6
2770 .RS 4n
2771 Networks not appropriate for the specified security mode are filtered out.
2774 Next, the remaining networks are prioritized, first by signal strength, and
2775 then by maximum speed. Finally, an attempt is made to associate with each
2776 network in the list, in order, until one succeeds or no networks remain.
2778 In addition to the options described above, the following options also control
2779 the behavior of \fBconnect-wifi\fR:
2781 .ne 2
2783 \fB\fB-a\fR \fBopen\fR|\fBshared\fR, \fB--auth\fR=\fBopen\fR|\fBshared\fR\fR
2785 .sp .6
2786 .RS 4n
2787 Connect using the specified authentication mode. By default, \fBopen\fR and
2788 \fBshared\fR are tried in order.
2792 .ne 2
2794 \fB\fB-c\fR, \fB--create-ibss\fR\fR
2796 .sp .6
2797 .RS 4n
2798 Used with \fB-b ibss\fR to create a new ad-hoc network if one matching the
2799 specified \fBESSID\fR cannot be found. If no \fBESSID\fR is specified, then
2800 \fB-c -b ibss\fR always triggers the creation of a new ad-hoc network.
2804 .ne 2
2806 \fB\fB-T\fR \fItime\fR, \fB--timeout\fR=\fItime\fR\fR
2808 .sp .6
2809 .RS 4n
2810 Specifies the number of seconds to wait for association to succeed. If
2811 \fItime\fR is \fBforever\fR, then the associate will wait indefinitely. The
2812 current default is ten seconds, but this might change in the future. Timeouts
2813 shorter than the default might not succeed reliably.
2817 .ne 2
2819 \fB\fB-k\fR \fIkey,...\fR, \fB--key\fR=\fIkey,...\fR\fR
2821 .sp .6
2822 .RS 4n
2823 In addition to the filtering previously described, the specified keys will be
2824 used to secure the association. The security mode to use will be based on the
2825 key class; if a security mode was explicitly specified, it must be compatible
2826 with the key class. All keys must be of the same class.
2828 For security modes that support multiple key slots, the slot to place the key
2829 will be specified by a colon followed by an index. Therefore, \fB-k mykey:3\fR
2830 places \fBmykey\fR in slot 3. By default, slot 1 is assumed. For security modes
2831 that support multiple keys, a comma-separated list can be specified, with the
2832 first key being the active key.
2838 .ne 2
2840 \fB\fBdladm disconnect-wifi\fR [\fB-a\fR] [\fIwifi-link\fR]\fR
2842 .sp .6
2843 .RS 4n
2844 Disconnect from one or more \fBWiFi\fR networks. If \fIwifi-link\fR specifies a
2845 connected \fBWiFi\fR link, then it is disconnected. For administrative
2846 convenience, if only one \fBWiFi\fR link is connected, \fIwifi-link\fR can be
2847 omitted.
2849 .ne 2
2851 \fB\fB-a\fR, \fB--all-links\fR\fR
2853 .sp .6
2854 .RS 4n
2855 Disconnects from all connected links. This is primarily intended for use by
2856 scripts.
2862 .ne 2
2864 \fB\fBdladm show-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
2865 [\fIwifi-link\fR]\fR
2867 .sp .6
2868 .RS 4n
2869 Shows \fBWiFi\fR configuration information either for all \fBWiFi\fR links or
2870 for the specified link \fIwifi-link\fR.
2872 .ne 2
2874 \fB\fB-o\fR \fIfield,...\fR, \fB--output\fR=\fIfield\fR\fR
2876 .sp .6
2877 .RS 4n
2878 A case-insensitive, comma-separated list of output fields to display. The field
2879 name must be one of the fields listed below, or the special value \fBall\fR, to
2880 display all fields. For each \fBWiFi\fR link, the following fields can be
2881 displayed:
2883 .ne 2
2885 \fB\fBLINK\fR\fR
2887 .sp .6
2888 .RS 4n
2889 The name of the link being displayed.
2893 .ne 2
2895 \fB\fBSTATUS\fR\fR
2897 .sp .6
2898 .RS 4n
2899 Either \fBconnected\fR if the link is connected, or \fBdisconnected\fR if it is
2900 not connected. If the link is disconnected, all remaining fields have the value
2901 \fB--\fR.
2905 .ne 2
2907 \fB\fBESSID\fR\fR
2909 .sp .6
2910 .RS 4n
2911 The \fBESSID\fR (name) of the connected \fBWiFi\fR network.
2915 .ne 2
2917 \fB\fBBSSID\fR\fR
2919 .sp .6
2920 .RS 4n
2921 Either the hardware address of the \fBWiFi\fR network's Access Point (for
2922 \fBBSS\fR networks), or the \fBWiFi\fR network's randomly generated unique
2923 token (for \fBIBSS\fR networks).
2927 .ne 2
2929 \fB\fBSEC\fR\fR
2931 .sp .6
2932 .RS 4n
2933 Either \fBnone\fR for a \fBWiFi\fR network that uses no security, \fBwep\fR for
2934 a \fBWiFi\fR network that requires WEP, or \fBwpa\fR for a WiFi network that
2935 requires WPA.
2939 .ne 2
2941 \fB\fBMODE\fR\fR
2943 .sp .6
2944 .RS 4n
2945 The supported connection modes: one or more of \fBa\fR, \fBb\fR, or \fBg\fR.
2949 .ne 2
2951 \fB\fBSTRENGTH\fR\fR
2953 .sp .6
2954 .RS 4n
2955 The connection strength: one of \fBexcellent\fR, \fBvery good\fR, \fBgood\fR,
2956 \fBweak\fR, or \fBvery weak\fR.
2960 .ne 2
2962 \fB\fBSPEED\fR\fR
2964 .sp .6
2965 .RS 4n
2966 The connection speed, in megabits per second.
2970 .ne 2
2972 \fB\fBAUTH\fR\fR
2974 .sp .6
2975 .RS 4n
2976 Either \fBopen\fR or \fBshared\fR (see \fBconnect-wifi\fR).
2980 .ne 2
2982 \fB\fBBSSTYPE\fR\fR
2984 .sp .6
2985 .RS 4n
2986 Either \fBbss\fR for \fBBSS\fR (infrastructure) networks, or \fBibss\fR for
2987 \fBIBSS\fR (ad-hoc) networks.
2990 By default, currently all fields but \fBAUTH\fR, \fBBSSID\fR, \fBBSSTYPE\fR are
2991 displayed.
2995 .ne 2
2997 \fB\fB-p\fR, \fB--parseable\fR\fR
2999 .sp .6
3000 .RS 4n
3001 Displays using a stable machine-parseable format. The \fB-o\fR option is
3002 required with \fB-p\fR. See "Parseable Output Format", below.
3008 .ne 2
3010 \fB\fBdladm show-ether\fR [\fB-x\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
3011 [\fIether-link\fR]\fR
3013 .sp .6
3014 .RS 4n
3015 Shows state information either for all physical Ethernet links or for a
3016 specified physical Ethernet link.
3018 The \fBshow-ether\fR subcommand accepts the following options:
3020 .ne 2
3022 \fB\fB-o\fR \fIfield\fR,..., \fB--output\fR=\fIfield\fR\fR
3024 .sp .6
3025 .RS 4n
3026 A case-insensitive, comma-separated list of output fields to display. The field
3027 name must be one of the fields listed below, or the special value \fBall\fR to
3028 display all fields. For each link, the following fields can be displayed:
3030 .ne 2
3032 \fB\fBLINK\fR\fR
3034 .sp .6
3035 .RS 4n
3036 The name of the link being displayed.
3040 .ne 2
3042 \fB\fBPTYPE\fR\fR
3044 .sp .6
3045 .RS 4n
3046 Parameter type, where \fBcurrent\fR indicates the negotiated state of the link,
3047 \fBcapable\fR indicates capabilities supported by the device, \fBadv\fR
3048 indicates the advertised capabilities, and \fBpeeradv\fR indicates the
3049 capabilities advertised by the link-partner.
3053 .ne 2
3055 \fB\fBSTATE\fR\fR
3057 .sp .6
3058 .RS 4n
3059 The state of the link.
3063 .ne 2
3065 \fB\fBAUTO\fR\fR
3067 .sp .6
3068 .RS 4n
3069 A \fByes\fR/\fBno\fR value indicating whether auto-negotiation is advertised.
3073 .ne 2
3075 \fB\fBSPEED-DUPLEX\fR\fR
3077 .sp .6
3078 .RS 4n
3079 Combinations of speed and duplex values available. The units of speed are
3080 encoded with a trailing suffix of \fBG\fR (Gigabits/s) or \fBM\fR (Mb/s).
3081 Duplex values are encoded as \fBf\fR (full-duplex) or \fBh\fR (half-duplex).
3085 .ne 2
3087 \fB\fBPAUSE\fR\fR
3089 .sp .6
3090 .RS 4n
3091 Flow control information. Can be \fBno\fR, indicating no flow control is
3092 available; \fBtx\fR, indicating that the end-point can transmit pause frames,
3093 but ignores any received pause frames; \fBrx\fR, indicating that the end-point
3094 receives and acts upon received pause frames; or \fBbi\fR, indicating
3095 bi-directional flow-control.
3099 .ne 2
3101 \fB\fBREM_FAULT\fR\fR
3103 .sp .6
3104 .RS 4n
3105 Fault detection information. Valid values are \fBnone\fR or \fBfault\fR.
3108 By default, all fields except \fBREM_FAULT\fR are displayed for the "current"
3109 \fBPTYPE\fR.
3113 .ne 2
3115 \fB\fB-p\fR, \fB--parseable\fR\fR
3117 .sp .6
3118 .RS 4n
3119 Displays using a stable machine-parseable format. The \fB-o\fR option is
3120 required with \fB-p\fR. See "Parseable Output Format", below.
3124 .ne 2
3126 \fB\fB-x\fR, \fB--extended\fR\fR
3128 .sp .6
3129 .RS 4n
3130 Extended output is displayed for \fBPTYPE\fR values of \fBcurrent\fR,
3131 \fBcapable\fR, \fBadv\fR and \fBpeeradv\fR.
3137 .ne 2
3139 \fB\fBdladm set-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-p\fR
3140 \fIprop\fR=\fIvalue\fR[,...] \fIlink\fR\fR
3142 .sp .6
3143 .RS 4n
3144 Sets the values of one or more properties on the link specified. The list of
3145 properties and their possible values depend on the link type, the network
3146 device driver, and networking hardware. These properties can be retrieved using
3147 \fBshow-linkprop\fR.
3149 .ne 2
3151 \fB\fB-t\fR, \fB--temporary\fR\fR
3153 .sp .6
3154 .RS 4n
3155 Specifies that the changes are temporary. Temporary changes last until the next
3156 reboot.
3160 .ne 2
3162 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3164 .sp .6
3165 .RS 4n
3166 See "Options," above.
3170 .ne 2
3172 \fB\fB-p\fR \fIprop\fR=\fIvalue\fR[,...], \fB--prop\fR
3173 \fIprop\fR=\fIvalue\fR[,...]\fR
3177 \fB\fR
3179 .sp .6
3180 .RS 4n
3181 A comma-separated list of properties to set to the specified values.
3184 Note that when the persistent value is set, the temporary value changes to the
3185 same value.
3189 .ne 2
3191 \fB\fBdladm reset-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR
3192 \fIprop\fR,...] \fIlink\fR\fR
3194 .sp .6
3195 .RS 4n
3196 Resets one or more properties to their values on the link specified. Properties
3197 are reset to the values they had at startup. If no properties are specified,
3198 all properties are reset. See \fBshow-linkprop\fR for a description of
3199 properties.
3201 .ne 2
3203 \fB\fB-t\fR, \fB--temporary\fR\fR
3205 .sp .6
3206 .RS 4n
3207 Specifies that the resets are temporary. Values are reset to default values.
3208 Temporary resets last until the next reboot.
3212 .ne 2
3214 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3216 .sp .6
3217 .RS 4n
3218 See "Options," above.
3222 .ne 2
3224 \fB\fB-p\fR \fIprop, ...\fR, \fB--prop\fR=\fIprop, ...\fR\fR
3226 .sp .6
3227 .RS 4n
3228 A comma-separated list of properties to reset.
3231 Note that when the persistent value is reset, the temporary value changes to
3232 the same value.
3236 .ne 2
3238 \fB\fBdladm show-linkprop\fR [\fB-P\fR] [[\fB-c\fR] \fB-o\fR
3239 \fIfield\fR[,...]][\fB-p\fR \fIprop\fR[,...]] [\fIlink\fR]\fR
3241 .sp .6
3242 .RS 4n
3243 Show the current or persistent values of one or more properties, either for all
3244 datalinks or for the specified link. By default, current values are shown. If
3245 no properties are specified, all available link properties are displayed. For
3246 each property, the following fields are displayed:
3248 .ne 2
3250 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR\fR
3252 .sp .6
3253 .RS 4n
3254 A case-insensitive, comma-separated list of output fields to display. The field
3255 name must be one of the fields listed below, or the special value \fBall\fR to
3256 display all fields. For each link, the following fields can be displayed:
3258 .ne 2
3260 \fB\fBLINK\fR\fR
3262 .sp .6
3263 .RS 4n
3264 The name of the datalink.
3268 .ne 2
3270 \fB\fBPROPERTY\fR\fR
3272 .sp .6
3273 .RS 4n
3274 The name of the property.
3278 .ne 2
3280 \fB\fBPERM\fR\fR
3282 .sp .6
3283 .RS 4n
3284 The read/write permissions of the property. The value shown is one of \fBro\fR
3285 or \fBrw\fR.
3289 .ne 2
3291 \fB\fBVALUE\fR\fR
3293 .sp .6
3294 .RS 4n
3295 The current (or persistent) property value. If the value is not set, it is
3296 shown as \fB--\fR. If it is unknown, the value is shown as \fB?\fR. Persistent
3297 values that are not set or have been reset will be shown as \fB--\fR and will
3298 use the system \fBDEFAULT\fR value (if any).
3302 .ne 2
3304 \fB\fBDEFAULT\fR\fR
3306 .sp .6
3307 .RS 4n
3308 The default value of the property. If the property has no default value,
3309 \fB--\fR is shown.
3313 .ne 2
3315 \fB\fBPOSSIBLE\fR\fR
3317 .sp .6
3318 .RS 4n
3319 A comma-separated list of the values the property can have. If the values span
3320 a numeric range, \fImin\fR - \fImax\fR might be shown as shorthand. If the
3321 possible values are unknown or unbounded, \fB--\fR is shown.
3324 The list of properties depends on the link type and network device driver, and
3325 the available values for a given property further depends on the underlying
3326 network hardware and its state. General link properties are documented in the
3327 \fBLINK PROPERTIES\fR section. However, link properties that begin with
3328 "\fB_\fR" (underbar) are specific to a given link or its underlying network
3329 device and subject to change or removal. See the appropriate network device
3330 driver man page for details.
3334 .ne 2
3336 \fB\fB-c\fR, \fB--parseable\fR\fR
3338 .sp .6
3339 .RS 4n
3340 Display using a stable machine-parseable format. The \fB-o\fR option is
3341 required with this option. See "Parseable Output Format", below.
3345 .ne 2
3347 \fB\fB-P\fR, \fB--persistent\fR\fR
3349 .sp .6
3350 .RS 4n
3351 Display persistent link property information
3355 .ne 2
3357 \fB\fB-p\fR \fIprop, ...\fR, \fB--prop\fR=\fIprop, ...\fR\fR
3359 .sp .6
3360 .RS 4n
3361 A comma-separated list of properties to show. See the sections on link
3362 properties following subcommand descriptions.
3368 .ne 2
3370 \fB\fBdladm create-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-f\fR
3371 \fIfile\fR] \fB-c\fR \fIclass\fR \fIsecobj\fR\fR
3373 .sp .6
3374 .RS 4n
3375 Create a secure object named \fIsecobj\fR in the specified \fIclass\fR to be
3376 later used as a WEP or WPA key in connecting to an encrypted network. The value
3377 of the secure object can either be provided interactively or read from a file.
3378 The sequence of interactive prompts and the file format depends on the class of
3379 the secure object.
3381 Currently, the classes \fBwep\fR and \fBwpa\fR are supported. The \fBWEP\fR
3382 (Wired Equivalent Privacy) key can be either 5 or 13 bytes long. It can be
3383 provided either as an \fBASCII\fR or hexadecimal string -- thus, \fB12345\fR
3384 and \fB0x3132333435\fR are equivalent 5-byte keys (the \fB0x\fR prefix can be
3385 omitted). A file containing a \fBWEP\fR key must consist of a single line using
3386 either \fBWEP\fR key format. The WPA (Wi-Fi Protected Access) key must be
3387 provided as an ASCII string with a length between 8 and 63 bytes.
3389 This subcommand is only usable by users or roles that belong to the "Network
3390 Link Security" \fBRBAC\fR profile.
3392 .ne 2
3394 \fB\fB-c\fR \fIclass\fR, \fB--class\fR=\fIclass\fR\fR
3396 .sp .6
3397 .RS 4n
3398 \fIclass\fR can be \fBwep\fR or \fBwpa\fR. See preceding discussion.
3402 .ne 2
3404 \fB\fB-t\fR, \fB--temporary\fR\fR
3406 .sp .6
3407 .RS 4n
3408 Specifies that the creation is temporary. Temporary creation last until the
3409 next reboot.
3413 .ne 2
3415 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3417 .sp .6
3418 .RS 4n
3419 See "Options," above.
3423 .ne 2
3425 \fB\fB-f\fR \fIfile\fR, \fB--file\fR=\fIfile\fR\fR
3427 .sp .6
3428 .RS 4n
3429 Specifies a file that should be used to obtain the secure object's value. The
3430 format of this file depends on the secure object class. See the \fBEXAMPLES\fR
3431 section for an example of using this option to set a \fBWEP\fR key.
3437 .ne 2
3439 \fB\fBdladm delete-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3440 \fIsecobj\fR[,...]\fR
3442 .sp .6
3443 .RS 4n
3444 Delete one or more specified secure objects. This subcommand is only usable by
3445 users or roles that belong to the "Network Link Security" \fBRBAC\fR profile.
3447 .ne 2
3449 \fB\fB-t\fR, \fB--temporary\fR\fR
3451 .sp .6
3452 .RS 4n
3453 Specifies that the deletions are temporary. Temporary deletions last until the
3454 next reboot.
3458 .ne 2
3460 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3462 .sp .6
3463 .RS 4n
3464 See "Options," above.
3470 .ne 2
3472 \fB\fBdladm show-secobj\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
3473 [\fIsecobj\fR,...]\fR
3475 .sp .6
3476 .RS 4n
3477 Show current or persistent secure object information. If one or more secure
3478 objects are specified, then information for each is displayed. Otherwise, all
3479 current or persistent secure objects are displayed.
3481 By default, current secure objects are displayed, which are all secure objects
3482 that have either been persistently created and not temporarily deleted, or
3483 temporarily created.
3485 For security reasons, it is not possible to show the value of a secure object.
3487 .ne 2
3489 \fB\fB-o\fR \fIfield\fR[,...] , \fB--output\fR=\fIfield\fR[,...]\fR
3491 .sp .6
3492 .RS 4n
3493 A case-insensitive, comma-separated list of output fields to display. The field
3494 name must be one of the fields listed below. For displayed secure object, the
3495 following fields can be shown:
3497 .ne 2
3499 \fB\fBOBJECT\fR\fR
3501 .sp .6
3502 .RS 4n
3503 The name of the secure object.
3507 .ne 2
3509 \fB\fBCLASS\fR\fR
3511 .sp .6
3512 .RS 4n
3513 The class of the secure object.
3519 .ne 2
3521 \fB\fB-p\fR, \fB--parseable\fR\fR
3523 .sp .6
3524 .RS 4n
3525 Display using a stable machine-parseable format. The \fB-o\fR option is
3526 required with \fB-p\fR. See "Parseable Output Format", below.
3530 .ne 2
3532 \fB\fB-P\fR, \fB--persistent\fR\fR
3534 .sp .6
3535 .RS 4n
3536 Display persistent secure object information
3542 .ne 2
3544 \fB\fBdladm create-vnic\fR [\fB-t\fR] \fB-l\fR \fIlink\fR [\fB-R\fR
3545 \fIroot-dir\fR] [\fB-m\fR \fIvalue\fR | auto | {factory [\fB-n\fR
3546 \fIslot-identifier\fR]} | {random [\fB-r\fR \fIprefix\fR]}] [\fB-v\fR
3547 \fIvlan-id\fR] [\fB-p\fR \fIprop\fR=\fIvalue\fR[,...]] \fIvnic-link\fR\fR
3549 .sp .6
3550 .RS 4n
3551 Create a VNIC with name \fIvnic-link\fR over the specified link.
3553 .ne 2
3555 \fB\fB-t\fR, \fB--temporary\fR\fR
3557 .sp .6
3558 .RS 4n
3559 Specifies that the VNIC is temporary. Temporary VNICs last until the next
3560 reboot.
3564 .ne 2
3566 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3568 .sp .6
3569 .RS 4n
3570 See "Options," above.
3574 .ne 2
3576 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
3578 .sp .6
3579 .RS 4n
3580 \fIlink\fR can be a physical link or an \fBetherstub\fR.
3584 .ne 2
3586 \fB\fB-m\fR \fIvalue\fR | \fIkeyword\fR, \fB--mac-address\fR=\fIvalue\fR |
3587 \fIkeyword\fR\fR
3589 .sp .6
3590 .RS 4n
3591 Sets the VNIC's MAC address based on the specified value or keyword. If
3592 \fIvalue\fR is not a keyword, it is interpreted as a unicast MAC address, which
3593 must be valid for the underlying NIC. The following special keywords can be
3594 used:
3596 .ne 2
3598 \fBfactory [\fB-n\fR \fIslot-identifier\fR],\fR
3602 \fBfactory [\fB--slot\fR=\fIslot-identifier\fR]\fR
3604 .sp .6
3605 .RS 4n
3606 Assign a factory MAC address to the VNIC. When a factory MAC address is
3607 requested, \fB-m\fR can be combined with the \fB-n\fR option to specify a MAC
3608 address slot to be used. If \fB-n\fR is not specified, the system will choose
3609 the next available factory MAC address. The \fB-m\fR option of the
3610 \fBshow-phys\fR subcommand can be used to display the list of factory MAC
3611 addresses, their slot identifiers, and their availability.
3615 .ne 2
3617 \fB\fR
3621 \fBrandom [\fB-r\fR \fIprefix\fR],\fR
3625 \fBrandom [\fB--mac-prefix\fR=\fIprefix\fR]\fR
3627 .sp .6
3628 .RS 4n
3629 Assign a random MAC address to the VNIC. A default prefix consisting of a valid
3630 IEEE OUI with the local bit set will be used. That prefix can be overridden
3631 with the \fB-r\fR option.
3635 .ne 2
3637 \fBauto\fR
3639 .sp .6
3640 .RS 4n
3641 Try and use a factory MAC address first. If none is available, assign a random
3642 MAC address. \fBauto\fR is the default action if the \fB-m\fR option is not
3643 specified.
3647 .ne 2
3649 \fB\fB-v\fR \fIvlan-id\fR\fR
3651 .sp .6
3652 .RS 4n
3653 Enable VLAN tagging for this VNIC. The VLAN tag will have id \fIvlan-id\fR.
3659 .ne 2
3661 \fB\fB-p\fR \fIprop\fR=\fIvalue\fR,..., \fB--prop\fR
3662 \fIprop\fR=\fIvalue\fR,...\fR
3664 .sp .6
3665 .RS 4n
3666 A comma-separated list of properties to set to the specified values.
3672 .ne 2
3674 \fB\fBdladm delete-vnic\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3675 \fIvnic-link\fR\fR
3677 .sp .6
3678 .RS 4n
3679 Deletes the specified VNIC.
3681 .ne 2
3683 \fB\fB-t\fR, \fB--temporary\fR\fR
3685 .sp .6
3686 .RS 4n
3687 Specifies that the deletion is temporary. Temporary deletions last until the
3688 next reboot.
3692 .ne 2
3694 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3696 .sp .6
3697 .RS 4n
3698 See "Options," above.
3704 .ne 2
3706 \fB\fBdladm show-vnic\fR [\fB-pP\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
3707 [\fB-o\fR \fIfield\fR[,...]] [\fB-l\fR \fIlink\fR] [\fIvnic-link\fR]\fR
3709 .sp .6
3710 .RS 4n
3711 Show VNIC configuration information (the default) or statistics, for all VNICs,
3712 all VNICs on a link, or only the specified \fIvnic-link\fR.
3714 .ne 2
3716 \fB\fB-o\fR \fIfield\fR[,...] , \fB--output\fR=\fIfield\fR[,...]\fR
3718 .sp .6
3719 .RS 4n
3720 A case-insensitive, comma-separated list of output fields to display. The field
3721 name must be one of the fields listed below. The field name must be one of the
3722 fields listed below, or the special value \fBall\fR to display all fields. By
3723 default (without \fB-o\fR), \fBshow-vnic\fR displays all fields.
3725 .ne 2
3727 \fB\fBLINK\fR\fR
3729 .sp .6
3730 .RS 4n
3731 The name of the VNIC.
3735 .ne 2
3737 \fB\fBOVER\fR\fR
3739 .sp .6
3740 .RS 4n
3741 The name of the physical link over which this VNIC is configured.
3745 .ne 2
3747 \fB\fBSPEED\fR\fR
3749 .sp .6
3750 .RS 4n
3751 The maximum speed of the VNIC, in megabits per second.
3755 .ne 2
3757 \fB\fBMACADDRESS\fR\fR
3759 .sp .6
3760 .RS 4n
3761 MAC address of the VNIC.
3765 .ne 2
3767 \fB\fBMACADDRTYPE\fR\fR
3769 .sp .6
3770 .RS 4n
3771 MAC address type of the VNIC. \fBdladm\fR distinguishes among the following MAC
3772 address types:
3774 .ne 2
3776 \fB\fBrandom\fR\fR
3778 .sp .6
3779 .RS 4n
3780 A random address assigned to the VNIC.
3784 .ne 2
3786 \fB\fBfactory\fR\fR
3788 .sp .6
3789 .RS 4n
3790 A factory MAC address used by the VNIC.
3798 .ne 2
3800 \fB\fB-p\fR, \fB--parseable\fR\fR
3802 .sp .6
3803 .RS 4n
3804 Display using a stable machine-parseable format. The \fB-o\fR option is
3805 required with \fB-p\fR. See "Parseable Output Format", below.
3809 .ne 2
3811 \fB\fB-P\fR, \fB--persistent\fR\fR
3813 .sp .6
3814 .RS 4n
3815 Display the persistent VNIC configuration.
3819 .ne 2
3821 \fB\fB-s\fR, \fB--statistics\fR\fR
3823 .sp .6
3824 .RS 4n
3825 Displays VNIC statistics.
3829 .ne 2
3831 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
3833 .sp .6
3834 .RS 4n
3835 Used with the \fB-s\fR option to specify an interval, in seconds, at which
3836 statistics should be displayed. If this option is not specified, statistics
3837 will be displayed only once.
3841 .ne 2
3843 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
3845 .sp .6
3846 .RS 4n
3847 Display information for all VNICs on the named link.
3853 .ne 2
3855 \fB\fR
3859 \fB\fBdladm create-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3860 \fIetherstub\fR\fR
3862 .sp .6
3863 .RS 4n
3864 Create an etherstub with the specified name.
3866 .ne 2
3868 \fB\fB-t\fR, \fB--temporary\fR\fR
3870 .sp .6
3871 .RS 4n
3872 Specifies that the etherstub is temporary. Temporary etherstubs do not persist
3873 across reboots.
3877 .ne 2
3879 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3881 .sp .6
3882 .RS 4n
3883 See "Options," above.
3886 VNICs can be created on top of etherstubs instead of physical NICs. As with
3887 physical NICs, such a creation causes the stack to implicitly create a virtual
3888 switch between the VNICs created on top of the same etherstub.
3892 .ne 2
3894 \fB\fR
3898 \fB\fBdladm delete-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3899 \fIetherstub\fR\fR
3901 .sp .6
3902 .RS 4n
3903 Delete the specified etherstub.
3905 .ne 2
3907 \fB\fB-t\fR, \fB--temporary\fR\fR
3909 .sp .6
3910 .RS 4n
3911 Specifies that the deletion is temporary. Temporary deletions last until the
3912 next reboot.
3916 .ne 2
3918 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3920 .sp .6
3921 .RS 4n
3922 See "Options," above.
3928 .ne 2
3930 \fB\fBdladm show-etherstub\fR [\fIetherstub\fR]\fR
3932 .sp .6
3933 .RS 4n
3934 Show all configured etherstubs by default, or the specified etherstub if
3935 \fIetherstub\fR is specified.
3939 .ne 2
3941 \fB\fBdladm create-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-T\fR
3942 \fItype\fR [\fB-s\fR \fItsrc\fR] [\fB-d\fR \fItdst\fR] \fIiptun-link\fR\fR
3944 .sp .6
3945 .RS 4n
3946 Create an IP tunnel link named \fIiptun-link\fR. Such links can additionally be
3947 protected with IPsec using \fBipsecconf\fR(1M).
3949 An IP tunnel is conceptually comprised of two parts: a virtual link between two
3950 or more IP nodes, and an IP interface above this link that allows the system to
3951 transmit and receive IP packets encapsulated by the underlying link. This
3952 subcommand creates a virtual link. The \fBifconfig\fR(1M) command is used to
3953 configure IP interfaces above the link.
3955 .ne 2
3957 \fB\fB-t\fR, \fB--temporary\fR\fR
3959 .sp .6
3960 .RS 4n
3961 Specifies that the IP tunnel link is temporary. Temporary tunnels last until
3962 the next reboot.
3966 .ne 2
3968 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3970 .sp .6
3971 .RS 4n
3972 See "Options," above.
3976 .ne 2
3978 \fB\fB-T\fR \fItype\fR, \fB--tunnel-type\fR=\fItype\fR\fR
3980 .sp .6
3981 .RS 4n
3982 Specifies the type of tunnel to be created. The type must be one of the
3983 following:
3985 .ne 2
3987 \fB\fBipv4\fR\fR
3989 .sp .6
3990 .RS 4n
3991 A point-to-point, IP-over-IP tunnel between two IPv4 nodes. This type of tunnel
3992 requires IPv4 source and destination addresses to function. IPv4 and IPv6
3993 interfaces can be plumbed above such a tunnel to create IPv4-over-IPv4 and
3994 IPv6-over-IPv4 tunneling configurations.
3998 .ne 2
4000 \fB\fBipv6\fR\fR
4002 .sp .6
4003 .RS 4n
4004 A point-to-point, IP-over-IP tunnel between two IPv6 nodes as defined in IETF
4005 RFC 2473. This type of tunnel requires IPv6 source and destination addresses to
4006 function. IPv4 and IPv6 interfaces can be plumbed above such a tunnel to create
4007 IPv4-over-IPv6 and IPv6-over-IPv6 tunneling configurations.
4011 .ne 2
4013 \fB\fB6to4\fR\fR
4015 .sp .6
4016 .RS 4n
4017 A 6to4, point-to-multipoint tunnel as defined in IETF RFC 3056. This type of
4018 tunnel requires an IPv4 source address to function. An IPv6 interface is
4019 plumbed on such a tunnel link to configure a 6to4 router.
4025 .ne 2
4027 \fB\fB-s\fR \fItsrc\fR, \fB--tunnel-src\fR=\fItsrc\fR\fR
4029 .sp .6
4030 .RS 4n
4031 Literal IP address or hostname corresponding to the tunnel source. If a
4032 hostname is specified, it will be resolved to IP addresses, and one of those IP
4033 addresses will be used as the tunnel source. Because IP tunnels are created
4034 before naming services have been brought online during the boot process, it is
4035 important that any hostname used be included in \fB/etc/hosts\fR.
4039 .ne 2
4041 \fB\fB-d\fR \fItdst\fR, \fB--tunnel-dst\fR=\fItdst\fR\fR
4043 .sp .6
4044 .RS 4n
4045 Literal IP address or hostname corresponding to the tunnel destination.
4051 .ne 2
4053 \fB\fBdladm modify-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-s\fR
4054 \fItsrc\fR] [\fB-d\fR \fItdst\fR] \fIiptun-link\fR\fR
4056 .sp .6
4057 .RS 4n
4058 Modify the parameters of the specified IP tunnel.
4060 .ne 2
4062 \fB\fB-t\fR, \fB--temporary\fR\fR
4064 .sp .6
4065 .RS 4n
4066 Specifies that the modification is temporary. Temporary modifications last
4067 until the next reboot.
4071 .ne 2
4073 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4075 .sp .6
4076 .RS 4n
4077 See "Options," above.
4081 .ne 2
4083 \fB\fB-s\fR \fItsrc\fR, \fB--tunnel-src\fR=\fItsrc\fR\fR
4085 .sp .6
4086 .RS 4n
4087 Specifies a new tunnel source address. See \fBcreate-iptun\fR for a
4088 description.
4092 .ne 2
4094 \fB\fB-d\fR \fItdst\fR, \fB--tunnel-dst\fR=\fItdst\fR\fR
4096 .sp .6
4097 .RS 4n
4098 Specifies a new tunnel destination address. See \fBcreate-iptun\fR for a
4099 description.
4105 .ne 2
4107 \fB\fBdladm delete-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
4108 \fIiptun-link\fR\fR
4110 .sp .6
4111 .RS 4n
4112 Delete the specified IP tunnel link.
4114 .ne 2
4116 \fB\fB-t\fR, \fB--temporary\fR\fR
4118 .sp .6
4119 .RS 4n
4120 Specifies that the deletion is temporary. Temporary deletions last until the
4121 next reboot.
4125 .ne 2
4127 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4129 .sp .6
4130 .RS 4n
4131 See "Options," above.
4137 .ne 2
4139 \fB\fBdladm show-iptun\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
4140 [\fIiptun-link\fR]\fR
4142 .sp .6
4143 .RS 4n
4144 Show IP tunnel link configuration for a single IP tunnel or all IP tunnels.
4146 .ne 2
4148 \fB\fB-P\fR, \fB--persistent\fR\fR
4150 .sp .6
4151 .RS 4n
4152 Display the persistent IP tunnel configuration.
4156 .ne 2
4158 \fB\fB-p\fR, \fB--parseable\fR\fR
4160 .sp .6
4161 .RS 4n
4162 Display using a stable machine-parseable format. The -o option is required with
4163 -p. See "Parseable Output Format", below.
4167 .ne 2
4169 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
4171 .sp .6
4172 .RS 4n
4173 A case-insensitive, comma-separated list of output fields to display. The field
4174 name must be one of the fields listed below, or the special value \fBall\fR, to
4175 display all fields. By default (without \fB-o\fR), \fBshow-iptun\fR displays
4176 all fields.
4178 .ne 2
4180 \fB\fBLINK\fR\fR
4182 .sp .6
4183 .RS 4n
4184 The name of the IP tunnel link.
4188 .ne 2
4190 \fB\fBTYPE\fR\fR
4192 .sp .6
4193 .RS 4n
4194 Type of tunnel as specified by the \fB-T\fR option of \fBcreate-iptun\fR.
4198 .ne 2
4200 \fB\fBFLAGS\fR\fR
4202 .sp .6
4203 .RS 4n
4204 A set of flags associated with the IP tunnel link. Possible flags are:
4206 .ne 2
4208 \fB\fBs\fR\fR
4210 .sp .6
4211 .RS 4n
4212 The IP tunnel link is protected by IPsec policy. To display the IPsec policy
4213 associated with the tunnel link, enter:
4215 .in +2
4217 # \fBipsecconf -ln -i \fItunnel-link\fR\fR
4219 .in -2
4222 See \fBipsecconf\fR(1M) for more details on how to configure IPsec policy.
4226 .ne 2
4228 \fB\fBi\fR\fR
4230 .sp .6
4231 .RS 4n
4232 The IP tunnel link was implicitly created with \fBifconfig\fR(1M), and will be
4233 automatically deleted when it is no longer referenced (that is, when the last
4234 IP interface over the tunnel is unplumbed). See \fBifconfig\fR(1M) for details
4235 on implicit tunnel creation.
4241 .ne 2
4243 \fB\fBSOURCE\fR\fR
4245 .sp .6
4246 .RS 4n
4247 The tunnel source address.
4251 .ne 2
4253 \fB\fBDESTINATION\fR\fR
4255 .sp .6
4256 .RS 4n
4257 The tunnel destination address.
4265 .ne 2
4267 \fB\fBdladm show-usage\fR [\fB-a\fR] \fB-f\fR \fIfilename\fR [\fB-p\fR
4268 \fIplotfile\fR \fB-F\fR \fIformat\fR] [\fB-s\fR \fItime\fR] [\fB-e\fR
4269 \fItime\fR] [\fIlink\fR]\fR
4271 .sp .6
4272 .RS 4n
4273 Show the historical network usage from a stored extended accounting file.
4274 Configuration and enabling of network accounting through \fBacctadm\fR(1M) is
4275 required. The default output will be the summary of network usage for the
4276 entire period of time in which extended accounting was enabled.
4278 .ne 2
4280 \fB\fB-a\fR\fR
4282 .sp .6
4283 .RS 4n
4284 Display all historical network usage for the specified period of time during
4285 which extended accounting is enabled. This includes the usage information for
4286 the links that have already been deleted.
4290 .ne 2
4292 \fB\fB-f\fR \fIfilename\fR, \fB--file\fR=\fIfilename\fR\fR
4294 .sp .6
4295 .RS 4n
4296 Read extended accounting records of network usage from \fIfilename\fR.
4300 .ne 2
4302 \fB\fB-F\fR \fIformat\fR, \fB--format\fR=\fIformat\fR\fR
4304 .sp .6
4305 .RS 4n
4306 Specifies the format of \fIplotfile\fR that is specified by the \fB-p\fR
4307 option. As of this release, \fBgnuplot\fR is the only supported format.
4311 .ne 2
4313 \fB\fB-p\fR \fIplotfile\fR, \fB--plot\fR=\fIplotfile\fR\fR
4315 .sp .6
4316 .RS 4n
4317 Write network usage data to a file of the format specified by the \fB-F\fR
4318 option, which is required.
4322 .ne 2
4324 \fB\fB-s\fR \fItime\fR, \fB--start\fR=\fItime\fR\fR
4328 \fB\fB-e\fR \fItime\fR, \fB--stop\fR=\fItime\fR\fR
4330 .sp .6
4331 .RS 4n
4332 Start and stop times for data display. Time is in the format
4333 \fIMM\fR/\fIDD\fR/\fIYYYY\fR,\fIhh\fR:\fImm\fR:\fIss\fR.
4337 .ne 2
4339 \fB\fIlink\fR\fR
4341 .sp .6
4342 .RS 4n
4343 If specified, display the network usage only for the named link. Otherwise,
4344 display network usage for all links.
4349 .SS "Parseable Output Format"
4352 Many \fBdladm\fR subcommands have an option that displays output in a
4353 machine-parseable format. The output format is one or more lines of colon
4354 (\fB:\fR) delimited fields. The fields displayed are specific to the subcommand
4355 used and are listed under the entry for the \fB-o\fR option for a given
4356 subcommand. Output includes only those fields requested by means of the
4357 \fB-o\fR option, in the order requested.
4360 When you request multiple fields, any literal colon characters are escaped by a
4361 backslash (\fB\e\fR) before being output. Similarly, literal backslash
4362 characters will also be escaped (\fB\e\e\fR). This escape format is parseable
4363 by using shell \fBread\fR(1) functions with the environment variable
4364 \fBIFS=:\fR (see \fBEXAMPLES\fR, below). Note that escaping is not done when
4365 you request only a single field.
4366 .SS "General Link Properties"
4369 The following general link properties are supported:
4371 .ne 2
4373 \fB\fBautopush\fR\fR
4375 .sp .6
4376 .RS 4n
4377 Specifies the set of STREAMS modules to push on the stream associated with a
4378 link when its DLPI device is opened. It is a space-delimited list of modules.
4380 The optional special character sequence \fB[anchor]\fR indicates that a STREAMS
4381 anchor should be placed on the stream at the module previously specified in the
4382 list. It is an error to specify more than one anchor or to have an anchor first
4383 in the list.
4385 The \fBautopush\fR property is preferred over the more general
4386 \fBautopush\fR(1M) command.
4390 .ne 2
4392 \fB\fBcpus\fR\fR
4394 .sp .6
4395 .RS 4n
4396 Bind the processing of packets for a given data link to a processor or a set of
4397 processors. The value can be a comma-separated list of one or more processor
4398 ids. If the list consists of more than one processor, the processing will
4399 spread out to all the processors. Connection to processor affinity and packet
4400 ordering for any individual connection will be maintained.
4402 The processor or set of processors are not exclusively reserved for the link.
4403 Only the kernel threads and interrupts associated with processing of the link
4404 are bound to the processor or the set of processors specified. In case it is
4405 desired that processors be dedicated to the link, \fBpsrset\fR(1M) can be used
4406 to create a processor set and then specifying the processors from the processor
4407 set to bind the link to.
4409 If the link was already bound to processor or set of processors due to a
4410 previous operation, the binding will be removed and the new set of processors
4411 will be used instead.
4413 The default is no CPU binding, which is to say that the processing of packets
4414 is not bound to any specific processor or processor set.
4418 .ne 2
4420 \fB\fBlearn_limit\fR\fR
4422 .sp .6
4423 .RS 4n
4424 Limits the number of new or changed MAC sources to be learned over a bridge
4425 link. When the number exceeds this value, learning on that link is temporarily
4426 disabled. Only non-VLAN, non-VNIC type links have this property.
4428 The default value is \fB1000\fR. Valid values are greater or equal to 0.
4432 .ne 2
4434 \fB\fBlearn_decay\fR\fR
4436 .sp .6
4437 .RS 4n
4438 Specifies the decay rate for source changes limited by \fBlearn_limit\fR. This
4439 number is subtracted from the counter for a bridge link every 5 seconds. Only
4440 non-VLAN, non-VNIC type links have this property.
4442 The default value is \fB200\fR. Valid values are greater or equal to 0.
4446 .ne 2
4448 \fB\fBmaxbw\fR\fR
4450 .sp .6
4451 .RS 4n
4452 Sets the full duplex bandwidth for the link. The bandwidth is specified as an
4453 integer with one of the scale suffixes (\fBK\fR, \fBM\fR, or \fBG\fR for Kbps,
4454 Mbps, and Gbps). If no units are specified, the input value will be read as
4455 Mbps. The default is no bandwidth limit.
4459 .ne 2
4461 \fB\fBpriority\fR\fR
4463 .sp .6
4464 .RS 4n
4465 Sets the relative priority for the link. The value can be given as one of the
4466 tokens \fBhigh\fR, \fBmedium\fR, or \fBlow\fR. The default is \fBhigh\fR.
4470 .ne 2
4472 \fB\fBstp\fR\fR
4474 .sp .6
4475 .RS 4n
4476 Enables or disables Spanning Tree Protocol on a bridge link. Setting this value
4477 to \fB0\fR disables Spanning Tree, and puts the link into forwarding mode with
4478 BPDU guarding enabled. This mode is appropriate for point-to-point links
4479 connected only to end nodes. Only non-VLAN, non-VNIC type links have this
4480 property. The default value is \fB1\fR, to enable STP.
4484 .ne 2
4486 \fB\fBforward\fR\fR
4488 .sp .6
4489 .RS 4n
4490 Enables or disables forwarding for a VLAN. Setting this value to \fB0\fR
4491 disables bridge forwarding for a VLAN link. Disabling bridge forwarding removes
4492 that VLAN from the "allowed set" for the bridge. The default value is \fB1\fR,
4493 to enable bridge forwarding for configured VLANs.
4497 .ne 2
4499 \fB\fBdefault_tag\fR\fR
4501 .sp .6
4502 .RS 4n
4503 Sets the default VLAN ID that is assumed for untagged packets sent to and
4504 received from this link. Only non-VLAN, non-VNIC type links have this property.
4505 Setting this value to \fB0\fR disables the bridge forwarding of untagged
4506 packets to and from the port. The default value is \fBVLAN ID 1\fR. Valid
4507 values values are from 0 to 4094.
4511 .ne 2
4513 \fB\fBstp_priority\fR\fR
4515 .sp .6
4516 .RS 4n
4517 Sets the STP and RSTP Port Priority value, which is used to determine the
4518 preferred root port on a bridge. Lower numerical values are higher priority.
4519 The default value is \fB128\fR. Valid values range from 0 to 255.
4523 .ne 2
4525 \fB\fBstp_cost\fR\fR
4527 .sp .6
4528 .RS 4n
4529 Sets the STP and RSTP cost for using the link. The default value is \fBauto\fR,
4530 which sets the cost based on link speed, using \fB100\fR for 10Mbps, \fB19\fR
4531 for 100Mbps, \fB4\fR for 1Gbps, and \fB2\fR for 10Gbps. Valid values range from
4532 1 to 65535.
4536 .ne 2
4538 \fB\fBstp_edge\fR\fR
4540 .sp .6
4541 .RS 4n
4542 Enables or disables bridge edge port detection. If set to \fB0\fR (false), the
4543 system assumes that the port is connected to other bridges even if no bridge
4544 PDUs of any type are seen. The default value is \fB1\fR, which detects edge
4545 ports automatically.
4549 .ne 2
4551 \fB\fBstp_p2p\fR\fR
4553 .sp .6
4554 .RS 4n
4555 Sets bridge point-to-point operation mode. Possible values are \fBtrue\fR,
4556 \fBfalse\fR, and \fBauto\fR. When set to \fBauto\fR, point-to-point connections
4557 are automatically discovered. When set to \fBtrue\fR, the port mode is forced
4558 to use point-to-point. When set to \fBfalse\fR, the port mode is forced to use
4559 normal multipoint mode. The default value is \fBauto\fR.
4563 .ne 2
4565 \fB\fBstp_mcheck\fR\fR
4567 .sp .6
4568 .RS 4n
4569 Triggers the system to run the RSTP \fBForce BPDU Migration Check\fR procedure
4570 on this link. The procedure is triggered by setting the property value to
4571 \fB1\fR. The property is automatically reset back to \fB0\fR. This value cannot
4572 be set unless the following are true:
4573 .RS +4
4575 .ie t \(bu
4576 .el o
4577 The link is bridged
4579 .RS +4
4581 .ie t \(bu
4582 .el o
4583 The bridge is protected by Spanning Tree
4585 .RS +4
4587 .ie t \(bu
4588 .el o
4589 The bridge \fBforce-protocol\fR value is at least 2 (RSTP)
4591 The default value is 0.
4595 .ne 2
4597 \fB\fBzone\fR\fR
4599 .sp .6
4600 .RS 4n
4601 Specifies the zone to which the link belongs. This property can be modified
4602 only temporarily through \fBdladm\fR, and thus the \fB-t\fR option must be
4603 specified. To modify the zone assignment such that it persists across reboots,
4604 please use \fBzonecfg\fR(1M). Possible values consist of any exclusive-IP zone
4605 currently running on the system. By default, the zone binding is as per
4606 \fBzonecfg\fR(1M).
4609 .SS "Wifi Link Properties"
4612 The following \fBWiFi\fR link properties are supported. Note that the ability
4613 to set a given property to a given value depends on the driver and hardware.
4615 .ne 2
4617 \fB\fBchannel\fR\fR
4619 .sp .6
4620 .RS 4n
4621 Specifies the channel to use. This property can be modified only by certain
4622 \fBWiFi\fR links when in \fBIBSS\fR mode. The default value and allowed range
4623 of values varies by regulatory domain.
4627 .ne 2
4629 \fB\fBpowermode\fR\fR
4631 .sp .6
4632 .RS 4n
4633 Specifies the power management mode of the \fBWiFi\fR link. Possible values are
4634 \fBoff\fR (disable power management), \fBmax\fR (maximum power savings), and
4635 \fBfast\fR (performance-sensitive power management). Default is \fBoff\fR.
4639 .ne 2
4641 \fB\fBradio\fR\fR
4643 .sp .6
4644 .RS 4n
4645 Specifies the radio mode of the \fBWiFi\fR link. Possible values are \fBon\fR
4646 or \fBoff\fR. Default is \fBon\fR.
4650 .ne 2
4652 \fB\fBspeed\fR\fR
4654 .sp .6
4655 .RS 4n
4656 Specifies a fixed speed for the \fBWiFi\fR link, in megabits per second. The
4657 set of possible values depends on the driver and hardware (but is shown by
4658 \fBshow-linkprop\fR); common speeds include 1, 2, 11, and 54. By default, there
4659 is no fixed speed.
4662 .SS "Ethernet Link Properties"
4665 The following MII Properties, as documented in \fBieee802.3\fR(5), are
4666 supported in read-only mode:
4667 .RS +4
4669 .ie t \(bu
4670 .el o
4671 \fBduplex\fR
4673 .RS +4
4675 .ie t \(bu
4676 .el o
4677 \fBstate\fR
4679 .RS +4
4681 .ie t \(bu
4682 .el o
4683 \fBadv_autoneg_cap\fR
4685 .RS +4
4687 .ie t \(bu
4688 .el o
4689 \fBadv_10gfdx_cap\fR
4691 .RS +4
4693 .ie t \(bu
4694 .el o
4695 \fBadv_1000fdx_cap\fR
4697 .RS +4
4699 .ie t \(bu
4700 .el o
4701 \fBadv_1000hdx_cap\fR
4703 .RS +4
4705 .ie t \(bu
4706 .el o
4707 \fBadv_100fdx_cap\fR
4709 .RS +4
4711 .ie t \(bu
4712 .el o
4713 \fBadv_100hdx_cap\fR
4715 .RS +4
4717 .ie t \(bu
4718 .el o
4719 \fBadv_10fdx_cap\fR
4721 .RS +4
4723 .ie t \(bu
4724 .el o
4725 \fBadv_10hdx_cap\fR
4729 Each \fBadv_\fR property (for example, \fBadv_10fdx_cap\fR) also has a
4730 read/write counterpart \fBen_\fR property (for example, \fBen_10fdx_cap\fR)
4731 controlling parameters used at auto-negotiation. In the absence of Power
4732 Management, the \fBadv\fR* speed/duplex parameters provide the values that are
4733 both negotiated and currently effective in hardware. However, with Power
4734 Management enabled, the speed/duplex capabilities currently exposed in hardware
4735 might be a subset of the set of bits that were used in initial link parameter
4736 negotiation. Thus the MII \fBadv_\fR* parameters are marked read-only, with an
4737 additional set of \fBen_\fR* parameters for configuring speed and duplex
4738 properties at initial negotiation.
4741 Note that the \fBadv_autoneg_cap\fR does not have an \fBen_autoneg_cap\fR
4742 counterpart: the \fBadv_autoneg_cap\fR is a 0/1 switch that turns off/on
4743 autonegotiation itself, and therefore cannot be impacted by Power Management.
4746 In addition, the following Ethernet properties are reported:
4748 .ne 2
4750 \fB\fBspeed\fR\fR
4752 .sp .6
4753 .RS 4n
4754 (read-only) The operating speed of the device, in Mbps.
4758 .ne 2
4760 \fB\fBmtu\fR\fR
4762 .sp .6
4763 .RS 4n
4764 The maximum client SDU (Send Data Unit) supported by the device. Valid range is
4765 68-65536.
4769 .ne 2
4771 \fB\fBflowctrl\fR\fR
4773 .sp .6
4774 .RS 4n
4775 Establishes flow-control modes that will be advertised by the device. Valid
4776 input is one of:
4778 .ne 2
4780 \fB\fBno\fR\fR
4782 .sp .6
4783 .RS 4n
4784 No flow control enabled.
4788 .ne 2
4790 \fB\fBrx\fR\fR
4792 .sp .6
4793 .RS 4n
4794 Receive, and act upon incoming pause frames.
4798 .ne 2
4800 \fB\fBtx\fR\fR
4802 .sp .6
4803 .RS 4n
4804 Transmit pause frames to the peer when congestion occurs, but ignore received
4805 pause frames.
4809 .ne 2
4811 \fB\fBbi\fR\fR
4813 .sp .6
4814 .RS 4n
4815 Bidirectional flow control.
4818 Note that the actual settings for this value are constrained by the
4819 capabilities allowed by the device and the link partner.
4823 .ne 2
4825 \fB\fBsecondary-macs\fR\fR
4827 .sp .6
4828 .RS 4n
4829 A comma-seperated list of additional MAC addresses that are allowed on the
4830 interface.
4834 .ne 2
4836 \fB\fBtagmode\fR\fR
4838 .sp .6
4839 .RS 4n
4840 This link property controls the conditions in which 802.1Q VLAN tags will be
4841 inserted in packets being transmitted on the link. Two mode values can be
4842 assigned to this property:
4844 .ne 2
4846 \fB\fBnormal\fR\fR
4848 .RS 12n
4849 Insert a VLAN tag in outgoing packets under the following conditions:
4850 .RS +4
4852 .ie t \(bu
4853 .el o
4854 The packet belongs to a VLAN.
4856 .RS +4
4858 .ie t \(bu
4859 .el o
4860 The user requested priority tagging.
4865 .ne 2
4867 \fB\fBvlanonly\fR\fR
4869 .RS 12n
4870 Insert a VLAN tag only when the outgoing packet belongs to a VLAN. If a tag is
4871 being inserted in this mode and the user has also requested a non-zero
4872 priority, the priority is honored and included in the VLAN tag.
4875 The default value is \fBvlanonly\fR.
4878 .SS "IP Tunnel Link Properties"
4881 The following IP tunnel link properties are supported.
4883 .ne 2
4885 \fB\fBhoplimit\fR\fR
4887 .sp .6
4888 .RS 4n
4889 Specifies the IPv4 TTL or IPv6 hop limit for the encapsulating outer IP header
4890 of a tunnel link. This property exists for all tunnel types. The default value
4891 is 64.
4895 .ne 2
4897 \fB\fBencaplimit\fR\fR
4899 .sp .6
4900 .RS 4n
4901 Specifies the IPv6 encapsulation limit for an IPv6 tunnel as defined in RFC
4902 2473. This value is the tunnel nesting limit for a given tunneled packet. The
4903 default value is 4. A value of 0 disables the encapsulation limit.
4906 .SH EXAMPLES
4908 \fBExample 1 \fRConfiguring an Aggregation
4911 To configure a data-link over an aggregation of devices \fBbge0\fR and
4912 \fBbge1\fR with key 1, enter the following command:
4915 .in +2
4917 # \fBdladm create-aggr -d bge0 -d bge1 1\fR
4919 .in -2
4923 \fBExample 2 \fRConnecting to a WiFi Link
4926 To connect to the most optimal available unsecured network on a system with a
4927 single \fBWiFi\fR link (as per the prioritization rules specified for
4928 \fBconnect-wifi\fR), enter the following command:
4931 .in +2
4933 # \fBdladm connect-wifi\fR
4935 .in -2
4939 \fBExample 3 \fRCreating a WiFi Key
4942 To interactively create the \fBWEP\fR key \fBmykey\fR, enter the following
4943 command:
4946 .in +2
4948 # \fBdladm create-secobj -c wep mykey\fR
4950 .in -2
4955 Alternatively, to non-interactively create the \fBWEP\fR key \fBmykey\fR using
4956 the contents of a file:
4959 .in +2
4961 # \fBumask 077\fR
4962  # \fBcat >/tmp/mykey.$$ <<EOF\fR
4963  \fB12345\fR
4964  \fBEOF\fR
4965  # \fBdladm create-secobj -c wep -f /tmp/mykey.$$ mykey\fR
4966  # \fBrm /tmp/mykey.$$\fR
4968 .in -2
4972 \fBExample 4 \fRConnecting to a Specified Encrypted WiFi Link
4975 To use key \fBmykey\fR to connect to \fBESSID\fR \fBwlan\fR on link \fBath0\fR,
4976 enter the following command:
4979 .in +2
4981 # \fBdladm connect-wifi -k mykey -e wlan ath0\fR
4983 .in -2
4987 \fBExample 5 \fRChanging a Link Property
4990 To set \fBpowermode\fR to the value \fBfast\fR on link \fBpcwl0\fR, enter the
4991 following command:
4994 .in +2
4996 # \fBdladm set-linkprop -p powermode=fast pcwl0\fR
4998 .in -2
5002 \fBExample 6 \fRConnecting to a WPA-Protected WiFi Link
5005 Create a WPA key \fBpsk\fR and enter the following command:
5008 .in +2
5010 # \fBdladm create-secobj -c wpa psk\fR
5012 .in -2
5017 To then use key \fBpsk\fR to connect to ESSID \fBwlan\fR on link \fBath0\fR,
5018 enter the following command:
5021 .in +2
5023 # \fBdladm connect-wifi -k psk -e wlan ath0\fR
5025 .in -2
5029 \fBExample 7 \fRRenaming a Link
5032 To rename the \fBbge0\fR link to \fBmgmt0\fR, enter the following command:
5035 .in +2
5037 # \fBdladm rename-link bge0 mgmt0\fR
5039 .in -2
5043 \fBExample 8 \fRReplacing a Network Card
5046 Consider that the \fBbge0\fR device, whose link was named \fBmgmt0\fR as shown
5047 in the previous example, needs to be replaced with a \fBce0\fR device because
5048 of a hardware failure. The \fBbge0\fR NIC is physically removed, and replaced
5049 with a new \fBce0\fR NIC. To associate the newly added \fBce0\fR device with
5050 the \fBmgmt0\fR configuration previously associated with \fBbge0\fR, enter the
5051 following command:
5054 .in +2
5056 # \fBdladm rename-link ce0 mgmt0\fR
5058 .in -2
5062 \fBExample 9 \fRRemoving a Network Card
5065 Suppose that in the previous example, the intent is not to replace the
5066 \fBbge0\fR NIC with another NIC, but rather to remove and not replace the
5067 hardware. In that case, the \fBmgmt0\fR datalink configuration is not slated to
5068 be associated with a different physical device as shown in the previous
5069 example, but needs to be deleted. Enter the following command to delete the
5070 datalink configuration associated with the \fBmgmt0\fR datalink, whose physical
5071 hardware (\fBbge0\fR in this case) has been removed:
5074 .in +2
5076 # \fBdladm delete-phys mgmt0\fR
5078 .in -2
5082 \fBExample 10 \fRUsing Parseable Output to Capture a Single Field
5085 The following assignment saves the MTU of link \fBnet0\fR to a variable named
5086 \fBmtu\fR.
5089 .in +2
5091 # \fBmtu=`dladm show-link -p -o mtu net0`\fR
5093 .in -2
5097 \fBExample 11 \fRUsing Parseable Output to Iterate over Links
5100 The following script displays the state of each link on the system.
5103 .in +2
5105 # \fBdladm show-link -p -o link,state | while IFS=: read link state; do
5106             print "Link $link is in state $state"
5107         done\fR
5109 .in -2
5113 \fBExample 12 \fRConfiguring VNICs
5116 Create two VNICs with names \fBhello0\fR and \fBtest1\fR over a single physical
5117 link \fBbge0\fR:
5120 .in +2
5122 # \fBdladm create-vnic -l bge0 hello0\fR
5123 # \fBdladm create-vnic -l bge0 test1\fR
5125 .in -2
5129 \fBExample 13 \fRConfiguring VNICs and Allocating Bandwidth and Priority
5132 Create two VNICs with names \fBhello0\fR and \fBtest1\fR over a single physical
5133 link \fBbge0\fR and make \fBhello0\fR a high priority VNIC with a
5134 factory-assigned MAC address with a maximum bandwidth of 50 Mbps. Make
5135 \fBtest1\fR a low priority VNIC with a random MAC address and a maximum
5136 bandwidth of 100Mbps.
5139 .in +2
5141 # \fBdladm create-vnic -l bge0 -m factory -p maxbw=50,priority=high hello0\fR
5142 # \fBdladm create-vnic -l bge0 -m random -p maxbw=100M,priority=low test1\fR
5144 .in -2
5148 \fBExample 14 \fRConfiguring a VNIC with a Factory MAC Address
5151 First, list the available factory MAC addresses and choose one of them:
5154 .in +2
5156 # \fBdladm show-phys -m bge0\fR
5157 LINK            SLOT         ADDRESS              INUSE    CLIENT
5158 bge0            primary      0:e0:81:27:d4:47     yes      bge0
5159 bge0            1            8:0:20:fe:4e:a5      no
5160 bge0            2            8:0:20:fe:4e:a6      no
5161 bge0            3            8:0:20:fe:4e:a7      no
5163 .in -2
5168 Create a VNIC named \fBhello0\fR and use slot 1's address:
5171 .in +2
5173 # \fBdladm create-vnic -l bge0 -m factory -n 1 hello0\fR
5174 # \fBdladm show-phys -m bge0\fR
5175 LINK            SLOT         ADDRESS              INUSE    CLIENT
5176 bge0            primary      0:e0:81:27:d4:47     yes      bge0
5177 bge0            1            8:0:20:fe:4e:a5      yes      hello0
5178 bge0            2            8:0:20:fe:4e:a6      no
5179 bge0            3            8:0:20:fe:4e:a7      no
5181 .in -2
5185 \fBExample 15 \fRCreating a VNIC with User-Specified MAC Address, Binding it to
5186 Set of Processors
5189 Create a VNIC with name \fBhello0\fR, with a user specified MAC address, and a
5190 processor binding \fB0, 1, 2, 3\fR.
5193 .in +2
5195 # \fBdladm create-vnic -l bge0 -m 8:0:20:fe:4e:b8 -p cpus=0,1,2,3 hello0\fR
5197 .in -2
5201 \fBExample 16 \fRCreating a Virtual Network Without a Physical NIC
5204 First, create an etherstub with name \fBstub1\fR:
5207 .in +2
5209 # \fBdladm create-etherstub stub1\fR
5211 .in -2
5216 Create two VNICs with names \fBhello0\fR and \fBtest1\fR on the etherstub. This
5217 operation implicitly creates a virtual switch connecting \fBhello0\fR and
5218 \fBtest1\fR.
5221 .in +2
5223 # \fBdladm create-vnic -l stub1 hello0\fR
5224 # \fBdladm create-vnic -l stub1 test1\fR
5226 .in -2
5230 \fBExample 17 \fRShowing Network Usage
5233 Network usage statistics can be stored using the extended accounting facility,
5234 \fBacctadm\fR(1M).
5237 .in +2
5239 # \fBacctadm -e basic -f /var/log/net.log net\fR
5240 # \fBacctadm net\fR
5241           Network accounting: active
5242      Network accounting file: /var/log/net.log
5243    Tracked Network resources: basic
5244  Untracked Network resources: src_ip,dst_ip,src_port,dst_port,protocol,
5245                               dsfield
5247 .in -2
5252 The saved historical data can be retrieved in summary form using the
5253 \fBshow-usage\fR subcommand:
5256 .in +2
5258 # \fBdladm show-usage -f /var/log/net.log\fR
5259 LINK      DURATION  IPACKETS RBYTES      OPACKETS OBYTES      BANDWIDTH
5260 e1000g0   80        1031     546908      0        0           2.44 Kbps
5262 .in -2
5266 \fBExample 18 \fRDisplaying Bridge Information
5269 The following commands use the \fBshow-bridge\fR subcommand with no and various
5270 options.
5273 .in +2
5275 # \fBdladm show-bridge\fR
5276 BRIDGE       PROTECT ADDRESS           PRIORITY DESROOT
5277 foo          stp     32768/8:0:20:bf:f 32768    8192/0:d0:0:76:14:38
5278 bar          stp     32768/8:0:20:e5:8 32768    8192/0:d0:0:76:14:38
5280 # \fBdladm show-bridge -l foo\fR
5281 LINK         STATE        UPTIME   DESROOT
5282 hme0         forwarding   117      8192/0:d0:0:76:14:38
5283 qfe1         forwarding   117      8192/0:d0:0:76:14:38
5285 # \fBdladm show-bridge -s foo\fR
5286 BRIDGE       DROPS        FORWARDS
5287 foo          0            302
5289 # \fBdladm show-bridge -ls foo\fR
5290 LINK         DROPS     RECV      XMIT
5291 hme0         0         360832    31797
5292 qfe1         0         322311    356852
5294 # \fBdladm show-bridge -f foo\fR
5295 DEST              AGE     FLAGS  OUTPUT
5296 8:0:20:bc:a7:dc   10.860  --     hme0
5297 8:0:20:bf:f9:69   --      L      hme0
5298 8:0:20:c0:20:26   17.420  --     hme0
5299 8:0:20:e5:86:11   --      L      qfe1
5301 .in -2
5305 \fBExample 19 \fRCreating an IPv4 Tunnel
5308 The following sequence of commands creates and then displays a persistent IPv4
5309 tunnel link named \fBmytunnel0\fR between 66.1.2.3 and 192.4.5.6:
5312 .in +2
5314 # \fBdladm create-iptun -T ipv4 -s 66.1.2.3 -d 192.4.5.6 mytunnel0\fR
5315 # \fBdladm show-iptun mytunnel0\fR
5316 LINK            TYPE  FLAGS  SOURCE              DESTINATION
5317 mytunnel0       ipv4  --     66.1.2.3            192.4.5.6
5319 .in -2
5324 A point-to-point IP interface can then be created over this tunnel link:
5327 .in +2
5329 # \fBifconfig mytunnel0 plumb 10.1.0.1 10.1.0.2 up\fR
5331 .in -2
5336 As with any other IP interface, configuration persistence for this IP interface
5337 is achieved by placing the desired \fBifconfig\fR commands (in this case, the
5338 command for "\fB10.1.0.1 10.1.0.2\fR") into \fB/etc/hostname.mytunnel0\fR.
5341 \fBExample 20 \fRCreating a 6to4 Tunnel
5344 The following command creates a 6to4 tunnel link. The IPv4 address of the 6to4
5345 router is 75.10.11.12.
5348 .in +2
5350 # \fBdladm create-iptun -T 6to4 -s 75.10.11.12 sitetunnel0\fR
5351 # \fBdladm show-iptun sitetunnel0\fR
5352 LINK            TYPE  FLAGS  SOURCE              DESTINATION
5353 sitetunnel0     6to4  --     75.10.11.12         --
5355 .in -2
5360 The following command plumbs an IPv6 interface on this tunnel:
5363 .in +2
5365 # \fBifconfig sitetunnel0 inet6 plumb up\fR
5366 # \fBifconfig sitetunnel0 inet6\fR
5367 sitetunnel0: flags=2200041 <UP,RUNNING,NONUD,IPv6> mtu 65515 index 3
5368         inet tunnel src 75.10.11.12
5369         tunnel hop limit 64
5370         inet6 2002:4b0a:b0c::1/16
5372 .in -2
5377 Note that the system automatically configures the IPv6 address on the 6to4 IP
5378 interface. See \fBifconfig\fR(1M) for a description of how IPv6 addresses are
5379 configured on 6to4 tunnel links.
5381 .SH ATTRIBUTES
5384 See \fBattributes\fR(5) for descriptions of the following attributes:
5387 \fB/usr/sbin\fR
5392 box;
5393 c | c
5394 l | l .
5395 ATTRIBUTE TYPE  ATTRIBUTE VALUE
5397 Interface Stability     Committed
5402 \fB/sbin\fR
5407 box;
5408 c | c
5409 l | l .
5410 ATTRIBUTE TYPE  ATTRIBUTE VALUE
5412 Interface Stability     Committed
5415 .SH SEE ALSO
5418 \fBacctadm\fR(1M), \fBautopush\fR(1M), \fBifconfig\fR(1M), \fBipsecconf\fR(1M),
5419 \fBndd\fR(1M), \fBpsrset\fR(1M), \fBwpad\fR(1M), \fBzonecfg\fR(1M),
5420 \fBattributes\fR(5), \fBieee802.3\fR(5), \fBdlpi\fR(7P)
5421 .SH NOTES
5424 The preferred method of referring to an aggregation in the aggregation
5425 subcommands is by its link name. Referring to an aggregation by its integer
5426 \fIkey\fR is supported for backward compatibility, but is not necessary. When
5427 creating an aggregation, if a \fIkey\fR is specified instead of a link name,
5428 the aggregation's link name will be automatically generated by \fBdladm\fR as
5429 \fBaggr\fR\fIkey\fR.