Task 14.1
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 .
Prerequisite
- Basic understanding of router, switches, netmask etc.
- Basic understanding of routing table.
Let's start
Step-1
I used three operating system(Redhat version 8) to perform this task. But we can also perform same task on top of Cloud, docker container etc.
Here is my initial setup where three Redhat cli VM is running on top of VirtualBox.
This is my initial IP address and routing table of all systems.
Now for batter understanding and making it more simpler just changed IP of System-A, System-B and System-C. I used NIC card enp0s3 which is automatically connected with switch. It can be changed by using
ifconfig <enp0s3> <192.168.43.0/24>
Step-2
Now System-A is having IP 192.168.99.1, System-B is having IP 192.168.99.2 and System-C is having IP 192.168.99.2 .
Now creating rule such that System A can ping to two Systems, System B and System C but both these systems should not be pinging each other. For this we just need to do manipulation in routing table and netmask.
[System-A] route add -net 192.168.99.0 netmask 255.255.255.240 enp0s3 [System-B]
route add -net 192.168.99.0 netmask 255.255.255.254 enp0s3 [System-C] route add -net 192.168.99.0 netmask 255.255.255.254 enp0s3
Here is following new routing table of system-A, system-B and system-C..........
Final output
Here clearly can see, System-A can ping to System-B as well as System-C.
But....... System-B and System-C can't ping to each other