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.

Saket Sharma
4 min readJun 22, 2021
NETWORK TOPOLOGY

According to Wikipedia, the Network topology is the arrangement of the elements (links, nodes, etc.) of a communication network. Network topology can be used to define or describe the arrangement of various types of telecommunication networks, including command and control radio networks, industrial field busses, and computer networks.

Network topology is the topological structure of a network and may be depicted physically or logically. It is an application of graph theory wherein communicating devices are modeled as nodes and the connections between the devices are modeled as links or lines between the nodes. Physical topology is the placement of the various components of a network (e.g., device location and cable installation), while logical topology illustrates how data flows within a network. Distances between nodes, physical interconnections, transmission, or signal types may differ between two different networks, yet their logical topologies may be identical. A network’s physical topology is a particular concern of the physical layer of the OSI model.

Examples of network topologies are found in local area networks (LAN), a common computer network installation. Any given node in the LAN has one or more physical links to other devices in the network; graphically mapping these links results in a geometric shape that can be used to describe the physical topology of the network. A wide variety of physical topologies have been used in LANs, including ring, bus, mesh, and star. Conversely, mapping the data flow between the components determines the logical topology of the network. In comparison, Controller Area Networks, common in vehicles, are primarily distributed control system networks of one or more controllers interconnected with sensors and actuators over, invariably, a physical bus topology.

Let’s start the task,

For the sake of convenience, I am gonna use the docker containers as our systems.

Prerequisite: installed Docker in the base system

Task:

First, pull any image for your container, I am gonna use centos:latest and start the containers with NET_ADMIN capabilities

System A:-

System B:-

System C:-

Now, We have to install net-tools software in all three systems to get the IP and for making manual entries into the network routing tables.

Installing Net-tools

Using ifconfig we can write the IP’s of all our system i.e.

IP of system A:- 172.17.0.7

IP of system B:- 172.17.0.8

IP of system C:- 172.17.0.9

To show the routing table of the respective system, we can use the command: route -n”

Now, we can delete all entries coming from the outside or going :-

For System A
For System B
For System C

Now, we can make our entries:

  1. Add system A directly to System B and System A directly to System C without any intermediate routing with gateway 0.0.0.0 and with netmask 255.255.255.255(for only one host’s entry)

2. Add System B directly to System A

3. Add System C to System A

So, We have made all our required entries and we can check them now

System A pinging to System B
System A pinging to System C
System B is not pinging to System C

Thank you for Reading!!

--

--