Multiple NICs, partial success, partial weirdness

Carsten Aulbert carsten at welcomes-you.com
Tue Mar 3 12:10:57 CET 2009


Hi again,

Thomas Lange schrieb:
> grep DHCPOFFER */dhclient.log
> 
> will show you which DHCP server had sent the IP address.

as expected, sometimes one is faster than the other

# grep DHCPOFFER install-200903*/dhclient.log
install-20090302_191531/dhclient.log:DHCPOFFER from 10.10.16.78
install-20090302_192700/dhclient.log:DHCPOFFER from 172.25.0.101
install-20090302_193420/dhclient.log:DHCPOFFER from 172.25.0.101
install-20090302_194559/dhclient.log:DHCPOFFER from 172.25.0.101
install-20090303_094231/dhclient.log:DHCPOFFER from 10.10.16.78
install-20090303_095307/dhclient.log:DHCPOFFER from 172.25.0.101
install-20090303_095806/dhclient.log:DHCPOFFER from 10.10.16.78
install-20090303_103633/dhclient.log:DHCPOFFER from 10.10.16.78

thus I think since the DHCP requests are run in parallel, one client
overwrites the data from the other.

Question now is, how to prevent that, right now we run fai-chboot like this:

/usr/sbin/fai-chboot -IBv -s2.6.26-1-amd64 -k 'console=ttyS1,19200n8c'
10.20.30.3

which generates
[...]
append initrd=initrd.img-2.6.26-1-amd64 ip=dhcp  root=/dev/nfs
nfsroot=/srv/fai/nfsroot boot=live console=ttyS1,19200n8c
FAI_FLAGS=verbose,sshd,reboot FAI_ACTION=install


Does it mean we should go back and change ip=dhcp to something more
suitably depending what kind of machine we want to install? Would work
but not be nice, any idea how to solve this generically? [1]

cheers

Carsten

[1] We have nodes which need to boot via eth1 some via eth0, ....


More information about the linux-fai mailing list