Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2759117
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2014-09-25 13:39:56

现象:

解决方法:
[root@s4 rules.d]# pwd
/etc/udev/rules.d
[root@s4 rules.d]# cat 70-persistent-net.rules 
##删除 70-persistent-net.rules ,重启机器

或者删除后,重启也是提示找不到网卡!
解决方法: 查看如下的文件内容
[root@localhost rules.d]# cat 70-persistent-net.rules 
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d6:25:91", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d6:25:9b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
只需要将/etc/sysconfig/network-scripts下的ifcfg-ethx 改成和 这个文件中的ethx相对应就可以了!注意看网卡的mac地址
然后执行ifup ethx 即可!

阅读(976) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~