如何抓網路卡的PCI ID? |
在 /etc/dhcpd.conf中"include "/etc/dhcpd.conf.etherboot.include";"之
後加log這一行:
--------------------------------------------------
include "/etc/dhcpd.conf.etherboot.include";
include "/etc/dhcpd.conf.pxe-etherboot.include";
log (info, binary-to-ascii( 16, 8, ":", option etherboot.nic-dev-id) );
--------------------------------------------------
然後在/var/log/message中會看到一行,在DHCPDISCOVER對應您的網路卡MAC
address卡號之後,類似1:10:ec:81:39就是了
-------------------------------------
...
Jul 17 10:13:45 temp082 dhcpd: DHCPDISCOVER from 00:40:95:08:fa:f7 via eth1
Jul 17 10:13:45 temp082 dhcpd: DHCPOFFER on 192.168.1.10 to
00:40:95:08:fa:f7
vi
a eth1
Jul 17 10:13:45 temp082 dhcpd: 1:10:ec:81:39
Jul 17 10:13:45 temp082 dhcpd: DHCPREQUEST for 192.168.1.10 (192.168.1.254)
from 00:40:95:08:fa:f7 via eth1
...
-------------------------------------
如果你的卡不能被etherboot辨別出來,只能用boot.nbi來給client
download的話,在/etc/mknbi-set.conf檔案尾加上一段,類似這樣:
--------------------------------------------------------
# The pcnet32 PCI ID of VMware NIC is not listed in
# /lib/moudles/%kernel/modules.pcimap, put here
# by Steven Shiau
pcnet32 0xd041 0x2000
XYZ 0x10ec 0x8139
--------------------------------------------------------
這樣client就會去下載/tftpboot/nbi_img/boot-XYZ.nbi
--------------------------------------------------------
不過改完這個之後,/usr/share/drbl/setup/drblsrv & drblpush要重跑,也就是/etc/dhcpd.conf.etherboot-pcimap.include要重新產生
要不然直接重跑
mknbi-set -k /boot/vmlinuz-2.4.20-18.10drbl
mkpxeinitrd-net -k 2.4.20-18.10drbl
vmlinuz-2.4.20-18.10drbl 與 2.4.20-18.10drbl視您的drbl kernel而定.
|
|