Network Topology setup between 3 systems A,B,C
In this task I made one network topology in which system A can ping to both system B and C but system B can’t ping to system C.
To make this topology I launched 3 VM’s on top of my PC.
The IP of these 3 VM’s are as follows:
So as you can see the IP addresses of 3 systems are 192.168.99.101(A), 192.168.99.102(B), 192.168.99.103(C).
Next we have to check that these 3 systems can pingable to each other.
As you can see all the systems are pingable to each other.
Now our requirement is that System A can ping to both Systems B and System C but these two Systems B & C should not pingable to each other.
for that we need to remove the default gateway from both systems B & C and need to add the gateway for system A.
Now we have to remove the default gateway from System B & C
To remove default gateway : route del -net 192.168.99.0/24 enp0s3
do this for both the systems and we can see that these two systems are not pingable to any system
Now we have to make the Systems B & System C pinagable to System A. for that we need to add the gateway of System A.
To add gateway : route add -net 192.168.99.0/24 enp0s3
In above two images we can see that Systems B & C are pingable to System A.
Finally you can see that we achieved our final goal i.e System B & C are not pingable to each other.
I hope this article will insightful for you!!!
Thank You !!!