1、问题:Connection 'ens33' is not available on device ens33 because device is strictly unmanaged
解决:
查看托管状态: nmcli n
显示 disabled 则为本文遇到的问题 :nmcli n on (开启网络,加入NM托管)
重启:systemctl restart NetworkManager 或 reboot
2、nmcli 命令使用
(1)
[root@host ~]# nmcli con show static-ens3
connection.id: static-ens3
connection.uuid: 87b53c56-1f5d-4a29-a869-8a7bdaf56dfa
connection.interface-name: -
connection.type: 802-3-ethernet
connection.autoconnect: yes
connection.timestamp: 1401803453
connection.read-only: no
connection.permissions:
connection.zone: -
connection.master: -
connection.slave-type: -
connection.secondaries:
connection.gateway-ping-timeout: 0
802-3-ethernet.port: -
802-3-ethernet.speed: 0
(2)
[root@host ~]# nmcli con mod static-ens3 ipv6.address "2001:db8:0:1::a00:1/64 2001:db8:0:1::1"
(3)
[root@host ~]# nmcli con add con-name eno2 type ethernet ifname eno2 ip4 192.168.0.5/24 gw4 192.168.0.254
备份地址: 【NetworkManager管理网络】