On Fri, 26 Dec 2003, chris bayley wrote:

> Sudev Barar wrote:
> 
> >On Wed, 2003-12-24 at 02:18, chris bayley wrote:
> >  
> >
> >>My kernel boots and detects 2 NICs, both eepro100, one built-in but 
> >>disfunctional(pxe) and the one that I have added.
> >>Despite the fact the the built-in is disabled in BIOS it is still found 
> >>and made eth0 by the kernel the init/linuxrc script (actually I can't 
> >>find it) calls dhclient on eth0 which is unconnected and it all turns 
> >>pear shape.
> >>
> >>how to I specify that eth1 is to be used and not eth0, on a host by host 
> >>basis ?
> >>    
> >>
> >Similar setup issue here. What you need to do is specify the MAC address
> >of eth1 in your /etc/dhcpd.conf file and give this workstation a fixed
> >IP number. This should solve the problem. Let me know if you need format
> >of the fixed ip section in dhcpd
> >  
> >
> Further study shows it not quite as simple as that;- yes I already fix 
> an address for eth1 in my dhcp.conf and that part goes ok until after 
> the kernel boots, but the kernel calls the "linuxrc" init script from 
> the initrd, "linuxrc" has "dhclient eth0" hardcoded in to it. So, it 
> will need to be hacked for eth1 or auto and the kernel/initrd rebuilt.
> Just have to work that part through a little more and it should be all go.

At the point that /linuxrc is running, the kernel doesn't know
anything about eth0 or eth1.  they don't yet exist.

The /linuxrc script then looks at the pci bus, and sees the first
NIC and loads the appropriate kernel module for that nic, and
that is how it becomes eth0.  If the 2 nics are the same, then
eth1 springs into existance as well.

I think a simple tweak to /linuxrc and the dhclient script to
tell it to use eth1 instead should handle this problem.


> 
> FYI the above is true for LTSP3 - I haven't looked at 4 yet.

LTSP-3 and LTSP-4 use EXACTLY the same kernels, so this applies
equally to both.

Jim McQuillan
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to