Solved

Subnet Mask Help

Posted on 2013-06-20
3
712 Views
Last Modified: 2013-06-21
Today I was faced with this question:

A server and PC are connected through a hub.  Their IP configs are as follows:

Server: 192.168.10.155, SM: 255.255.255.0
PC:  192.168.20.201  SM: 255.255.0.0

The client is having trouble communicating with the server.  What would you do?

Now, for me, the obvious solution would be to make the SMs the same.  But the example said "other than making the SMs the same".  

Could I use something like 255.255.240 on the PC?  If so, why?  I'm a little green with all this subnetting stuff..
0
Comment
Question by:dougp23
3 Comments
 
LVL 90

Expert Comment

by:John Hurst
ID: 39264725
The server and PC are on different subnets. Why?  One is on .10 and the other is on .20. The subnet mask is not the issue at this point.

Are you really using a HUB?  and then why not use a Switch (which has a few more smarts)?

... Thinkpads_User
0
 
LVL 17

Accepted Solution

by:
lruiz52 earned 500 total points
ID: 39264733
Actually you would have to change it to 255.255.224.0 on the PC to be able to communicate with the Server

As they stand, they are two seperate networks. The Server is in Network 192.168.10.0/24
It can communicate with anything in the rage of 192.168.10.1 - 254

The PC is in network 192.168.0.0/16 and can communicate with anything in the range from 192.168.0.1 - 192.168.255.254

If you change the subnet on the PC to 255.255.224.0 it will be in the 192.168.1.0/19 network  and can communicate with anything in the range from 192.168.0.1 - 192.168.31.254.

and since the Servers ip is withn the PC's Range It should be able to communicate. Its not recommended to have it this way, but communication can happen.
0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 39264751
A server and PC are connected through a hub.  Their IP configs are as follows:

Server: 192.168.10.155, SM: 255.255.255.0
PC:  192.168.20.201  SM: 255.255.0.0

The client is having trouble communicating with the server.  What would you do?

Now, for me, the obvious solution would be to make the SMs the same.  But the example said "other than making the SMs the same".  
Using your scenario as written... Either change the IP address of the PC to 192.168.10.xxx, or change the IP address of the Server to 192.168.20.xxx.  Without changing the masks, the two hosts will be able to communicate with each other.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now