Again not getting things to work. Need you help..
I have setup two different machines (PC and a Laptop) and one KVM in each machine.
Setup is like this >>
Server A
Code:
IP: 172.24.0.254
Gateway: 172.24.0.254
Server A has a virtual machine Virtual A (Isolated Network not bridge or NAT)
Virtual A
Code:
IP: 10.4.0.4
Gateway: 10.4.0.4
Server B
Code:
IP: 172.24.0.3
Gateway: 172.24.0.3
Server B has a virtual machine Virtual B (Isolated Network not bridge or NAT)
Virtual B
Code:
IP: 10.3.0.3
Gateway: 10.3.0.3
I have disabled Firewall on all ServerA,B and VirtualA,B to try initial setup and checked using
to see if disabled
I have set
Code:
net.ipv4.ip_forward = 1
I can ping Server A from Server B and Server B from Server A as they are on same network.
Server A can ping Virtual A and Virtual A can ping Server A as I have setup route to Server A in Virtual A because Virtual A has isolated network.
Similarly, Server B can ping Virtual B and Virtual B can ping Server B.
Now my final motive is to ping Virtual B from Server A.
As per the concept I have setup a route on Server A as follows:
Code:
ip route add 10.3.0.0/24 via 172.24.0.3
Code:
[root@server network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.24.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.4.0.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.3.0.0 172.24.0.3 255.255.255.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 172.24.0.254 0.0.0.0 UG 0 0 0 eth0
As per this I must be able to ping Virtual B from Server A, however pinging 10.3.0.3 from Server A doesn't show any reply.
Code:
[root@server network-scripts]# ping 10.3.0.3
PING 10.3.0.3 (10.3.0.3) 56(84) bytes of data.
^C
--- 10.3.0.3 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5981ms
[root@server network-scripts]#
However, I can ping 10.3.0.1 from Server A.
Please help me to achieve the motive.