netadm list
netadm enable -p ncp DefaultFixed
## determine which interface
dladm show-phys
## first create the interface
ipadm create-ip net3
## then assign IP v4 addr
## -T = type
## -a = address
ipadm create-addr -T static -a 192.168.0.200/24 net3/v4
## set DNS server
svccfg -s svc:/network/dns/client setprop config/nameserver=192.168.1.254
## check current default gateway
route delete default
or
netstat -rn
## if incorrect, delete current default gateway and set the correct one
## e.g.
route delete default 192.168.8.254
route -p add default 192.168.1.254
|