Multiple NIC network programming
I'm assigned to develop a network testbed.
my situation is like this:
* I am working with Linux (Red Hat like)
* My computer has multiple network interfaces (8 actually, but i'll start with 2) IN THE SAME NETWORK SUBNET.
So: NIC 1: 10.240.10.1 /24 and NIC 3: 10.240.10.2 /24
Now, i connect NIC 1 and NIC 2 with an UTP cable. I have a network ! :cool:
Now I want to send messages using C between these NIC's, over the cable of course.
I already read C Programming/Networking in UNIX - Wikibooks, open books for an open world
But that way, e.g. messages from NIC 1 -> NIC 2 get sent over the cable, but messages from NIC 2 -> NIC 1 not, because of the computer's routing table.
How can i solve this?
I'd rather not change the computers routing table...
If things are not well explained yet, please ask...
Thanks in advance,