Create a Unique Network Topology | Technical EJ - Latest Technology News

Sunday 3 January 2021

Create a Unique Network Topology

  Ekansh Jain       Sunday 3 January 2021

Arth Task: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.

Hello Everyone, let's start the task by manipulating the routing table of the systems.

Steps to follow:-

1) Below image shows the IP address of three systems.

Command used: ifconfig enp0s3

System A has IP: 192.168.29.131
System B has IP: 192.168.29.56
System C has IP: 192.168.29.77


2) Below Image shows that System A can ping to System B as well as to System C. 

Command Used:  ping 192.168.29.56
                             ping 192.168.29.77


3) Now, from System B, we are able to ping System C.

Command Used:  ping 192.168.29.77


4) From System C, we are able to ping System B.

Command Used:  ping 192.168.29.56


5) Now From System B, we are going to delete all the rows from the route table.

Command used: route del -net 0.0.0.0
route del -net 192.168.29.0 gw 0.0.0.0 netmask 255.255.255.0


6) Now From System C, we are going to delete all the rows from the route table.

Command used: route del -net 0.0.0.0
route del -net 192.168.29.0 gw 0.0.0.0 netmask 255.255.255.0


Now, All the systems cannot able to ping each other as we deleted all the route table. Now, we are adding a new row in System B and System C, so that System B and System C cannot ping to each other but System A can.  

7) Adding a new row in the route table of System B with respect to System A. 

Command used: route add -net 192.168.29.131 netmask 255.255.255.255 enp0s3


8) Adding a new row in the route table of System C with respect to System A. 

Command used: route add -net 192.168.29.131 netmask 255.255.255.255 enp0s3


9) Now, from System C, we are trying to ping to System B, but we aren't able to ping.

Command used: ping 192.168.29.56


10) Now, from System B, we are trying to ping to System C, but we aren't able to ping. 

Command used: ping 192.168.29.77



11) System A can ping to System B as well as to System C.

Command Used: ping 192.168.29.56
                            ping 192.168.29.77


Conclusion

We have successfully created 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 aren't able to ping each other without using any security rule e.g firewall, etc.
logoblog

Thanks for reading Create a Unique Network Topology

Previous
« Prev Post

No comments:

Post a Comment

If you have any doubts, Please Comment down