Greetings all,
here's a bit of information which some of you might find usefull.
I have a problem and a solution which some of you might find
helpful.
The Problem:
+ I need the get LTSP to load an alternate NIC as eth0
The Environment:
+ I have Fujitsu Scovery system (onboard eepro with old broken PXE)
It only worked in the past with BPBatch
+ I cannot disable the onboard NIC (no such bios option)
+ I installed a 2nd NIC (Broadcom Gigabit with PXE Bios)
+ The broadcom card always loads as eth1 (not eth0)
The Solution:
+ No modifications to LTSP, but merely some dhcp vender encapsulated options
+ comments are in the attached dhcpd.conf file
+ Passing NIC=tg3 on the kernel options for the LTSP kernel causes the linuxrc
to load the spicific driver instead of running pci_scan.
Here's the dhcpd.conf:
ddns-update-style none;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 192.168.1.102;
option domain-name "foo.com";
option option-128 code 128 = string;
option option-129 code 129 = text;
shared-network WORKSTATIONS {
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.200 192.168.1.210;
}
}
group {
use-host-decl-names on;
default-lease-time -1;
next-server 192.168.1.100;
option log-servers 192.168.1.100;
option root-path "/opt/ltsp/i386";
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/etherboot/eb-5.0.10-eepro100.lzpxe";
} else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
filename "/lts/vmlinuz-2.4.19-ltsp-1";
option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
}
########################################
## Compaq EN deskpro's
########################################
host cpq6350a {
hardware ethernet 00:50:8b:33:a0:98;
fixed-address 192.168.1.107;
}
host cpq6350b {
hardware ethernet 00:50:8b:33:b7:48;
fixed-address 192.168.1.108;
}
}
group {
use-host-decl-names on;
default-lease-time -1;
next-server 192.168.1.100;
option log-servers 192.168.1.100;
option root-path "/opt/ltsp/i386";
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/etherboot/eb-5.2.4-tg3.lzpxe";
} else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
filename "/lts/vmlinuz-2.4.24-ltsp-4";
option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
##
## Option 128 is ETHERBOOT specific and enables option 129
## Option 129 passes appended parameters to the kernel, and NIC=xxx
## merely sets an evironment variable which the LTSP linuxrc
## happens to use to determine which nic driver to load
## If unset (default) linuxrc invokes pci_scan which in
## my case blows up because I have 2 nics (tg3 & e100)
option option-128 E4:45:74:68:00:00;
option option-129 "NIC=tg3";
}
########################################
## Fusitsu Scovery's
########################################
host scovery1 {
hardware ethernet 08:00:06:25:A2:D4;
fixed-address 192.168.1.105;
}
host scovery2 {
#ONBOARD hardware ethernet 08:00:06:25:7D:FD;
# Installed tg3 gigabit
hardware ethernet 00:0b:cd:52:75:c4;
fixed-address 192.168.1.106;
}
}
group {
########################################
##
## Hosts that do not get a default route
##
########################################
host lp0 {
hardware ethernet 00:c0:02:b7:08:88;
fixed-address 192.168.1.3;
}
}
group {
########################################
##
## Special hosts that do get a default route
##
########################################
option routers 192.168.1.1;
host infidel2 {
hardware ethernet 00:04:5a:a0:c5:25;
fixed-address 192.168.1.111;
option domain-name "fmr.com";
}
host infidel1 {
##hardware ethernet 00:09:6b:d0:5f:ba;
hardware ethernet 00:90:d1:08:3e:4a;
fixed-address 192.168.1.110;
option domain-name "fmr.com";
}
host gw002 {
hardware ethernet 00:06:25:BB:CE:28;
fixed-address 192.168.1.2;
}
host melkor {
hardware ethernet 00:30:1b:2c:60:20;
fixed-address 192.168.1.101;
}
host dellbert {
hardware ethernet 00:07:e9:de:cd:29;
fixed-address 192.168.1.103;
}
}
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_____________________________________________________________________
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