Configuring Network Interfaces
Use the sysconfig create-profile command with the
network grouping to generate a valid profile that configures the
network. This command will start the SCI Tool, which will prompt you for the information
needed to configure an interface.
# sysconfig create-profile -g network -o sc_network.xml
The svc:/network/install SMF service configures an initial physical
network interface. This service is initially disabled with property values that do not
result in any system configuration.
Note -
If the installation target is an iSCSI device, do not configure that network interface
in any system configuration profile for that installation. For iSCSI boot, the network
interface for the iSCSI device is configured early in the client boot process. If you
configure that same interface again, the network/install service for
the interface goes into maintenance state.
To configure multiple network interfaces, specify the configuration in a script, and use
a run-once SMF service to run the script at first boot. See Chapter 13, Running a Custom Script During First Boot for instructions and a
sample script.
The svc:/network/install service supports multiple IPv4 and IPv6
interfaces and, optionally, a default route reachable by these interfaces. The service
allows you to configure IPv4 and IPv6 interfaces. The service uses its properties and the
ipadm command to configure the network interfaces. Similarly, the
service uses its properties and the route command to define a default
route.
See the examples in Specifying Static Network Configuration.
The install_ipv4_interface property group only
allows one interface to be configured, but the ipv4_interface property
group allows for multiple interfaces to be configured. Both IPv4 property groups contain the
properties listed in the following table.
Table 11-6 Property Group Properties for an IPv4 Network Interface
|
|
|
|
name
|
astring
|
required
|
Name of the network interface.
|
address_type
|
astring
|
required
|
Value used to construct the –T option for the ipadm
create-addr subcommand. Valid values are static or
dhcp.
|
static_address
|
net_address_v4
|
optional
|
Only required with an address_type of
static. Used to construct the local address for the
ipadm create_addr subcommand.
|
dhcp_wait
|
astring
|
optional
|
Only applies with an address_type of
dhcp. If defined, this property is used to construct the
–w
seconds (or forever) portion of the
ipadm create-addr subcommand.
|
default_route
|
net_address_v4
|
optional
|
Used to define a default route using the
routecommand.
# /usr/sbin/route \
-p add default default-route \
-ifp ifname
The value of ifname is the interface name portion
of the name property.
|
|
The install_ipv6_interface property group only allows one
interface to be configured, but the ipv6_interface property group allows
for multiple interfaces to be configured. The property groups for an IPv6 interface contains
the properties listed in the following table.
Table 11-7 Property Group Properties for an IPv6 Network Interface
|
|
|
|
name
|
astring
|
required
|
Name of the network interface.
|
address_type
|
astring
|
required
|
Value used to construct the –T option for the ipadm
create-addr subcommand. Valid values are static or
addrconf.
|
static_address
|
net_address_v6
|
optional
|
Only required with an address_type of
static. Used to construct the local address for the
ipadm create-addr subcommand.
|
interface_id
|
net_address_v6
|
optional
|
Only applies with an address_type of
addrconf. Used to construct the –i
interface_id portion of the ipadm
create-addr subcommand.
|
stateless
|
astring
|
optional
|
Only applies with an address_type of
addrconf. Used to construct the –p
stateless=yes|no portion of the ipadm
create-addr subcommand.
|
stateful
|
astring
|
optional
|
Only applies with an address_type of
addrconf. Used to construct the –p
stateful=yes|no portion of the ipadm
create-addr subcommand.
|
default_route
|
net_address_v6
|
optional
|
Used to define a default route using the route
command.
# /usr/sbin/route \
-p add default default-route \
-ifp ifname
The value of ifname is the interface name portion
of the name property.
|
|