mac 虚拟机启动网络报错Connection activation failed: No suitable device found for this connection

systemctl  network start

找不到命令是因为 centos8没有了network 而是nmcli 代替了

1 排查 本机的ip  netmask  mac地址是否一致

2 mac机

ifconfig

我的虚拟机使用是nat模式 如果是桥接模式就看vmnet1

如果子网掩码是乱码 就看

上面的 IP 子网掩码  路由器要仔细查看 且虚拟机的要跟本机同一个网段

登陆虚拟机

vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static #如果动态获取设置为dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33   #网卡名字
#UUID=e270f781-e07d-4cc6-8ca7-9a05eb6ffa61
UUID=e270f781-e07d-4cc6-8ca7-9a05eb6ffa61  #可以使用生成dbus-send --system --print-reply --dest=com.redhat.ifcfgrh1 /com/redhat/ifcfgrh1 com.redhat.ifcfgrh1.GetIfcfgDetails string:"/etc/sysconfig/network-scripts/ifcfg-ens33" 2>/dev/null
DEVICE=ens33
ONBOOT=yes #开机启动
#HWADDR=00:50:56:25:DD:1E
HWADDR=00:50:56:29:BB:53 #mac 地址
IPADDR=192.168.85.131  #自定义ip地址  要跟本机同一个网段
#IPADDR=10.10.107.110
NETMASK=255.255.255.0 #子网掩码要跟本机一致
PREFIX=24
IPV6_PRIVACY=no

mac地址

以上都确认无误后 就使用nmcli启动网络

>>service NetworkManager start>>nmcli networking on>>nmcli con up ens33  #加载网卡

原文地址:https://www.cnblogs.com/guokefa/p/12641854.html

时间: 2024-11-11 14:08:10

mac 虚拟机启动网络报错Connection activation failed: No suitable device found for this connection的相关文章

今天启动网络报错之一

由于网络环境的变动,IP地址发生了改变,但是今日重启网络的时候报错了,当运行service network restart的时候,出现了 /sbin/dhclient ${DHCLIENTARGS} {DEVICE} failed /etc/sysconfig/network-scripts/ifup-eth:line 292: 2129 Terminated 这种错误,思来想去,看来和以前配置时使用的域名有关系,于是修改/etc/resolv.conf,发现了问题 search libincl

linux 使用systemctl 启动服务报错: Error: No space left on device

By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device, which may be confusing if you aren't explicitly looking for this issue. vi /etc/sysctl.conf  增加  fs

(转)启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结

启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结 原文:http://blog.51cto.com/11863547/1905929 http://blog.csdn.net/debimeng/article/details/74296152?utm_source=itdadao&utm_medium=referral Failed to start LSB: Bring up/down networking 遇到这个错误好

ifup em2启动网卡时报错:connection activation failed

环境:centos7,重启网络,报以下错误: ifup em2     ##启动em2网卡时报错 Error: Connection activation failed: The connection is not for this device. 解决方法: systemctl stop NetworkManager.service systemctl disable NetworkManager 再启动过em2网卡,就可以了 ifup em2 原文地址:http://blog.51cto.c

Mac brew 安装mysql 报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket

安装mysql 最新版 56 brew install mysql 启动报错 ben:~ soul$ which mysql /usr/local/bin/mysql ben:~ soul$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决办法 运行 ben:~ soul$ mysql.server start Starting MySQL .

Svn启动窗口报错 Could not load file or assembly 'SharpSvn.dll' or one of its

win10 64位系统生成没问题,测试都没问题,结果换到win7 64位系统上,点开就出现,网上搜了下,通过以下方式解决, 必须把bin 文件夹全部删除,重新生成.要不还是会报错. Solve it. Change my platform to x86 Output path to "bin\" Downloaded the x86 of SharpSVN (1.7008.2243.14245) Add SharpSVN.dll in GAC. Delete the bin folde

Centos 7上启动 vsftp报错处理

系统环境:CentOS Linux release 7.2.1511 (Core) yum方式安装ftp server: yum install vsftpd db4-utils ftp 然后根据具体需求和业务场景等进行配置,我这里是禁止匿名用户登录,配置ok后启动ftp报错: ...由于是系统是Cent 7,与6的有些区别,所以看了下报错信息,后半部分引起了我注意,故试着执行了下: ..这些信息表示基本看不懂了,看来到了在网上找答案的时候了,百度搜了下,进入一篇博客,大致看了下,说是 cent

启动httpd报错

启动httpd报错: service httpd start Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 61.191.206.4 for ServerName 在网上大多数解决办法是去掉配置文件中ServerName前面的#,我发生的这种情况去掉就不行,重启之后依然打不开页面,而且重启仍旧报错. 解决办法: 修改ServerName loc

IDEA启动Tomcat报错

Maven编译成功, 可是启动Tomcat报错: Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error dur