Using a PC as a router between two networks

VVinter

Honorable
May 11, 2012
2
0
10,510
Hi. I hope someone can help me with a routing problem.

I have two networks that are on two different IP ranges, sharing an ADSL internet router.

I can make the two networks access the internet through a Windows 7 PC acting as a router with two NICs, but I cannot print to a shared network printer (build in NIC in the printer).

This is how it looks.

ADSL router IP:
IP address: 10.10.10.253
Subnet Mask: 255.255.255.0

Network A computers:
IP range of: 10.10.10.XXX
Subnet Mask: 255.255.255.0
Default Gateway: 10.10.10.253

Network B computers:
IP Range: 172.16.0.XXX
Subnet Mask: 255.255.255.0
Default Gateway: 172.16.0.1

Windows 7 PC with two NICs:
NIC 1
IP address: 10.10.10.180
Subnet Mask: 255.255.255.0
Default Gateway: 10.10.10.253

NIC 2
IP address: 172.16.0.1
Subnet Mask: 255.255.255.0
Default Gateway: 10.10.10.180

And the printer I want to share between the two networks:

IP address: 10.10.10.10
Subnet Mask: 255.255.255.0
Default Gateway: 10.10.10.253

Any help will be appreciated.

Note: All the computers can access the internet just fine, it's only the one set of computers on IP range 172.16.0.XXX that cannot see the printer.
All computers are Windows 7 32bit Professional.

Thank you.
Winter.
 

Fred1Andrews

Honorable
Mar 5, 2012
12
0
10,520
Now, you need to let the computers know where to go. So If the windows computer is the gateway you need to point it to the right way.
the default gateway is some ip x.x.x.x you need to tell the network that need to talk to the printers where to go. So you make a route on the unit tha says in human terms. to talk to network 172.16.0. you need to talk to 172.16.0.1. The network 10.10.10.0 does not know this.

using a router is one way in windows.
route add 172.16.0.0 MASK 255.255.255.0 172.16.0.1
This way you can let the networks talk beween themselfs
 

VVinter

Honorable
May 11, 2012
2
0
10,510


Thank you Fred!! That worked and they can now print to the network printer from any PC. After a few adjustments to the proxy everything is working like clock work and everybody is happy.

Thanks again.
 

TRENDING THREADS