Chinaunix首页 | 论坛 | 博客
  • 博客访问: 135123
  • 博文数量: 40
  • 博客积分: 673
  • 博客等级: 上士
  • 技术积分: 426
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-21 14:08
文章分类

全部博文(40)

文章存档

2013年(4)

2012年(36)

我的朋友

分类: LINUX

2012-05-08 11:21:41

网卡名字eth0,eth1修改modprobe 中修改模块别名使用 udev 的情况

fedora10 就是使用 udev 设置网卡的名字,比如我的系统有两块网卡,e1000e已经 坏了,3c59x还是好的。每次都认3c59x为eth1,即使我在 /etc/sysconfig/network-scripts/ifcfg-eth0 中设置了mac都不行。后来发现在 /etc/udev/rules.d/70-persistent-net.rules 下有这些内容 :

# 3Com Corporation 3c905B 100BaseTX [Cyclone] (rule written by anaconda) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:01:02:8c:50:09", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # Intel Corporation 82567LM-3 Gigabit Network Connection (rule written by anaconda) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:88:88:88:87:88", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

我把 eth0,和 eth1 名字交换。这样就可以了。

阅读(2097) | 评论(0) | 转发(0) |
0

上一篇:linux小资料整理

下一篇:gdb调试

给主人留下些什么吧!~~