Hello,
I am using the INET framework for building a wired network using ethernet and TCP/IP. By using a XML configuration file, you can define static routes between nodes in the network. However, I have not found the way to configure several static route between 2 nodes differentiated by a parameter like the source node. I use the next example to explain my doubt.
Let assume the attached network. If I want to sent packet from the server (srv) to the client 1 (cli[1]), I have 4 different routes that can be easily configured in the XML file. One of them may be the next:
<route hosts="srv" destination="cli[1]" netmask="255.255.255.255" interface="eth0" />
<route hosts="r3" destination="cli[1]" netmask="255.255.255.255" interface="eth1" />
But how can I configure that the router 1 (r1) send packets to reach the server (srv) through the router 3 (r3), if the source node is the client 0 (cli[0]), and through the router 4 (r4), if the source node is client 1 (cli[1])?
Kind regards,