While getting 2.09pre4 ready for rollout I have been working towards better 
supporting a multi-homed host. In the past I could'nt use a single lts.conf file 
to host multiple subnets easily (ie without putting the host server directive 
for each client)

I basically need the client to mount the side of the host that is local to the 
client as the subnets are not routed.
I seem to have it working fine by getting rid of using the SERVER variable in 
the lts.conf and using the server-identifier dhcp.conf keyword.

The clients now mount the correct address on each subnet and from that derive 
the default server to get the XDM/XFS etc from

The dhcpd.conf subnet section looks like this
     subnet 192.168.0.0 netmask 255.255.255.0 {
        default-lease-time            21600;
        max-lease-time                21600;
        option subnet-mask            255.255.255.0;
        option broadcast-address      192.168.0.255;
        option routers                192.168.0.254;
        option root-path              "/opt/ltsp/i386";
        server-identifier 192.168.0.254; <<-- this line added
     }


The rc.local,rc.setupx & rc.setupx3 is modified to this.

# GET THE SERVER ADDRESS FROM /proc/mounts
ROOT_SERVER=`grep ' / ' /proc/mounts | cut -d: -f 1` # IP address of root server
DEFAULT_SERVER=`get_cfg SERVER $ROOT_SERVER`
#DEFAULT_SERVER=`get_cfg SERVER 192.168.0.254`

The SERVER directive can then be left out of the lts.conf file and the config 
file is then quite agnostic about which subnet the client is on.


You might consider putting this capability into the standard distribution in the 
future.

-- 
Darryl Bond
NRG Gladstone Operating Services Pty Ltd ( Gladstone Power Station )
[email: [EMAIL PROTECTED]] [voice: (07) 49 765756] [fax: (07) 49 765100]
snail: PO Box 5046 Gladstone 4680 Queensland , Australia



_____________________________________________________________________
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.openprojects.net

Reply via email to