Unable to enable ncp


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to enable ncp
# 1  
Old 06-13-2013
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'

# 2  
Old 06-13-2013
# 3  
Old 06-13-2013
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
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
# 5  
Old 06-14-2013
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)?
# 6  
Old 06-14-2013
192.168.168.21 doesn't look like a valid IP address to me.
# 7  
Old 06-14-2013
In Redhat, I can have a Fixed IP for net0 like that.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Enable lpfc changes!

Hi Folks! I am writing a script which changes lpfc.conf if there it has been setup on RHEL BOXes, do I need to put dracut -f for enabling it? I am not sure, Can someone help! (6 Replies)
Discussion started by: nixhead
6 Replies

2. UNIX for Dummies Questions & Answers

Unable to enable SeLinux on RHEL 7

I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6... (3 Replies)
Discussion started by: satish51392111
3 Replies

3. SCO

Auditing: how to enable?

edit: solution found Auditing Quick Start and Compatibility Notes (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

4. Fedora

Enable a Key

Hi team, Print Screen key is disabled in my machine. How can i enable it?? How do i do that via command line?? Or tell me in GUI.. Am using Linux Fedora 14 OS. (2 Replies)
Discussion started by: Adhi
2 Replies

5. AIX

How to enable XDMCP?

Hello everyone, I installed AIX the other day (several times!) but I can't get XDMCP to work. I remember from when I installed it the last time it worked out of the box. So why doesn't it work now? This is the error message I get: XDMCP fatal error: Session failed Session 2 failed for... (3 Replies)
Discussion started by: Kotzkroete
3 Replies

6. UNIX and Linux Applications

how do i enable messaging

hi guyz i work as a system administrator for some organization(am a newbie). one of the solaris machines is loaded with the messenger server...all configured by a former administrator. my task was to create user accounts for the mail and calendar services and as i checked its not working .....i... (0 Replies)
Discussion started by: henokia4j
0 Replies

7. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

8. Solaris

enable log

dear all i want to enable the below logs can you help me /var/adm/xferlog /var/spool/uucp/.Admin thanx you (0 Replies)
Discussion started by: murad.jaber
0 Replies

9. UNIX for Dummies Questions & Answers

unable to login to zone after enable BSM

hi i am not able to the zones after i enable BSM, but i am able to login using "zlogin -S" option. is there any command which i can use to troubleshoot. thanks a lot! :cool: (0 Replies)
Discussion started by: legato
0 Replies

10. Solaris

How to enable rsh

HELP..... How to enable and disable RSH in solaris 8 (4 Replies)
Discussion started by: gini
4 Replies
Login or Register to Ask a Question