based on nickebo.net
root@solaris:~# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 net0: flags=100001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,PHYSRUNNING> mtu 1500 index 2 inet 192.168.1.15 netmask ffffff00 broadcast 192.168.1.255 ether d8:d3:85:af:80:6d lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 net0: flags=120002004841<UP,RUNNING,MULTICAST,DHCP,IPv6,PHYSRUNNING> mtu 1500 index 2 inet6 fe80::dad3:85ff:feaf:806d/10 ether d8:d3:85:af:80:6d
see that net0 assigned IP by DHCP
root@solaris:~# netcfg netcfg> create ncp tib netcfg:ncp:tib> create ncu phys net0 Created ncu 'net0'. Walking properties ... activation-mode (manual) [manual|prioritized]> prioritized priority-group> 0 priority-mode [exclusive|shared|all]> shared mac-address> autopush> mtu> netcfg:ncp:tib:ncu:net0> end Committed changes netcfg:ncp:tib> create ncu ip net0 Created ncu 'net0'. Walking properties ... ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4 ipv4-addrsrc [dhcp|static]> static ipv4-addr> 192.168.1.2 ipv4-default-route> 192.168.1.1 netcfg:ncp:tib:ncu:net0> end Committed changes root@solaris:~# netadm list -x TYPE PROFILE STATE AUXILIARY STATE ncp Automatic online active ncu:phys net0 online interface/link is up ncu:ip net0 online interface/link is up ncp DefaultFixed disabled disabled by administrator ncp tib disabled disabled by administrator loc Automatic online active loc NoNet offline conditions for activation are unmet loc DefaultFixed offline conditions for activation are unmet root@solaris:~# netadm enable -p ncp tib Enabling ncp 'tib'
ssh connection lost…..
create new and:
root@solaris:~# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 3 inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255 ether d8:d3:85:af:80:6d lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128
also great post by insanum with more theory and practice