Creating a Network Topology Setup in such a way that System A can ping to Two Systems=>System B and System C But both these Systems should not be Pinging with Each Other!!

Sumayya Khatoon
4 min readMar 29, 2021

--

Hello Folks!!In this Blog we’re gonna discuss about how you can create a Network Topology Setup in such a way that System A can ping to Two Systems=>System B and System C but both these Systems should not be Pinging with Each Other. So, let’s get going!!

Is there any Pre-requisites?

1. 3 VM’s (Virtual Machine).

So, let’s implement the practical →

Step 1: Grabbing the IP Addresses of the Systems.

System A IP Address
System B IP Address
System C IP Address

Step 2: Checking the Connectivity between all the Three Systems.

System A pinging to System B and System C
System B pinging to System A and System C
System C pinging to System A and System B

So, all the Three of the Systems are Pingable.

Now, we’re good to go…

As, our requirement is that System A should Ping to both System B and System C but these two Systems won’t able to get pinged with each other. So, what we can do is that we can delete all the IP Addresses from all the OS Routing tables. Then we can add the System A IP in System B and System C Routing Table. After that we can add System B and System C IP Addresses in System A Routing Table.

Step 3: Deleting all the Rules from all the three Systems.

To delete the Routing Table Rule use the below given command:

  route del -net <IP_Address> gw <Gateway_Address> netmask  <netmask_address> <NIC Card>  Example :  route del -net 192.168.56.0 gw 192.168.0.0 netmask 255.255.255.0 enp0s3
Deleting Routing Rule from System A

Similarly, we want to delete the Routing rule from System B as well as System C.

Deleting Routing Rule from System B
Deleting Routing Rule from System C

Step 4: Adding the IP Address of System A in both System B and System C

  route add -net <IP_Address> gw <Gateway_Address> netmask  <netmask_address> <NIC Card>  Example :  route add -net 192.168.0.111 gw 0.0.0.0 netmask 255.255.255.255 enp0s3
System A IP Address

Adding the Rule in System B and System C…

Adding IP Address of System A in System B Routing Table.
Adding IP Address of System A in System C Routing Table.

Step 5: Adding System B and System C IP Address in the System A Routing Table.

System B IP Address
System C IP Address

Now, adding the Routing rule to the System A’s Routing Table…

Successfully Added the IP Address of System B and System C in Routing Table of System A.

Now, everything is set so let’s ping the Systems.

Step 6: Pinging the Systems.

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

That’s great, System A is Pingable to Both System B and System C and vice-versa.

Now, let’s check the connectivity between System B and System C.

System B is not able to ping to System C
System C is not able to ping to System B

Voila!! We’ve successfully reached our Goal. All the Requirements are satisfied!!

Hope you find this Blog easy🤞!!

Happy Reading!!😊

Do like Share and Follow me

Thank you !!

Thank you all !!

--

--

Sumayya Khatoon
Sumayya Khatoon

Written by Sumayya Khatoon

Machine Learning || Deep Learning || Kubernetes|| Docker || AWS || Jenkins || Ansible(RH294) || Python || Linux(RHEL8 )

No responses yet