[root@localhost ~]# ifup ens160
错误:连接激活失败:No suitable device found for this connection (device lo not available because device is strictly unmanaged).
nmcli n
查看托管状态 enable为可用
nmcli n on 启用
解决
nmcli命令新增网卡并创建配置文件以及修改现有网卡地址信息
创建并配置
nmcli con add ifname enp1s0 type ethernet con-name ens1s0
ipv4.addresses 172.25.250.10/24 ipv4.gateway 172.25.250.254 ipv4.dns
172.25.250.254 ipv4.method manual
修改并设置
nmcli con mod ens1s0 ipv4.addresses 172.25.250.10/24
ipv4.gateway 172.25.250.254 ipv4.dns 172.25.250.254 ipv4.method manual