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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 2000 Professional and Routing

Status
Not open for further replies.

Thorpe

MIS
Apr 30, 2002
3
0
0
US
I enabled IP routing on 3 of my Windows 2000 Professional machines with dual-nics and now I need some help on defining static routes.

MACHINE 1
NIC A:172.16.1.254 Mask:255.255.255.0
NIC B:10.1.1.251 Mask:255.255.255.0

MACHINE 2
NIC A:172.16.2.254 Mask:255.255.255.0
NIC B:10.1.2.251 Mask:255.255.255.0

MACHINE 3
NIC A:172.16.15.254 Mask:255.255.255.0
NIC B:10.1.15.251 Mask:255.255.255.0

Using the route command, here are the routes I added:

MACHINE 1
route add -p 172.16.1.0 mask 255.255.255.0 10.1.1.251
route add -p 10.1.1.0 mask 255.255.255.0 172.16.1.254

MACHINE 2
route add -p 172.16.2.0 mask 255.255.255.0 10.1.2.251
route add -p 10.1.2.0 mask 255.255.255.0 172.16.2.254

MACHINE 3
route add -p 172.16.2.0 mask 255.255.255.0 10.1.15.251
route add -p 10.1.15.0 mask 255.255.255.0 172.16.15.254

I can't ping between subnets. What am I missing?

(I rebooted the machines after the IPEnableRouter registry hack, but did not reboot after adding static routes, don't know if this is critical)
 
Hi.

I'm sorry I can't answer your question...

I just spent 4 hours learning to subnet and I thought I understood it. But I don't understand your numbers - where did you get those static IP's? "1" is not a viable subnet mask, or if it were, then you would only have 1 possible host ID. Nor is 15, since there is no 15th position in a binary octet.

Is it different with private IP's? Is that why you can have a class C subnet mask, but class A and B private IP's?

And if there are only 3 routers, then the most possible subnets you could have are 4, but I see 6 subnet ID's...

I hope someone answers this for you soon, and I'm sorry to interrupt... Good Luck!!!

Lin33
 
Oh no. I thought I had erased this post. Sorry! (And good luck again)
 
Hello
I’m not sure what you were trying to do, but if you need to route between networks then the following configuration would work. This gives you 4 subnets all C-Class or 24bit. Like you said IP Routing will need to be enabled (isn’t that routing and remote access on Win2k?) before it will work correctly. You will need to connect all of the NIC A’s to the same switch or Hub, and then the NIC B’s will become the remote networks.

MACHINE 1
NIC A: 172.16.1.1 Mask: 255.255.255.0
NIC B: 10.1.1.254 Mask: 255.255.255.0

MACHINE 2
NIC A: 172.16.1.2 Mask: 255.255.255.0
NIC B: 10.1.2.253 Mask: 255.255.255.0

MACHINE 3
NIC A: 172.16.1.3 Mask: 255.255.255.0
NIC B: 10.1.3.252 Mask: 255.255.255.0

Using the route command, add the following:

MACHINE 1
route add -p 10.1.2.0 mask 255.255.255.0 172.16.1.2
Route add -p 10.1.3.0 mask 255.255.255.0 172.16.1.3

MACHINE 2
route add -p 10.1.1.0 mask 255.255.255.0 172.16.1.1
Route add -p 10.1.3.0 mask 255.255.255.0 172.16.1.3

MACHINE 3
route add -p 10.1.1.0 mask 255.255.255.0 172.16.1.1
route add -p 10.1.2.0 mask 255.255.255.0 172.16.1.2

Or make one of the machines the default gateway and add the routes to the default gateway.
Hope this helps mate.

F1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top