Network Topology: A Can Ping To B & C But Both B & C can not ping Each Other

Routing Table:

A routing table is a set of rules that is used to determine where data packets travelling over an Internet Protocol (IP) network will be directed. It consists of the network range, gateway and Netmasks.

The Range of IPs to which a system can connect is known as network range.

A gateway is a device that helps to connect two different networks.

The process of dividing a network into smaller network sections is called subnetting. This can be useful for many different purposes and helps isolate groups of hosts together and deal with them easily. Genmask or Netmask help us to create subnets and identify the network name e.g. the first IP of a network or subnet.

CIDR Notation

we could express the idea that the IP address is associated with the netmask by using the CIDR notation of This means that the first 24 bits of the IP address given are considered significant for the network routing .

How Netmask helps in determining the Network Range

Here, is the network name and is the netmask.

To determine any IP belongs to the same network or not, netmask perform ‘AND’ operation on each octet of IP with respective octet of netmask in binary form. If that gives the same network name i.e. destination IP then they belong to the same network.

let’s say IP is then and operation of this IP with will give that means it belongs to the network of

How to Create Subnets

We can create subnets in any network by increasing the number of significant bits in the netmask

Example: In we change the netmask to 25 significant bit value then (– is a subnet of–

Creating 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.

A is able to ping both the systems B & C and B & C are also able to ping each other.

In order to create the setup such that A can ping to two Systems, System B and System C but both these systems should not be pinging each other, we have to edit the routing table in both B and C.

Use the following command to see the routing table in the Linux system.

route -n

I have the rule for which means all the systems can connect to B & C if they have physical connectivity with them.

B and C are running in my same system so they have connectivity between them that's why I have to delete both rules i.e. and

route del -net    route del -net

But now A is also not able to ping B & C, so we have to add the rule for A in both B & C system.

route add -net enp0s3
System B
System C

Now, You can see A is able to ping both B & C (green border in system A)and B & C (green border in system B & C) are also able to ping A but B & C are not able to ping each other (red border)

Thanks, for reading…