问题说明:

由于对网卡进行了更新,导致CentOS6.5使用 ip addr命令查看没有eth0只有eth1,现在想要修改一下网卡的名称,把eth1修改为eth0

步骤:

1.修改/etc/udev/rules.d/70-persistent-net.rules 文件

CentOS6.5修改网卡名称_系统启动

把第二行eth1修改为eth0,第一行的eth0改为eth1

CentOS6.5修改网卡名称_系统启动_02

修改以后如下图:

CentOS6.5修改网卡名称_系统启动_03

2.修改/etc/sysconfig/network-scripts/ifcfg-eth0

使用命令ifconfig或ip addr查看MAC地址

CentOS6.5修改网卡名称_mac地址_04

修改mac地址

CentOS6.5修改网卡名称_mac地址_05

重新启动系统

启动或重启网卡:

[root@localhost ~]# service network start   #启动网络服务
[root@localhost ~]# service network restart #重启网络服务

CentOS6.5修改网卡名称_重启_06

故障已经消失