Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man8 / dladm.8
blobd33f4125efcb2a9e494853f54ed46d3dfde6e424
1 .\"
2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 .\" permission to reproduce portions of its copyrighted documentation.
4 .\" Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\"
7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 .\" Group, have given us permission to reprint portions of their
9 .\" documentation.
10 .\"
11 .\" In the following statement, the phrase ``this text'' refers to portions
12 .\" of the system documentation.
13 .\"
14 .\" Portions of this text are reprinted and reproduced in electronic form
15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 .\" Standard for Information Technology -- Portable Operating System
17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 .\" Engineers, Inc and The Open Group.  In the event of any discrepancy
20 .\" between these versions and the original IEEE and The Open Group
21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 .\" document.  The original Standard can be obtained online at
23 .\" http://www.opengroup.org/unix/online.html.
24 .\"
25 .\" This notice shall appear on any product containing this material.
26 .\"
27 .\" The contents of this file are subject to the terms of the
28 .\" Common Development and Distribution License (the "License").
29 .\" You may not use this file except in compliance with the License.
30 .\"
31 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32 .\" or http://www.opensolaris.org/os/licensing.
33 .\" See the License for the specific language governing permissions
34 .\" and limitations under the License.
35 .\"
36 .\" When distributing Covered Code, include this CDDL HEADER in each
37 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38 .\" If applicable, add the following below this CDDL HEADER, with the
39 .\" fields enclosed by brackets "[]" replaced with your own identifying
40 .\" information: Portions Copyright [yyyy] [name of copyright owner]
41 .\"
42 .\"
43 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
44 .\" Copyright 2016 Joyent, Inc.
45 .\"
46 .TH DLADM 8 "Dec 16, 2016"
47 .SH NAME
48 dladm \- administer data links
49 .SH SYNOPSIS
50 .LP
51 .nf
52 \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]
53 \fBdladm rename-link\fR [\fB-R\fR \fIroot-dir\fR] \fIlink\fR \fInew-link\fR
54 .fi
56 .LP
57 .nf
58 \fBdladm delete-phys\fR \fIphys-link\fR
59 \fBdladm show-phys\fR [\fB-m\fR | \fB-H\fR | \fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIphys-link\fR]
60 .fi
62 .LP
63 .nf
64 \fBdladm create-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR \fIpolicy\fR] [\fB-L\fR \fImode\fR]
65      [\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
66 \fBdladm modify-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR \fIpolicy\fR] [\fB-L\fR \fImode\fR]
67      [\fB-T\fR \fItime\fR] [\fB-u\fR \fIaddress\fR] \fIaggr-link\fR
68 \fBdladm delete-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIaggr-link\fR
69 \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...]
70      \fIaggr-link\fR
71 \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...]
72      \fIaggr-link\fR
73 \fBdladm show-aggr\fR [\fB-PLx\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
74      [\fIaggr-link\fR]
75 .fi
77 .LP
78 .nf
79 \fBdladm create-bridge\fR [\fB-P\fR \fIprotect\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIpriority\fR]
80      [\fB-m\fR \fImax-age\fR] [\fB-h\fR \fIhello-time\fR] [\fB-d\fR \fIforward-delay\fR] [\fB-f\fR \fIforce-protocol\fR]
81      [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR
82 .fi
84 .LP
85 .nf
86 \fBdladm modify-bridge\fR [\fB-P\fR \fIprotect\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIpriority\fR]
87      [\fB-m\fR \fImax-age\fR] [\fB-h\fR \fIhello-time\fR] [\fB-d\fR \fIforward-delay\fR] [\fB-f\fR \fIforce-protocol\fR]
88      \fIbridge-name\fR
89 .fi
91 .LP
92 .nf
93 \fBdladm delete-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fIbridge-name\fR
94 .fi
96 .LP
97 .nf
98 \fBdladm add-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR [\fB-l\fR \fIlink\fR...]\fIbridge-name\fR
99 .fi
103 \fBdladm remove-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR
108 \fBdladm show-bridge\fR [\fB-flt\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
109      [\fIbridge-name\fR]
114 \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]
115 \fBdladm delete-vlan\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIvlan-link\fR
116 \fBdladm show-vlan\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIvlan-link\fR]
121 \fBdladm scan-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIwifi-link\fR]
122 \fBdladm connect-wifi\fR [\fB-e\fR \fIessid\fR] [\fB-i\fR \fIbssid\fR] [\fB-k\fR \fIkey\fR,...]
123      [\fB-s\fR none | wep | wpa ] [\fB-a\fR open | shared] [\fB-b\fR bss | ibss] [\fB-c\fR]
124      [\fB-m\fR a | b | g] [\fB-T\fR \fItime\fR] [\fIwifi-link\fR]
125 \fBdladm disconnect-wifi\fR [\fB-a\fR] [\fIwifi-link\fR]
126 \fBdladm show-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIwifi-link\fR]
131 \fBdladm show-ether\fR [\fB-x\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIether-link\fR]
136 \fBdladm set-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-p\fR \fIprop\fR=\fIvalue\fR[,...] \fIlink\fR
137 \fBdladm reset-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR \fIprop\fR[,...]] \fIlink\fR
138 \fBdladm show-linkprop\fR [\fB-P\fR] [[\fB-c\fR] \fB-o\fR \fIfield\fR[,...]] [\fB-p\fR \fIprop\fR[,...]] [\fIlink\fR]
143 \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
144 \fBdladm delete-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIsecobj\fR[,...]
145 \fBdladm show-secobj\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIsecobj\fR,...]
150 \fBdladm create-vnic\fR [\fB-t\fR] \fB-l\fR \fIlink\fR [\fB-R\fR \fIroot-dir\fR] [\fB-m\fR \fIvalue\fR | auto |
151      {factory \fB-n\fR \fIslot-identifier\fR]} | {random [\fB-r\fR \fIprefix\fR]}]
152      [\fB-v\fR \fIvlan-id\fR] [\fB-p\fR \fIprop\fR=\fIvalue\fR[,...]] \fIvnic-link\fR
153 \fBdladm delete-vnic\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIvnic-link\fR
154 \fBdladm show-vnic\fR [\fB-pP\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] [\fB-o\fR \fIfield\fR[,...]]
155      [\fB-l\fR \fIlink\fR] [\fIvnic-link\fR]
160 \fBdladm create-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIetherstub\fR
161 \fBdladm delete-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIetherstub\fR
162 \fBdladm show-etherstub\fR [\fIetherstub\fR]
167 \fBdladm create-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-T\fR \fItype\fR
168     [-a {local|remote}=<addr>[,...]] \fIiptun-link\fR
169 \fBdladm modify-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [-a {local|remote}=<addr>[,...]]
170      \fIiptun-link\fR
171 \fBdladm delete-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fIiptun-link\fR
172 \fBdladm show-iptun\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIiptun-link\fR]
177 \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]
178      [\fB-e\fR \fItime\fR] [\fIlink\fR]
181 .SH DESCRIPTION
183 The \fBdladm\fR command is used to administer data-links. A data-link is
184 represented in the system as a \fBSTREAMS DLPI\fR (v2) interface which can be
185 plumbed under protocol stacks such as \fBTCP/IP\fR. Each data-link relies on
186 either a single network device or an aggregation of devices to send packets to
187 or receive packets from a network.
190 Each \fBdladm\fR subcommand operates on one of the following objects:
192 .ne 2
194 \fB\fBlink\fR\fR
196 .sp .6
197 .RS 4n
198 A datalink, identified by a name. In general, the name can use any alphanumeric
199 characters (or the underscore, \fB_\fR), but must start with an alphabetic
200 character and end with a number. A datalink name can be at most 31 characters,
201 and the ending number must be between 0 and 4294967294 (inclusive). The ending
202 number must not begin with a zero. Datalink names between 3 and 8 characters
203 are recommended.
205 Some subcommands operate only on certain types or classes of datalinks. For
206 those cases, the following object names are used:
208 .ne 2
210 \fB\fBphys-link\fR\fR
212 .sp .6
213 .RS 4n
214 A physical datalink.
218 .ne 2
220 \fB\fBvlan-link\fR\fR
222 .sp .6
223 .RS 4n
224 A VLAN datalink.
228 .ne 2
230 \fB\fBaggr-link\fR\fR
232 .sp .6
233 .RS 4n
234 An aggregation datalink (or a key; see NOTES).
238 .ne 2
240 \fB\fBether-link\fR\fR
242 .sp .6
243 .RS 4n
244 A physical Ethernet datalink.
248 .ne 2
250 \fB\fBwifi-link\fR\fR
252 .sp .6
253 .RS 4n
254 A WiFi datalink.
258 .ne 2
260 \fB\fBvnic-link\fR\fR
262 .sp .6
263 .RS 4n
264 A virtual network interface created on a link or an \fBetherstub\fR. It is a
265 pseudo device that can be treated as if it were an network interface card on a
266 machine.
270 .ne 2
272 \fB\fBiptun-link\fR\fR
274 .sp .6
275 .RS 4n
276 An IP tunnel link.
282 .ne 2
284 \fB\fBdev\fR\fR
286 .sp .6
287 .RS 4n
288 A network device, identified by concatenation of a driver name and an instance
289 number.
293 .ne 2
295 \fB\fBetherstub\fR\fR
297 .sp .6
298 .RS 4n
299 An Ethernet stub can be used instead of a physical NIC to create VNICs. VNICs
300 created on an \fBetherstub\fR will appear to be connected through a virtual
301 switch, allowing complete virtual networks to be built without physical
302 hardware.
306 .ne 2
308 \fB\fBbridge\fR\fR
310 .sp .6
311 .RS 4n
312 A bridge instance, identified by an administratively-chosen name. The name may
313 use any alphanumeric characters or the underscore, \fB_\fR, but must start and
314 end with an alphabetic character. A bridge name can be at most 31 characters.
315 The name \fBdefault\fR is reserved, as are all names starting with \fBSUNW\fR.
317 Note that appending a zero (\fB0\fR) to a bridge name produces a valid link
318 name, used for observability.
322 .ne 2
324 \fB\fBsecobj\fR\fR
326 .sp .6
327 .RS 4n
328 A secure object, identified by an administratively-chosen name. The name can
329 use any alphanumeric characters, as well as underscore (\fB_\fR), period
330 (\fB\&.\fR), and hyphen (\fB-\fR). A secure object name can be at most 32
331 characters.
334 .SS "Options"
336 Each \fBdladm\fR subcommand has its own set of options. However, many of the
337 subcommands have the following as a common option:
339 .ne 2
341 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
343 .sp .6
344 .RS 4n
345 Specifies an alternate root directory where the operation-such as creation,
346 deletion, or renaming-should apply.
349 .SS "SUBCOMMANDS"
351 The following subcommands are supported:
353 .ne 2
355 \fB\fBdladm show-link\fR [\fB-P\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
356 [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]][\fIlink\fR]\fR
358 .sp .6
359 .RS 4n
360 Show link configuration information (the default) or statistics, either for all
361 datalinks or for the specified link \fIlink\fR. By default, the system is
362 configured with one datalink for each known network device.
364 .ne 2
366 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
368 .sp .6
369 .RS 4n
370 A case-insensitive, comma-separated list of output fields to display. When not
371 modified by the \fB-s\fR option (described below), the field name must be one
372 of the fields listed below, or the special value \fBall\fR to display all
373 fields. By default (without \fB-o\fR), \fBshow-link\fR displays all fields.
375 .ne 2
377 \fB\fBLINK\fR\fR
379 .sp .6
380 .RS 4n
381 The name of the datalink.
385 .ne 2
387 \fB\fBCLASS\fR\fR
389 .sp .6
390 .RS 4n
391 The class of the datalink. \fBdladm\fR distinguishes between the following
392 classes:
394 .ne 2
396 \fB\fBphys\fR\fR
398 .sp .6
399 .RS 4n
400 A physical datalink. The \fBshow-phys\fR subcommand displays more detail for
401 this class of datalink.
405 .ne 2
407 \fB\fBaggr\fR\fR
409 .sp .6
410 .RS 4n
411 An IEEE 802.3ad link aggregation. The \fBshow-aggr\fR subcommand displays more
412 detail for this class of datalink.
416 .ne 2
418 \fB\fBvlan\fR\fR
420 .sp .6
421 .RS 4n
422 A VLAN datalink. The \fBshow-vlan\fR subcommand displays more detail for this
423 class of datalink.
427 .ne 2
429 \fB\fBvnic\fR\fR
431 .sp .6
432 .RS 4n
433 A virtual network interface. The \fBshow-vnic\fR subcommand displays more
434 detail for this class of datalink.
440 .ne 2
442 \fB\fBMTU\fR\fR
444 .sp .6
445 .RS 4n
446 The maximum transmission unit size for the datalink being displayed.
450 .ne 2
452 \fB\fBSTATE\fR\fR
454 .sp .6
455 .RS 4n
456 The link state of the datalink. The state can be \fBup\fR, \fBdown\fR, or
457 \fBunknown\fR.
461 .ne 2
463 \fB\fBBRIDGE\fR\fR
465 .sp .6
466 .RS 4n
467 The name of the bridge to which this link is assigned, if any.
471 .ne 2
473 \fB\fBOVER\fR\fR
475 .sp .6
476 .RS 4n
477 The physical datalink(s) over which the datalink is operating. This applies to
478 \fBaggr\fR, \fBbridge\fR, and \fBvlan\fR classes of datalinks. A VLAN is
479 created over a single physical datalink, a bridge has multiple attached links,
480 and an aggregation is comprised of one or more physical datalinks.
483 When the \fB-o\fR option is used in conjunction with the \fB-s\fR option, used
484 to display link statistics, the field name must be one of the fields listed
485 below, or the special value \fBall\fR to display all fields
487 .ne 2
489 \fB\fBLINK\fR\fR
491 .sp .6
492 .RS 4n
493 The name of the datalink.
497 .ne 2
499 \fB\fBIPACKETS\fR\fR
501 .sp .6
502 .RS 4n
503 Number of packets received on this link.
507 .ne 2
509 \fB\fBRBYTES\fR\fR
511 .sp .6
512 .RS 4n
513 Number of bytes received on this link.
517 .ne 2
519 \fB\fBIERRORS\fR\fR
521 .sp .6
522 .RS 4n
523 Number of input errors.
527 .ne 2
529 \fB\fBOPACKETS\fR\fR
531 .sp .6
532 .RS 4n
533 Number of packets sent on this link.
537 .ne 2
539 \fB\fBOBYTES\fR\fR
541 .sp .6
542 .RS 4n
543 Number of bytes sent on this link.
547 .ne 2
549 \fB\fBOERRORS\fR\fR
551 .sp .6
552 .RS 4n
553 Number of output errors.
559 .ne 2
561 \fB\fB-p\fR, \fB--parsable\fR\fR
563 .sp .6
564 .RS 4n
565 Display using a stable machine-parsable format. The \fB-o\fR option is
566 required with \fB-p\fR. See "Parsable Output Format", below.
570 .ne 2
572 \fB\fB-P\fR, \fB--persistent\fR\fR
574 .sp .6
575 .RS 4n
576 Display the persistent link configuration.
580 .ne 2
582 \fB\fB-s\fR, \fB--statistics\fR\fR
584 .sp .6
585 .RS 4n
586 Display link statistics.
590 .ne 2
592 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
594 .sp .6
595 .RS 4n
596 Used with the \fB-s\fR option to specify an interval, in seconds, at which
597 statistics should be displayed. If this option is not specified, statistics
598 will be displayed only once.
604 .ne 2
606 \fB\fBdladm rename-link\fR [\fB-R\fR \fIroot-dir\fR] \fIlink\fR
607 \fInew-link\fR\fR
609 .sp .6
610 .RS 4n
611 Rename \fIlink\fR to \fInew-link\fR. This is used to give a link a meaningful
612 name, or to associate existing link configuration such as link properties of a
613 removed device with a new device. See the \fBEXAMPLES\fR section for specific
614 examples of how this subcommand is used.
616 .ne 2
618 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
620 .sp .6
621 .RS 4n
622 See "Options," above.
628 .ne 2
630 \fB\fBdladm delete-phys\fR \fIphys-link\fR\fR
632 .sp .6
633 .RS 4n
634 This command is used to delete the persistent configuration of a link
635 associated with physical hardware which has been removed from the system. See
636 the \fBEXAMPLES\fR section.
640 .ne 2
642 \fB\fBdladm show-phys\fR [\fB-m\fR | \fB-H\fR | \fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
643 [\fIphys-link\fR]\fR
645 .sp .6
646 .RS 4n
647 Show the physical device and attributes of all physical links, or of the named
648 physical link. Without \fB-P\fR, only physical links that are available on the
649 running system are displayed.
651 .ne 2
653 \fB\fB-H\fR\fR
655 .sp .6
656 .RS 4n
657 Show hardware resource usage, as returned by the NIC driver. Output from
658 \fB-H\fR displays the following elements:
660 .ne 2
662 \fB\fBLINK\fR\fR
664 .sp .6
665 .RS 4n
666 A physical device corresponding to a NIC driver.
670 .ne 2
672 \fB\fBGROUP\fR\fR
674 .sp .6
675 .RS 4n
676 A collection of rings.
680 .ne 2
682 \fB\fBGROUPTYPE\fR\fR
684 .sp .6
685 .RS 4n
686 RX or TX. All rings in a group are of the same group type.
690 .ne 2
692 \fB\fBRINGS\fR\fR
694 .sp .6
695 .RS 4n
696 A hardware resource used by a data link, subject to assignment by a driver to
697 different groups.
701 .ne 2
703 \fB\fBCLIENTS\fR\fR
705 .sp .6
706 .RS 4n
707 MAC clients that are using the rings within a group.
713 .ne 2
715 \fB\fB-m\fR\fR
717 .sp .6
718 .RS 4n
719 Show MAC addresses and related information. Output from \fB-m\fR
720 displays the following elements:
722 .ne 2
724 \fB\fBLINK\fR\fR
726 .sp .6
727 .RS 4n
728 A physical device corresponding to a NIC driver.
731 .ne 2
733 \fB\fBSLOT\fR\fR
735 .sp .6
736 .RS 4n
737 When a given physical device has multiple factory MAC addresses, this
738 indicates the slot of the corresponding MAC address which can be used as
739 part of a call to \fBcreate-vnic\fR.
742 .ne 2
744 \fB\fBADDRESS\fR\fR
746 .sp .6
747 .RS 4n
748 Displays the MAC address of the device.
751 .ne 2
753 \fB\fBINUSE\fR\fR
755 .sp .6
756 .RS 4n
757 Displays whether or not a MAC Address is actively being used.
760 .ne 2
762 \fB\fBCLIENT\fR\fR
764 .sp .6
765 .RS 4n
766 MAC clients that are using the address.
770 .ne 2
772 \fB\fB-o\fR \fIfield\fR, \fB--output\fR=\fIfield\fR\fR
774 .sp .6
775 .RS 4n
776 A case-insensitive, comma-separated list of output fields to display. The field
777 name must be one of the fields listed below, or the special value \fBall\fR, to
778 display all fields. Note that if either \fB-H\fR or \fB-m\fR are specified, then
779 the valid options are those described in their respective sections. For each
780 link, the following fields can be displayed:
782 .ne 2
784 \fB\fBLINK\fR\fR
786 .sp .6
787 .RS 4n
788 The name of the datalink.
792 .ne 2
794 \fB\fBMEDIA\fR\fR
796 .sp .6
797 .RS 4n
798 The media type provided by the physical datalink.
802 .ne 2
804 \fB\fBSTATE\fR\fR
806 .sp .6
807 .RS 4n
808 The state of the link. This can be \fBup\fR, \fBdown\fR, or \fBunknown\fR.
812 .ne 2
814 \fB\fBSPEED\fR\fR
816 .sp .6
817 .RS 4n
818 The current speed of the link, in megabits per second.
822 .ne 2
824 \fB\fBDUPLEX\fR\fR
826 .sp .6
827 .RS 4n
828 For Ethernet links, the full/half duplex status of the link is displayed if the
829 link state is \fBup\fR. The duplex is displayed as \fBunknown\fR in all other
830 cases.
834 .ne 2
836 \fB\fBDEVICE\fR\fR
838 .sp .6
839 .RS 4n
840 The name of the physical device under this link.
846 .ne 2
848 \fB\fB-p\fR, \fB--parsable\fR\fR
850 .sp .6
851 .RS 4n
852 Display using a stable machine-parsable format. The \fB-o\fR option is
853 required with \fB-p\fR. See "Parsable Output Format", below.
857 .ne 2
859 \fB\fB-P\fR, \fB--persistent\fR\fR
861 .sp .6
862 .RS 4n
863 This option displays persistent configuration for all links, including those
864 that have been removed from the system. The output provides a \fBFLAGS\fR
865 column in which the \fBr\fR flag indicates that the physical device associated
866 with a physical link has been removed. For such links, \fBdelete-phys\fR can be
867 used to purge the link's configuration from the system.
873 .ne 2
875 \fB\fBdladm create-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR
876 \fIpolicy\fR] [\fB-L\fR \fImode\fR] [\fB-T\fR \fItime\fR] [\fB-u\fR
877 \fIaddress\fR] \fB-l\fR \fIether-link1\fR [\fB-l\fR \fIether-link2\fR...]
878 \fIaggr-link\fR\fR
880 .sp .6
881 .RS 4n
882 Combine a set of links into a single IEEE 802.3ad link aggregation named
883 \fIaggr-link\fR. The use of an integer \fIkey\fR to generate a link name for
884 the aggregation is also supported for backward compatibility. Many of the
885 \fB*\fR\fB-aggr\fR subcommands below also support the use of a \fIkey\fR to
886 refer to a given aggregation, but use of the aggregation link name is
887 preferred. See the \fBNOTES\fR section for more information on keys.
889 \fBdladm\fR supports a number of port selection policies for an aggregation of
890 ports. (See the description of the \fB-P\fR option, below.) If you do not
891 specify a policy, \fBcreate-aggr\fR uses the default, the L4 policy, described
892 under the \fB-P\fR option.
894 .ne 2
896 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
898 .sp .6
899 .RS 4n
900 Each Ethernet link (or port) in the aggregation is specified using an \fB-l\fR
901 option followed by the name of the link to be included in the aggregation.
902 Multiple links are included in the aggregation by specifying multiple \fB-l\fR
903 options. For backward compatibility with previous versions of Solaris, the
904 \fBdladm\fR command also supports the using the \fB-d\fR option (or
905 \fB--dev\fR) with a device name to specify links by their underlying device
906 name. The other \fB*\fR\fB-aggr\fR subcommands that take \fB-l\fRoptions also
907 accept \fB-d\fR.
911 .ne 2
913 \fB\fB-t\fR, \fB--temporary\fR\fR
915 .sp .6
916 .RS 4n
917 Specifies that the aggregation is temporary. Temporary aggregations last until
918 the next reboot.
922 .ne 2
924 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
926 .sp .6
927 .RS 4n
928 See "Options," above.
932 .ne 2
934 \fB\fB-P\fR \fIpolicy\fR, \fB--policy\fR=\fIpolicy\fR\fR
938 \fB\fR
940 .sp .6
941 .RS 4n
942 Specifies the port selection policy to use for load spreading of outbound
943 traffic. The policy specifies which \fIdev\fR object is used to send packets. A
944 policy is a list of one or more layers specifiers separated by commas. A layer
945 specifier is one of the following:
947 .ne 2
949 \fB\fBL2\fR\fR
951 .sp .6
952 .RS 4n
953 Select outbound device according to source and destination \fBMAC\fR addresses
954 of the packet.
958 .ne 2
960 \fB\fBL3\fR\fR
962 .sp .6
963 .RS 4n
964 Select outbound device according to source and destination \fBIP\fR addresses
965 of the packet.
969 .ne 2
971 \fB\fBL4\fR\fR
973 .sp .6
974 .RS 4n
975 Select outbound device according to the upper layer protocol information
976 contained in the packet. For \fBTCP\fR and \fBUDP\fR, this includes source and
977 destination ports. For IPsec, this includes the \fBSPI\fR (Security Parameters
978 Index).
981 For example, to use upper layer protocol information, the following policy can
982 be used:
984 .in +2
986 -P L4
988 .in -2
991 Note that policy L4 is the default.
993 To use the source and destination \fBMAC\fR addresses as well as the source and
994 destination \fBIP\fR addresses, the following policy can be used:
996 .in +2
998 -P L2,L3
1000 .in -2
1006 .ne 2
1008 \fB\fB-L\fR \fImode\fR, \fB--lacp-mode\fR=\fImode\fR\fR
1010 .sp .6
1011 .RS 4n
1012 Specifies whether \fBLACP\fR should be used and, if used, the mode in which it
1013 should operate. Supported values are \fBoff\fR, \fBactive\fR or \fBpassive\fR.
1017 .ne 2
1019 \fB\fB-T\fR \fItime\fR, \fB--lacp-timer\fR=\fItime\fR\fR
1023 \fB\fR
1025 .sp .6
1026 .RS 4n
1027 Specifies the \fBLACP\fR timer value. The supported values are \fBshort\fR or
1028 \fBlong\fR.
1032 .ne 2
1034 \fB\fB-u\fR \fIaddress\fR, \fB--unicast\fR=\fIaddress\fR\fR
1036 .sp .6
1037 .RS 4n
1038 Specifies a fixed unicast hardware address to be used for the aggregation. If
1039 this option is not specified, then an address is automatically chosen from the
1040 set of addresses of the component devices.
1046 .ne 2
1048 \fB\fBdladm modify-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-P\fR
1049 \fIpolicy\fR] [\fB-L\fR \fImode\fR] [\fB-T\fR \fItime\fR] [\fB-u\fR
1050 \fIaddress\fR] \fIaggr-link\fR\fR
1052 .sp .6
1053 .RS 4n
1054 Modify the parameters of the specified aggregation.
1056 .ne 2
1058 \fB\fB-t\fR, \fB--temporary\fR\fR
1060 .sp .6
1061 .RS 4n
1062 Specifies that the modification is temporary. Temporary aggregations last until
1063 the next reboot.
1067 .ne 2
1069 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1071 .sp .6
1072 .RS 4n
1073 See "Options," above.
1077 .ne 2
1079 \fB\fB-P\fR \fIpolicy\fR, \fB--policy\fR=\fIpolicy\fR\fR
1081 .sp .6
1082 .RS 4n
1083 Specifies the port selection policy to use for load spreading of outbound
1084 traffic. See \fBdladm create-aggr\fR for a description of valid policy values.
1088 .ne 2
1090 \fB\fB-L\fR \fImode\fR, \fB--lacp-mode\fR=\fImode\fR\fR
1092 .sp .6
1093 .RS 4n
1094 Specifies whether \fBLACP\fR should be used and, if used, the mode in which it
1095 should operate. Supported values are \fBoff\fR, \fBactive\fR, or \fBpassive\fR.
1099 .ne 2
1101 \fB\fB-T\fR \fItime\fR, \fB--lacp-timer\fR=\fItime\fR\fR
1105 \fB\fR
1107 .sp .6
1108 .RS 4n
1109 Specifies the \fBLACP\fR timer value. The supported values are \fBshort\fR or
1110 \fBlong\fR.
1114 .ne 2
1116 \fB\fB-u\fR \fIaddress\fR, \fB--unicast\fR=\fIaddress\fR\fR
1118 .sp .6
1119 .RS 4n
1120 Specifies a fixed unicast hardware address to be used for the aggregation. If
1121 this option is not specified, then an address is automatically chosen from the
1122 set of addresses of the component devices.
1128 .ne 2
1130 \fB\fBdladm delete-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
1131 \fIaggr-link\fR\fR
1133 .sp .6
1134 .RS 4n
1135 Deletes the specified aggregation.
1137 .ne 2
1139 \fB\fB-t\fR, \fB--temporary\fR\fR
1141 .sp .6
1142 .RS 4n
1143 Specifies that the deletion is temporary. Temporary deletions last until the
1144 next reboot.
1148 .ne 2
1150 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1152 .sp .6
1153 .RS 4n
1154 See "Options," above.
1160 .ne 2
1162 \fB\fBdladm add-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
1163 \fIether-link1\fR [\fB--link\fR=\fIether-link2\fR...] \fIaggr-link\fR\fR
1165 .sp .6
1166 .RS 4n
1167 Adds links to the specified aggregation.
1169 .ne 2
1171 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
1173 .sp .6
1174 .RS 4n
1175 Specifies an Ethernet link to add to the aggregation. Multiple links can be
1176 added by supplying multiple \fB-l\fR options.
1180 .ne 2
1182 \fB\fB-t\fR, \fB--temporary\fR\fR
1184 .sp .6
1185 .RS 4n
1186 Specifies that the additions are temporary. Temporary additions last until the
1187 next reboot.
1191 .ne 2
1193 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1195 .sp .6
1196 .RS 4n
1197 See "Options," above.
1203 .ne 2
1205 \fB\fBdladm remove-aggr\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
1206 \fIether-link1\fR [\fB--l\fR=\fIether-link2\fR...] \fIaggr-link\fR\fR
1208 .sp .6
1209 .RS 4n
1210 Removes links from the specified aggregation.
1212 .ne 2
1214 \fB\fB-l\fR \fIether-link\fR, \fB--link\fR=\fIether-link\fR\fR
1216 .sp .6
1217 .RS 4n
1218 Specifies an Ethernet link to remove from the aggregation. Multiple links can
1219 be added by supplying multiple \fB-l\fR options.
1223 .ne 2
1225 \fB\fB-t\fR, \fB--temporary\fR\fR
1227 .sp .6
1228 .RS 4n
1229 Specifies that the removals are temporary. Temporary removal last until the
1230 next reboot.
1234 .ne 2
1236 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1238 .sp .6
1239 .RS 4n
1240 See "Options," above.
1246 .ne 2
1248 \fB\fBdladm show-aggr\fR [\fB-PLx\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
1249 [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]] [\fIaggr-link\fR]\fR
1251 .sp .6
1252 .RS 4n
1253 Show aggregation configuration (the default), \fBLACP\fR information, or
1254 statistics, either for all aggregations or for the specified aggregation.
1256 By default (with no options), the following fields can be displayed:
1258 .ne 2
1260 \fB\fBLINK\fR\fR
1262 .sp .6
1263 .RS 4n
1264 The name of the aggregation link.
1268 .ne 2
1270 \fB\fBPOLICY\fR\fR
1272 .sp .6
1273 .RS 4n
1274 The LACP policy of the aggregation. See the \fBcreate-aggr\fR \fB-P\fR option
1275 for a description of the possible values.
1279 .ne 2
1281 \fB\fBADDRPOLICY\fR\fR
1283 .sp .6
1284 .RS 4n
1285 Either \fBauto\fR, if the aggregation is configured to automatically configure
1286 its unicast MAC address (the default if the \fB-u\fR option was not used to
1287 create or modify the aggregation), or \fBfixed\fR, if \fB-u\fR was used to set
1288 a fixed MAC address.
1292 .ne 2
1294 \fB\fBLACPACTIVITY\fR\fR
1296 .sp .6
1297 .RS 4n
1298 The LACP mode of the aggregation. Possible values are \fBoff\fR, \fBactive\fR,
1299 or \fBpassive\fR, as set by the \fB-l\fR option to \fBcreate-aggr\fR or
1300 \fBmodify-aggr\fR.
1304 .ne 2
1306 \fB\fBLACPTIMER\fR\fR
1308 .sp .6
1309 .RS 4n
1310 The LACP timer value of the aggregation as set by the \fB-T\fR option of
1311 \fBcreate-aggr\fR or \fBmodify-aggr\fR.
1315 .ne 2
1317 \fB\fBFLAGS\fR\fR
1319 .sp .6
1320 .RS 4n
1321 A set of state flags associated with the aggregation. The only possible flag is
1322 \fBf\fR, which is displayed if the administrator forced the creation the
1323 aggregation using the \fB-f\fR option to \fBcreate-aggr\fR. Other flags might
1324 be defined in the future.
1327 The \fBshow-aggr\fR command accepts the following options:
1329 .ne 2
1331 \fB\fB-L\fR, \fB--lacp\fR\fR
1333 .sp .6
1334 .RS 4n
1335 Displays detailed \fBLACP\fR information for the aggregation link and each
1336 underlying port. Most of the state information displayed by this option is
1337 defined by IEEE 802.3. With this option, the following fields can be displayed:
1339 .ne 2
1341 \fB\fBLINK\fR\fR
1343 .sp .6
1344 .RS 4n
1345 The name of the aggregation link.
1349 .ne 2
1351 \fB\fBPORT\fR\fR
1353 .sp .6
1354 .RS 4n
1355 The name of one of the underlying aggregation ports.
1359 .ne 2
1361 \fB\fBAGGREGATABLE\fR\fR
1363 .sp .6
1364 .RS 4n
1365 Whether the port can be added to the aggregation.
1369 .ne 2
1371 \fB\fBSYNC\fR\fR
1373 .sp .6
1374 .RS 4n
1375 If \fByes\fR, the system considers the port to be synchronized and part of the
1376 aggregation.
1380 .ne 2
1382 \fB\fBCOLL\fR\fR
1384 .sp .6
1385 .RS 4n
1386 If \fByes\fR, collection of incoming frames is enabled on the associated port.
1390 .ne 2
1392 \fB\fBDIST\fR\fR
1394 .sp .6
1395 .RS 4n
1396 If \fByes\fR, distribution of outgoing frames is enabled on the associated
1397 port.
1401 .ne 2
1403 \fB\fBDEFAULTED\fR\fR
1405 .sp .6
1406 .RS 4n
1407 If \fByes\fR, the port is using defaulted partner information (that is, has not
1408 received LACP data from the LACP partner).
1412 .ne 2
1414 \fB\fBEXPIRED\fR\fR
1416 .sp .6
1417 .RS 4n
1418 If \fByes\fR, the receive state of the port is in the \fBEXPIRED\fR state.
1424 .ne 2
1426 \fB\fB-x\fR, \fB--extended\fR\fR
1428 .sp .6
1429 .RS 4n
1430 Display additional aggregation information including detailed information on
1431 each underlying port. With \fB-x\fR, the following fields can be displayed:
1433 .ne 2
1435 \fB\fBLINK\fR\fR
1437 .sp .6
1438 .RS 4n
1439 The name of the aggregation link.
1443 .ne 2
1445 \fB\fBPORT\fR\fR
1447 .sp .6
1448 .RS 4n
1449 The name of one of the underlying aggregation ports.
1453 .ne 2
1455 \fB\fBSPEED\fR\fR
1457 .sp .6
1458 .RS 4n
1459 The speed of the link or port in megabits per second.
1463 .ne 2
1465 \fB\fBDUPLEX\fR\fR
1467 .sp .6
1468 .RS 4n
1469 The full/half duplex status of the link or port is displayed if the link state
1470 is \fBup\fR. The duplex status is displayed as \fBunknown\fR in all other
1471 cases.
1475 .ne 2
1477 \fB\fBSTATE\fR\fR
1479 .sp .6
1480 .RS 4n
1481 The link state. This can be \fBup\fR, \fBdown\fR, or \fBunknown\fR.
1485 .ne 2
1487 \fB\fBADDRESS\fR\fR
1489 .sp .6
1490 .RS 4n
1491 The MAC address of the link or port.
1495 .ne 2
1497 \fB\fBPORTSTATE\fR\fR
1499 .sp .6
1500 .RS 4n
1501 This indicates whether the individual aggregation port is in the \fBstandby\fR
1502 or \fBattached\fR state.
1508 .ne 2
1510 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
1512 .sp .6
1513 .RS 4n
1514 A case-insensitive, comma-separated list of output fields to display. The field
1515 name must be one of the fields listed above, or the special value \fBall\fR, to
1516 display all fields. The fields applicable to the \fB-o\fR option are limited to
1517 those listed under each output mode. For example, if using \fB-L\fR, only the
1518 fields listed under \fB-L\fR, above, can be used with \fB-o\fR.
1522 .ne 2
1524 \fB\fB-p\fR, \fB--parsable\fR\fR
1526 .sp .6
1527 .RS 4n
1528 Display using a stable machine-parsable format. The \fB-o\fR option is
1529 required with \fB-p\fR. See "Parsable Output Format", below.
1533 .ne 2
1535 \fB\fB-P\fR, \fB--persistent\fR\fR
1537 .sp .6
1538 .RS 4n
1539 Display the persistent aggregation configuration rather than the state of the
1540 running system.
1544 .ne 2
1546 \fB\fB-s\fR, \fB--statistics\fR\fR
1548 .sp .6
1549 .RS 4n
1550 Displays aggregation statistics.
1554 .ne 2
1556 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
1558 .sp .6
1559 .RS 4n
1560 Used with the \fB-s\fR option to specify an interval, in seconds, at which
1561 statistics should be displayed. If this option is not specified, statistics
1562 will be displayed only once.
1568 .ne 2
1570 \fB\fBdladm create-bridge\fR [ \fB-P\fR \fIprotect\fR] [\fB-R\fR
1571 \fIroot-dir\fR] [ \fB-p\fR \fIpriority\fR] [ \fB-m\fR \fImax-age\fR] [ \fB-h\fR
1572 \fIhello-time\fR] [ \fB-d\fR \fIforward-delay\fR] [ \fB-f\fR
1573 \fIforce-protocol\fR] [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1575 .sp .6
1576 .RS 4n
1577 Create an 802.1D bridge instance and optionally assign one or more network
1578 links to the new bridge. By default, no bridge instances are present on the
1579 system.
1581 In order to bridge between links, you must create at least one bridge instance.
1582 Each bridge instance is separate, and there is no forwarding connection between
1583 bridges.
1585 .ne 2
1587 \fB\fB-P\fR \fIprotect\fR, \fB--protect\fR=\fIprotect\fR\fR
1589 .sp .6
1590 .RS 4n
1591 Specifies a protection method. The defined protection methods are \fBstp\fR for
1592 the Spanning Tree Protocol and trill for \fBTRILL\fR, which is used on
1593 RBridges. The default value is \fBstp\fR.
1597 .ne 2
1599 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
1601 .sp .6
1602 .RS 4n
1603 See "Options," above.
1607 .ne 2
1609 \fB\fB-p\fR \fIpriority\fR, \fB--priority\fR=\fIpriority\fR\fR
1611 .sp .6
1612 .RS 4n
1613 Specifies the Bridge Priority. This sets the IEEE STP priority value for
1614 determining the root bridge node in the network. The default value is
1615 \fB32768\fR. Valid values are \fB0\fR (highest priority) to \fB61440\fR (lowest
1616 priority), in increments of 4096.
1618 If a value not evenly divisible by 4096 is used, the system silently rounds
1619 downward to the next lower value that is divisible by 4096.
1623 .ne 2
1625 \fB\fB-m\fR \fImax-age\fR, \fB--max-age\fR=\fImax-age\fR\fR
1627 .sp .6
1628 .RS 4n
1629 Specifies the maximum age for configuration information in seconds. This sets
1630 the STP Bridge Max Age parameter. This value is used for all nodes in the
1631 network if this node is the root bridge. Bridge link information older than
1632 this time is discarded. It defaults to 20 seconds. Valid values are from 6 to
1633 40 seconds. See the \fB-d\fR \fIforward-delay\fR parameter for additional
1634 constraints.
1638 .ne 2
1640 \fB\fB-h\fR \fIhello-time\fR, \fB--hello-time\fR=\fIhello-time\fR\fR
1642 .sp .6
1643 .RS 4n
1644 Specifies the STP Bridge Hello Time parameter. When this node is the root node,
1645 it sends Configuration BPDUs at this interval throughout the network. The
1646 default value is 2 seconds. Valid values are from 1 to 10 seconds. See the
1647 \fB-d\fR \fIforward-delay\fR parameter for additional constraints.
1651 .ne 2
1653 \fB\fB-d\fR \fIforward-delay\fR, \fB--forward-delay\fR=\fIforward-delay\fR\fR
1655 .sp .6
1656 .RS 4n
1657 Specifies the STP Bridge Forward Delay parameter. When this node is the root
1658 node, then all bridges in the network use this timer to sequence the link
1659 states when a port is enabled. The default value is 15 seconds. Valid values
1660 are from 4 to 30 seconds.
1662 Bridges must obey the following two constraints:
1664 .in +2
1666 2 * (\fIforward-delay\fR - 1.0) >= \fImax-age\fR
1668 \fImax-age\fR >= 2 * (\fIhello-time\fR + 1.0)
1670 .in -2
1673 Any parameter setting that would violate those constraints is treated as an
1674 error and causes the command to fail with a diagnostic message. The message
1675 provides valid alternatives to the supplied values.
1679 .ne 2
1681 \fB\fB-f\fR \fIforce-protocol\fR,
1682 \fB--force-protocol\fR=\fIforce-protocol\fR\fR
1684 .sp .6
1685 .RS 4n
1686 Specifies the MSTP forced maximum supported protocol. The default value is 3.
1687 Valid values are non-negative integers. The current implementation does not
1688 support RSTP or MSTP, so this currently has no effect. However, to prevent MSTP
1689 from being used in the future, the parameter may be set to \fB0\fR for STP only
1690 or \fB2\fR for STP and RSTP.
1694 .ne 2
1696 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
1698 .sp .6
1699 .RS 4n
1700 Specifies one or more links to add to the newly-created bridge. This is similar
1701 to creating the bridge and then adding one or more links, as with the
1702 \fBadd-bridge\fR subcommand. However, if any of the links cannot be added, the
1703 entire command fails, and the new bridge itself is not created. To add multiple
1704 links on the same command line, repeat this option for each link. You are
1705 permitted to create bridges without links. For more information about link
1706 assignments, see the \fBadd-bridge\fR subcommand.
1709 Bridge creation and link assignment require the \fBPRIV_SYS_DL_CONFIG\fR
1710 privilege. Bridge creation might fail if the optional bridging feature is not
1711 installed on the system.
1715 .ne 2
1717 \fB\fBdladm modify-bridge\fR [ \fB-P\fR \fIprotect\fR] [\fB-R\fR
1718 \fIroot-dir\fR] [ \fB-p\fR \fIpriority\fR] [ \fB-m\fR \fImax-age\fR] [ \fB-h\fR
1719 \fIhello-time\fR] [ \fB-d\fR \fIforward-delay\fR] [ \fB-f\fR
1720 \fIforce-protocol\fR] [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1722 .sp .6
1723 .RS 4n
1724 Modify the operational parameters of an existing bridge. The options are the
1725 same as for the \fBcreate-bridge\fR subcommand, except that the \fB-l\fR option
1726 is not permitted. To add links to an existing bridge, use the \fBadd-bridge\fR
1727 subcommand.
1729 Bridge parameter modification requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1733 .ne 2
1735 \fB\fBdladm delete-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fIbridge-name\fR\fR
1737 .sp .6
1738 .RS 4n
1739 Delete a bridge instance. The bridge being deleted must not have any attached
1740 links. Use the \fBremove-bridge\fR subcommand to deactivate links before
1741 deleting a bridge.
1743 Bridge deletion requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1745 The \fB-R\fR (\fB--root-dir\fR) option is the same as for the
1746 \fBcreate-bridge\fR subcommand.
1750 .ne 2
1752 \fB\fBdladm add-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR
1753 [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1755 .sp .6
1756 .RS 4n
1757 Add one or more links to an existing bridge. If multiple links are specified,
1758 and adding any one of them results in an error, the command fails and no
1759 changes are made to the system.
1761 Link addition to a bridge requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1763 A link may be a member of at most one bridge. An error occurs when you attempt
1764 to add a link that already belongs to another bridge. To move a link from one
1765 bridge instance to another, remove it from the current bridge before adding it
1766 to a new one.
1768 The links assigned to a bridge must not also be VLANs, VNICs, or tunnels. Only
1769 physical Ethernet datalinks, aggregation datalinks, wireless links, and
1770 Ethernet stubs are permitted to be assigned to a bridge.
1772 Links assigned to a bridge must all have the same MTU. This is checked when the
1773 link is assigned. The link is added to the bridge in a deactivated form if it
1774 is not the first link on the bridge and it has a differing MTU.
1776 Note that systems using bridging should not set the \fBeeprom\fR(8)
1777 \fBlocal-mac-address?\fR variable to false.
1779 The options are the same as for the \fBcreate-bridge\fR subcommand.
1783 .ne 2
1785 \fB\fBdladm remove-bridge\fR [\fB-R\fR \fIroot-dir\fR] \fB-l\fR \fIlink\fR
1786 [\fB-l\fR \fIlink\fR...] \fIbridge-name\fR\fR
1788 .sp .6
1789 .RS 4n
1790 Remove one or more links from a bridge instance. If multiple links are
1791 specified, and removing any one of them would result in an error, the command
1792 fails and none are removed.
1794 Link removal from a bridge requires the \fBPRIV_SYS_DL_CONFIG\fR privilege.
1796 The options are the same as for the \fBcreate-bridge\fR subcommand.
1800 .ne 2
1802 \fB\fBdladm show-bridge\fR [\fB-flt\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
1803 [[\fB-p\fR] \fB-o\fR \fIfield\fR,...] [\fIbridge-name\fR]\fR
1805 .sp .6
1806 .RS 4n
1807 Show the running status and configuration of bridges, their attached links,
1808 learned forwarding entries, and \fBTRILL\fR nickname databases. When showing
1809 overall bridge status and configuration, the bridge name can be omitted to show
1810 all bridges. The other forms require a specified bridge.
1812 The show-bridge subcommand accepts the following options:
1814 .ne 2
1816 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
1818 .sp .6
1819 .RS 4n
1820 Used with the \fB-s\fR option to specify an interval, in seconds, at which
1821 statistics should be displayed. If this option is not specified, statistics
1822 will be displayed only once.
1826 .ne 2
1828 \fB\fB-s\fR, \fB--statistics\fR\fR
1830 .sp .6
1831 .RS 4n
1832 Display statistics for the specified bridges or for a given bridge's attached
1833 links. This option cannot be used with the \fB-f\fR and \fB-t\fR options.
1837 .ne 2
1839 \fB\fB-p\fR, \fB--parsable\fR\fR
1841 .sp .6
1842 .RS 4n
1843 Display using a stable machine-parsable format. See "Parsable Output Format,"
1844 below.
1848 .ne 2
1850 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
1852 .sp .6
1853 .RS 4n
1854 A case-insensitive, comma-separated list of output fields to display. The field
1855 names are described below. The special value all displays all fields. Each set
1856 of fields has its own default set to display when \fB-o\fR is not specified.
1859 By default, the \fBshow-bridge\fR subcommand shows bridge configuration. The
1860 following fields can be shown:
1862 .ne 2
1864 \fB\fBBRIDGE\fR\fR
1866 .sp .6
1867 .RS 4n
1868 The name of the bridge.
1872 .ne 2
1874 \fB\fBADDRESS\fR\fR
1876 .sp .6
1877 .RS 4n
1878 The Bridge Unique Identifier value (MAC address).
1882 .ne 2
1884 \fB\fBPRIORITY\fR\fR
1886 .sp .6
1887 .RS 4n
1888 Configured priority value; set by \fB-p\fR with \fBcreate-bridge\fR and
1889 \fBmodify-bridge\fR.
1893 .ne 2
1895 \fB\fBBMAXAGE\fR\fR
1897 .sp .6
1898 .RS 4n
1899 Configured bridge maximum age; set by \fB-m\fR with \fBcreate-bridge\fR and
1900 \fBmodify-bridge\fR.
1904 .ne 2
1906 \fB\fBBHELLOTIME\fR\fR
1908 .sp .6
1909 .RS 4n
1910 Configured bridge hello time; set by \fB-h\fR with \fBcreate-bridge\fR and
1911 \fBmodify-bridge\fR.
1915 .ne 2
1917 \fB\fBBFWDDELAY\fR\fR
1919 .sp .6
1920 .RS 4n
1921 Configured forwarding delay; set by \fB-d\fR with \fBcreate-bridge\fR and
1922 \fBmodify-bridge\fR.
1926 .ne 2
1928 \fB\fBFORCEPROTO\fR\fR
1930 .sp .6
1931 .RS 4n
1932 Configured forced maximum protocol; set by \fB-f\fR with \fBcreate-bridge\fR
1933 and \fBmodify-bridge\fR.
1937 .ne 2
1939 \fB\fBTCTIME\fR\fR
1941 .sp .6
1942 .RS 4n
1943 Time, in seconds, since last topology change.
1947 .ne 2
1949 \fB\fBTCCOUNT\fR\fR
1951 .sp .6
1952 .RS 4n
1953 Count of the number of topology changes.
1957 .ne 2
1959 \fB\fBTCHANGE\fR\fR
1961 .sp .6
1962 .RS 4n
1963 This indicates that a topology change was detected.
1967 .ne 2
1969 \fB\fBDESROOT\fR\fR
1971 .sp .6
1972 .RS 4n
1973 Bridge Identifier of the root node.
1977 .ne 2
1979 \fB\fBROOTCOST\fR\fR
1981 .sp .6
1982 .RS 4n
1983 Cost of the path to the root node.
1987 .ne 2
1989 \fB\fBROOTPORT\fR\fR
1991 .sp .6
1992 .RS 4n
1993 Port number used to reach the root node.
1997 .ne 2
1999 \fB\fBMAXAGE\fR\fR
2001 .sp .6
2002 .RS 4n
2003 Maximum age value from the root node.
2007 .ne 2
2009 \fB\fBHELLOTIME\fR\fR
2011 .sp .6
2012 .RS 4n
2013 Hello time value from the root node.
2017 .ne 2
2019 \fB\fBFWDDELAY\fR\fR
2021 .sp .6
2022 .RS 4n
2023 Forward delay value from the root node.
2027 .ne 2
2029 \fB\fBHOLDTIME\fR\fR
2031 .sp .6
2032 .RS 4n
2033 Minimum BPDU interval.
2036 By default, when the \fB-o\fR option is not specified, only the \fBBRIDGE\fR,
2037 \fBADDRESS\fR, \fBPRIORITY\fR, and \fBDESROOT\fR fields are shown.
2039 When the \fB-s\fR option is specified, the \fBshow-bridge\fR subcommand shows
2040 bridge statistics. The following fields can be shown:
2042 .ne 2
2044 \fB\fBBRIDGE\fR\fR
2046 .sp .6
2047 .RS 4n
2048 Bridge name.
2052 .ne 2
2054 \fB\fBDROPS\fR\fR
2056 .sp .6
2057 .RS 4n
2058 Number of packets dropped due to resource problems.
2062 .ne 2
2064 \fB\fBFORWARDS\fR\fR
2066 .sp .6
2067 .RS 4n
2068 Number of packets forwarded from one link to another.
2072 .ne 2
2074 \fB\fBMBCAST\fR\fR
2076 .sp .6
2077 .RS 4n
2078 Number of multicast and broadcast packets handled by the bridge.
2082 .ne 2
2084 \fB\fBRECV\fR\fR
2086 .sp .6
2087 .RS 4n
2088 Number of packets received on all attached links.
2092 .ne 2
2094 \fB\fBSENT\fR\fR
2096 .sp .6
2097 .RS 4n
2098 Number of packets sent on all attached links.
2102 .ne 2
2104 \fB\fBUNKNOWN\fR\fR
2106 .sp .6
2107 .RS 4n
2108 Number of packets handled that have an unknown destination. Such packets are
2109 sent to all links.
2112 By default, when the \fB-o\fR option is not specified, only the \fBBRIDGE\fR,
2113 \fBDROPS\fR, and \fBFORWARDS\fR fields are shown.
2115 The \fBshow-bridge\fR subcommand also accepts the following options:
2117 .ne 2
2119 \fB\fB-l\fR, \fB--link\fR\fR
2121 .sp .6
2122 .RS 4n
2123 Displays link-related status and statistics information for all links attached
2124 to a single bridge instance. By using this option and without the \fB-s\fR
2125 option, the following fields can be displayed for each link:
2127 .ne 2
2129 \fB\fBLINK\fR\fR
2131 .sp .6
2132 .RS 4n
2133 The link name.
2137 .ne 2
2139 \fB\fBINDEX\fR\fR
2141 .sp .6
2142 .RS 4n
2143 Port (link) index number on the bridge.
2147 .ne 2
2149 \fB\fBSTATE\fR\fR
2151 .sp .6
2152 .RS 4n
2153 State of the link. The state can be \fBdisabled\fR, \fBdiscarding\fR,
2154 \fBlearning\fR, \fBforwarding\fR, \fBnon-stp\fR, or \fBbad-mtu\fR.
2158 .ne 2
2160 \fB\fBUPTIME\fR\fR
2162 .sp .6
2163 .RS 4n
2164 Number of seconds since the last reset or initialization.
2168 .ne 2
2170 \fB\fBOPERCOST\fR\fR
2172 .sp .6
2173 .RS 4n
2174 Actual cost in use (1-65535).
2178 .ne 2
2180 \fB\fBOPERP2P\fR\fR
2182 .sp .6
2183 .RS 4n
2184 This indicates whether point-to-point (\fBP2P\fR) mode been detected.
2188 .ne 2
2190 \fB\fBOPEREDGE\fR\fR
2192 .sp .6
2193 .RS 4n
2194 This indicates whether edge mode has been detected.
2198 .ne 2
2200 \fB\fBDESROOT\fR\fR
2202 .sp .6
2203 .RS 4n
2204 The Root Bridge Identifier that has been seen on this port.
2208 .ne 2
2210 \fB\fBDESCOST\fR\fR
2212 .sp .6
2213 .RS 4n
2214 Path cost to the network root node through the designated port.
2218 .ne 2
2220 \fB\fBDESBRIDGE\fR\fR
2222 .sp .6
2223 .RS 4n
2224 Bridge Identifier for this port.
2228 .ne 2
2230 \fB\fBDESPORT\fR\fR
2232 .sp .6
2233 .RS 4n
2234 The ID and priority of the port used to transmit configuration messages for
2235 this port.
2239 .ne 2
2241 \fB\fBTCACK\fR\fR
2243 .sp .6
2244 .RS 4n
2245 This indicates whether Topology Change Acknowledge has been seen.
2248 When the \fB-l\fR option is specified without the \fB-o\fR option, only the
2249 \fBLINK\fR, \fBSTATE\fR, \fBUPTIME\fR, and \fBDESROOT\fR fields are shown.
2251 When the \fB-l\fR option is specified, the \fB-s\fR option can be used to
2252 display the following fields for each link:
2254 .ne 2
2256 \fB\fBLINK\fR\fR
2258 .sp .6
2259 .RS 4n
2260 Link name.
2264 .ne 2
2266 \fB\fBCFGBPDU\fR\fR
2268 .sp .6
2269 .RS 4n
2270 Number of configuration BPDUs received.
2274 .ne 2
2276 \fB\fBTCNBPDU\fR\fR
2278 .sp .6
2279 .RS 4n
2280 Number of topology change BPDUs received.
2284 .ne 2
2286 \fB\fBRSTPBPDU\fR\fR
2288 .sp .6
2289 .RS 4n
2290 Number of Rapid Spanning Tree BPDUs received.
2294 .ne 2
2296 \fB\fBTXBPDU\fR\fR
2298 .sp .6
2299 .RS 4n
2300 Number of BPDUs transmitted.
2304 .ne 2
2306 \fB\fBDROPS\fR\fR
2308 .sp .6
2309 .RS 4n
2310 Number of packets dropped due to resource problems.
2314 .ne 2
2316 \fB\fBRECV\fR\fR
2318 .sp .6
2319 .RS 4n
2320 Number of packets received by the bridge.
2324 .ne 2
2326 \fB\fBXMIT\fR\fR
2328 .sp .6
2329 .RS 4n
2330 Number of packets sent by the bridge.
2333 When the \fB-o\fR option is not specified, only the \fBLINK\fR, \fBDROPS\fR,
2334 \fBRECV\fR, and \fBXMIT\fR fields are shown.
2338 .ne 2
2340 \fB\fB-f\fR, \fB--forwarding\fR\fR
2342 .sp .6
2343 .RS 4n
2344 Displays forwarding entries for a single bridge instance. With this option, the
2345 following fields can be shown for each forwarding entry:
2347 .ne 2
2349 \fB\fBDEST\fR\fR
2351 .sp .6
2352 .RS 4n
2353 Destination MAC address.
2357 .ne 2
2359 \fB\fBAGE\fR\fR
2361 .sp .6
2362 .RS 4n
2363 Age of entry in seconds and milliseconds. Omitted for local entries.
2367 .ne 2
2369 \fB\fBFLAGS\fR\fR
2371 .sp .6
2372 .RS 4n
2373 The \fBL\fR (local) flag is shown if the MAC address belongs to an attached
2374 link or to a VNIC on one of the attached links.
2378 .ne 2
2380 \fB\fBOUTPUT\fR\fR
2382 .sp .6
2383 .RS 4n
2384 For local entries, this is the name of the attached link that has the MAC
2385 address. Otherwise, for bridges that use Spanning Tree Protocol, this is the
2386 output interface name. For RBridges, this is the output \fBTRILL\fR nickname.
2389 When the \fB-o\fR option is not specified, the \fBDEST\fR, \fBAGE\fR,
2390 \fBFLAGS\fR, and \fBOUTPUT\fR fields are shown.
2394 .ne 2
2396 \fB\fB-t\fR, \fB--trill\fR\fR
2398 .sp .6
2399 .RS 4n
2400 Displays \fBTRILL\fR nickname entries for a single bridge instance. With this
2401 option, the following fields can be shown for each \fBTRILL\fR nickname entry:
2403 .ne 2
2405 \fB\fBNICK\fR\fR
2407 .sp .6
2408 .RS 4n
2409 \fBTRILL\fR nickname for this RBridge, which is a number from 1 to 65535.
2413 .ne 2
2415 \fB\fBFLAGS\fR\fR
2417 .sp .6
2418 .RS 4n
2419 The \fBL\fR flag is shown if the nickname identifies the local system.
2423 .ne 2
2425 \fB\fBLINK\fR\fR
2427 .sp .6
2428 .RS 4n
2429 Link name for output when sending messages to this RBridge.
2433 .ne 2
2435 \fB\fBNEXTHOP\fR\fR
2437 .sp .6
2438 .RS 4n
2439 MAC address of the next hop RBridge that is used to reach the RBridge with this
2440 nickname.
2443 When the \fB-o\fR option is not specified, the \fBNICK\fR, \fBFLAGS\fR,
2444 \fBLINK\fR, and \fBNEXTHOP\fR fields are shown.
2450 .ne 2
2452 \fB\fBdladm create-vlan\fR [\fB-ft\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR
2453 \fIether-link\fR \fB-v\fR \fIvid\fR [\fIvlan-link\fR]\fR
2455 .sp .6
2456 .RS 4n
2457 Create a tagged VLAN link with an ID of \fIvid\fR over Ethernet link
2458 \fIether-link\fR. The name of the VLAN link can be specified as
2459 \fIvlan\fR-\fIlink\fR. If the name is not specified, a name will be
2460 automatically generated (assuming that \fIether-link\fR is \fIname\fR\fIPPA\fR)
2463 .in +2
2465 <\fIname\fR><1000 * \fIvlan-tag\fR + \fIPPA\fR>
2467 .in -2
2470 For example, if \fIether-link\fR is \fBbge1\fR and \fIvid\fR is 2, the name
2471 generated is \fBbge2001\fR.
2473 .ne 2
2475 \fB\fB-f\fR, \fB--force\fR\fR
2477 .sp .6
2478 .RS 4n
2479 Force the creation of the VLAN link. Some devices do not allow frame sizes
2480 large enough to include a VLAN header. When creating a VLAN link over such a
2481 device, the \fB-f\fR option is needed, and the MTU of the IP interfaces on the
2482 resulting VLAN must be set to 1496 instead of 1500.
2486 .ne 2
2488 \fB\fB-l\fR \fIether-link\fR\fR
2490 .sp .6
2491 .RS 4n
2492 Specifies Ethernet link over which VLAN is created.
2496 .ne 2
2498 \fB\fB-t\fR, \fB--temporary\fR\fR
2500 .sp .6
2501 .RS 4n
2502 Specifies that the VLAN link is temporary. Temporary VLAN links last until the
2503 next reboot.
2507 .ne 2
2509 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
2511 .sp .6
2512 .RS 4n
2513 See "Options," above.
2519 .ne 2
2521 \fB\fBdladm delete-vlan\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
2522 \fIvlan-link\fR\fR
2524 .sp .6
2525 .RS 4n
2526 Delete the VLAN link specified.
2528 The \fBdelete-vlan\fR subcommand accepts the following options:
2530 .ne 2
2532 \fB\fB-t\fR, \fB--temporary\fR\fR
2534 .sp .6
2535 .RS 4n
2536 Specifies that the deletion is temporary. Temporary deletions last until the
2537 next reboot.
2541 .ne 2
2543 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
2545 .sp .6
2546 .RS 4n
2547 See "Options," above.
2553 .ne 2
2555 \fB\fBdladm show-vlan\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
2556 [\fIvlan-link\fR]\fR
2558 .sp .6
2559 .RS 4n
2560 Display VLAN configuration for all VLAN links or for the specified VLAN link.
2562 The \fBshow-vlan\fR subcommand accepts the following options:
2564 .ne 2
2566 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
2568 .sp .6
2569 .RS 4n
2570 A case-insensitive, comma-separated list of output fields to display. The field
2571 name must be one of the fields listed below, or the special value \fBall\fR, to
2572 display all fields. For each VLAN link, the following fields can be displayed:
2574 .ne 2
2576 \fB\fBLINK\fR\fR
2578 .sp .6
2579 .RS 4n
2580 The name of the VLAN link.
2584 .ne 2
2586 \fB\fBVID\fR\fR
2588 .sp .6
2589 .RS 4n
2590 The ID associated with the VLAN.
2594 .ne 2
2596 \fB\fBOVER\fR\fR
2598 .sp .6
2599 .RS 4n
2600 The name of the physical link over which this VLAN is configured.
2604 .ne 2
2606 \fB\fBFLAGS\fR\fR
2608 .sp .6
2609 .RS 4n
2610 A set of flags associated with the VLAN link. Possible flags are:
2612 .ne 2
2614 \fB\fBf\fR\fR
2616 .sp .6
2617 .RS 4n
2618 The VLAN was created using the \fB-f\fR option to \fBcreate-vlan\fR.
2622 .ne 2
2624 \fB\fBi\fR\fR
2626 .sp .6
2627 .RS 4n
2628 The VLAN was implicitly created when the DLPI link was opened. These VLAN links
2629 are automatically deleted on last close of the DLPI link (for example, when the
2630 IP interface associated with the VLAN link is unplumbed).
2633 Additional flags might be defined in the future.
2639 .ne 2
2641 \fB\fB-p\fR, \fB--parsable\fR\fR
2643 .sp .6
2644 .RS 4n
2645 Display using a stable machine-parsable format. The \fB-o\fR option is
2646 required with \fB-p\fR. See "Parsable Output Format", below.
2650 .ne 2
2652 \fB\fB-P\fR, \fB--persistent\fR\fR
2654 .sp .6
2655 .RS 4n
2656 Display the persistent VLAN configuration rather than the state of the running
2657 system.
2663 .ne 2
2665 \fB\fBdladm scan-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
2666 [\fIwifi-link\fR]\fR
2668 .sp .6
2669 .RS 4n
2670 Scans for \fBWiFi\fR networks, either on all \fBWiFi\fR links, or just on the
2671 specified \fIwifi-link\fR.
2673 By default, currently all fields but \fBBSSTYPE\fR are displayed.
2675 .ne 2
2677 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
2679 .sp .6
2680 .RS 4n
2681 A case-insensitive, comma-separated list of output fields to display. The field
2682 name must be one of the fields listed below, or the special value \fBall\fR to
2683 display all fields. For each \fBWiFi\fR network found, the following fields can
2684 be displayed:
2686 .ne 2
2688 \fB\fBLINK\fR\fR
2690 .sp .6
2691 .RS 4n
2692 The name of the link the \fBWiFi\fR network is on.
2696 .ne 2
2698 \fB\fBESSID\fR\fR
2700 .sp .6
2701 .RS 4n
2702 The \fBESSID\fR (name) of the \fBWiFi\fR network.
2706 .ne 2
2708 \fB\fBBSSID\fR\fR
2710 .sp .6
2711 .RS 4n
2712 Either the hardware address of the \fBWiFi\fR network's Access Point (for
2713 \fBBSS\fR networks), or the \fBWiFi\fR network's randomly generated unique
2714 token (for \fBIBSS\fR networks).
2718 .ne 2
2720 \fB\fBSEC\fR\fR
2722 .sp .6
2723 .RS 4n
2724 Either \fBnone\fR for a \fBWiFi\fR network that uses no security, \fBwep\fR for
2725 a \fBWiFi\fR network that requires WEP (Wired Equivalent Privacy), or \fBwpa\fR
2726 for a WiFi network that requires WPA (Wi-Fi Protected Access).
2730 .ne 2
2732 \fB\fBMODE\fR\fR
2734 .sp .6
2735 .RS 4n
2736 The supported connection modes: one or more of \fBa\fR, \fBb\fR, or \fBg\fR.
2740 .ne 2
2742 \fB\fBSTRENGTH\fR\fR
2744 .sp .6
2745 .RS 4n
2746 The strength of the signal: one of \fBexcellent\fR, \fBvery good\fR,
2747 \fBgood\fR, \fBweak\fR, or \fBvery weak\fR.
2751 .ne 2
2753 \fB\fBSPEED\fR\fR
2755 .sp .6
2756 .RS 4n
2757 The maximum speed of the \fBWiFi\fR network, in megabits per second.
2761 .ne 2
2763 \fB\fBBSSTYPE\fR\fR
2765 .sp .6
2766 .RS 4n
2767 Either \fBbss\fR for \fBBSS\fR (infrastructure) networks, or \fBibss\fR for
2768 \fBIBSS\fR (ad-hoc) networks.
2774 .ne 2
2776 \fB\fB-p\fR, \fB--parsable\fR\fR
2778 .sp .6
2779 .RS 4n
2780 Display using a stable machine-parsable format. The \fB-o\fR option is
2781 required with \fB-p\fR. See "Parsable Output Format", below.
2787 .ne 2
2789 \fB\fBdladm connect-wifi\fR [\fB-e\fR \fIessid\fR] [\fB-i\fR \fIbssid\fR]
2790 [\fB-k\fR \fIkey\fR,...] [\fB-s\fR \fBnone\fR | \fBwep\fR | \fBwpa\fR]
2791 [\fB-a\fR \fBopen\fR|\fBshared\fR] [\fB-b\fR \fBbss\fR|\fBibss\fR] [\fB-c\fR]
2792 [\fB-m\fR \fBa\fR|\fBb\fR|\fBg\fR] [\fB-T\fR \fItime\fR] [\fIwifi-link\fR]\fR
2794 .sp .6
2795 .RS 4n
2796 Connects to a \fBWiFi\fR network. This consists of four steps: \fIdiscovery\fR,
2797 \fIfiltration\fR, \fIprioritization\fR, and \fIassociation\fR. However, to
2798 enable connections to non-broadcast \fBWiFi\fR networks and to improve
2799 performance, if a \fBBSSID\fR or \fBESSID\fR is specified using the \fB-e\fR or
2800 \fB-i\fR options, then the first three steps are skipped and \fBconnect-wifi\fR
2801 immediately attempts to associate with a \fBBSSID\fR or \fBESSID\fR that
2802 matches the rest of the provided parameters. If this association fails, but
2803 there is a possibility that other networks matching the specified criteria
2804 exist, then the traditional discovery process begins as specified below.
2806 The discovery step finds all available \fBWiFi\fR networks on the specified
2807 WiFi link, which must not yet be connected. For administrative convenience, if
2808 there is only one \fBWiFi\fR link on the system, \fIwifi-link\fR can be
2809 omitted.
2811 Once discovery is complete, the list of networks is filtered according to the
2812 value of the following options:
2814 .ne 2
2816 \fB\fB-e\fR \fIessid,\fR \fB--essid\fR=\fIessid\fR\fR
2818 .sp .6
2819 .RS 4n
2820 Networks that do not have the same \fIessid\fR are filtered out.
2824 .ne 2
2826 \fB\fB-b\fR \fBbss\fR|\fBibss\fR, \fB--bsstype\fR=\fBbss\fR|\fBibss\fR\fR
2828 .sp .6
2829 .RS 4n
2830 Networks that do not have the same \fBbsstype\fR are filtered out.
2834 .ne 2
2836 \fB\fB-m\fR \fBa\fR|\fBb\fR|\fBg\fR, \fB--mode\fR=\fBa\fR|\fBb\fR|\fBg\fR\fR
2838 .sp .6
2839 .RS 4n
2840 Networks not appropriate for the specified 802.11 mode are filtered out.
2844 .ne 2
2846 \fB\fB-k\fR \fIkey,...\fR, \fB--key\fR=\fIkey, ...\fR\fR
2848 .sp .6
2849 .RS 4n
2850 Use the specified \fBsecobj\fR named by the key to connect to the network.
2851 Networks not appropriate for the specified keys are filtered out.
2855 .ne 2
2857 \fB\fB-s\fR \fBnone\fR|\fBwep\fR|\fBwpa\fR,
2858 \fB--sec\fR=\fBnone\fR|\fBwep\fR|\fBwpa\fR\fR
2860 .sp .6
2861 .RS 4n
2862 Networks not appropriate for the specified security mode are filtered out.
2865 Next, the remaining networks are prioritized, first by signal strength, and
2866 then by maximum speed. Finally, an attempt is made to associate with each
2867 network in the list, in order, until one succeeds or no networks remain.
2869 In addition to the options described above, the following options also control
2870 the behavior of \fBconnect-wifi\fR:
2872 .ne 2
2874 \fB\fB-a\fR \fBopen\fR|\fBshared\fR, \fB--auth\fR=\fBopen\fR|\fBshared\fR\fR
2876 .sp .6
2877 .RS 4n
2878 Connect using the specified authentication mode. By default, \fBopen\fR and
2879 \fBshared\fR are tried in order.
2883 .ne 2
2885 \fB\fB-c\fR, \fB--create-ibss\fR\fR
2887 .sp .6
2888 .RS 4n
2889 Used with \fB-b ibss\fR to create a new ad-hoc network if one matching the
2890 specified \fBESSID\fR cannot be found. If no \fBESSID\fR is specified, then
2891 \fB-c -b ibss\fR always triggers the creation of a new ad-hoc network.
2895 .ne 2
2897 \fB\fB-T\fR \fItime\fR, \fB--timeout\fR=\fItime\fR\fR
2899 .sp .6
2900 .RS 4n
2901 Specifies the number of seconds to wait for association to succeed. If
2902 \fItime\fR is \fBforever\fR, then the associate will wait indefinitely. The
2903 current default is ten seconds, but this might change in the future. Timeouts
2904 shorter than the default might not succeed reliably.
2908 .ne 2
2910 \fB\fB-k\fR \fIkey,...\fR, \fB--key\fR=\fIkey,...\fR\fR
2912 .sp .6
2913 .RS 4n
2914 In addition to the filtering previously described, the specified keys will be
2915 used to secure the association. The security mode to use will be based on the
2916 key class; if a security mode was explicitly specified, it must be compatible
2917 with the key class. All keys must be of the same class.
2919 For security modes that support multiple key slots, the slot to place the key
2920 will be specified by a colon followed by an index. Therefore, \fB-k mykey:3\fR
2921 places \fBmykey\fR in slot 3. By default, slot 1 is assumed. For security modes
2922 that support multiple keys, a comma-separated list can be specified, with the
2923 first key being the active key.
2929 .ne 2
2931 \fB\fBdladm disconnect-wifi\fR [\fB-a\fR] [\fIwifi-link\fR]\fR
2933 .sp .6
2934 .RS 4n
2935 Disconnect from one or more \fBWiFi\fR networks. If \fIwifi-link\fR specifies a
2936 connected \fBWiFi\fR link, then it is disconnected. For administrative
2937 convenience, if only one \fBWiFi\fR link is connected, \fIwifi-link\fR can be
2938 omitted.
2940 .ne 2
2942 \fB\fB-a\fR, \fB--all-links\fR\fR
2944 .sp .6
2945 .RS 4n
2946 Disconnects from all connected links. This is primarily intended for use by
2947 scripts.
2953 .ne 2
2955 \fB\fBdladm show-wifi\fR [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
2956 [\fIwifi-link\fR]\fR
2958 .sp .6
2959 .RS 4n
2960 Shows \fBWiFi\fR configuration information either for all \fBWiFi\fR links or
2961 for the specified link \fIwifi-link\fR.
2963 .ne 2
2965 \fB\fB-o\fR \fIfield,...\fR, \fB--output\fR=\fIfield\fR\fR
2967 .sp .6
2968 .RS 4n
2969 A case-insensitive, comma-separated list of output fields to display. The field
2970 name must be one of the fields listed below, or the special value \fBall\fR, to
2971 display all fields. For each \fBWiFi\fR link, the following fields can be
2972 displayed:
2974 .ne 2
2976 \fB\fBLINK\fR\fR
2978 .sp .6
2979 .RS 4n
2980 The name of the link being displayed.
2984 .ne 2
2986 \fB\fBSTATUS\fR\fR
2988 .sp .6
2989 .RS 4n
2990 Either \fBconnected\fR if the link is connected, or \fBdisconnected\fR if it is
2991 not connected. If the link is disconnected, all remaining fields have the value
2992 \fB--\fR.
2996 .ne 2
2998 \fB\fBESSID\fR\fR
3000 .sp .6
3001 .RS 4n
3002 The \fBESSID\fR (name) of the connected \fBWiFi\fR network.
3006 .ne 2
3008 \fB\fBBSSID\fR\fR
3010 .sp .6
3011 .RS 4n
3012 Either the hardware address of the \fBWiFi\fR network's Access Point (for
3013 \fBBSS\fR networks), or the \fBWiFi\fR network's randomly generated unique
3014 token (for \fBIBSS\fR networks).
3018 .ne 2
3020 \fB\fBSEC\fR\fR
3022 .sp .6
3023 .RS 4n
3024 Either \fBnone\fR for a \fBWiFi\fR network that uses no security, \fBwep\fR for
3025 a \fBWiFi\fR network that requires WEP, or \fBwpa\fR for a WiFi network that
3026 requires WPA.
3030 .ne 2
3032 \fB\fBMODE\fR\fR
3034 .sp .6
3035 .RS 4n
3036 The supported connection modes: one or more of \fBa\fR, \fBb\fR, or \fBg\fR.
3040 .ne 2
3042 \fB\fBSTRENGTH\fR\fR
3044 .sp .6
3045 .RS 4n
3046 The connection strength: one of \fBexcellent\fR, \fBvery good\fR, \fBgood\fR,
3047 \fBweak\fR, or \fBvery weak\fR.
3051 .ne 2
3053 \fB\fBSPEED\fR\fR
3055 .sp .6
3056 .RS 4n
3057 The connection speed, in megabits per second.
3061 .ne 2
3063 \fB\fBAUTH\fR\fR
3065 .sp .6
3066 .RS 4n
3067 Either \fBopen\fR or \fBshared\fR (see \fBconnect-wifi\fR).
3071 .ne 2
3073 \fB\fBBSSTYPE\fR\fR
3075 .sp .6
3076 .RS 4n
3077 Either \fBbss\fR for \fBBSS\fR (infrastructure) networks, or \fBibss\fR for
3078 \fBIBSS\fR (ad-hoc) networks.
3081 By default, currently all fields but \fBAUTH\fR, \fBBSSID\fR, \fBBSSTYPE\fR are
3082 displayed.
3086 .ne 2
3088 \fB\fB-p\fR, \fB--parsable\fR\fR
3090 .sp .6
3091 .RS 4n
3092 Displays using a stable machine-parsable format. The \fB-o\fR option is
3093 required with \fB-p\fR. See "Parsable Output Format", below.
3099 .ne 2
3101 \fB\fBdladm show-ether\fR [\fB-x\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR,...]
3102 [\fIether-link\fR]\fR
3104 .sp .6
3105 .RS 4n
3106 Shows state information either for all physical Ethernet links or for a
3107 specified physical Ethernet link.
3109 The \fBshow-ether\fR subcommand accepts the following options:
3111 .ne 2
3113 \fB\fB-o\fR \fIfield\fR,..., \fB--output\fR=\fIfield\fR\fR
3115 .sp .6
3116 .RS 4n
3117 A case-insensitive, comma-separated list of output fields to display. The field
3118 name must be one of the fields listed below, or the special value \fBall\fR to
3119 display all fields. For each link, the following fields can be displayed:
3121 .ne 2
3123 \fB\fBLINK\fR\fR
3125 .sp .6
3126 .RS 4n
3127 The name of the link being displayed.
3131 .ne 2
3133 \fB\fBPTYPE\fR\fR
3135 .sp .6
3136 .RS 4n
3137 Parameter type, where \fBcurrent\fR indicates the negotiated state of the link,
3138 \fBcapable\fR indicates capabilities supported by the device, \fBadv\fR
3139 indicates the advertised capabilities, and \fBpeeradv\fR indicates the
3140 capabilities advertised by the link-partner.
3144 .ne 2
3146 \fB\fBSTATE\fR\fR
3148 .sp .6
3149 .RS 4n
3150 The state of the link.
3154 .ne 2
3156 \fB\fBAUTO\fR\fR
3158 .sp .6
3159 .RS 4n
3160 A \fByes\fR/\fBno\fR value indicating whether auto-negotiation is advertised.
3164 .ne 2
3166 \fB\fBSPEED-DUPLEX\fR\fR
3168 .sp .6
3169 .RS 4n
3170 Combinations of speed and duplex values available. The units of speed are
3171 encoded with a trailing suffix of \fBG\fR (Gigabits/s) or \fBM\fR (Mb/s).
3172 Duplex values are encoded as \fBf\fR (full-duplex) or \fBh\fR (half-duplex).
3176 .ne 2
3178 \fB\fBPAUSE\fR\fR
3180 .sp .6
3181 .RS 4n
3182 Flow control information. Can be \fBno\fR, indicating no flow control is
3183 available; \fBtx\fR, indicating that the end-point can transmit pause frames,
3184 but ignores any received pause frames; \fBrx\fR, indicating that the end-point
3185 receives and acts upon received pause frames; or \fBbi\fR, indicating
3186 bi-directional flow-control.
3190 .ne 2
3192 \fB\fBREM_FAULT\fR\fR
3194 .sp .6
3195 .RS 4n
3196 Fault detection information. Valid values are \fBnone\fR or \fBfault\fR.
3199 By default, all fields except \fBREM_FAULT\fR are displayed for the "current"
3200 \fBPTYPE\fR.
3204 .ne 2
3206 \fB\fB-p\fR, \fB--parsable\fR\fR
3208 .sp .6
3209 .RS 4n
3210 Displays using a stable machine-parsable format. The \fB-o\fR option is
3211 required with \fB-p\fR. See "Parsable Output Format", below.
3215 .ne 2
3217 \fB\fB-x\fR, \fB--extended\fR\fR
3219 .sp .6
3220 .RS 4n
3221 Extended output is displayed for \fBPTYPE\fR values of \fBcurrent\fR,
3222 \fBcapable\fR, \fBadv\fR and \fBpeeradv\fR.
3228 .ne 2
3230 \fB\fBdladm set-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-p\fR
3231 \fIprop\fR=\fIvalue\fR[,...] \fIlink\fR\fR
3233 .sp .6
3234 .RS 4n
3235 Sets the values of one or more properties on the link specified. The list of
3236 properties and their possible values depend on the link type, the network
3237 device driver, and networking hardware. These properties can be retrieved using
3238 \fBshow-linkprop\fR.
3240 .ne 2
3242 \fB\fB-t\fR, \fB--temporary\fR\fR
3244 .sp .6
3245 .RS 4n
3246 Specifies that the changes are temporary. Temporary changes last until the next
3247 reboot.
3251 .ne 2
3253 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3255 .sp .6
3256 .RS 4n
3257 See "Options," above.
3261 .ne 2
3263 \fB\fB-p\fR \fIprop\fR=\fIvalue\fR[,...], \fB--prop\fR
3264 \fIprop\fR=\fIvalue\fR[,...]\fR
3268 \fB\fR
3270 .sp .6
3271 .RS 4n
3272 A comma-separated list of properties to set to the specified values.
3275 Note that when the persistent value is set, the temporary value changes to the
3276 same value.
3280 .ne 2
3282 \fB\fBdladm reset-linkprop\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-p\fR
3283 \fIprop\fR,...] \fIlink\fR\fR
3285 .sp .6
3286 .RS 4n
3287 Resets one or more properties to their values on the link specified. Properties
3288 are reset to the values they had at startup. If no properties are specified,
3289 all properties are reset. See \fBshow-linkprop\fR for a description of
3290 properties.
3292 .ne 2
3294 \fB\fB-t\fR, \fB--temporary\fR\fR
3296 .sp .6
3297 .RS 4n
3298 Specifies that the resets are temporary. Values are reset to default values.
3299 Temporary resets last until the next reboot.
3303 .ne 2
3305 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3307 .sp .6
3308 .RS 4n
3309 See "Options," above.
3313 .ne 2
3315 \fB\fB-p\fR \fIprop, ...\fR, \fB--prop\fR=\fIprop, ...\fR\fR
3317 .sp .6
3318 .RS 4n
3319 A comma-separated list of properties to reset.
3322 Note that when the persistent value is reset, the temporary value changes to
3323 the same value.
3327 .ne 2
3329 \fB\fBdladm show-linkprop\fR [\fB-P\fR] [[\fB-c\fR] \fB-o\fR
3330 \fIfield\fR[,...]][\fB-p\fR \fIprop\fR[,...]] [\fIlink\fR]\fR
3332 .sp .6
3333 .RS 4n
3334 Show the current or persistent values of one or more properties, either for all
3335 datalinks or for the specified link. By default, current values are shown. If
3336 no properties are specified, all available link properties are displayed. For
3337 each property, the following fields are displayed:
3339 .ne 2
3341 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR\fR
3343 .sp .6
3344 .RS 4n
3345 A case-insensitive, comma-separated list of output fields to display. The field
3346 name must be one of the fields listed below, or the special value \fBall\fR to
3347 display all fields. For each link, the following fields can be displayed:
3349 .ne 2
3351 \fB\fBLINK\fR\fR
3353 .sp .6
3354 .RS 4n
3355 The name of the datalink.
3359 .ne 2
3361 \fB\fBPROPERTY\fR\fR
3363 .sp .6
3364 .RS 4n
3365 The name of the property.
3369 .ne 2
3371 \fB\fBPERM\fR\fR
3373 .sp .6
3374 .RS 4n
3375 The read/write permissions of the property. The value shown is one of \fBro\fR
3376 or \fBrw\fR.
3380 .ne 2
3382 \fB\fBVALUE\fR\fR
3384 .sp .6
3385 .RS 4n
3386 The current (or persistent) property value. If the value is not set, it is
3387 shown as \fB--\fR. If it is unknown, the value is shown as \fB?\fR. Persistent
3388 values that are not set or have been reset will be shown as \fB--\fR and will
3389 use the system \fBDEFAULT\fR value (if any).
3393 .ne 2
3395 \fB\fBDEFAULT\fR\fR
3397 .sp .6
3398 .RS 4n
3399 The default value of the property. If the property has no default value,
3400 \fB--\fR is shown.
3404 .ne 2
3406 \fB\fBPOSSIBLE\fR\fR
3408 .sp .6
3409 .RS 4n
3410 A comma-separated list of the values the property can have. If the values span
3411 a numeric range, \fImin\fR - \fImax\fR might be shown as shorthand. If the
3412 possible values are unknown or unbounded, \fB--\fR is shown.
3415 The list of properties depends on the link type and network device driver, and
3416 the available values for a given property further depends on the underlying
3417 network hardware and its state. General link properties are documented in the
3418 \fBLINK PROPERTIES\fR section. However, link properties that begin with
3419 "\fB_\fR" (underbar) are specific to a given link or its underlying network
3420 device and subject to change or removal. See the appropriate network device
3421 driver man page for details.
3425 .ne 2
3427 \fB\fB-c\fR, \fB--parsable\fR\fR
3429 .sp .6
3430 .RS 4n
3431 Display using a stable machine-parsable format. The \fB-o\fR option is
3432 required with this option. See "Parsable Output Format", below.
3436 .ne 2
3438 \fB\fB-P\fR, \fB--persistent\fR\fR
3440 .sp .6
3441 .RS 4n
3442 Display persistent link property information
3446 .ne 2
3448 \fB\fB-p\fR \fIprop, ...\fR, \fB--prop\fR=\fIprop, ...\fR\fR
3450 .sp .6
3451 .RS 4n
3452 A comma-separated list of properties to show. See the sections on link
3453 properties following subcommand descriptions.
3459 .ne 2
3461 \fB\fBdladm create-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] [\fB-f\fR
3462 \fIfile\fR] \fB-c\fR \fIclass\fR \fIsecobj\fR\fR
3464 .sp .6
3465 .RS 4n
3466 Create a secure object named \fIsecobj\fR in the specified \fIclass\fR to be
3467 later used as a WEP or WPA key in connecting to an encrypted network. The value
3468 of the secure object can either be provided interactively or read from a file.
3469 The sequence of interactive prompts and the file format depends on the class of
3470 the secure object.
3472 Currently, the classes \fBwep\fR and \fBwpa\fR are supported. The \fBWEP\fR
3473 (Wired Equivalent Privacy) key can be either 5 or 13 bytes long. It can be
3474 provided either as an \fBASCII\fR or hexadecimal string -- thus, \fB12345\fR
3475 and \fB0x3132333435\fR are equivalent 5-byte keys (the \fB0x\fR prefix can be
3476 omitted). A file containing a \fBWEP\fR key must consist of a single line using
3477 either \fBWEP\fR key format. The WPA (Wi-Fi Protected Access) key must be
3478 provided as an ASCII string with a length between 8 and 63 bytes.
3480 This subcommand is only usable by users or roles that belong to the "Network
3481 Link Security" \fBRBAC\fR profile.
3483 .ne 2
3485 \fB\fB-c\fR \fIclass\fR, \fB--class\fR=\fIclass\fR\fR
3487 .sp .6
3488 .RS 4n
3489 \fIclass\fR can be \fBwep\fR or \fBwpa\fR. See preceding discussion.
3493 .ne 2
3495 \fB\fB-t\fR, \fB--temporary\fR\fR
3497 .sp .6
3498 .RS 4n
3499 Specifies that the creation is temporary. Temporary creation last until the
3500 next reboot.
3504 .ne 2
3506 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3508 .sp .6
3509 .RS 4n
3510 See "Options," above.
3514 .ne 2
3516 \fB\fB-f\fR \fIfile\fR, \fB--file\fR=\fIfile\fR\fR
3518 .sp .6
3519 .RS 4n
3520 Specifies a file that should be used to obtain the secure object's value. The
3521 format of this file depends on the secure object class. See the \fBEXAMPLES\fR
3522 section for an example of using this option to set a \fBWEP\fR key.
3528 .ne 2
3530 \fB\fBdladm delete-secobj\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3531 \fIsecobj\fR[,...]\fR
3533 .sp .6
3534 .RS 4n
3535 Delete one or more specified secure objects. This subcommand is only usable by
3536 users or roles that belong to the "Network Link Security" \fBRBAC\fR profile.
3538 .ne 2
3540 \fB\fB-t\fR, \fB--temporary\fR\fR
3542 .sp .6
3543 .RS 4n
3544 Specifies that the deletions are temporary. Temporary deletions last until the
3545 next reboot.
3549 .ne 2
3551 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3553 .sp .6
3554 .RS 4n
3555 See "Options," above.
3561 .ne 2
3563 \fB\fBdladm show-secobj\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
3564 [\fIsecobj\fR,...]\fR
3566 .sp .6
3567 .RS 4n
3568 Show current or persistent secure object information. If one or more secure
3569 objects are specified, then information for each is displayed. Otherwise, all
3570 current or persistent secure objects are displayed.
3572 By default, current secure objects are displayed, which are all secure objects
3573 that have either been persistently created and not temporarily deleted, or
3574 temporarily created.
3576 For security reasons, it is not possible to show the value of a secure object.
3578 .ne 2
3580 \fB\fB-o\fR \fIfield\fR[,...] , \fB--output\fR=\fIfield\fR[,...]\fR
3582 .sp .6
3583 .RS 4n
3584 A case-insensitive, comma-separated list of output fields to display. The field
3585 name must be one of the fields listed below. For displayed secure object, the
3586 following fields can be shown:
3588 .ne 2
3590 \fB\fBOBJECT\fR\fR
3592 .sp .6
3593 .RS 4n
3594 The name of the secure object.
3598 .ne 2
3600 \fB\fBCLASS\fR\fR
3602 .sp .6
3603 .RS 4n
3604 The class of the secure object.
3610 .ne 2
3612 \fB\fB-p\fR, \fB--parsable\fR\fR
3614 .sp .6
3615 .RS 4n
3616 Display using a stable machine-parsable format. The \fB-o\fR option is
3617 required with \fB-p\fR. See "Parsable Output Format", below.
3621 .ne 2
3623 \fB\fB-P\fR, \fB--persistent\fR\fR
3625 .sp .6
3626 .RS 4n
3627 Display persistent secure object information
3633 .ne 2
3635 \fB\fBdladm create-vnic\fR [\fB-t\fR] \fB-l\fR \fIlink\fR [\fB-R\fR
3636 \fIroot-dir\fR] [\fB-m\fR \fIvalue\fR | auto | {factory [\fB-n\fR
3637 \fIslot-identifier\fR]} | {random [\fB-r\fR \fIprefix\fR]}] [\fB-v\fR
3638 \fIvlan-id\fR] [\fB-p\fR \fIprop\fR=\fIvalue\fR[,...]] \fIvnic-link\fR\fR
3640 .sp .6
3641 .RS 4n
3642 Create a VNIC with name \fIvnic-link\fR over the specified link.
3644 .ne 2
3646 \fB\fB-t\fR, \fB--temporary\fR\fR
3648 .sp .6
3649 .RS 4n
3650 Specifies that the VNIC is temporary. Temporary VNICs last until the next
3651 reboot.
3655 .ne 2
3657 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3659 .sp .6
3660 .RS 4n
3661 See "Options," above.
3665 .ne 2
3667 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
3669 .sp .6
3670 .RS 4n
3671 \fIlink\fR can be a physical link or an \fBetherstub\fR.
3675 .ne 2
3677 \fB\fB-m\fR \fIvalue\fR | \fIkeyword\fR, \fB--mac-address\fR=\fIvalue\fR |
3678 \fIkeyword\fR\fR
3680 .sp .6
3681 .RS 4n
3682 Sets the VNIC's MAC address based on the specified value or keyword. If
3683 \fIvalue\fR is not a keyword, it is interpreted as a unicast MAC address, which
3684 must be valid for the underlying NIC. The following special keywords can be
3685 used:
3687 .ne 2
3689 \fBfactory [\fB-n\fR \fIslot-identifier\fR],\fR
3693 \fBfactory [\fB--slot\fR=\fIslot-identifier\fR]\fR
3695 .sp .6
3696 .RS 4n
3697 Assign a factory MAC address to the VNIC. When a factory MAC address is
3698 requested, \fB-m\fR can be combined with the \fB-n\fR option to specify a MAC
3699 address slot to be used. If \fB-n\fR is not specified, the system will choose
3700 the next available factory MAC address. The \fB-m\fR option of the
3701 \fBshow-phys\fR subcommand can be used to display the list of factory MAC
3702 addresses, their slot identifiers, and their availability.
3706 .ne 2
3708 \fB\fR
3712 \fBrandom [\fB-r\fR \fIprefix\fR],\fR
3716 \fBrandom [\fB--mac-prefix\fR=\fIprefix\fR]\fR
3718 .sp .6
3719 .RS 4n
3720 Assign a random MAC address to the VNIC. A default prefix consisting of a valid
3721 IEEE OUI with the local bit set will be used. That prefix can be overridden
3722 with the \fB-r\fR option.
3726 .ne 2
3728 \fBauto\fR
3730 .sp .6
3731 .RS 4n
3732 Try and use a factory MAC address first. If none is available, assign a random
3733 MAC address. \fBauto\fR is the default action if the \fB-m\fR option is not
3734 specified.
3738 .ne 2
3740 \fB\fB-v\fR \fIvlan-id\fR\fR
3742 .sp .6
3743 .RS 4n
3744 Enable VLAN tagging for this VNIC. The VLAN tag will have id \fIvlan-id\fR.
3750 .ne 2
3752 \fB\fB-p\fR \fIprop\fR=\fIvalue\fR,..., \fB--prop\fR
3753 \fIprop\fR=\fIvalue\fR,...\fR
3755 .sp .6
3756 .RS 4n
3757 A comma-separated list of properties to set to the specified values.
3763 .ne 2
3765 \fB\fBdladm delete-vnic\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3766 \fIvnic-link\fR\fR
3768 .sp .6
3769 .RS 4n
3770 Deletes the specified VNIC.
3772 .ne 2
3774 \fB\fB-t\fR, \fB--temporary\fR\fR
3776 .sp .6
3777 .RS 4n
3778 Specifies that the deletion is temporary. Temporary deletions last until the
3779 next reboot.
3783 .ne 2
3785 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3787 .sp .6
3788 .RS 4n
3789 See "Options," above.
3795 .ne 2
3797 \fB\fBdladm show-vnic\fR [\fB-pP\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]]
3798 [\fB-o\fR \fIfield\fR[,...]] [\fB-l\fR \fIlink\fR] [\fIvnic-link\fR]\fR
3800 .sp .6
3801 .RS 4n
3802 Show VNIC configuration information (the default) or statistics, for all VNICs,
3803 all VNICs on a link, or only the specified \fIvnic-link\fR.
3805 .ne 2
3807 \fB\fB-o\fR \fIfield\fR[,...] , \fB--output\fR=\fIfield\fR[,...]\fR
3809 .sp .6
3810 .RS 4n
3811 A case-insensitive, comma-separated list of output fields to display. The field
3812 name must be one of the fields listed below. The field name must be one of the
3813 fields listed below, or the special value \fBall\fR to display all fields. By
3814 default (without \fB-o\fR), \fBshow-vnic\fR displays all fields.
3816 .ne 2
3818 \fB\fBLINK\fR\fR
3820 .sp .6
3821 .RS 4n
3822 The name of the VNIC.
3826 .ne 2
3828 \fB\fBOVER\fR\fR
3830 .sp .6
3831 .RS 4n
3832 The name of the physical link over which this VNIC is configured.
3836 .ne 2
3838 \fB\fBSPEED\fR\fR
3840 .sp .6
3841 .RS 4n
3842 The maximum speed of the VNIC, in megabits per second.
3846 .ne 2
3848 \fB\fBMACADDRESS\fR\fR
3850 .sp .6
3851 .RS 4n
3852 MAC address of the VNIC.
3856 .ne 2
3858 \fB\fBMACADDRTYPE\fR\fR
3860 .sp .6
3861 .RS 4n
3862 MAC address type of the VNIC. \fBdladm\fR distinguishes among the following MAC
3863 address types:
3865 .ne 2
3867 \fB\fBrandom\fR\fR
3869 .sp .6
3870 .RS 4n
3871 A random address assigned to the VNIC.
3875 .ne 2
3877 \fB\fBfactory\fR\fR
3879 .sp .6
3880 .RS 4n
3881 A factory MAC address used by the VNIC.
3889 .ne 2
3891 \fB\fB-p\fR, \fB--parsable\fR\fR
3893 .sp .6
3894 .RS 4n
3895 Display using a stable machine-parsable format. The \fB-o\fR option is
3896 required with \fB-p\fR. See "Parsable Output Format", below.
3900 .ne 2
3902 \fB\fB-P\fR, \fB--persistent\fR\fR
3904 .sp .6
3905 .RS 4n
3906 Display the persistent VNIC configuration.
3910 .ne 2
3912 \fB\fB-s\fR, \fB--statistics\fR\fR
3914 .sp .6
3915 .RS 4n
3916 Displays VNIC statistics.
3920 .ne 2
3922 \fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR
3924 .sp .6
3925 .RS 4n
3926 Used with the \fB-s\fR option to specify an interval, in seconds, at which
3927 statistics should be displayed. If this option is not specified, statistics
3928 will be displayed only once.
3932 .ne 2
3934 \fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR
3936 .sp .6
3937 .RS 4n
3938 Display information for all VNICs on the named link.
3944 .ne 2
3946 \fB\fR
3950 \fB\fBdladm create-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3951 \fIetherstub\fR\fR
3953 .sp .6
3954 .RS 4n
3955 Create an etherstub with the specified name.
3957 .ne 2
3959 \fB\fB-t\fR, \fB--temporary\fR\fR
3961 .sp .6
3962 .RS 4n
3963 Specifies that the etherstub is temporary. Temporary etherstubs do not persist
3964 across reboots.
3968 .ne 2
3970 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
3972 .sp .6
3973 .RS 4n
3974 See "Options," above.
3977 VNICs can be created on top of etherstubs instead of physical NICs. As with
3978 physical NICs, such a creation causes the stack to implicitly create a virtual
3979 switch between the VNICs created on top of the same etherstub.
3983 .ne 2
3985 \fB\fR
3989 \fB\fBdladm delete-etherstub\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
3990 \fIetherstub\fR\fR
3992 .sp .6
3993 .RS 4n
3994 Delete the specified etherstub.
3996 .ne 2
3998 \fB\fB-t\fR, \fB--temporary\fR\fR
4000 .sp .6
4001 .RS 4n
4002 Specifies that the deletion is temporary. Temporary deletions last until the
4003 next reboot.
4007 .ne 2
4009 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4011 .sp .6
4012 .RS 4n
4013 See "Options," above.
4019 .ne 2
4021 \fB\fBdladm show-etherstub\fR [\fIetherstub\fR]\fR
4023 .sp .6
4024 .RS 4n
4025 Show all configured etherstubs by default, or the specified etherstub if
4026 \fIetherstub\fR is specified.
4030 .ne 2
4032 \fB\fBdladm create-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-T\fR
4033 \fItype\fR [-a {local|remote}=<addr>[,...]] \fIiptun-link\fR\fR
4035 .sp .6
4036 .RS 4n
4037 Create an IP tunnel link named \fIiptun-link\fR. Such links can additionally be
4038 protected with IPsec using \fBipsecconf\fR(8).
4040 An IP tunnel is conceptually comprised of two parts: a virtual link between two
4041 or more IP nodes, and an IP interface above this link that allows the system to
4042 transmit and receive IP packets encapsulated by the underlying link. This
4043 subcommand creates a virtual link. The \fBifconfig\fR(8) command is used to
4044 configure IP interfaces above the link.
4046 .ne 2
4048 \fB\fB-t\fR, \fB--temporary\fR\fR
4050 .sp .6
4051 .RS 4n
4052 Specifies that the IP tunnel link is temporary. Temporary tunnels last until
4053 the next reboot.
4057 .ne 2
4059 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4061 .sp .6
4062 .RS 4n
4063 See "Options," above.
4067 .ne 2
4069 \fB\fB-T\fR \fItype\fR, \fB--tunnel-type\fR=\fItype\fR\fR
4071 .sp .6
4072 .RS 4n
4073 Specifies the type of tunnel to be created. The type must be one of the
4074 following:
4076 .ne 2
4078 \fB\fBipv4\fR\fR
4080 .sp .6
4081 .RS 4n
4082 A point-to-point, IP-over-IP tunnel between two IPv4 nodes. This type of tunnel
4083 requires IPv4 source and destination addresses to function. IPv4 and IPv6
4084 interfaces can be plumbed above such a tunnel to create IPv4-over-IPv4 and
4085 IPv6-over-IPv4 tunneling configurations.
4089 .ne 2
4091 \fB\fBipv6\fR\fR
4093 .sp .6
4094 .RS 4n
4095 A point-to-point, IP-over-IP tunnel between two IPv6 nodes as defined in IETF
4096 RFC 2473. This type of tunnel requires IPv6 source and destination addresses to
4097 function. IPv4 and IPv6 interfaces can be plumbed above such a tunnel to create
4098 IPv4-over-IPv6 and IPv6-over-IPv6 tunneling configurations.
4102 .ne 2
4104 \fB\fB6to4\fR\fR
4106 .sp .6
4107 .RS 4n
4108 A 6to4, point-to-multipoint tunnel as defined in IETF RFC 3056. This type of
4109 tunnel requires an IPv4 source address to function. An IPv6 interface is
4110 plumbed on such a tunnel link to configure a 6to4 router.
4116 .ne 2
4118 \fB\fB-a\fR \fBlocal=\fR\fIaddr\fR
4120 .sp .6
4121 .RS 4n
4122 Literal IP address or hostname corresponding to the tunnel source. If a
4123 hostname is specified, it will be resolved to IP addresses, and one of those IP
4124 addresses will be used as the tunnel source. Because IP tunnels are created
4125 before naming services have been brought online during the boot process, it is
4126 important that any hostname used be included in \fB/etc/hosts\fR.
4130 .ne 2
4132 \fB\fB-a\fR \fBremote=\fR\fIaddr\fR
4134 .sp .6
4135 .RS 4n
4136 Literal IP address or hostname corresponding to the tunnel destination.
4142 .ne 2
4144 \fB\fBdladm modify-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
4145 [-a {local|remote}=<addr>[,...]] \fIiptun-link\fR\fR
4147 .sp .6
4148 .RS 4n
4149 Modify the parameters of the specified IP tunnel.
4151 .ne 2
4153 \fB\fB-t\fR, \fB--temporary\fR\fR
4155 .sp .6
4156 .RS 4n
4157 Specifies that the modification is temporary. Temporary modifications last
4158 until the next reboot.
4162 .ne 2
4164 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4166 .sp .6
4167 .RS 4n
4168 See "Options," above.
4172 .ne 2
4174 \fB\fB-a\fR \fBlocal=\fR\fIaddr\fR
4176 .sp .6
4177 .RS 4n
4178 Specifies a new tunnel source address. See \fBcreate-iptun\fR for a
4179 description.
4183 .ne 2
4185 \fB\fB-a\fR \fBremote=\fR\fIaddr\fR
4187 .sp .6
4188 .RS 4n
4189 Specifies a new tunnel destination address. See \fBcreate-iptun\fR for a
4190 description.
4196 .ne 2
4198 \fB\fBdladm delete-iptun\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR]
4199 \fIiptun-link\fR\fR
4201 .sp .6
4202 .RS 4n
4203 Delete the specified IP tunnel link.
4205 .ne 2
4207 \fB\fB-t\fR, \fB--temporary\fR\fR
4209 .sp .6
4210 .RS 4n
4211 Specifies that the deletion is temporary. Temporary deletions last until the
4212 next reboot.
4216 .ne 2
4218 \fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR
4220 .sp .6
4221 .RS 4n
4222 See "Options," above.
4228 .ne 2
4230 \fB\fBdladm show-iptun\fR [\fB-P\fR] [[\fB-p\fR] \fB-o\fR \fIfield\fR[,...]]
4231 [\fIiptun-link\fR]\fR
4233 .sp .6
4234 .RS 4n
4235 Show IP tunnel link configuration for a single IP tunnel or all IP tunnels.
4237 .ne 2
4239 \fB\fB-P\fR, \fB--persistent\fR\fR
4241 .sp .6
4242 .RS 4n
4243 Display the persistent IP tunnel configuration.
4247 .ne 2
4249 \fB\fB-p\fR, \fB--parsable\fR\fR
4251 .sp .6
4252 .RS 4n
4253 Display using a stable machine-parsable format. The -o option is required with
4254 -p. See "Parsable Output Format", below.
4258 .ne 2
4260 \fB\fB-o\fR \fIfield\fR[,...], \fB--output\fR=\fIfield\fR[,...]\fR
4262 .sp .6
4263 .RS 4n
4264 A case-insensitive, comma-separated list of output fields to display. The field
4265 name must be one of the fields listed below, or the special value \fBall\fR, to
4266 display all fields. By default (without \fB-o\fR), \fBshow-iptun\fR displays
4267 all fields.
4269 .ne 2
4271 \fB\fBLINK\fR\fR
4273 .sp .6
4274 .RS 4n
4275 The name of the IP tunnel link.
4279 .ne 2
4281 \fB\fBTYPE\fR\fR
4283 .sp .6
4284 .RS 4n
4285 Type of tunnel as specified by the \fB-T\fR option of \fBcreate-iptun\fR.
4289 .ne 2
4291 \fB\fBFLAGS\fR\fR
4293 .sp .6
4294 .RS 4n
4295 A set of flags associated with the IP tunnel link. Possible flags are:
4297 .ne 2
4299 \fB\fBs\fR\fR
4301 .sp .6
4302 .RS 4n
4303 The IP tunnel link is protected by IPsec policy. To display the IPsec policy
4304 associated with the tunnel link, enter:
4306 .in +2
4308 # \fBipsecconf -ln -i \fItunnel-link\fR\fR
4310 .in -2
4313 See \fBipsecconf\fR(8) for more details on how to configure IPsec policy.
4317 .ne 2
4319 \fB\fBi\fR\fR
4321 .sp .6
4322 .RS 4n
4323 The IP tunnel link was implicitly created with \fBifconfig\fR(8), and will be
4324 automatically deleted when it is no longer referenced (that is, when the last
4325 IP interface over the tunnel is unplumbed). See \fBifconfig\fR(8) for details
4326 on implicit tunnel creation.
4332 .ne 2
4334 \fB\fBSOURCE\fR\fR
4336 .sp .6
4337 .RS 4n
4338 The tunnel source address.
4342 .ne 2
4344 \fB\fBDESTINATION\fR\fR
4346 .sp .6
4347 .RS 4n
4348 The tunnel destination address.
4356 .ne 2
4358 \fB\fBdladm show-usage\fR [\fB-a\fR] \fB-f\fR \fIfilename\fR [\fB-p\fR
4359 \fIplotfile\fR \fB-F\fR \fIformat\fR] [\fB-s\fR \fItime\fR] [\fB-e\fR
4360 \fItime\fR] [\fIlink\fR]\fR
4362 .sp .6
4363 .RS 4n
4364 Show the historical network usage from a stored extended accounting file.
4365 Configuration and enabling of network accounting through \fBacctadm\fR(8) is
4366 required. The default output will be the summary of network usage for the
4367 entire period of time in which extended accounting was enabled.
4369 .ne 2
4371 \fB\fB-a\fR\fR
4373 .sp .6
4374 .RS 4n
4375 Display all historical network usage for the specified period of time during
4376 which extended accounting is enabled. This includes the usage information for
4377 the links that have already been deleted.
4381 .ne 2
4383 \fB\fB-f\fR \fIfilename\fR, \fB--file\fR=\fIfilename\fR\fR
4385 .sp .6
4386 .RS 4n
4387 Read extended accounting records of network usage from \fIfilename\fR.
4391 .ne 2
4393 \fB\fB-F\fR \fIformat\fR, \fB--format\fR=\fIformat\fR\fR
4395 .sp .6
4396 .RS 4n
4397 Specifies the format of \fIplotfile\fR that is specified by the \fB-p\fR
4398 option. As of this release, \fBgnuplot\fR is the only supported format.
4402 .ne 2
4404 \fB\fB-p\fR \fIplotfile\fR, \fB--plot\fR=\fIplotfile\fR\fR
4406 .sp .6
4407 .RS 4n
4408 Write network usage data to a file of the format specified by the \fB-F\fR
4409 option, which is required.
4413 .ne 2
4415 \fB\fB-s\fR \fItime\fR, \fB--start\fR=\fItime\fR\fR
4419 \fB\fB-e\fR \fItime\fR, \fB--stop\fR=\fItime\fR\fR
4421 .sp .6
4422 .RS 4n
4423 Start and stop times for data display. Time is in the format
4424 \fIMM\fR/\fIDD\fR/\fIYYYY\fR,\fIhh\fR:\fImm\fR:\fIss\fR.
4428 .ne 2
4430 \fB\fIlink\fR\fR
4432 .sp .6
4433 .RS 4n
4434 If specified, display the network usage only for the named link. Otherwise,
4435 display network usage for all links.
4440 .SS "Parsable Output Format"
4442 Many \fBdladm\fR subcommands have an option that displays output in a
4443 machine-parsable format. The output format is one or more lines of colon
4444 (\fB:\fR) delimited fields. The fields displayed are specific to the subcommand
4445 used and are listed under the entry for the \fB-o\fR option for a given
4446 subcommand. Output includes only those fields requested by means of the
4447 \fB-o\fR option, in the order requested.
4450 When you request multiple fields, any literal colon characters are escaped by a
4451 backslash (\fB\e\fR) before being output. Similarly, literal backslash
4452 characters will also be escaped (\fB\e\e\fR). This escape format is parsable
4453 by using shell \fBread\fR(1) functions with the environment variable
4454 \fBIFS=:\fR (see \fBEXAMPLES\fR, below). Note that escaping is not done when
4455 you request only a single field.
4456 .SS "General Link Properties"
4458 The following general link properties are supported:
4460 .ne 2
4462 \fB\fBallowed-ips\fR\fR
4464 .sp .6
4465 .RS 4n
4466 A comma-separated list of IP addresses that are allowed on the interface.
4468 An address in CIDR format with no host address specified is used to indicate
4469 that any address on that subnet is allowed (e.g. 192.168.10.0/24 means any
4470 address in the range 192.168.10.0 - 192.168.10.255 is allowed).
4474 .ne 2
4476 \fB\fBautopush\fR\fR
4478 .sp .6
4479 .RS 4n
4480 Specifies the set of STREAMS modules to push on the stream associated with a
4481 link when its DLPI device is opened. It is a space-delimited list of modules.
4483 The optional special character sequence \fB[anchor]\fR indicates that a STREAMS
4484 anchor should be placed on the stream at the module previously specified in the
4485 list. It is an error to specify more than one anchor or to have an anchor first
4486 in the list.
4488 The \fBautopush\fR property is preferred over the more general
4489 \fBautopush\fR(8) command.
4493 .ne 2
4495 \fB\fBcpus\fR\fR
4497 .sp .6
4498 .RS 4n
4499 Bind the processing of packets for a given data link to a processor or a set of
4500 processors. The value can be a comma-separated list of one or more processor
4501 ids. If the list consists of more than one processor, the processing will
4502 spread out to all the processors. Connection to processor affinity and packet
4503 ordering for any individual connection will be maintained.
4505 The processor or set of processors are not exclusively reserved for the link.
4506 Only the kernel threads and interrupts associated with processing of the link
4507 are bound to the processor or the set of processors specified. In case it is
4508 desired that processors be dedicated to the link, \fBpsrset\fR(8) can be used
4509 to create a processor set and then specifying the processors from the processor
4510 set to bind the link to.
4512 If the link was already bound to processor or set of processors due to a
4513 previous operation, the binding will be removed and the new set of processors
4514 will be used instead.
4516 The default is no CPU binding, which is to say that the processing of packets
4517 is not bound to any specific processor or processor set.
4521 .ne 2
4523 \fB\fBlearn_limit\fR\fR
4525 .sp .6
4526 .RS 4n
4527 Limits the number of new or changed MAC sources to be learned over a bridge
4528 link. When the number exceeds this value, learning on that link is temporarily
4529 disabled. Only non-VLAN, non-VNIC type links have this property.
4531 The default value is \fB1000\fR. Valid values are greater or equal to 0.
4535 .ne 2
4537 \fB\fBlearn_decay\fR\fR
4539 .sp .6
4540 .RS 4n
4541 Specifies the decay rate for source changes limited by \fBlearn_limit\fR. This
4542 number is subtracted from the counter for a bridge link every 5 seconds. Only
4543 non-VLAN, non-VNIC type links have this property.
4545 The default value is \fB200\fR. Valid values are greater or equal to 0.
4549 .ne 2
4551 \fB\fBmaxbw\fR\fR
4553 .sp .6
4554 .RS 4n
4555 Sets the full duplex bandwidth for the link. The bandwidth is specified as an
4556 integer with one of the scale suffixes (\fBK\fR, \fBM\fR, or \fBG\fR for Kbps,
4557 Mbps, and Gbps). If no units are specified, the input value will be read as
4558 Mbps. The default is no bandwidth limit.
4562 .ne 2
4564 \fB\fBpriority\fR\fR
4566 .sp .6
4567 .RS 4n
4568 Sets the relative priority for the link. The value can be given as one of the
4569 tokens \fBhigh\fR, \fBmedium\fR, or \fBlow\fR. The default is \fBhigh\fR.
4573 .ne 2
4575 \fB\fBstp\fR\fR
4577 .sp .6
4578 .RS 4n
4579 Enables or disables Spanning Tree Protocol on a bridge link. Setting this value
4580 to \fB0\fR disables Spanning Tree, and puts the link into forwarding mode with
4581 BPDU guarding enabled. This mode is appropriate for point-to-point links
4582 connected only to end nodes. Only non-VLAN, non-VNIC type links have this
4583 property. The default value is \fB1\fR, to enable STP.
4587 .ne 2
4589 \fB\fBforward\fR\fR
4591 .sp .6
4592 .RS 4n
4593 Enables or disables forwarding for a VLAN. Setting this value to \fB0\fR
4594 disables bridge forwarding for a VLAN link. Disabling bridge forwarding removes
4595 that VLAN from the "allowed set" for the bridge. The default value is \fB1\fR,
4596 to enable bridge forwarding for configured VLANs.
4600 .ne 2
4602 \fB\fBdefault_tag\fR\fR
4604 .sp .6
4605 .RS 4n
4606 Sets the default VLAN ID that is assumed for untagged packets sent to and
4607 received from this link. Only non-VLAN, non-VNIC type links have this property.
4608 Setting this value to \fB0\fR disables the bridge forwarding of untagged
4609 packets to and from the port. The default value is \fBVLAN ID 1\fR. Valid
4610 values values are from 0 to 4094.
4614 .ne 2
4616 \fB\fBpromisc-filtered\fR\fR
4618 .sp .6
4619 .RS 4n
4620 Enables or disables the default filtering of promiscuous mode for certain
4621 classes of links. By default, VNICs will only see unicast traffic destined for it
4622 in promiscuous mode. Not all the unicast traffic from the underlying device
4623 makes it to the VNIC. Disabling this would cause a VNIC, for example, to be able
4624 to see all unicast traffic from the device it is created over. The default value
4625 is on.
4629 .ne 2
4631 \fB\fBstp_priority\fR\fR
4633 .sp .6
4634 .RS 4n
4635 Sets the STP and RSTP Port Priority value, which is used to determine the
4636 preferred root port on a bridge. Lower numerical values are higher priority.
4637 The default value is \fB128\fR. Valid values range from 0 to 255.
4641 .ne 2
4643 \fB\fBstp_cost\fR\fR
4645 .sp .6
4646 .RS 4n
4647 Sets the STP and RSTP cost for using the link. The default value is \fBauto\fR,
4648 which sets the cost based on link speed, using \fB100\fR for 10Mbps, \fB19\fR
4649 for 100Mbps, \fB4\fR for 1Gbps, and \fB2\fR for 10Gbps. Valid values range from
4650 1 to 65535.
4654 .ne 2
4656 \fB\fBstp_edge\fR\fR
4658 .sp .6
4659 .RS 4n
4660 Enables or disables bridge edge port detection. If set to \fB0\fR (false), the
4661 system assumes that the port is connected to other bridges even if no bridge
4662 PDUs of any type are seen. The default value is \fB1\fR, which detects edge
4663 ports automatically.
4667 .ne 2
4669 \fB\fBstp_p2p\fR\fR
4671 .sp .6
4672 .RS 4n
4673 Sets bridge point-to-point operation mode. Possible values are \fBtrue\fR,
4674 \fBfalse\fR, and \fBauto\fR. When set to \fBauto\fR, point-to-point connections
4675 are automatically discovered. When set to \fBtrue\fR, the port mode is forced
4676 to use point-to-point. When set to \fBfalse\fR, the port mode is forced to use
4677 normal multipoint mode. The default value is \fBauto\fR.
4681 .ne 2
4683 \fB\fBstp_mcheck\fR\fR
4685 .sp .6
4686 .RS 4n
4687 Triggers the system to run the RSTP \fBForce BPDU Migration Check\fR procedure
4688 on this link. The procedure is triggered by setting the property value to
4689 \fB1\fR. The property is automatically reset back to \fB0\fR. This value cannot
4690 be set unless the following are true:
4691 .RS +4
4693 .ie t \(bu
4694 .el o
4695 The link is bridged
4697 .RS +4
4699 .ie t \(bu
4700 .el o
4701 The bridge is protected by Spanning Tree
4703 .RS +4
4705 .ie t \(bu
4706 .el o
4707 The bridge \fBforce-protocol\fR value is at least 2 (RSTP)
4709 The default value is 0.
4713 .ne 2
4715 \fB\fBzone\fR\fR
4717 .sp .6
4718 .RS 4n
4719 Specifies the zone to which the link belongs. This property can be modified
4720 only temporarily through \fBdladm\fR, and thus the \fB-t\fR option must be
4721 specified. To modify the zone assignment such that it persists across reboots,
4722 please use \fBzonecfg\fR(8). Possible values consist of any exclusive-IP zone
4723 currently running on the system. By default, the zone binding is as per
4724 \fBzonecfg\fR(8).
4727 .SS "Wifi Link Properties"
4729 The following \fBWiFi\fR link properties are supported. Note that the ability
4730 to set a given property to a given value depends on the driver and hardware.
4732 .ne 2
4734 \fB\fBchannel\fR\fR
4736 .sp .6
4737 .RS 4n
4738 Specifies the channel to use. This property can be modified only by certain
4739 \fBWiFi\fR links when in \fBIBSS\fR mode. The default value and allowed range
4740 of values varies by regulatory domain.
4744 .ne 2
4746 \fB\fBpowermode\fR\fR
4748 .sp .6
4749 .RS 4n
4750 Specifies the power management mode of the \fBWiFi\fR link. Possible values are
4751 \fBoff\fR (disable power management), \fBmax\fR (maximum power savings), and
4752 \fBfast\fR (performance-sensitive power management). Default is \fBoff\fR.
4756 .ne 2
4758 \fB\fBradio\fR\fR
4760 .sp .6
4761 .RS 4n
4762 Specifies the radio mode of the \fBWiFi\fR link. Possible values are \fBon\fR
4763 or \fBoff\fR. Default is \fBon\fR.
4767 .ne 2
4769 \fB\fBspeed\fR\fR
4771 .sp .6
4772 .RS 4n
4773 Specifies a fixed speed for the \fBWiFi\fR link, in megabits per second. The
4774 set of possible values depends on the driver and hardware (but is shown by
4775 \fBshow-linkprop\fR); common speeds include 1, 2, 11, and 54. By default, there
4776 is no fixed speed.
4779 .SS "Ethernet Link Properties"
4781 The following MII Properties, as documented in \fBieee802.3\fR(5), are
4782 supported in read-only mode:
4783 .RS +4
4785 .ie t \(bu
4786 .el o
4787 \fBduplex\fR
4789 .RS +4
4791 .ie t \(bu
4792 .el o
4793 \fBstate\fR
4795 .RS +4
4797 .ie t \(bu
4798 .el o
4799 \fBadv_autoneg_cap\fR
4801 .RS +4
4803 .ie t \(bu
4804 .el o
4805 \fBadv_10gfdx_cap\fR
4807 .RS +4
4809 .ie t \(bu
4810 .el o
4811 \fBadv_1000fdx_cap\fR
4813 .RS +4
4815 .ie t \(bu
4816 .el o
4817 \fBadv_1000hdx_cap\fR
4819 .RS +4
4821 .ie t \(bu
4822 .el o
4823 \fBadv_100fdx_cap\fR
4825 .RS +4
4827 .ie t \(bu
4828 .el o
4829 \fBadv_100hdx_cap\fR
4831 .RS +4
4833 .ie t \(bu
4834 .el o
4835 \fBadv_10fdx_cap\fR
4837 .RS +4
4839 .ie t \(bu
4840 .el o
4841 \fBadv_10hdx_cap\fR
4845 Each \fBadv_\fR property (for example, \fBadv_10fdx_cap\fR) also has a
4846 read/write counterpart \fBen_\fR property (for example, \fBen_10fdx_cap\fR)
4847 controlling parameters used at auto-negotiation. In the absence of Power
4848 Management, the \fBadv\fR* speed/duplex parameters provide the values that are
4849 both negotiated and currently effective in hardware. However, with Power
4850 Management enabled, the speed/duplex capabilities currently exposed in hardware
4851 might be a subset of the set of bits that were used in initial link parameter
4852 negotiation. Thus the MII \fBadv_\fR* parameters are marked read-only, with an
4853 additional set of \fBen_\fR* parameters for configuring speed and duplex
4854 properties at initial negotiation.
4857 Note that the \fBadv_autoneg_cap\fR does not have an \fBen_autoneg_cap\fR
4858 counterpart: the \fBadv_autoneg_cap\fR is a 0/1 switch that turns off/on
4859 auto-negotiation itself, and therefore cannot be impacted by Power Management.
4862 In addition, the following Ethernet properties are reported:
4864 .ne 2
4866 \fB\fBspeed\fR\fR
4868 .sp .6
4869 .RS 4n
4870 (read-only) The operating speed of the device, in Mbps.
4874 .ne 2
4876 \fB\fBmtu\fR\fR
4878 .sp .6
4879 .RS 4n
4880 The maximum client SDU (Send Data Unit) supported by the device. Valid range is
4881 68-65536.
4885 .ne 2
4887 \fB\fBflowctrl\fR\fR
4889 .sp .6
4890 .RS 4n
4891 Establishes flow-control modes that will be advertised by the device. Valid
4892 input is one of:
4894 .ne 2
4896 \fB\fBno\fR\fR
4898 .sp .6
4899 .RS 4n
4900 No flow control enabled.
4904 .ne 2
4906 \fB\fBrx\fR\fR
4908 .sp .6
4909 .RS 4n
4910 Receive, and act upon incoming pause frames.
4914 .ne 2
4916 \fB\fBtx\fR\fR
4918 .sp .6
4919 .RS 4n
4920 Transmit pause frames to the peer when congestion occurs, but ignore received
4921 pause frames.
4925 .ne 2
4927 \fB\fBbi\fR\fR
4929 .sp .6
4930 .RS 4n
4931 Bidirectional flow control.
4934 Note that the actual settings for this value are constrained by the
4935 capabilities allowed by the device and the link partner.
4939 .ne 2
4941 \fB\fBsecondary-macs\fR\fR
4943 .sp .6
4944 .RS 4n
4945 A comma-separated list of additional MAC addresses that are allowed on the
4946 interface.
4950 .ne 2
4952 \fB\fBtagmode\fR\fR
4954 .sp .6
4955 .RS 4n
4956 This link property controls the conditions in which 802.1Q VLAN tags will be
4957 inserted in packets being transmitted on the link. Two mode values can be
4958 assigned to this property:
4960 .ne 2
4962 \fB\fBnormal\fR\fR
4964 .RS 12n
4965 Insert a VLAN tag in outgoing packets under the following conditions:
4966 .RS +4
4968 .ie t \(bu
4969 .el o
4970 The packet belongs to a VLAN.
4972 .RS +4
4974 .ie t \(bu
4975 .el o
4976 The user requested priority tagging.
4981 .ne 2
4983 \fB\fBvlanonly\fR\fR
4985 .RS 12n
4986 Insert a VLAN tag only when the outgoing packet belongs to a VLAN. If a tag is
4987 being inserted in this mode and the user has also requested a non-zero
4988 priority, the priority is honored and included in the VLAN tag.
4991 The default value is \fBvlanonly\fR.
4994 .SS "IP Tunnel Link Properties"
4996 The following IP tunnel link properties are supported.
4998 .ne 2
5000 \fB\fBhoplimit\fR\fR
5002 .sp .6
5003 .RS 4n
5004 Specifies the IPv4 TTL or IPv6 hop limit for the encapsulating outer IP header
5005 of a tunnel link. This property exists for all tunnel types. The default value
5006 is 64.
5010 .ne 2
5012 \fB\fBencaplimit\fR\fR
5014 .sp .6
5015 .RS 4n
5016 Specifies the IPv6 encapsulation limit for an IPv6 tunnel as defined in RFC
5017 2473. This value is the tunnel nesting limit for a given tunneled packet. The
5018 default value is 4. A value of 0 disables the encapsulation limit.
5021 .SH EXAMPLES
5023 \fBExample 1 \fRConfiguring an Aggregation
5026 To configure a data-link over an aggregation of devices \fBbge0\fR and
5027 \fBbge1\fR with key 1, enter the following command:
5030 .in +2
5032 # \fBdladm create-aggr -d bge0 -d bge1 1\fR
5034 .in -2
5038 \fBExample 2 \fRConnecting to a WiFi Link
5041 To connect to the most optimal available unsecured network on a system with a
5042 single \fBWiFi\fR link (as per the prioritization rules specified for
5043 \fBconnect-wifi\fR), enter the following command:
5046 .in +2
5048 # \fBdladm connect-wifi\fR
5050 .in -2
5054 \fBExample 3 \fRCreating a WiFi Key
5057 To interactively create the \fBWEP\fR key \fBmykey\fR, enter the following
5058 command:
5061 .in +2
5063 # \fBdladm create-secobj -c wep mykey\fR
5065 .in -2
5070 Alternatively, to non-interactively create the \fBWEP\fR key \fBmykey\fR using
5071 the contents of a file:
5074 .in +2
5076 # \fBumask 077\fR
5077  # \fBcat >/tmp/mykey.$$ <<EOF\fR
5078  \fB12345\fR
5079  \fBEOF\fR
5080  # \fBdladm create-secobj -c wep -f /tmp/mykey.$$ mykey\fR
5081  # \fBrm /tmp/mykey.$$\fR
5083 .in -2
5087 \fBExample 4 \fRConnecting to a Specified Encrypted WiFi Link
5090 To use key \fBmykey\fR to connect to \fBESSID\fR \fBwlan\fR on link \fBath0\fR,
5091 enter the following command:
5094 .in +2
5096 # \fBdladm connect-wifi -k mykey -e wlan ath0\fR
5098 .in -2
5102 \fBExample 5 \fRChanging a Link Property
5105 To set \fBpowermode\fR to the value \fBfast\fR on link \fBpcwl0\fR, enter the
5106 following command:
5109 .in +2
5111 # \fBdladm set-linkprop -p powermode=fast pcwl0\fR
5113 .in -2
5117 \fBExample 6 \fRConnecting to a WPA-Protected WiFi Link
5120 Create a WPA key \fBpsk\fR and enter the following command:
5123 .in +2
5125 # \fBdladm create-secobj -c wpa psk\fR
5127 .in -2
5132 To then use key \fBpsk\fR to connect to ESSID \fBwlan\fR on link \fBath0\fR,
5133 enter the following command:
5136 .in +2
5138 # \fBdladm connect-wifi -k psk -e wlan ath0\fR
5140 .in -2
5144 \fBExample 7 \fRRenaming a Link
5147 To rename the \fBbge0\fR link to \fBmgmt0\fR, enter the following command:
5150 .in +2
5152 # \fBdladm rename-link bge0 mgmt0\fR
5154 .in -2
5158 \fBExample 8 \fRReplacing a Network Card
5161 Consider that the \fBbge0\fR device, whose link was named \fBmgmt0\fR as shown
5162 in the previous example, needs to be replaced with a \fBce0\fR device because
5163 of a hardware failure. The \fBbge0\fR NIC is physically removed, and replaced
5164 with a new \fBce0\fR NIC. To associate the newly added \fBce0\fR device with
5165 the \fBmgmt0\fR configuration previously associated with \fBbge0\fR, enter the
5166 following command:
5169 .in +2
5171 # \fBdladm rename-link ce0 mgmt0\fR
5173 .in -2
5177 \fBExample 9 \fRRemoving a Network Card
5180 Suppose that in the previous example, the intent is not to replace the
5181 \fBbge0\fR NIC with another NIC, but rather to remove and not replace the
5182 hardware. In that case, the \fBmgmt0\fR datalink configuration is not slated to
5183 be associated with a different physical device as shown in the previous
5184 example, but needs to be deleted. Enter the following command to delete the
5185 datalink configuration associated with the \fBmgmt0\fR datalink, whose physical
5186 hardware (\fBbge0\fR in this case) has been removed:
5189 .in +2
5191 # \fBdladm delete-phys mgmt0\fR
5193 .in -2
5197 \fBExample 10 \fRUsing Parsable Output to Capture a Single Field
5200 The following assignment saves the MTU of link \fBnet0\fR to a variable named
5201 \fBmtu\fR.
5204 .in +2
5206 # \fBmtu=`dladm show-link -p -o mtu net0`\fR
5208 .in -2
5212 \fBExample 11 \fRUsing Parsable Output to Iterate over Links
5215 The following script displays the state of each link on the system.
5218 .in +2
5220 # \fBdladm show-link -p -o link,state | while IFS=: read link state; do
5221             print "Link $link is in state $state"
5222         done\fR
5224 .in -2
5228 \fBExample 12 \fRConfiguring VNICs
5231 Create two VNICs with names \fBhello0\fR and \fBtest1\fR over a single physical
5232 link \fBbge0\fR:
5235 .in +2
5237 # \fBdladm create-vnic -l bge0 hello0\fR
5238 # \fBdladm create-vnic -l bge0 test1\fR
5240 .in -2
5244 \fBExample 13 \fRConfiguring VNICs and Allocating Bandwidth and Priority
5247 Create two VNICs with names \fBhello0\fR and \fBtest1\fR over a single physical
5248 link \fBbge0\fR and make \fBhello0\fR a high priority VNIC with a
5249 factory-assigned MAC address with a maximum bandwidth of 50 Mbps. Make
5250 \fBtest1\fR a low priority VNIC with a random MAC address and a maximum
5251 bandwidth of 100Mbps.
5254 .in +2
5256 # \fBdladm create-vnic -l bge0 -m factory -p maxbw=50,priority=high hello0\fR
5257 # \fBdladm create-vnic -l bge0 -m random -p maxbw=100M,priority=low test1\fR
5259 .in -2
5263 \fBExample 14 \fRConfiguring a VNIC with a Factory MAC Address
5266 First, list the available factory MAC addresses and choose one of them:
5269 .in +2
5271 # \fBdladm show-phys -m bge0\fR
5272 LINK            SLOT         ADDRESS              INUSE    CLIENT
5273 bge0            primary      0:e0:81:27:d4:47     yes      bge0
5274 bge0            1            8:0:20:fe:4e:a5      no
5275 bge0            2            8:0:20:fe:4e:a6      no
5276 bge0            3            8:0:20:fe:4e:a7      no
5278 .in -2
5283 Create a VNIC named \fBhello0\fR and use slot 1's address:
5286 .in +2
5288 # \fBdladm create-vnic -l bge0 -m factory -n 1 hello0\fR
5289 # \fBdladm show-phys -m bge0\fR
5290 LINK            SLOT         ADDRESS              INUSE    CLIENT
5291 bge0            primary      0:e0:81:27:d4:47     yes      bge0
5292 bge0            1            8:0:20:fe:4e:a5      yes      hello0
5293 bge0            2            8:0:20:fe:4e:a6      no
5294 bge0            3            8:0:20:fe:4e:a7      no
5296 .in -2
5300 \fBExample 15 \fRCreating a VNIC with User-Specified MAC Address, Binding it to
5301 Set of Processors
5304 Create a VNIC with name \fBhello0\fR, with a user specified MAC address, and a
5305 processor binding \fB0, 1, 2, 3\fR.
5308 .in +2
5310 # \fBdladm create-vnic -l bge0 -m 8:0:20:fe:4e:b8 -p cpus=0,1,2,3 hello0\fR
5312 .in -2
5316 \fBExample 16 \fRCreating a Virtual Network Without a Physical NIC
5319 First, create an etherstub with name \fBstub1\fR:
5322 .in +2
5324 # \fBdladm create-etherstub stub1\fR
5326 .in -2
5331 Create two VNICs with names \fBhello0\fR and \fBtest1\fR on the etherstub. This
5332 operation implicitly creates a virtual switch connecting \fBhello0\fR and
5333 \fBtest1\fR.
5336 .in +2
5338 # \fBdladm create-vnic -l stub1 hello0\fR
5339 # \fBdladm create-vnic -l stub1 test1\fR
5341 .in -2
5345 \fBExample 17 \fRShowing Network Usage
5348 Network usage statistics can be stored using the extended accounting facility,
5349 \fBacctadm\fR(8).
5352 .in +2
5354 # \fBacctadm -e basic -f /var/log/net.log net\fR
5355 # \fBacctadm net\fR
5356           Network accounting: active
5357      Network accounting file: /var/log/net.log
5358    Tracked Network resources: basic
5359  Untracked Network resources: src_ip,dst_ip,src_port,dst_port,protocol,
5360                               dsfield
5362 .in -2
5367 The saved historical data can be retrieved in summary form using the
5368 \fBshow-usage\fR subcommand:
5371 .in +2
5373 # \fBdladm show-usage -f /var/log/net.log\fR
5374 LINK      DURATION  IPACKETS RBYTES      OPACKETS OBYTES      BANDWIDTH
5375 e1000g0   80        1031     546908      0        0           2.44 Kbps
5377 .in -2
5381 \fBExample 18 \fRDisplaying Bridge Information
5384 The following commands use the \fBshow-bridge\fR subcommand with no and various
5385 options.
5388 .in +2
5390 # \fBdladm show-bridge\fR
5391 BRIDGE       PROTECT ADDRESS           PRIORITY DESROOT
5392 foo          stp     32768/8:0:20:bf:f 32768    8192/0:d0:0:76:14:38
5393 bar          stp     32768/8:0:20:e5:8 32768    8192/0:d0:0:76:14:38
5395 # \fBdladm show-bridge -l foo\fR
5396 LINK         STATE        UPTIME   DESROOT
5397 hme0         forwarding   117      8192/0:d0:0:76:14:38
5398 qfe1         forwarding   117      8192/0:d0:0:76:14:38
5400 # \fBdladm show-bridge -s foo\fR
5401 BRIDGE       DROPS        FORWARDS
5402 foo          0            302
5404 # \fBdladm show-bridge -ls foo\fR
5405 LINK         DROPS     RECV      XMIT
5406 hme0         0         360832    31797
5407 qfe1         0         322311    356852
5409 # \fBdladm show-bridge -f foo\fR
5410 DEST              AGE     FLAGS  OUTPUT
5411 8:0:20:bc:a7:dc   10.860  --     hme0
5412 8:0:20:bf:f9:69   --      L      hme0
5413 8:0:20:c0:20:26   17.420  --     hme0
5414 8:0:20:e5:86:11   --      L      qfe1
5416 .in -2
5420 \fBExample 19 \fRCreating an IPv4 Tunnel
5423 The following sequence of commands creates and then displays a persistent IPv4
5424 tunnel link named \fBmytunnel0\fR between 66.1.2.3 and 192.4.5.6:
5427 .in +2
5429 # \fBdladm create-iptun -T ipv4 -s 66.1.2.3 -d 192.4.5.6 mytunnel0\fR
5430 # \fBdladm show-iptun mytunnel0\fR
5431 LINK            TYPE  FLAGS  SOURCE              DESTINATION
5432 mytunnel0       ipv4  --     66.1.2.3            192.4.5.6
5434 .in -2
5439 A point-to-point IP interface can then be created over this tunnel link:
5442 .in +2
5444 # \fBifconfig mytunnel0 plumb 10.1.0.1 10.1.0.2 up\fR
5446 .in -2
5451 As with any other IP interface, configuration persistence for this IP interface
5452 is achieved by placing the desired \fBifconfig\fR commands (in this case, the
5453 command for "\fB10.1.0.1 10.1.0.2\fR") into \fB/etc/hostname.mytunnel0\fR.
5456 \fBExample 20 \fRCreating a 6to4 Tunnel
5459 The following command creates a 6to4 tunnel link. The IPv4 address of the 6to4
5460 router is 75.10.11.12.
5463 .in +2
5465 # \fBdladm create-iptun -T 6to4 -s 75.10.11.12 sitetunnel0\fR
5466 # \fBdladm show-iptun sitetunnel0\fR
5467 LINK            TYPE  FLAGS  SOURCE              DESTINATION
5468 sitetunnel0     6to4  --     75.10.11.12         --
5470 .in -2
5475 The following command plumbs an IPv6 interface on this tunnel:
5478 .in +2
5480 # \fBifconfig sitetunnel0 inet6 plumb up\fR
5481 # \fBifconfig sitetunnel0 inet6\fR
5482 sitetunnel0: flags=2200041 <UP,RUNNING,NONUD,IPv6> mtu 65515 index 3
5483         inet tunnel src 75.10.11.12
5484         tunnel hop limit 64
5485         inet6 2002:4b0a:b0c::1/16
5487 .in -2
5492 Note that the system automatically configures the IPv6 address on the 6to4 IP
5493 interface. See \fBifconfig\fR(8) for a description of how IPv6 addresses are
5494 configured on 6to4 tunnel links.
5496 .SH ATTRIBUTES
5498 See \fBattributes\fR(5) for descriptions of the following attributes:
5501 \fB/usr/sbin\fR
5506 box;
5507 c | c
5508 l | l .
5509 ATTRIBUTE TYPE  ATTRIBUTE VALUE
5511 Interface Stability     Committed
5516 \fB/sbin\fR
5521 box;
5522 c | c
5523 l | l .
5524 ATTRIBUTE TYPE  ATTRIBUTE VALUE
5526 Interface Stability     Committed
5529 .SH SEE ALSO
5531 \fBacctadm\fR(8), \fBautopush\fR(8), \fBifconfig\fR(8), \fBipsecconf\fR(8),
5532 \fBndd\fR(8), \fBpsrset\fR(8), \fBwpad\fR(8), \fBzonecfg\fR(8),
5533 \fBattributes\fR(5), \fBieee802.3\fR(5), \fBdlpi\fR(7P)
5534 .SH NOTES
5536 The preferred method of referring to an aggregation in the aggregation
5537 subcommands is by its link name. Referring to an aggregation by its integer
5538 \fIkey\fR is supported for backward compatibility, but is not necessary. When
5539 creating an aggregation, if a \fIkey\fR is specified instead of a link name,
5540 the aggregation's link name will be automatically generated by \fBdladm\fR as
5541 \fBaggr\fR\fIkey\fR.