JavaScript is required to for searching.
跳过导航链接
退出打印视图
在 Oracle Solaris 11.1 中使用反应性网络配置连接系统     Oracle Solaris 11.1 Information Library (简体中文)
为本文档评分
search filter icon
search icon

文档信息

前言

1.  反应性网络配置(概述)

2.  创建和配置反应性网络配置文件(任务)

3.  管理反应性网络配置(任务)

在固定和反应性网络配置间切换

如何从反应性网络配置切换到固定网络配置

如何从固定网络配置切换到反应性网络配置

获取有关配置文件状态的信息

显示配置文件的当前状态

显示辅助状态值

导出和恢复配置文件配置

恢复用户定义的配置文件

删除配置文件

执行无线扫描并连接到可用的无线网络

反应性网络配置问题故障排除

监视所有网络连接的当前状态

网络接口配置问题故障排除

4.  使用网络管理图形用户界面

索引

请告诉我们如何提高我们的文档:
过于简略
不易阅读或难以理解
重要信息缺失
错误的内容
需要翻译的版本
其他
Your rating has been updated
感谢您的反馈!

您的反馈将非常有助于我们提供更好的文档。 您是否愿意参与我们的内容改进并提供进一步的意见?

删除配置文件

使用 netcfg destroy -a 命令,可从内存和持久性存储中删除所有的或指定的用户定义的配置文件。


注 - 无法删除系统定义的配置文件。系统定义的配置文件包括 AutomaticDefaultFixed NCP 以及 NoNetAutomaticDefaultFixed 位置配置文件。


destroy 子命令的语法如下所示:

netcfg destroy [ -a | object-type [ class ] object-name]

有关 netcfg 子命令的信息,请参见netcfg 子命令


注 - 系统中应始终至少有一个配置文件处于活动状态。务必在使用 destroy -a 命令之前启用 Automatic NCP,以避免在删除用户定义的配置文件时出现正在使用中错误。


示例 3-5 使用 netcfg 命令行模式删除指定用户定义的配置文件

要删除系统中特定的用户定义的配置文件,例如要删除名为 User 的 NCP,请键入以下命令:

$ netcfg destroy ncp User

destroy 子命令还可用于从现有 NCP 删除 NCU。在以下示例中,从用户定义的 NCP 中删除了一个名为 net1 的接口 NCU。

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

要确认配置文件已删除,请使用 list 子命令,如下所示:

$ netcfg
netcfg> select ncp User
netcfg:ncp:User> list
ncp:User
        management-type    reactive
NCUs:
        phys    net1
netcfg:ncp:User> exit
$

示例 3-6 使用 netcfg 交互模式删除特定的用户定义的配置文件

在以下示例中,删除了名为 net2 的 IP NCU。

$ netcfg list
NCPs:
        DefaultFixed
        Automatic
        User
Locations:
        Automatic
        NoNet
        test
        test-loc
        DefaultFixed
$ netcfg
netcfg> select ncp User
netcfg:ncp:User> list
ncp:User
        management-type    reactive
NCUs:
        phys    net2
        ip      net2
netcfg:ncp:User> destroy ncu ip net2
Destroyed ncu 'net2'
netcfg:ncp:User> list
ncp:User
        management-type    reactive
NCUs:
        phys    net2
netcfg:ncp:User> end
netcfg> exit
$