Unable to enable ncp | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Unable to enable ncp

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-13-2013
HuaMin HuaMin is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 6 July 2013, 2:01 AM EDT
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Unable to enable ncp

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


Code:
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'

Sponsored Links
    #2  
Old 06-13-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 28 August 2014, 4:12 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,409
Thanks: 8
Thanked 537 Times in 516 Posts
How the Network Is Configured in Oracle Solaris 11 - Transitioning From Oracle Solaris 10 to Oracle Solaris 11 What does your netadm list say?
Sponsored Links
    #3  
Old 06-13-2013
HuaMin HuaMin is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 6 July 2013, 2:01 AM EDT
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Hi,
Here is what I've got. what is the problem of net0? why isn't it "192.168.168.21"?

Code:
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
    #4  
Old 06-14-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 28 August 2014, 4:12 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,409
Thanks: 8
Thanked 537 Times in 516 Posts
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
Sponsored Links
    #5  
Old 06-14-2013
HuaMin HuaMin is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 6 July 2013, 2:01 AM EDT
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
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)?
Sponsored Links
    #6  
Old 06-14-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 29 August 2014, 3:14 PM EDT
Location: Saskatchewan
Posts: 19,271
Thanks: 774
Thanked 3,236 Times in 3,034 Posts
192.168.168.21 doesn't look like a valid IP address to me.
Sponsored Links
    #7  
Old 06-14-2013
HuaMin HuaMin is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 6 July 2013, 2:01 AM EDT
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
In Redhat, I can have a Fixed IP for net0 like that.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enable a Key Adhi UNIX for Dummies Questions & Answers 2 03-19-2013 01:53 PM
How to enable XDMCP? Kotzkroete AIX 3 04-03-2008 10:28 AM
how do i enable messaging henokia4j UNIX and Linux Applications 0 02-07-2008 12:45 AM
enable log murad.jaber Solaris 0 10-16-2007 04:50 AM
unable to login to zone after enable BSM legato UNIX for Dummies Questions & Answers 0 08-20-2007 11:12 PM



All times are GMT -4. The time now is 04:08 PM.