Print this page
NEX-1785 Add IPMP related subcommands to ipadm(1M) man page
Reviewed by: Dan Fields <dan.fields@nexenta.com>
NEX-3369 Restore mdoc version of ipadm(1M) man page
Fix up some merges where we wanted the upstream version.
re #11755 rb4066 Cert Bug 11518 I/O requests are not aligned with 4096 disk sector size
re #12661 rb4067 Need ipadm(1M) man page

@@ -17,31 +17,51 @@
 .Dd February 6, 2018
 .Dt IPADM 1M
 .Os
 .Sh NAME
 .Nm ipadm
-.Nd configure IP interfaces, addresses and protocols
+.Nd configure IP and IPMP interfaces, addresses and protocols
 .Sh SYNOPSIS
 .Nm
-.Ic create-if
+.Ic create-ip
 .Op Fl t
 .Ar interface
 .Nm
+.Ic delete-ip
+.Ar interface
+.Pp
+.Nm
+.Ic create-ipmp
+.Op Fl t
+.Ar ipmp-interface
+.Nm
+.Ic delete-ipmp
+.Ar ipmp-interface
+.Nm
+.Ic add-ipmp
+.Op Fl t
+.Fl i Ar interface No ...
+.Ar ipmp-interface
+.Nm
+.Ic remove-ipmp
+.Op Fl t
+.Fl i Ar interface No ...
+.Ar ipmp-interface
+.Pp
+.Nm
 .Ic disable-if
 .Fl t
 .Ar interface
 .Nm
 .Ic enable-if
 .Fl t
 .Ar interface
 .Nm
-.Ic delete-if
-.Ar interface
-.Nm
 .Ic show-if
 .Op Oo Fl p Oc Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
 .Op Ar interface
+.Pp
 .Nm
 .Ic set-ifprop
 .Op Fl t
 .Fl p Ar prop Ns = Ns Ar value Ns Oo , Ns Ar value Oc Ns ...
 .Fl m Ar protocol

@@ -56,10 +76,11 @@
 .Ic show-ifprop
 .Op Oo Fl c Oc Fl o Ar field Ns Oo , Ns Ar value Oc Ns ...
 .Op Fl p Ar prop Ns Oo , Ns Ar prop Oc Ns ...
 .Op Fl m Ar protocol
 .Op Ar interface
+.Pp
 .Nm
 .Ic create-addr
 .Op Fl t
 .Fl T Cm static
 .Op Fl d

@@ -81,10 +102,22 @@
 .Op Fl i Ar interface-id
 .Oo Fl p Bro Cm stateful Ns | Ns Cm stateless Brc Ns = Ns
 .Bro Cm yes Ns | Ns Cm no Brc Oc Ns ...
 .Ar addrobj
 .Nm
+.Ic delete-addr
+.Op Fl r
+.Ar addrobj
+.Nm
+.Ic show-addr
+.Op Oo Fl p Oc Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
+.Op Ar addrobj
+.Nm
+.Ic refresh-addr
+.Op Fl i
+.Ar addrobj
+.Nm
 .Ic down-addr
 .Op Fl t
 .Ar addrobj
 .Nm
 .Ic up-addr

@@ -96,23 +129,12 @@
 .Ar addrobj
 .Nm
 .Ic enable-addr
 .Op Fl t
 .Ar addrobj
+.Pp
 .Nm
-.Ic refresh-addr
-.Op Fl i
-.Ar addrobj
-.Nm
-.Ic delete-addr
-.Op Fl r
-.Ar addrobj
-.Nm
-.Ic show-addr
-.Op Oo Fl p Oc Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
-.Op Ar addrobj
-.Nm
 .Ic set-addrprop
 .Op Fl t
 .Fl p Ar prop Ns = Ns Ar value Ns Oo , Ns Ar value Oc Ns ...
 .Ar addrobj
 .Nm

@@ -123,10 +145,11 @@
 .Nm
 .Ic show-addrprop
 .Op Oo Fl c Oc Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
 .Op Fl p Ar prop Ns Oo , Ns Ar prop Oc Ns ...
 .Op Ar addrobj
+.Pp
 .Nm
 .Ic set-prop
 .Op Fl t
 .Fl p Ar prop Ns Oo Cm + Ns | Ns Cm - Oc Ns = Ns
 .Ar value Ns Oo , Ns Ar value Oc Ns ...

@@ -156,11 +179,11 @@
 .Pp
 For subcommands that take an
 .Em addrobj ,
 the
 .Em addrobj
-specifies a unique address on the system.
+specifies unique address on the system.
 It is made up of two parts, delimited by a
 .Sq / .
 The first part is the name of the interface and the second part is a string up
 to 32 characters long.
 For example,

@@ -177,30 +200,90 @@
 .Cm ipv6 ,
 .Cm icmp ,
 .Cm tcp ,
 .Cm sctp
 or
-.Cm udp .
+.Cm udp.
 .Sh SUBCOMMANDS
 The following subcommands are supported:
 .Bl -tag -width Ds
 .It Xo
 .Nm
-.Ic create-if
+.Ic create-ip
 .Op Fl t
 .Ar interface
 .Xc
-Create an IP interface that will handle both IPv4 and IPv6 packets.
+Create the IP interface that will handle both IPv4 and IPv6 packets.
 The interface will be enabled as part of the creation process.
 The IPv4 interface will have the address 0.0.0.0.
 The IPv6 interface will have the address ::.
 .Bl -tag -width Ds
 .It Fl t Ns \&, Ns Fl -temporary
 Temporary, not persistent across reboots.
 .El
 .It Xo
 .Nm
+.Ic delete-ip
+.Ar interface
+.Xc
+Permanently delete the specified IP interface.
+.It Xo
+.Nm
+.Ic create-ipmp
+.Op Fl t
+.Ar ipmp-interface
+.Xc
+Create the IPMP interface that will handle both IPv4 and IPv6 packets.
+The interface will be enabled as part of the creation process.
+The IPv4 interface will have the address 0.0.0.0.
+The IPv6 interface will have the adress ::.
+.Bl -tag -width Ds
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
+.Ic delete-ipmp
+.Ar ipmp-interface
+.Xc
+Permanently delete the IPMP interface.
+.It Xo
+.Nm
+.Ic add-ipmp
+.Op Fl t
+.Fl i Ar interface No ...
+.Ar ipmp-interface
+.Xc
+Add the IP interface(s) to the IPMP interface (group).
+.Bl -tag -width ""
+.It Fl i Ns \&, Ns Fl -interface
+Interface to be added to the IPMP interface (group).
+More than one
+.Fl i
+option can be specified.
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
+.Ic remove-ipmp
+.Op Fl t
+.Fl i Ar interface No ...
+.Ar ipmp-interface
+.Xc
+Remove the IP interface(s) from the IPMP interface (group).
+.Bl -tag -width ""
+.It Fl i Ns \&, Ns Fl -interface
+Interface to be removed from the IPMP interface (group).
+More than one
+.Fl i
+option can be specified.
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
 .Ic disable-if
 .Fl t
 .Ar interface
 .Xc
 Disable the specified IP interface.

@@ -219,16 +302,10 @@
 .It Fl t Ns \&, Ns Fl -temporary
 Temporary, not persistent across reboots.
 .El
 .It Xo
 .Nm
-.Ic delete-if
-.Ar interface
-.Xc
-Permanently delete the specified IP interface.
-.It Xo
-.Nm
 .Ic show-if
 .Op Oo Fl p Oc Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
 .Op Ar interface
 .Xc
 Show the current IP interface configuration.

@@ -294,11 +371,11 @@
 .It Sy 6
 IPv6
 .El
 .El
 .It Fl p Ns \&, Ns Fl -parsable
-Print the output in a parsable format.
+Print the output in parsable format.
 .El
 .It Xo
 .Nm
 .Ic set-ifprop
 .Op Fl t

@@ -369,11 +446,11 @@
 .Op Ar interface
 .Xc
 Display the property values for one or all of the IP interfaces.
 .Bl -tag -width Ds
 .It Fl c Ns \&, Ns Fl -parsable
-Print the output in a parsable format.
+Print the output in parsable format.
 .It Fl m Ns \&, Ns Fl -module
 Specify which protocol to display.
 .It Fl o Ns \&, Ns Fl -output
 Select which fields will be shown.
 The field value can be one of the following names:

@@ -420,11 +497,11 @@
 The address will be enabled but can disabled using the
 .Nm ipadm Ic disable-addr
 subcommand.
 Note that
 .Cm addrconf
-address configured on an interface is required to configure
+address configured on the interface is required to configure
 .Cm static
 IPv6 address on the same interface.
 This takes the following options:
 .Bl -tag -width Ds
 .It Fl a Ns \&, Ns Fl -address

@@ -507,72 +584,10 @@
 .It Fl t Ns \&, Ns Fl -temporary
 Temporary, not persistent across reboots.
 .El
 .It Xo
 .Nm
-.Ic down-addr
-.Op Fl t
-.Ar addrobj
-.Xc
-Down the address.
-This will stop packets from being sent or received.
-.Bl -tag -width Ds
-.It Fl t Ns \&, Ns Fl -temporary
-Temporary, not persistent across reboots.
-.El
-.It Xo
-.Nm
-.Ic up-addr
-.Op Fl t
-.Ar addrobj
-.Xc
-Up the address.
-This will enable packets to be sent and received.
-.Bl -tag -width Ds
-.It Fl t Ns \&, Ns Fl -temporary
-Temporary, not persistent across reboots.
-.El
-.It Xo
-.Nm
-.Ic disable-addr
-.Op Fl t
-.Ar addrobj
-.Xc
-Disable the address.
-.Bl -tag -width Ds
-.It Fl t Ns \&, Ns Fl -temporary
-Temporary, not persistent across reboots.
-.El
-.It Xo
-.Nm
-.Ic enable-addr
-.Op Fl t
-.Ar addrobj
-.Xc
-Enable the address.
-.Bl -tag -width Ds
-.It Fl t Ns \&, Ns Fl -temporary
-Temporary, not persistent across reboots.
-.El
-.It Xo
-.Nm
-.Ic refresh-addr
-.Op Fl i
-.Ar addrobj
-.Xc
-Extend the lease for
-.Sy DHCP
-addresses.
-It also restarts duplicate address detection for
-.Cm static
-addresses.
-.Bl -tag -width Ds
-.It Fl i Ns \&, Ns Fl -inform
-Obtain network configuration from DHCP without taking a lease on the address.
-.El
-.It Xo
-.Nm
 .Ic delete-addr
 .Op Fl r
 .Ar addrobj
 .Xc
 Delete the given address.

@@ -610,11 +625,11 @@
 .It Sy down
 see the
 .Nm ipadm Ic down-addr
 subcommand
 .It Sy duplicate
-the address is a duplicate
+the address is duplicate
 .It Sy inaccessible
 the interface for this address has failed
 .It Sy ok
 the address is up
 .It Sy tentative

@@ -650,14 +665,76 @@
 .El
 .It Cm ADDR
 The address.
 .El
 .It Fl p Ns \&, Ns Fl -parsable
-Print the output in a parsable format.
+Print the output in parsable format.
 .El
 .It Xo
 .Nm
+.Ic refresh-addr
+.Op Fl i
+.Ar addrobj
+.Xc
+Extend the lease for
+.Sy DHCP
+addresses.
+It also restarts duplicate address detection for
+.Cm static
+addresses.
+.Bl -tag -width ""
+.It Fl i Ns \&, Ns Fl -inform
+Obtain network configuration from DHCP without taking a lease on the address.
+.El
+.It Xo
+.Nm
+.Ic down-addr
+.Op Fl t
+.Ar addrobj
+.Xc
+Down the address.
+This will stop packets from being sent or received.
+.Bl -tag -width ""
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
+.Ic up-addr
+.Op Fl t
+.Ar addrobj
+.Xc
+Up the address.
+This will enable packets to be sent and received.
+.Bl -tag -width ""
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
+.Ic disable-addr
+.Op Fl t
+.Ar addrobj
+.Xc
+Disable the address.
+.Bl -tag -width ""
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
+.Ic enable-addr
+.Op Fl t
+.Ar addrobj
+.Xc
+Enable the address.
+.Bl -tag -width ""
+.It Fl t Ns \&, Ns Fl -temporary
+Temporary, not persistent across reboots.
+.El
+.It Xo
+.Nm
 .Ic set-addrprop
 .Op Fl t
 .Fl p Ar prop Ns = Ns Ar value Ns Oo , Ns Ar value Oc Ns ...
 .Ar addrobj
 .Xc

@@ -726,11 +803,11 @@
 .Op Ar addrobj
 .Xc
 Display the property values for one or all of the addrobjs.
 .Bl -tag -width Ds
 .It Fl c Ns \&, Ns Fl -parsable
-Print the output in a parsable format.
+Print the output in parsable format.
 .It Fl o Ns \&, Ns Fl -output
 Select which fields will be shown.
 The field value can be one of the following names:
 .Bl -tag -compact -width "PERSISTENT"
 .It Cm ALL

@@ -758,10 +835,11 @@
 See the
 .Nm ipadm Ic set-addrprop
 subcommand for the list of property names.
 .El
 .It Xo
+.Nm
 .Ic set-prop
 .Op Fl t
 .Fl p Ar prop Ns Oo Cm + Ns | Ns Cm - Oc Ns = Ns
 .Ar value Ns Oo , Ns Ar value Oc Ns ...
 .Ar protocol

@@ -852,11 +930,11 @@
 .Op Ar protocol
 .Xc
 Display the property values for one or all of the protocols.
 .Bl -tag -width Ds
 .It Fl c Ns \&, Ns Fl -parsable
-Print the output in a parsable format.
+Print the output in parsable format.
 .It Fl o Ns \&, Ns Fl -output
 Select which fields will be shown.
 The field value can be one of the following names:
 .Bl -tag -compact -width "PERSISTENT"
 .It Cm ALL