[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 如何从 pciid 得到 网卡得 MAC 地址?



在 06-8-23,Yingbo Qiu<qiuyingbo@gmail.com> 写道:
 我的 centos 4 上没有这个 net\:lan 这个目录, 我用的是 centos 4, 2.6.9-34.0.2.EL


有没有 net:eth0 阿,lan 是我的网卡用 udev 设置的名字

另外,应该还可以通过 udevinfo 获得一些信息

udevinfo -a -p /sys/class/net/eth0 |grep pci

里面应该能看到网卡 eth0 的 pci id

--
Wang Xu

Reply to: