Networking Forums

Networking Forums > Wireless Networking > Wireless Internet > 2 Routers & Secure Shared Internet

Reply
Thread Tools Display Modes

2 Routers & Secure Shared Internet

 
 
hufaunder@yahoo.com
Guest
Posts: n/a

 
      06-21-2008, 05:14 AM
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

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.

However, I can't access the internet from a computer connected to
LAN2. How do I setup Router 2 correctly? If it matters it's a Linksys
WRT54GC.

Thanks
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a

 
      06-21-2008, 01:35 PM

<(E-Mail Removed)> wrote in message
news:6b92671a-eae7-44c5-8c78-(E-Mail Removed)...
>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
>
> 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.
>
> However, I can't access the internet from a computer connected to
> LAN2. How do I setup Router 2 correctly? If it matters it's a Linksys
> WRT54GC.
>

The non gateway/second router must be converted to be a switch and not a
router, by disabling the DHCP server on the second router.

Then the router that is now a switch, will be configured to use an IP,
subnet mask, and gateway IP on the gateway router, which the IP should not
be a DHCP IP on the gateway router but a static. Then the machines on the
gateway router and the now the router converted to be a switch can see each
other.

It doesn't make a difference if the two routers are wire, wireless or one is
wire and one is wireless.

 
Reply With Quote
 
hufaunder@yahoo.com
Guest
Posts: n/a

 
      06-22-2008, 12:03 AM
Thanks for the reply. However, my goal is to have two separate
networks, i.e. the computers on LAN1 don't see the computers on LAN2
and visa versa. A switch won't do that. I would need at least a
bridge, I think.

So with the above scenario I think I need DHCP on both router boxes,
router1 will automatically give IP addresses to the computers
connected on LAN1 and router2 will automatically give IP addresses to
computers connected to LAN2.

Note that on router two I see two DHCP configurations. One is
InternetSetup->Internet Connection Type->DHCP/Static/PPPoE/PPTP. The
other one is under Network Setup->DHCP Server Settings->DHCP Server
enabled/disabled.

The problem is that I have router2 connected to router1 using a LAN
port on each side. So router1 tries to assign IP addresses for devices
on the switch of router2 and visa versa. So how do I avoid that
conflict but still allow automatic assignment of IP addresses both on
LAN1 and LAN2?

Thanks


On Jun 21, 6:35*am, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> <hufaun...@yahoo.com> wrote in message
>
> news:6b92671a-eae7-44c5-8c78-(E-Mail Removed)...
>
>
>
> >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

>
> > 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.

>
> > However, I can't access the internet from a computer connected to
> > LAN2. How do I setup Router 2 correctly? If it matters it's a Linksys
> > WRT54GC.

>
> The non gateway/second router must be converted to be a switch and not a
> router, by disabling the DHCP server on the second router.
>
> Then the router that is now a switch, will be configured to use an IP,
> subnet mask, and gateway IP on the gateway router, which the IP should not
> be a DHCP IP on the gateway router but a static. Then the machines on the
> gateway router and the now the router converted to be a switch can see each
> other.
>
> It doesn't make a difference if the two routers are wire, wireless or oneis
> wire and one is wireless.- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
Bill Kearney
Guest
Posts: n/a

 
      06-27-2008, 10:54 PM

<(E-Mail Removed)> wrote in message
news:6b92671a-eae7-44c5-8c78-(E-Mail Removed)...
>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


By doing this the devices on LAN2 will be double NAT routed.

Devices on LAN2 could see everything on LAN1.
Devices on LAN1 would not be able to see anything on LAN2

What are you really trying to do?

The easier solution would be to get a 2nd external IP address from your ISP
and set them up through a switch:

Modem
|
[switch]
| |
| +---[router1]----LAN1
+------[router2]----LAN2

Each router having it's own external IP address. Not usually all that much
more per month.

Otherwise you'd be better served adding a THIRD router and putting it in
place of the above [switch] device. Then configure the router1 and router2
devices as routers, not gateways. That way the 3rd router will act as a
gateway for both of them.

Doing this way will be easier to configure/maintain when using
consumer-grade devices like the linksys. Doing this with more sophisticated
office-grade devices would be different, but more expensive.

-Bill Kearney

 
Reply With Quote
 
Pierre Asselin
Guest
Posts: n/a

 
      06-29-2008, 11:34 PM
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
 
Reply With Quote
 
Jeff Liebermann
Guest
Posts: n/a

 
      06-29-2008, 11:55 PM
On Sun, 29 Jun 2008 23:34:25 +0000 (UTC), (E-Mail Removed)lid
(Pierre Asselin) wrote:

>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.


I usually manage to make a mess of the firewall rules. For DD-WRT, I
suggest Firewall Builder:
<http://www.dd-wrt.com/wiki/index.php/Firewall_Builder>
<http://www.fwbuilder.org/guides/firewall_builder_howtos.html>
<http://www.fwbuilder.org/archives/cat_slides.html>
(38 unreadable slides

--
Jeff Liebermann (E-Mail Removed)
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure my internet wireless Pregunta Wireless Internet 1 07-27-2006 05:22 PM
2 wireless routers on the same network - one secure, one unsecure bendy Wireless Networks 1 07-10-2006 03:11 PM
I want to secure my wireless internet and I need help please! G- Wireless Networks 4 04-07-2006 05:30 PM
Acessing Internet Through LAN (How Secure) dmacw@aol.com Broadband 18 09-26-2005 11:18 PM
Wireless Internet Camera - Secure? WJ Wireless Internet 4 07-25-2004 06:09 AM



1 2 3 4 5 6 7 8 9 10 11