Unable to enable ncp

Hi,
can You please advise why I cannot enable ncp below, in Solaris 11?

netcfg> create loc huamin.com
Created loc 'huamin.com'.  Walking properties ...
activation-mode (manual) [manual|conditional-any|conditional-all]> conditional-all
conditions> ncp huamin.com.ncp is active
nameservices (dns) [dns|files|nis|ldap]> dns,nis
nameservices-config-file ("/etc/nsswitch.dns")> /etc/nsswitch.huamin
dns-nameservice-configsrc (dhcp) [manual|dhcp]> manual
dns-nameservice-domain> 
dns-nameservice-servers> 192.168.168.21
dns-nameservice-search> ^Chuamin.com,hummin.com.hk,huamin.com.cn
dns-nameservice-sortlist> 
dns-nameservice-options> 
nis-nameservice-configsrc [manual|dhcp]> manual
nis-nameservice-servers> 192.168.168.21
default-domain> huamin.com
nfsv4-domain> 
ipfilter-config-file> 
ipfilter-v6-config-file> 
ipnat-config-file> 
ippool-config-file> 
ike-config-file> 
ipsecpolicy-config-file> 
netcfg:loc:huamin.com> list
loc:huamin.com
    activation-mode              conditional-all
    conditions                   "ncp huamin.com.ncp is active"
    enabled                      false
    nameservices                 dns,nis
    nameservices-config-file     "/etc/nsswitch.huamin"
    dns-nameservice-configsrc    manual
    dns-nameservice-servers      "192.168.168.21"
    dns-nameservice-search       "huamin.com","hummin.com.hk","huamin.com.cn"
    nis-nameservice-configsrc    manual
    nis-nameservice-servers      "192.168.168.21"
    default-domain               "huamin.com"
netcfg:loc:huamin.com> end
Committed changes
netcfg> end
root@SOL11I:/home/huamin# netadm enable huamin.com.ncp
netadm: no profile matched 'huamin.com.ncp'

How the Network Is Configured in Oracle Solaris 11 - Transitioning From Oracle Solaris 10 to Oracle Solaris 11 What does your netadm list say?

Hi,
Here is what I've got. what is the problem of net0? why isn't it "192.168.168.21"?

huamin@SOL11I:~$ netadm list
TYPE        PROFILE        STATE
ncp         Automatic      online
ncu:phys    net0           online
ncu:phys    net1           online
ncu:ip      net0           offline*
ncu:ip      net1           online
ncp         DefaultFixed   disabled
loc         Automatic      online
loc         NoNet          offline
loc         DefaultFixed   offline
loc         huamin.com     offline
huamin@SOL11I:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000 
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
    inet 0.0.0.0 netmask ff000000 
net1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
    inet ?.?.255.183 netmask fffff000 broadcast ?.?.255.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
    inet6 ::1/128 
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
    inet6 fe80::a00:27ff:fe04:7c5e/10 
net1: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
    inet6 fe80::a00:27ff:fead:2a7/10 
huamin@SOL11I:~$ 

Many Thanks & Best Regards,
HuaMin

ncp is online, you need to switch?

Example 7-2 Switching the Default NCP
Switching network configuration modes requires you to enable the appropriate NCP for that configuration mode. The following example shows how to switch from automatic network configuration mode to manual network configuration mode by enabling the DefaultFixed NCP.
$ netadm enable -p ncp DefaultFixedSwitch to the Automatic NCP as follows:
$ netadm enable -p ncp Automatic

Thanks a lot.

I know I can change it to Automatic or DefaultFixed.

Does it mean the server would be only with either one Automatic IP (from ISP) or one DefaultFixed one? Can I achieve the same as that of Linux server, like net0 is with one Fixed IP, and net1 with Allocated IP (from ISP)?

192.168.168.21 doesn't look like a valid IP address to me.

In Redhat, I can have a Fixed IP for net0 like that.

You are right. Somehow I was thinking it was 5 numbers not 4. Pardon me.

You can create multiple ncp choices in Automatic (DefaultFixed too?): Managing Network Configuration When in Automatic Mode - Transitioning From Oracle Solaris 10 to Oracle Solaris 11

---------- Post updated at 12:58 PM ---------- Previous update was at 12:51 PM ----------

This focuses on how to activate: How NWAM Profiles Are Activated - Oracle Solaris Administration: Network Interfaces and Network Virtualization

Hi,
Could you please advise why I get these?

netcfg> create ncp myncp 
Create error: entity exists
netcfg> select ncp myncp
netcfg:ncp:myncp> list
ncp:myncp
    management-type     reactive
netcfg:ncp:myncp> set ipv4-addrsrc=static
Set error: invalid ncp property: 'ipv4-addrsrc'
netcfg:ncp:myncp> 

Any help please?

Many Thanks & Best Regards,
HuaMin

Commands That Are Used for Network Configuration (Quick Reference) - Transitioning From Oracle Solaris 10 to Oracle Solaris 11 In Manual mode?

Thanks.
Can I know what should be checked in my case? Why I got the error?

Many Thanks & Best Regards,
HuaMin

It says what works in automatic is not what works in manual, so pick the correct column.

Thanks. I followed the steps in that. Can you please advise why I've got these?

root@SOL11I:/home/huamin# netadm enable -p ncp Automatic
ncp 'Automatic' is already enabled
root@SOL11I:/home/huamin# netadm list
TYPE        PROFILE        STATE
ncp         Automatic      online
ncu:phys    net0           online
ncu:phys    net1           online
ncu:ip      net0           offline*
ncu:ip      net1           online
ncp         DefaultFixed   disabled
loc         Automatic      online
loc         NoNet          offline
root@SOL11I:/home/huamin# netcfg "select ncp sol11; select ncu ip ncu-name; set ipv4-addrsrc=static; set ipv4-addr = 192.168.168.21./24"
Select error: entity not found
root@SOL11I:/home/huamin# 
root@SOL11I:/home/huamin# 

Many Thanks & Best Regards,
HuaMin

Just a stab from a tyro, but I would expect you might need to "select ncp Automatic" or "select ncp DefaultFixed", as no other ncp are listed.

Can you advise why I get the error above, or any other action should be taken instead?

Many Thanks & Best Regards,
HuaMin

Any help?

Many Thanks & Best Regards,
HuaMin

I think it say the ncp is not know by sol11, try one of the two values listed or create a new ncp we can see on the list.

Can you make it clearer? Can static IP and Dynamic one exist within the same Solaris machine?