I have three Ubuntu machines, machine A, B, C. I also created a VNet 10.3.0.0/16, and create three sub-net SubN1: 10.3.0.0/24 SubN2: 10.3.1.0/24 SubN3: 10.3.2.0/24
Machine A has 3 nics, eth0, eth1, eth2 Machine B has 2 nics eth0, eth1 Machine C has 2 nics eth0, eth1
I let eth0 of every machine connect to SubN1 for management purpose. Machine A eth1 and Machine B eth1 belongs to SubN2 Machine A eth2 and Machine C eth1 belongs to SubN3 I want to let Machine B connect to Machine C with interface eth1, It means I need to add a route between Machine B & C I've verified B and C not connected.
Then, In machine B routing table, I type the command: ip route add {SubN3}/24 via {Ip address of Machine A's eth1} dev eth1 In machine C routing table, I type the command: ip route add {SubN2}/24 via {Ip address of Machine A's eth2} dev eth1
I even didn't set the IP forwarding in Machine A, then machine B can connect to machine C via their eth1 successfully.
It's great! However, the questions come.
I cannot see any traffic in Machine A(either eth1 or eth2) while Machine B and C are connected(ping or ssh each other)
Even I shutdown Machine A. Machine B and C are still connected!!, It is weird.
What I want is: machine B and C connected but the traffic should via Machine A.
Would you tell me what's wrong or anything I need to set?
Thanks
traceroute
between B and C look like?