JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: Network Interfaces and Network Virtualization     Oracle Solaris 11 Information Library
search filter icon
search icon

Document Information

Preface

1.  Overview of the Networking Stack

Network Configuration in This Oracle Solaris Release

The Network Stack in Oracle Solaris

Network Devices and Datalink Names

Administration of Other Link Types

Part I Network Auto-Magic

2.  Introduction to NWAM

3.  NWAM Configuration and Administration (Overview)

4.  NWAM Profile Configuration (Tasks)

Creating Profiles

Creating Profiles in Command-Line Mode

Interactively Creating Profiles

Creating an NCP

Creating NCUs for an NCP

How to Interactively Create an NCP

Creating a Location Profile

How to Interactively Create a Location Profile

Creating an ENM Profile

Creating WLANs

Removing Profiles

Setting and Changing Property Values for a Profile

Querying the System for Profile Information

Listing All of the Profiles on a System

Listing All Property Values for a Specific Profile

Obtaining Values of a Specific Property

How to Interactively Obtain a Single Property Value

Interactively Viewing and Changing Property Values by Using the walkprop Subcommand

Exporting and Restoring a Profile Configuration

Restoring a User-Defined Profile

Managing Network Configuration

How to Switch From Automatic Network Configuration Mode to Manual Network Configuration Mode

How to Switch From Manual Network Configuration Mode to Automatic Network Configuration Mode

5.  NWAM Profile Administration (Tasks)

6.  About the NWAM Graphical User Interface

Part II Datalink and Interface Configuration

7.  Using Datalink and Interface Configuration Commands on Profiles

8.  Datalink Configuration and Administration

9.  Configuring an IP Interface

10.  Configuring Wireless Interface Communications on Oracle Solaris

11.  Administering Bridges

12.  Administering Link Aggregations

13.  Administering VLANs

14.  Introducing IPMP

15.  Administering IPMP

16.  Exchanging Network Connectivity Information With LLDP

Part III Network Virtualization and Resource Management

17.  Introducing Network Virtualization and Resource Control (Overview)

18.  Planning for Network Virtualization and Resource Control

19.  Configuring Virtual Networks (Tasks)

20.  Using Link Protection in Virtualized Environments

21.  Managing Network Resources

22.  Monitoring Network Traffic and Resource Usage

Glossary

Index

Removing Profiles

You can remove all user-defined profiles or a specified user-defined profile from memory and persistent storage by using the netcfg destroy -a command.


Note - System-defined profiles, which include the Automatic NCP and the NoNet and Automatic Location profiles, cannot be removed.


The syntax for the destroy command is as follows:

netcfg destroy object-type [ class ] object-name

Alternatively, you can use the following command to remove all of the user-defined profiles in a system:

netcfg destroy -a

Example 4-6 Removing All User-Defined Profiles by Using netcfg Command-Line Mode

To remove all of the user-defined profiles on a system, type the following command:

$ netcfg destroy -a

Because at least one profile must be active on the system at all times, and to avoid in-use errors when removing user-defined profiles, make sure that you enable the Automatic NCP before using the destroy -a command.

Example 4-7 Removing a Specific User-Defined Profile by Using netcfg Command-Line Mode

To remove a specific user-defined profile on the system, for example the NCP named User, type the following command:

$ netcfg destroy ncp User

The destroy command can also be used to remove NCUs from an existing NCP. In the following example, an interface NCU with the name net1 is removed from the user-defined NCP:

$ netcfg "select ncp User; destroy ncu ip net1"

To confirm that a profile has been removed, use the list subcommand, as shown here:

$ netcfg
netcfg> select ncp User
netcfg:ncp:User> list
NCUs:
        phys    net1
netcfg> exit
Nothing to commit
$

Example 4-8 Interactively Removing a Profile

In the following example, an IP NCU named net2 is removed.

$ netcfg list
NCPs:
        Automatic
        User
Locations:
        Automatic
        NoNet
        test
        foo
$ netcfg
netcfg> select ncp User
netcfg:ncp:User> list
NCUs:
        phys    net2
        ip      net2
netcfg:ncp:User> destroy ncu ip net2
Destroyed ncu 'net2'
netcfg:ncp:User> list
NCUs:
        phys    net2
netcfg:ncp:User> end
netcfg> exit
Nothing to commit
$