SYSTEM A CAN PING TO SYSTEM B AND C BUT THEY CANT PING EACHOTHER!

DESCRIPTION:-Create a network Topology Setup in such a way so that System A can ping to two Systems System B and System C but both these systems should not be pinging each other without using any security rule e.g firewall etc.

Venkateshsandupatla
3 min readApr 20, 2021

Let’s check the IP and routing table of three VMS and whether they are pinging each other or not!!

SYSTEM -A -IP is #192.168.1,15#

This can ping to google and B and C and have two routes in the routing table!

System-B — #192.168.1,8#

This can also ping to google and other VMS and two routes in routing table!

System C -ip #192.168.1,9#

This can also ping to google and other VMS and there are two routes in the routing table.

Now let's change the ips of VM!

SYSTEM A IP:- 192.168.1.1

ifconfig enp0s3 192.168.1.1/24

SYSTEM B IP:- 192.168.1.2

ifconfig enp0s3 192.168.1.2/24

SYSTEM C IP:- 192.168.1.3

ifconfig enp0s8 192.168.1.3/24

Now let’s add routes in three vms.

SYSTEM A:

route add -net 192.168.1.0/30 enp0s3

SYSTEM B:

route add -net 192.168.1.0/31 enp0s3

SYSTEM C:-

route add -net 192.168.1.0/31 enp0s8

Now let's check our setup works properly!

Let's ping from system A to B and C

# ping 192.168.1.2

#ping 192.168.1.3

Both are pingable!

Let's ping from system B to C

#ping 192.168.1.3

Now we cant ping to C!!!!!

Let's check from system C

# ping 192.168.1.2

We are not able to ping to system b from c!

Our final setup is ready! System A can ping to B and C but these cant ping each other!!!!!

Thank you !!

--

--