Hmm, I am no pro but I've worked in a computer firm for quite a while. Just check, what network card is in the IBM pc.
From my experience, IBM PCs have those nasty Token Ring cards installed which can only be switched together to a Token Ring network and that could be why you can connect 2 IBM PCs together and not the IBM <=> Compaq version.
Just my 2
