packets not routed properly after setting up linux machine as router
I have three machines say A B and C. I want to make machine B as a router for A and C, so that the ping packets from C to A should be going via B. I have directly connected two interfaces(eth4) of A and B and similarly two interfaces(eth5) of B and C. I have even set up a route between B and C.
1. But I am not able to set a route between B and A.
2. If I ping A from eth4 of B(viceversa) it works. When I ping B from eth5 of C it works but not the viceversa.
3. Also, if I ping from C to A, B receives the packets, but not A.
I request you to kindly guide me to solve these issues.
please ask me if you require any more info.
|