• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

Static route

So below is my original question and the answer I got was to create a Static Route between the two routers.  So I created this:

Router 1 (Net 1)
Destination IP :192.168.3.0
Netmask :255.255.255.0
Gateway :192.168.2.1
Interface : LAN
Metric: 2

Router 2 (Net 2)
Destination IP :192.168.2.0
Netmask :255.255.255.0
Gateway :192.168.3.1
Interface : LAN
Metric: 2

but now when I try and ping a computer on Net 1 (192.168.2.202) from a computer on Net 2 (192.168.3.100) I can not ping it.  I can ping the router on Net 1 (192.168.2.1) from the same computer though.  Why can't I ping the computer?



Original Question:

Net 1:
192.168.2.x - IP
255. 255. 255. 0 - subnet mask
192. 168.2.1 - gateway (Internet cable Router)

Net 2:
192.168.3.x - IP
255. 255. 255. 0 - subnet mask
192.168.3.1 - gateway (Wireless Router)

So because I have two routers and not a Access Point I connected the network cable from one port on Net 1 to the Internet Port on the Net 2 router I then set the Fixed WAN IP address of Net 2 router to a reserved IP address 192.168.2.50 for Net 1.  I then setup the DNS for the DNS asigned to Net1 and now all my users on Net 2 have internet acess and every thing works great.  The problem is now users on Net 1 need access to shared drives on Net 2 and user on Net 2 need access to shared drives on Net 1.  Is there a easy way to just change the Subnet mask on Net 1 and Net 2 so that they can access each other?  My problem is that I am not sure how IP schemes work.
0
cimcto
Asked:
cimcto
  • 5
  • 4
  • 2
1 Solution
 
Faruk Onder YerliOwnerCommented:
if you use 255.255.252.0 subnet, you may create connection between 192.168.2.x/24 and 192.168.3.x. They will be in same network. In addition, just servers should use 255.255.252.0. Host may stay 255.255.255.0. So, different hosts will not see each other.
0
 
cimctoAuthor Commented:
I am sorry to say that I am new to the network stuff.  So by changing the subnet on both routers to 255.255.252.0 I will be able to ping and use resources like shared drives in the IP range of 192.168.2.1 to 192.168.2.24?  How can I make it so its both networks full range of IP 192.168.2.1 to 254 and IP192.168.3.1 to 254?
0
 
Faruk Onder YerliOwnerCommented:
Large subnets are covering small subnets.
192.168.0.0 255.255.252.0 is including IP address between 192.168.0.0 - 192.168.3.254.

Also, 192.168.3.24 255.255.252 and 192.168.3.234 255.255.255.0 is in same network. If ip addresses are accepting after subnet apply, they can communicate each other.

Your case you have 2 different network in same LAN. one of them using wireless other of them using cable in same layer 2 domain. I understood that you making seperation on Layer3.
192.168.2.24 255.255.255.0 and 192.168.3.24 255.255.255.0 are not able to ping each other. But if you will change subnet 255.255.252.0, they will start to ping  each other.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
QlemoDeveloperCommented:
Correction: 192.168.3.234 255.255.255.0 is on same subnet as 192.168.3.24 255.255.252, but not vice versa!

0
 
Faruk Onder YerliOwnerCommented:
Correcttion is not corect :)
I just forgot to put ".0" end of subnet...

Also, 192.168.3.24 255.255.252.0 and 192.168.3.234 255.255.255.0 is in same network.
0
 
QlemoDeveloperCommented:
Agreed. Double fault ;-)
0
 
cimctoAuthor Commented:
where should I change the subnets On Net 1 it would be the LAN Setup but what about Net 2 since its connection to Net 1 is through the WAN port?
0
 
Faruk Onder YerliOwnerCommented:
may be you should send us topology. After it, we may give you more correct information.
0
 
cimctoAuthor Commented:
Not sure what you mean by topology but I have a Cable Modem that is connected to Net 1 DLink router Internet WAN port.  On the other side of the office I have a wired connection from the Net 1 router connected to Net 2 WAN or Internet port on an Neatgear Wireless Router.  Below is how the LAN settings are configured:

Router 1 (Net 1)  DLink Router
Destination IP :192.168.3.0
Netmask :255.255.255.0
Gateway :192.168.2.1
Interface : LAN
Metric: 2

Router 2 (Net 2) Neatgear Wireless Router
Destination IP :192.168.2.0
Netmask :255.255.255.0
Gateway :192.168.3.1
Interface : LAN
Metric: 2

0
 
cimctoAuthor Commented:
correction the LAN settings are configured as this:

Net 1:
192.168.2.x - IP
255. 255. 255. 0 - subnet mask
192. 168.2.1 - gateway (Internet cable Router)

Net 2:
192.168.3.x - IP
255. 255. 255. 0 - subnet mask
192.168.3.1 - gateway (Wireless Router)

Net 2 WAN Port which is connected to Net 1 is configured as:
192.168.2.50
255.255.255.0
192.168.2.1 gateway



That was the static route that I listed
0
 
cimctoAuthor Commented:
I found the solution in a book...thanks for the help anyway....
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now