实现步骤如下1,更改/etc/modprobe.conf文件中的模块alias比如 alias eth0 e1000
修改为 alias tianle e1000
2,更改网卡的配置文件的名字为ifcfg-tianle
mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-tianle
3,更改配置文件,将DEVICE=eth0,更改为DEVICE=tianle
4,去除内存中的网卡模块
modprobe -r e1000
5,重新加载网卡模块
modprobe tianle (等同于modprobe e1000)
6,重启网络服务/etc/init.d/network restartservice network restart [root@bogon ~]# ifconfigtianle Link encap:Ethernet HWaddr 00:0C:29:10:80:97inet addr:192.168.0.1 Bcast:192.168.1.255 Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe10:8097/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:33 errors:0 dropped:0 overruns:0 frame:0TX packets:26 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:5271 (5.1 KiB) TX bytes:2976 (2.9 KiB)Interrupt:177 Base address:0x1400