Hi,
>> All the machines on both lans are using static IP's, but how would
>>the machines on the 192.168.1.* lan know the addresses of the boxes on
>>the 192.168.2.* lan?
>>
>
>
> If you're using static configureation, you can do that. Use a subnet mask
> of 255.255.254.0, instead of 255.255.255.0.
This is a good idea, if the two subnets shall really be joined into one subnet.
But since the net's IP ranges are 192.168.1.X and 192.168.2.X the netmask should
be 255.255.252.0 if i'm right.
Ok, to the OP:
If it is not wanted to join the two subnets, there will be some further
configuration issues.
The first thing is the DSL/switch mentioned in the OP.
It needs to get correct route entry enries for the subnets
(route .1.x-Packets to the local interface, where the .1.x is connected,
the same with .2.x-packets).
I think it is a DSL Router rather than a switch (it surely has switch
functionalty built in though).
How this can be done, depends on your device. See it's manuals.
Ok, the next thing is samba. The M$ Network Client uses broadcast
to get to know the other machines you see in your Network Neighbourhood.
At least broadcast is used to determine a NetBIOS name server (or kind of
a master machine.....in fact, each time a machine is connected, a master
election is oerformed), which lists (NetBIOS-) host names and their IPs.
Ok, since the subnets are not connected, the broadcast will not find the
machines on the other net.
A Way to work around this issue may be to make one samba server a "wins-server",
or maybe even a "domain controller". You can set up the other machines
(in both linux and Windows) to talk to this wins-server and you should be
able to see machnines accross subnets (well, the above mentioned routing
has to work, e.g. all machines must be able to ping each other/the wins-server).
How to do this, you should find in some samba documentation.
See
www.sambs.org or man smb.conf.
HTH
Ralf