centos7配置网络nmcli无法使用
2017-12-07Error: 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
相关日志
- nagios4.3.4升级4.4.1
- Linux下怎么查看16进制文件
- shell中获得当前用户名
- nagios 4.08配置步骤
- awk和sed实例
- linux查看当前使用的shell
- wget同步FTP
- date -d
- CentOS配置vsftpd
- iperf3测带宽质量
- "tar --exclude"
- base64
- tar – 复制目录及文件
- shell Cli Shortcuts
- Windows快捷键
- windows sc command
- Displays the UUID of a computer
- history记录添加时间戳
- dstat
- getent
- lastb命令
- set -o vi
- Linpack and Flops
- grep几个小技巧
- Linux Swap ,add ,delete and move
- Sed的常用命令语法 (6)
- linux命令行自动补齐 (6)
- wildcard"*"号的用法 (1)
- !$
- 回车符和换行符区别 (1)
- 监控工具nmon (1)
- awk to print all row to one line (8)
- reg命令给windows添加环境变量 (2)
- 统计文件行数的命令 (1)
- linux历史命令 (1)
- linux命令行TAB自动补全功能 (9)
- tar命令实例 (1)
- linux常用命令 (6)
- expr命令实例 (1)
- cut命令实例 (1)
- Linux下chkconfig命令详解 (1)
- vi或sed的批量替换 (1)
- xargs命令实例 (3)
- grep 用正则表达式实例 (2)
- linux add swap by file (1)
- sed-grep-awk (1)