Network Topology setup between 3 systems A,B,C

Tejas Sanghai
3 min readMar 26, 2021

--

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:

System A
System B
System C

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.

System A pinging to System B &C
System B is pinging to System A &C
System C is pinging to System A & B

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.

Route Table for System A
Route Table for System B
Route Table for System C

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

Removed default gateway from System B
Removed default gateway from System C
System B is not able to Ping System A & C
System Cis not able to Ping System A & B

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

System B is pinging to System A
System C is pinging to System A

In above two images we can see that Systems B & C are pingable to System A.

System B is not pingable to System C

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 !!!

--

--