Solaris 11 manual network configuration
From b0rken.org
Switch from fully automatic network configuration profile to manual
# netadm enable -p ncp DefaultFixed
Create IP address for interface
# ipadm create-ip net0 # ipadm create-addr -T static -a 192.168.0.4/24 net0/v4static
Set persistent default route
# route -p add default 192.168.0.1
/etc/resolv.conf and /etc/nsswitch.conf are now automatically generated for backwards compatibility by the respective services, svc:/network/dns/client and svc:/system/name-service/switch. Any manual edits to these files will be lost. To change the configuration, the service properties must be modified.
# svccfg
svc:> select dns/client
svc:/network/dns/client> setprop config/search = astring: \
("us.company.com" "eu.company.com" "companya.com" "companyb.com" "company.com" )
svc:/network/dns/client> setprop config/nameserver = net_address: \
( 138.2.202.15 138.2.202.25 )
svc:/network/dns/client> select dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> validate
svc:/network/dns/client:default> select name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch> select system/name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> validate
svc:/system/name-service/switch:default>
# svcadm enable dns/client
# svcadm refresh name-service/switch
# grep host /etc/nsswitch.conf
hosts: files dns
# cat /etc/resolv.conf
#
# opyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#
#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
# See resolv.conf(4) for details.
search us.company.com eu.company.com companya.com companyb.com company.com
nameserver 138.2.202.15
nameserver 138.2.202.25
http://www.oracle.com/technetwork/articles/servers-storage-admin/s11exrepositoriesalta-187967.pdf