Task 14.1

Geetansh Sharma
3 min readFeb 9, 2021

--

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 .

Some Pre-Requisites

  1. What is Ping?

Ping is a computer network administration software utility used to test the reachability of a host on an Internet Protocol network. It is available for virtually all operating systems that have networking capability, including most embedded network administration software

2. What is routing table?

In computer networking a routing table, or routing information base, is a data table stored in a router or a network host that lists the routes to particular network destinations, and in some cases, metrics associated with those routes.

3. What is netmask?

Netmasks (or subnet masks) are a shorthand for referring to ranges of consecutive IP addresses in the Internet Protocol. They used for defining networking rules in e.g. routers and firewalls.

Solution

We will achieve our desired result by manipulation of IP addresses and netmask.

The commands we will use here are:-

ifconfig :- To check the IP

ifconfig enp0s3 IP :- To change IP of network card enp0s3

route -n:- To view the routing table

route add -net IP enp0s3 :- To add a rule to the routing table.

ping IP :- To check the connectivity with a system.

Here I have selected network host, as 192.168.0.0 with netmask as /30 , /31, /31 of System A,B and C respectively, for my network and added it as a rule in all 3 systems.

In my System A , I have IP address as 192.168.0.1 and netmask as /28.

In my System B, I have IP address as 192.168.0.2 and netmask as /28.

In my System C, I have IP address as 192.168.0.3 and netmask as /28.

Now, lets check the result by using the ping command:

System A to B

System A to C

System B to C

System C to B

System B to A

System C to A

Hence, we have created a network topology such that System A is able to ping both System B and C and vice-versa, but System B and System C cannot ping each other.

***********THANKS FOR READING**********

--

--

No responses yet