Quote:
Originally Posted by answerme
But when I ping with ETH0 & HOSTA its pinging ,but surprisingly ETH1 & HOSTB is also pinging which does not have physical connectivity
whereas ETH1 & HOSTB are not pinging to each other .
|
That sentence makes no sense. It sounds like you simultaneously can and cannot ping HOSTB, even with the cable disconnected. That sounds like something out of
Hitchhiker's Guide to the Galaxy.
I'm going to assume this is what you actually mean: That you've set up two physically separate networks using the same IP network, and you're having connection issues. Is that correct? If so, that's to be expected.
Imagine being confronted with two doors, both carrying a sign saying "exit". One leads to the parking lot, the other to the back yard. You're told to go "outside" to meet someone. You pick a door at random since they both seem to lead to the same place, but when you go outside, that someone isn't there. But how could you have known that the other door was the correct choice?
You've told the computer that a certain IP network can be reached via two different NICs, but that isn't actually true, is it? The NICs do
not lead to the same network, but to two different networks using the same address range. Whether or not such a scenario will work is anybody's guess, as different OSes may handle the situation differently.
You simply need to use different IP networks for different physical networks. If you really want these computers (HOSTA and HOSTB) to share the same network infrastructure, create a bridge between eth0 and eth1.