IP Loopback THROUGH Network?

bheilig

Junior Member
Jul 31, 2002
1
0
0
I have an application that requires me to send Ethernet packets through the network, and have them arrive back to the same PC. I have two NICs installed on two different subnets: 192.168.2.1 and 192.168.3.1, on Windows NT4. NT automatically sets a route to the loopback address 127.0.0.1 for exact matches to the above IP addresses. Like this:

192.168.2.1 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.3.1 255.255.255.255 127.0.0.1 127.0.0.1 1

This is bad. I need traffic addressed to 192.168.3.1 to be routed through the NIC at 192.168.2.1, and vice versa. Is this possible? Any routes I enter are lower priority than the above loopback routes. I can't raise the metric (cost) of the loopback routes, and I can't delete them either. Or at least I don't know how to do any of these things.

The network and routers can be simulated by a crossover cable. If all is well, a ping to either card should only respond when the crossover cable is in place.

Help?
Thank You,
Brian Heilig
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
Since thy're both directly connected networks, the routing process in NT is not going to let you send something out a wire from one NIC to the other.

It doesn't matter if there's a wire, or the Internet between the two cards, the OS knows both are directly attached and treats 'em as peers.

Maybe one of the applications that allows two broadband connections (like two cable or a cable & a DSL) can work the right kind of magic to make the computer think it's talking to two different networks, but I'm betting probably not.

Good Luck

Scott