An NCP defines the network configuration of the system. You can only create reactive NCPs, not fixed NCPs.
To create an NCP in the interactive mode, you begin by initiating the interactive session. Then, you use the create subcommand to create the new NCP, as shown in the following example:
$ netcfg netcfg> create ncp myncp netcfg:ncp:myncp>Example 23 Creating an NCP by Cloning the Automatic NCP
You can create an NCP by cloning any existing NCP other than the DefaultFixed NCP. You can then modify the NCP's properties to specify new configuration parameters. In the following example, a new NCP named newncp is created by cloning the system-defined Automatic NCP.
$ netcfg netcfg> create -t Automatic ncp newncp netcfg:ncp:newncp> list ncp:newncp management-type reactive NCUs: phys net0 phys net1 ip net0 ip net1
The management-type property is a read-only property that is always set to reactive. In the previous example, the list subcommand is used to display the contents of the newly copied NCP (newncp).
You can also directly clone the Automatic NCP by using the netcfg command-line mode, as shown in the following example. Both the interactive and command-line methods copy the existing NCUs from the Automatic NCP to the newly created NCP.
$ netcfg create -t Automatic ncp newncp $ netcfg list ncp newncp ncp:newncp management-type reactive NCUs: phys net0 phys net1 ip net0 ip net1