Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connect to comp. with different subnet

Status
Not open for further replies.

tmbtech

MIS
Mar 8, 2003
8
US
how to do i connect to a share that is on a address of 192.168.5.x when my ip is 192.168.1.x.. i know i have to use some sort of subnet but since i'm in a class c ip address will setting the subnet mask to say 255.255.0.0 help?

thanks
 
If you have a host that is on both subnets (probably your router) and you define a route for 192.168.5.0/255.255.255.0 to go to that host and ip forwarding is turned on, you don't need anything else.

Typically your default gateway can see both networks, so the routing happens automagically. If not, you can define a static route for hosts that need to access both networks, or you can put a second IP address on each computer that needs to connect to both networks.

Putting both networks in the same broadcast domain (your proposed netmask change) will increase your broadcast overhead on every machine. It is generally a poor solution to a simple routing problem.


pansophic
 
Networks are defined by thier IP address. 10.x.x.x and 11.x.x.x are two different networks. I guess you could give the 2 clients a SMN of 255.255.0.0, but it that would simply make them part of the same network. If you're going to do that, you would be better off giving them both IP addresses in the same range, but, depending on your situation, this may not be an option. BTW, by giving them IP addresses in the same range, I mean one gets 192.168.1.1 and the other gets 192.168.1.2.

Pansophic is right. You need either a router or a proxy server to connect your networks. However, since you want to cennect a "share", I'm going to assume you're using Windows as your file server. Windows based file sharing requires NETBIOS, and that means you'll need to enable this on your router/proxy server, or else you may probably won't see the Windows share.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top