A-A+

centos8 配置网络

2019年10月08日 CentOS8 暂无评论 阅读 337 次浏览 次

在RHEL 8和CentOS 8系统里,已废弃network.service,因此只能通过其它方法进行网络配置,包括NM命令工具集。换言之,在rhel8上,必须开启NM,否则无法使用网络。

nmcli n 查看nmcli状态
 
nmcli n on 启动nmcli
 
nmcli c  up eth0 启动网卡eth0
 
nmcli c down eth0 关闭网卡eth0
 
nmcli d c eth0 激活网卡 
 
nmcli d show eth0 查看网卡eth0信息
 
nmcli r all off 关闭无线
 
nmcli c reload   重新加载配置

评论已关闭!

Copyright © 香港虚拟主机_美国虚拟主机_香港服务器_美国服务器租用托管 保留所有权利.   Theme  Ality 蜀ICP备14006632号-1

用户登录