|
楼主 |
发表于 2009-3-2 23:30:50
|
显示全部楼层
Post by landrewl;1933620
改udev的规则。估计是你一开始用了一个别的mac地址,后来又改用了别的mac。
看看/etc/udev/rules.d/70-persistent-net.rules 里面是否有eth0和eth1的记录,改过来应该就行了。
# 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.
# Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rule written by anaconda)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:18:a9:28:9d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:30:18:a9:28:9d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
上面是我的/etc/udev/rules.d/70-persistent-net.rules 文件内容,
在windowsxp里这两个MAC地址都会出现,(比如开始是00:00:18:a9:28:9d,下次开机就可能变成了 00:30:18:a9:28:9d),都能上网,只是有些软件因此不能用了,MAC为什么会变我一直搞不清除。在FC9里,用ifconfig只出现 eth1,找不到eth0。
用#lmhostid是,当能正常上网时候显示为:
lmhostid - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.
The FLEXlm host ID of this machine is ""
如果不能上网的时候lmhostid则为:
lmhostid - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.
The FLEXlm host ID of this machine is "00:00:18:a9:28:9d"
我在fc9中有几个软件依赖MAC,
要使00:00:18:a9:28:9d正常化
我应该怎样做? |
|