Configuring and Administering Network Components in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Enabling and Disabling Profiles

You use the netadm command to enable and disable all profiles, regardless of the profile type or whether the profile is fixed for reactive. The basic command syntax is as follows:

# netadm enable [ -p profile-type ] [ -c ncu-class ] profile-name

For example, you would enable the system-defined Automatic NCP as follows:

# netadm enable -p ncp Automatic

For background information about enabling and disabling profiles, see Guidelines for Using Profile-Based Network Configuration.

    Refer to the following additional guidelines when enabling and disabling the various types of profiles:

  • NCPs – At any given time, there must be one active NCP and one active Location profile on the system. The active NCP remains active until you explicitly enable a different NCP. Enabling a different NCP implicitly disables the currently active NCP. You cannot explicitly disable the NCP that is currently active on a system. Description of an NCP.

    When you switch to the fixed mode by enabling the DefaultFixed NCP, the DefaultFixed Location is also automatically enabled and cannot be changed.

    When you enable the Automatic NCP, the activation policy selects an appropriate corresponding Location, based on the current network conditions and then enables that Location.

  • NCUs – You can manually enable and disable individual NCUs that are a part of the currently active NCP if the activation mode for the NCU is set to manual. If the link or NCU class is not specified, both NCUs are enabled or disabled. See Description of an NCU.

  • Locations – By default, the system selects the best Location profile to enable. The system selects a Location from the set of locations with the system or conditional activation mode. However, the user can at any time override the system's selection by manually enabling any Location, regardless of the Location's activation mode. When you enable a Location manually, the system does not automatically change the active Location. The automatic selection of a Location is disabled. You must explicitly disable the manually enabled Location to restore the conditional Location selection by the system. See Description of a Location Profile.

  • ENMs – These profiles can have a manual or conditional activation mode. If you set the activation-mode property to conditional, the system enables or disables the ENM based on the specified conditions. If you set the activation mode to manual, you can enable or disable the ENM by using the netadm command. There are no constraints on ENM activation. Zero or more ENMs can be active on a system at any given time. Enabling or disabling an ENM has no effect on other currently active ENMs. See Profile Activation Modes.

Example 6-1  Enabling an NCP

In the following example, a user-defined NCP named myncp is enabled.

$ netadm enable -p ncp myncp
Enabling ncp 'myncp'
Example 6-2  Enabling a Location Profile

In the following example, a Location profile named office is enabled.

$ netadm enable -p loc office
Enabling loc 'office'

Note that when you specify profile names, the netadm command is case-insensitive.

Example 6-3  Disabling a Link NCU

In the following example, a link NCU named net1 is disabled.

$ netadm disable -p ncu -c phys net1
Example 6-4  Disabling a Location

In the following example, a Location named office is disabled.

$ netadm disable -p loc office
Disabling loc 'office'
Example 6-5  Enabling and disabling ENMs

In the following example, an ENM test-enm1 is enabled and another ENM test-enm2 is disabled.

$ netadm enable -p enm test-enm1
Enabling enm 'test-enm1'
$ netadm disable -p enm test-enm2
Disabling enm 'test-enm2'
Example 6-6  Switching Between the Fixed and Reactive Modes

The following example shows how to switch to the fixed mode by enabling the system-defined DefaultFixed NCP.

$ netadm enable -p ncp DefaultFixed
Enabling ncp 'DefaultFixed'