Discussion Locked

win2kpro as a router

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have win2kpro pc that has 2 nics. The first nic (nic A) connects to my regular network and has its gateway defined. Through this nic I can access the internet and the rest of my network from this win2kpro PC. The other nic (nic B) is connected to a hub with its own separate IP network using a different IP address scheme and is the default gatway for all devices in this separate network. I have enabled IP forwarding through the registry. From a device in this separate network, I can ping the first nic (nic A) which connects to the regular network but I can not ping any other devices in the regular network. What can I do to be able to ping any other device in the subnet that nic A is connected to from the separate network that nic b is connected to. Thanks

9 replies

by quintar51

I haven't used win2kpro as a router, but I do believe that you need to add both routes to the routing table.

let's say my two NICS are 192.168.0.1 and 10.0.0.1.

I would need to add both of these routes to my routing table.

to do that, open a command prompt. You can type ROUTE PRINT to view your routing table. You can also type ROUTE /? to see all available options.

I would type ROUTE ADD -P 192.168.0.0 (network address) 255.255.255.0 (subnet mask) 192.168.0.1 (gateway). You can also add a metric if you wish.

I would then also type ROUTE ADD -P 10.0.0.0 (network address) 255.255.255.0 (subnet mask) 10.0.0.1 (gateway).

This would add both routes and make them persistent, which means you wouldn't need to type this every time you reboot.

Again, if you type ROUTE /?, it will give you all options and an example.

Also, make sure that both NICs DO NOT have a gateway specified in the TCP/IP properties.

regards,

by greybeard770

I see a lot of confusion about default gateways. The computer/router has a default gateway. That default gateway is assigned to a NIC. The computer uses that information to get to networks it knows nothing about. Only one NIC should have a default gateway assigned. On your computer in question, that gateway should probably be a device connected to the Internet.

Is there another IP address (like a router)between the computer and the Internet? Perhaps that router needs a route that says to get to network A go to xyz address on network B.

by joshhansen

Your second paragraph is the fix. I found that the problem is that the device being pinged in the regular network from the new separate network doesn't know how to send the response packet back. When it askes its gateway (which is not the routerPC), the gateway doesn't know about it either. I would need to add a route statement to the router serving as the default gateway of the "regular network" to send any traffic designated to the new separate network.

This discussion is closed to new replies.