首页 > 编程知识 正文

centos8重启网卡,centos8重启网络

时间:2023-05-04 19:20:22 阅读:126611 作者:223

文章前言1 .报告错误环境2 .报告错误内容3 .解决方案3.1重新检查两者的配置文件内容是否正确3.2重新启动系统(旧的说法是重新启动以解决所有问题)3.3.1和网络管理器服务器使用不匹配的3.3.3查看Windo的ws的VMWare相关服务是否成功启动? (主要查看VMware DHCP服务、VMware Workstation Service、VMware NAT service等类似服务的状态)、 启动重新启动服务3.3.4在打开电源后配置为启动网络管理器-等待联机服务3.3.5/etc/sys config/network-scripts下,单击也就是说,只留下当前对应的以ifcfg开头的文件,注释掉1行3.3.6ifcfg-XXX配置文件的设备设置,更改3.3.7网卡的NAT模式和桥接模式,进行兼容调试,然后重新检查基础操作(如防火墙是否关闭、ip静态设置是否更改等)

前言在日常设备服务配置中,经常使用(系统重启网络)重新启动网卡服务命令,命令方便、简单,但同时经常发生错误,本文针对实际操作中出现的错误解决方案

1 .错误报告环境在构建KVM虚拟化平台时将KVM网络设置为网桥

更改ens33、br0网卡的设置,然后重新启动服务

2 .错误报告内容[根@ localhost~] # VI/etc/sys config/network-scripts/if CFG-ens 33 [根@ localhost~] # VI/etc systemctlrestartnetworkjobfornetwork.servicefailedbecausethecontrolprocessexitedwitherrorcode.see ' systemctlstatusnetwork

[ root @ localhost~] # journal CTL-xe 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360 file exists 1月11日08336041336038 localhost.local domain network [ 1805 ] 3360 rtnetlink answers 3360文件exists 1月11日08336041336038 localhost.localdomainsystemd [1] : network.service 3360 controost code=exited status=11月11日08336041336038 localhost.localdomainsystemd [1] 3: faled down networking---subject :单元网络. servicehasfailed---defined-by : systemd---support 33603358 listtion has failed---- theresultisfailed.1月11日08336041336038 localhost.localdomailed 3360 unit network.servicenteredfailedstate omainsystemd [1] : network.service failed.1月11日08336041336038 localhost.localdomainpolkitd [ 737 ] 3360 unregisteredauthenticationagentforunix-process 336017933605197 (syst 1月11月11日08336041:39 localhost.localdomainfprinfprinnninint exit1月11日08336042336010 localhost.localdomainrealmd [ 1728 ] : quittingrealmdserviceaftertimeout 1月11日08336042336010localmd

3.1重新启动3.2系统以检查两者的配置文件内容是否正确(旧版本重新启动以解决所有问题)3.3.1网络上最常见的解决方案3.3.1和网络管理器服务相互冲突

服务网络管理器停止禁止启动

chkconfig网络管理器关闭配置完成后,重新启动即可

系统重新启动网络3.3.2与配置式的MAC地址不匹配。 使用ip addr或ifconfig显示MAC地址的状况

[root@localhost ~]# ip addr

其中00:0 c 33602933606733604 d :84是MAC地址,进入/etc/sys config/network-scripts/if CFG-XXX,然后输入HWADDR (此选项无效)

had dr=00:0 c 33602933606733604 d :84.3.3检查windows上与VMWare相关的服务是否正常启动。 (主要是验证VMwareDHCP服务、VMwareWorkStation服务) ) ) ) ) ) ) )。

3.3.4名为网络管理器- wait-online的服务systemctlenablenetworkmanager-wait-online.service3.3. 5,然后/etc/ssonline 也就是说,应该只保留以当前对应的ifcfg开始的文件的存在,而只删除与我的当前状况对应的ens33和br0

重新启动

[根@本地主机网络-脚本] # systemctlrestartnetwork成功解决了错误

3.3.6ifcfg-XXX配置文件中的设备设置注释一行,更改3.3.7网卡的NAT模式和网桥模式进行更换调试,重新启动系统,是否无法解决3.3.8以上

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。