Responding a little late, I was away...
(E-Mail Removed) <(E-Mail Removed)> wrote:
> I want to share an internet connection but have two separate LANs so
> computers from one LAN can't access shared files on computers on the
> other LAN, i.e.
> /-->LAN1
> Modem-->Router1--
> \-->Router2-->LAN2
> [ ... ]
> How do I setup Router 2 correctly? If it matters it's a Linksys
> WRT54GC.
It probably matters. You're in luck.
> Both LANs will have static and dynamic IP addresses.
> Router1 has the following setup:
> Router Address: 192.168.1.254
> Subnet Mask: 255.255.255.0
> DHCP Range: 192.168.1.64 - 253
> Default Gateway: 192.168.1.254
> Router2 is currently setup like this:
> Router Address: 172.168.1.1
> Subnet Mask: 255.255.255.0
> DHCP Range: 172.168.1.100 - 149
> Default Gateway: 172.168.1.1
> Router1 and Router2 are connected together with a CAT5 cable using a
> LAN (not WAN) port on each side.
No. Connect Router2 WAN to a Router1 LAN port with a crossover
cable. If Router1 has an "Uplink" port you can use a regular cable
from that to Router2 WAN but that consumes the adjacent LAN port
on Router1. (If the routers have MDI/MDIX ports you can use any
cable, but I don't think the Linksys routers do that.)
Next, set Router2 to "router" mode as opposed to "gateway" mode.
Set the WAN parameters manually on Router2.
address 192.168.1.10 (on Router1's LAN range but out of DHCP range)
subnet 255.255.255.0
default gateway 192.168.1.254 (Router1 as seen from its LAN)
You probably need a static route on Router1,
destination LAN 172.168.1.0 netmask 255.255.255.0
gateway 192.168.1.10 (Router2 as seen from its WAN port)
interface LAN
You mentioned in another post that you *don't* want LAN1
to see computers on LAN2. That's unusual, but you can
do this by a firewall rule (maybe "filters" on the menus).
Have LAN2 drop anything from 192.168.1.0/24 so that
only packets with an external Internet address come through.
Good luck.
--
pa at panix dot com