Show Table of Contents
1.5. 使用文本用户界面(nmtui)进行网络配置
NetworkManager 文本用户界面(TUI)工具 nmtui 可提供一个文本界面配置由 NetworkManager 控制的网络。该工具包含在 NetworkManager-tui 子软件包中。写入时,不会默认随 NetworkManager 安装该子软件包。要安装 NetworkManager-tui,请作为
root 运行以下命令:
~]# yum install NetworkManager-tui
如有必要,请根据 第 1.4.1 节 “NetworkManager 守护进程” 中的论述确定 NetworkManager 的运行方式。
要启动 nmtui,请按如下方式运行命令:
~]$ nmtui
此时会出现文本用户界面。要在该界面中导航,请使用箭头键,或按 Tab 在选项间前进,按 press Shift+Tab 后退。按 Enter 选择某个选项。Space 键切换选择库状态。
有以下命令可用:
如果未提供连接名称,则会出现选择菜单。如果提供连接名称,并正确验证,则会出现相关的 编辑连接 页面。nmtui editconnection-name
如果未提供连接名称,则会出现选择菜单。如果提供连接名称并正确验证,则会激活相关连接。如命令无效,则会输出用法信息。nmtui connectconnection-name
编写时,nmtui 不支持所有连接类型。特别是无法编辑使用 WPA Enterprise 的 VPN、Wi-Fi 连接,或无法编辑使用
802.1X 的以太网连接。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.