netstrategy - return network configuration information
The netstrategy command determines the network configuration strategy in use on a system and returns information in a form that is easily consumable by a script. The command returns three tokens:
<root filesystem type> <primary interface> <network config strategy>
These tokens are described as follows:
Type of filesystem that contains the bootable kernel, as would be specified in the fstype column of the mnttab(5).
Name of the primary network interface. If the network config strategy is 'dhcp', then this token is the name of the interface with which the primary dhcp lease is associated. If the network config strategy is not 'dhcp', this token is 'none'.
The means by which a system obtains its IP address for booting. This can be one of dhcp or none.
The netstrategy command is not intended for use on a command line.
The following option is supported:
Includes the IP version of the primary interface as a fourth token. If the primary interface is 'none', then this token will also be 'none'. If the network config strategy is 'dhcp' and the primary interface specified a valid interface, this token will have the value of 'inet' (an IPv4 address is primary) or 'inet6' (and IPv6 address is primary).
An error occurred.
See attributes(7) for descriptions of the following attributes: