Tuesday, July 20, 2010

Same network: different IPs through different NICs?

Running Windows XP, I have 2 network cards, both of which are on the same network (192.168.1.x /24). The two parts of the network I want to connect to are not themselves connected (think of 192.168.1.1-20 on one side connected to switch1, and 192.168.1.21-254 on the other side connected to switch2, both being joined at the computer in question, with the switches not being linked together). I don't need to route traffic through the computer, I just need to access different IP addresses on the same network through different interfaces. Is this possible?

Same network: different IPs through different NICs?
I think you can by using proper subnet masking. The exact numbers for each network may vary based on the subnet used.
Reply:This would be tricky, because neither part of the network is a normal power-of-two size. If the two parts were 192.168.1.1-127 and 192.168.1.128-255, then you could configure each interface with a netmask for a /25 network, and the OS should be smart enough to pick the right interface for any outgoing IP traffic. But the way it is, it looks like you'd need a very weird protocol stack instead of the one that comes with WinXP. How did the two parts of the network get set up like that to start with? Can you change the network topology? Or renumber some of the machines on the network in order to make both parts /25?
Reply:Hi, i love these type of question from whihc other can learn as well, you can easily do that, by disabling IP forwarding and routing in registry.





To disable IP routing, go to





HKEY_LOCAL_MACHINE\SYSTEM\ControlSet00...


Services\Tcpip\Parameters, Set 'IPEnableRouter' to 0.





there you go this should help, also follow this link if you want more information





http://www.howtonetworking.com/Networkin...





Cheers


No comments:

Post a Comment