centos7配置网络nmcli无法使用

2017-12-07

Error: Could not create NMClient object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist

1、 systemctl status NetworkManager

2、systemctl restart NetworkManager

或者systemctl stop NetworkManager/systemctl start NetworkManager

3、再执行nmcli con show或者nmcli device show就ok了

4、nmcli con add type ethernet con-name static2 ifname enp0s3 ip4 192.168.1.50/24 gw4 192.168.1.1

5、nmcli con mod static2 ipv4.dns “8.8.8.8 8.8.4.4”

6、nmcli con down static1 ; nmcli con up static2

7、nmcli con mod home +ipv4.addresses 10.1.114.114/24

8、Warning: nmcli (1.0.6) and NetworkManager (1.0.0) versions don't match. Use --nocheck to suppress the warning.

yum -y update会升级NetworkManager的(包含nmcli)

rpm -qf /usr/bin/nmcli
NetworkManager-1.8.0-9.el7.x86_64

nmcli -v
nmcli tool, version 1.8.0-9.el7

分类:Linux网络 | 标签: |

相关日志

评论被关闭!