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 ping 👨🏻‍💻

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 ping 👨🏻💻

Task Description📄

🔰 14.1 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 .

LET'S START

Prerequisites

  1. Install Virtual Box
  2. Any virtual machine installed

Let's Start

  1. For this task we require three virtual machines .
  2. In each vm go to the Network setting and use "Host-only Adapter" in the "Attached to" field and save the settings.
No alt text provided for this image

3. Start the 3 vm's.

Ip address of the 3 vm's

System A ip address: 192.168.1.2

System B ip address: 192.168.1.1

System C ip address: 192.168.1.4

4. Below are the pictures showing the ip address and the netmask of System A, B, C respectively.

We configure the system A with "/29" as the CIDR.

No alt text provided for this image

Output of the ifconfig command

No alt text provided for this image

For System B

We configure it with "/30" as CIDR

No alt text provided for this image

Output of the "ifconfig" command

No alt text provided for this image

For System C

We configure the system C with /30 as CIDR

No alt text provided for this image

Output of the ifconfig command

No alt text provided for this image

Now we have to add the rules in the routing table

  1. For System A
  • Routing table rule
No alt text provided for this image
  • Rule created in the routing table
No alt text provided for this image


2. For System B

  • Routing table rule
No alt text provided for this image
  • Rule created in the routing table
No alt text provided for this image

3. For System C

  • Routing table rule
No alt text provided for this image
  • Rule created in the routing table
No alt text provided for this image

5. Now we have created the environment let's ping now.

  • From system A ping to B
No alt text provided for this image
  • Now ping from system A to C
No alt text provided for this image

In the above pictures we can see System A is able to ping to System B and System C.

  • Now try to ping to System C from System B
No alt text provided for this image

We see that it's not able to ping to System C.

  • Now try to ping to System B from System C
No alt text provided for this image

We can see that the "Destination Host Unreachable" is coming up. This shows that the System C is not able to ping to System B.

Thank you.

Ankit Mahajan

🛑 ATSE at Red Hat 🛑 | 🔸TCW Intern at GeeksForGeeks || ☁☁Aspiring Cloud Engineer || 🔶️ HCIA-AI Certified || 🔶️ Nptel Certified in Cloud Computing || 🔶️ Core Team Member at GDSC - MIET

4y

Well Done bro!!

To view or add a comment, sign in

Others also viewed

Explore content categories