[K12OSN] Two subnets

"Terrell Prudé Jr." microman at cmosnetworks.com
Wed Jan 24 19:11:07 UTC 2007


Just took a look at your /etc/exports.  To me, it looks fine.  However,
what is interesting is that your 192.168.1.x client is looking for
/opt/ltsp/i386-1 from 192.168.0.254 instead of 192.168.1.254. 

My guess is that there isn't a separate "option root-path" statement in
each "shared-network" stanza.  Remember that each DHCP scope needs its
own pointer to find /opt/ltsp/<whatever>.  So you want it to look sort
of like this, using my /etc/dhcpd.conf file as an example (I use
172.16.x.x networks):

shared-network WORKSTATIONS-1 {
  subnet 172.16.1.0 netmask 255.255.255.0 {
     range dynamic-bootp 172.16.1.100 172.16.1.253;
     use-host-decl-names       on;
     option log-servers        172.16.1.254;
     option root-path              "172.16.1.254:/opt/ltsp/i386-1";

   <blah blah blah>

Then, of course, you'd just comment out the global "option root-path"
statement above your "shared network" sections and bounce dhcpd.  Try
that and let us know.

--TP
_______________________________
Do you GNU!?
Microsoft Free since 2003 <http://www.gnu.org/>--the ultimate antivirus
protection!


Michael Blinn wrote:
> No, two NICs with two separate gig switches.
>
> I've found the source of this error and have boldly moved on to others (;
>
> Apparently, I needed a separate 'shared-network' declaration for each
> subnet. (before, my dhcpd-k12ltsp.conf had both subnets in the one
> WORKSTATIONS subnet) After this change, the client received the
> correct IP each time it requested.
>
> However, then, I received kernel panics, unable to mount root. I
> changed the /etc/exports file to the one as is attached, though I'm
> not sure that made a difference (I defined each mount and its allowed
> subnets separately instead of using 192.168.0.0/255.255.0.0). I
> restarted NFS and did 'exportfs -avr' to ensure the changes were taken.
>
> I DO get an OK now, though it is still trying to mount to the
> incorrect NIC. I think I've moved into NFS issues and DHCPD is now all
> set.
>
> (this is a 192.168.1.0/24 client on the 192.168.1.0/24 switch and
> 192.168.1.0/24 server NIC - I copied a separate i386 for the
> 192.168.1.0/24 subnet and called it /opt/ltsp/i386-1)
>
> Creating new ramdisk to hold our root fs...
> Monting root filesystem: /opt/ltsp/i386-1 from: 192.168.0.254
> Setting up the new root ramdisk area...
> Doing the switchroot
> SwitchRoot v0.1 - Copyright (c) 2005 Linux Based Systems Design
> Freeing ram used by initramfs
> nfs: server 192.168.0.254 not responding, still trying
> nfs: server 192.168.0.254 not responding, still trying
> nfs: server 192.168.0.254 not responding, still trying
> nfs: server 192.168.0.254 OK
> nfs: server 192.168.0.254 not responding, still trying
> nfs: server 192.168.0.254 not responding, still trying
>
> I'll keep at it. NFS doesn't do any logging so I'm kind of fishing in
> the dark. Does anyone have any suggestions?
>
> I hope folks don't mind me attaching and being a bit wordy about this
> issue. I'm hoping that others who do two subnets in the future may
> find it helpful to peruse this in the archives.
>
> Cheers,
>  Michael
>
>
> Jim McQuillan wrote:
>> Michael Blinn wrote:
>>> David Hopkins wrote:
>>>> A quick guess:  From the above it seems you have only 1 NIC for the
>>>> subnet?  Why is eth1 responding on both subnets?  Terrel's setup
>>>> was using 2 NICs: one for each subnet.
>>> No, that's what is odd. There are two NICs for the two subnets. One
>>> is 192.168.0.0/24 and one is 192.168.1.0/24. DHCPD appears to be
>>> handing out addresses without accounting for the two nics/subnets. I
>>> can only assume it's due to a problem in my dhcpd.conf but I can't
>>> find the problem.
>> Are both of those nics plugged into the same switch?
> ------------------------------------------------------------------------
>
> ## LTS-begin ##
> #
> # The lines between the 'LTS-begin' and the 'LTS-end' were added
> # on: Wed Nov 28 11:19:42 PST 2001 by the ltsp installation script.
> # For more information, visit the ltsp homepage
> # at http://www.ltsp.org
> #
>
> /opt/ltsp/i386            192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
> /var/opt/ltsp/swapfiles   192.168.0.0/255.255.255.0(rw,no_root_squash,async)
>
> /opt/ltsp/i386-1            192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
> /var/opt/ltsp/swapfiles   192.168.1.0/255.255.255.0(rw,no_root_squash,async)
>
> #
> # The following entries need to be uncommented if you want
> # Local App support in ltsp
> #
> #/home                    192.168.0.0/255.255.255.0(rw,root_squash,sync)
>
>
> ## LTS-end ## 
>
> ## LTS-begin ##
> #
> # The lines between the 'LTS-begin' and the 'LTS-end' were added
> # on: Wed Nov 28 11:19:42 PST 2001 by the ltsp installation script.
> # For more information, visit the ltsp homepage
> # at http://www.ltsp.org
> #
>
> /usr/X11R6/lib/X11/fonts   192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/share/AbiSuite/fonts  192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/share/fonts           192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/lib/openoffice/share/fonts 192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
>
> /usr/X11R6/lib/X11/fonts   192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/share/AbiSuite/fonts  192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/share/fonts           192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
> /usr/lib/openoffice/share/fonts 192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
>
> ## LTS-end ## 
>
>
> ## LTS-end ## 
>
> ## LTS-begin ##
> #
> # The lines between the 'LTS-begin' and the 'LTS-end' were added
> # on: Wed Nov 28 11:19:42 PST 2001 by the ltsp installation script.
> # For more information, visit the ltsp homepage
> # at http://www.ltsp.org
> #
>
> /opt/ltsp/ppc            192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
> /opt/ltsp/ppc            192.168.1.0/255.255.255.0(ro,no_root_squash,sync)
>
> ## LTS-end ## 
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20070124/5dd6091d/attachment.htm>


More information about the K12OSN mailing list