今天在使用putty连接linux6.0系统远程的时候,重启网卡的时候发现此报错:
报错截图如下:
![](https://img-blog.csdn.net/20160213194438600?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
排错步骤如下:
1:查看系统是否识别相应网卡(发现没有eth0网卡存在):
![](https://img-blog.csdn.net/20160213194449304?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
根据显示信息我们可以初步判定系统网卡信息有问题:
2:查看当前MAC地址相关信息:
![](https://img-blog.csdn.net/20160213194456662?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
发现多出一块eth1网卡信息。
3:删除多余mac地址信息,并修改网卡配置文件:
/etc/udev/rules.d/70-persistent-net.rules 文件下记录着网卡对应mac地址信息:
![](https://img-blog.csdn.net/20160213194502522?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
修改网卡配置文件并保存:
/etc/sysconfig/network-scripts/ifcfg-eth0 网卡配置文件位置:
![](https://img-blog.csdn.net/20160213194507990?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
4:重启网卡查看是否配置正确,发现可以正常启动:
![](https://img-blog.csdn.net/20160213194513069?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
查看相应网卡信息(如何发现网卡IP地址正常但显示为eth1,建议重启后生效):
![](https://img-blog.csdn.net/20160213194518242?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
成功解决问题!嘿嘿!