|

楼主 |
发表于 2009-3-2 23:29:26
|
显示全部楼层
Post by shushadow;1933681
应该还是udev规则的问题,查一下/etc/udev/rules.d/70-persistent-net.rules 这个文件,看看你里面的设备名是不是eth1,可以修改这个文件或者把这个文件的内容删掉,下次重启就会重新生成这个文件内容,设备名就会是eth0了 # 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正常化
我应该怎样做? |
|