| | |
How to establish bi-directional communication between 2 routers on 2 subnets
![]() |
•
•
Join Date: Jul 2007
Posts: 5
Reputation:
Solved Threads: 0
Hi-
I'm hoping someone can help me, because this issue has been irritating me for quite some time now. I have two routers, one wireless (Linksys WRT54GS), and the other, a SonicWall Security Appliance TZ170SP. I have computers (wireless/wired) that connect to both of the routers, as well as, a wired network printer that connects to the wireless router. The SonicWall (wired router) is connected to the Internet via a cable modem.
I would like to establish bi-directional communication between the two routers, while maintaining two separate networks, on two separate subnets. I have read many posts regarding similar situations, which all seem to advise connecting the LAN port of one router to the LAN port of the other router (not the WAN port on the second router). When I do this, I lose my internet connection on the wireless router. Most of these scenarios also involve simulating a switched environment on the second router, which would eliminate the possibility of having two separate networks.
Similar scenarios to what I'm trying to accomplish are setup in virtually every enterprise environment. I'm not sure if the fact that I'm using a SOHO (Linksys) router precludes the possibility of accomplishing my goal.
I have setup a website, http://www.interwerks.net/routing that maps out my environment in detail. On this website, you will find screenshots of the various pages of the Management Interfaces that I believe would apply to troubleshooting this issue. I have also included more details about what I am trying to accomplish. The site is resident in a password-protected directory. Please use the following credentials to access this resource.
Username: anon
Password: l3tm31n
Thanks in advance to anyone that attempts to assist me with this. Your help is much appreciated. Regardless of whether or not you can help me resolve this issue, I appreciate the input.
--Thanks
Joe
I'm hoping someone can help me, because this issue has been irritating me for quite some time now. I have two routers, one wireless (Linksys WRT54GS), and the other, a SonicWall Security Appliance TZ170SP. I have computers (wireless/wired) that connect to both of the routers, as well as, a wired network printer that connects to the wireless router. The SonicWall (wired router) is connected to the Internet via a cable modem.
I would like to establish bi-directional communication between the two routers, while maintaining two separate networks, on two separate subnets. I have read many posts regarding similar situations, which all seem to advise connecting the LAN port of one router to the LAN port of the other router (not the WAN port on the second router). When I do this, I lose my internet connection on the wireless router. Most of these scenarios also involve simulating a switched environment on the second router, which would eliminate the possibility of having two separate networks.
Similar scenarios to what I'm trying to accomplish are setup in virtually every enterprise environment. I'm not sure if the fact that I'm using a SOHO (Linksys) router precludes the possibility of accomplishing my goal.
I have setup a website, http://www.interwerks.net/routing that maps out my environment in detail. On this website, you will find screenshots of the various pages of the Management Interfaces that I believe would apply to troubleshooting this issue. I have also included more details about what I am trying to accomplish. The site is resident in a password-protected directory. Please use the following credentials to access this resource.
Username: anon
Password: l3tm31n
Thanks in advance to anyone that attempts to assist me with this. Your help is much appreciated. Regardless of whether or not you can help me resolve this issue, I appreciate the input.
--Thanks
Joe
Re: How to establish bi-directional communication between 2 routers on 2 subnets
0
#2 Aug 26th, 2009
Can't get to your web site.. WHat you want to do should work fine. Let's define some givens, first:
The SonicWall router has two interfaces - lets call them LAN-1 (L1) and WAN-1 (W1).
The WRT54G routers two interfaces - lets call them LAN-2 (L2) and WAN-2 (W2).
The first LAN subnet will be 192.168.32.0 / 24.
The second LAN subnet will be 192.168.40.0 /24.
(Change these as appropriate, but be consistent)
The SonicWall W interface is connected to the Internet and likely has a DHCP assigned address - we don't really care, so long as that interface has the default gateway.
Manually configure the SonicWall as follows:
Interface L1 should have a static address - let's use 192.168.32.1, 255.255.255.0 for the netmask, and no gateway.
Create a static route for the LAN-2 address range, forwarding to the WRT54G - ROUTE: (network) 192.168.40.0 (netmask) 255.255.255.0 (gateway) 192.168.32.2
Configure DHCP server for LAN-1 using 192.168.32.64-127, mask 255.255.255.0, and gateway 192.168.32.1. You'll neeed to configure DNS as appropriate.
Manually configure the WRT54G as follows:
Interface W2 should be physically connected to LAN 1 and assigned a static configuration. Use 192.168.32.2 for the address, 255.255.255.0 for the netmask, and 192.168.32.1 for the gateway.
Interface L2 should be assigned a static address - use 192.168.40.1, netmask of 255.255.255.0, and no gateway.
Configure DHCP server for LAN-2 using 192.168.40.64-127, mask 255.255.255.0, and gateway 192.168.40.1. You'll neeed to configure DNS as appropriate.
The addresses for DHCP provide a range of 64 addresses on each LAN segment - adjust as needed for your needs. This is just an example to illustrate the settings for each network.
The LAN layout is:
(Internet)--[W1-SonicWall-L1]--.1--192.168.32.0--.2--[W2-WRT54G-L2]--.1--192.168.40.0
Users in LAN-1 will use L1 as their gateway. Traffic to LAN-2 will hit the SonicWall and be forwarded back to W2 on the WRT54G and delivered via the L2 interface. Users on LAN-2 will use L2 as their gateway. Traffic to LAN-1 will hit the WRT54G and be delivered via the W2 interface. Traffic to the Internet will be forwarded to L1 and routed to the W1 interface on the SonicWall. You should now be able to connect to either LAN-1 or LAN-2 and ping addresses on the other network, as well as connect to the Internet.
Glenn
The SonicWall router has two interfaces - lets call them LAN-1 (L1) and WAN-1 (W1).
The WRT54G routers two interfaces - lets call them LAN-2 (L2) and WAN-2 (W2).
The first LAN subnet will be 192.168.32.0 / 24.
The second LAN subnet will be 192.168.40.0 /24.
(Change these as appropriate, but be consistent)
The SonicWall W interface is connected to the Internet and likely has a DHCP assigned address - we don't really care, so long as that interface has the default gateway.
Manually configure the SonicWall as follows:
Interface L1 should have a static address - let's use 192.168.32.1, 255.255.255.0 for the netmask, and no gateway.
Create a static route for the LAN-2 address range, forwarding to the WRT54G - ROUTE: (network) 192.168.40.0 (netmask) 255.255.255.0 (gateway) 192.168.32.2
Configure DHCP server for LAN-1 using 192.168.32.64-127, mask 255.255.255.0, and gateway 192.168.32.1. You'll neeed to configure DNS as appropriate.
Manually configure the WRT54G as follows:
Interface W2 should be physically connected to LAN 1 and assigned a static configuration. Use 192.168.32.2 for the address, 255.255.255.0 for the netmask, and 192.168.32.1 for the gateway.
Interface L2 should be assigned a static address - use 192.168.40.1, netmask of 255.255.255.0, and no gateway.
Configure DHCP server for LAN-2 using 192.168.40.64-127, mask 255.255.255.0, and gateway 192.168.40.1. You'll neeed to configure DNS as appropriate.
The addresses for DHCP provide a range of 64 addresses on each LAN segment - adjust as needed for your needs. This is just an example to illustrate the settings for each network.
The LAN layout is:
(Internet)--[W1-SonicWall-L1]--.1--192.168.32.0--.2--[W2-WRT54G-L2]--.1--192.168.40.0
Users in LAN-1 will use L1 as their gateway. Traffic to LAN-2 will hit the SonicWall and be forwarded back to W2 on the WRT54G and delivered via the L2 interface. Users on LAN-2 will use L2 as their gateway. Traffic to LAN-1 will hit the WRT54G and be delivered via the W2 interface. Traffic to the Internet will be forwarded to L1 and routed to the W1 interface on the SonicWall. You should now be able to connect to either LAN-1 or LAN-2 and ping addresses on the other network, as well as connect to the Internet.
Glenn
LOST: 8' rocket, green with yellow computer bay, last seen streeking skyward in NY state!
Get IT tools and resources at our web site
Get IT tools and resources at our web site
•
•
Join Date: Jul 2007
Posts: 5
Reputation:
Solved Threads: 0
Re: How to establish bi-directional communication between 2 routers on 2 subnets
0
#3 Aug 30th, 2009
Thanks Glenn. That configuration mirrors my current config with the exception of the subnets. According to SonicWall, the two networks need to be on different subnets and have different netmasks. Again, according to SonicWall, the L1 should have a netmask of 255.255.0.0 and L2 should have a netmask of 255.255.255.0.
What are the implications of using two different netmasks like that? Are there advantages? Disadvantages? Any additional information you could provide would be appreciated.
--Thanks
Joe
What are the implications of using two different netmasks like that? Are there advantages? Disadvantages? Any additional information you could provide would be appreciated.
--Thanks
Joe
•
•
Join Date: Jul 2007
Posts: 5
Reputation:
Solved Threads: 0
Re: How to establish bi-directional communication between 2 routers on 2 subnets
0
#4 Aug 30th, 2009
Additionally, if you encountered an authentication error while attempting to access the website, please try again. Unfortunately, htaccess authentication can be somewhat buggy. It will report an invalid username/password in instances where the correct credentials were supplied. Usually, access is allowed on the second attempt. I'm not sure why it works this way, but nonetheless, persistence is key. I'm sorry for any difficulties you encountered.
--Thanks
Joe
--Thanks
Joe
Re: How to establish bi-directional communication between 2 routers on 2 subnets
0
#5 Aug 30th, 2009
It's not about advantage or disadvantage, it's about what will work!
If one network's subnet is 255.255.0.0 and the other is 255.255.255.0, unless you're using a Class A network (10.x.x.x), your networks will overlap. When that happens, the smaller network will forward packets to the router (gateway) to get off the network, but the recipient on the larger network will not forward to the router - they assume that the destination is in the local network.
Set both netmasks to /24 (255.255.255.0). Larger netmasks are rarely used in LANs, and are often used to describe large LANs that consist of many smaller networks.
If you're not comfortable with subnetting, download the netmask calculation spreadsheet from my web site. I hand it out when I teach network fundamentals. http://www.innotechcg.com/downloads/netmask.zip - It not only has a calculation page, but has a "Use your brain" page that illustrates a couple of simple formulas using the Network Magic Number (256) that can help determine mask, # subnets, # hosts, etc.
Glenn
If one network's subnet is 255.255.0.0 and the other is 255.255.255.0, unless you're using a Class A network (10.x.x.x), your networks will overlap. When that happens, the smaller network will forward packets to the router (gateway) to get off the network, but the recipient on the larger network will not forward to the router - they assume that the destination is in the local network.
Set both netmasks to /24 (255.255.255.0). Larger netmasks are rarely used in LANs, and are often used to describe large LANs that consist of many smaller networks.
If you're not comfortable with subnetting, download the netmask calculation spreadsheet from my web site. I hand it out when I teach network fundamentals. http://www.innotechcg.com/downloads/netmask.zip - It not only has a calculation page, but has a "Use your brain" page that illustrates a couple of simple formulas using the Network Magic Number (256) that can help determine mask, # subnets, # hosts, etc.
Glenn
LOST: 8' rocket, green with yellow computer bay, last seen streeking skyward in NY state!
Get IT tools and resources at our web site
Get IT tools and resources at our web site
![]() |
Similar Threads
- Adding a notify icon to a windows service. (C#)
- Resume of CEO (Post your Resume)
- Printer unable to establish two-way communication with device (Windows NT / 2000 / XP)
- Connecting two wireless routers together (Networking Hardware Configuration)
- Two subnets configuration (Networking Hardware Configuration)
- Problem accessing network computer by name (Domains and DNS)
- Connect small subnet to existing domain (Networking Hardware Configuration)
- Cannot receive broadcast messages (Windows NT / 2000 / XP)
- DSL user on vacation with Wireless needs HELP!!!! (Web Browsers)
Other Threads in the Networking Hardware Configuration Forum
- Previous Thread: Intermittent internet connection is driving me nuts
- Next Thread: BT and VPN Tunnel
| Thread Tools | Search this Thread |
802.11 802.11n bluetooth british broadband browserproblems bt connectionproblem connectivity cpu data desktop dual gigabyte hardware infrastructure internet memory network networking news program rdimm reliability riched20.dll routers server storage survey technology telecoms troubleshoot uk upgrade videoconferencing view virgin wireless wirelessnetworking





