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.
3 min readJan 9, 2021
Prerequisite:
- 3 VM(Virtual Machine).
Solution:
First, we need to delete all the IP addresses from all the OS routing tables. after that add the System A Ip in System B and System C routing table, at last, add the System B and System C Ip in System A routing table. huh, that’s simple 😅.
Step-1)Delete all the rules from all the Systems:
route del -net 192.168.0.0(IP_ADDRESS) gw 192.168.0.1(GATEWAY) netmask 255.255.255.0(NETMASK) enp0s3(NIC Card)
Step-2)Adding IP address of System A in System B and System C routing table
- First of all, we need System A IP address.
- Now we need to add this IP in System B and System C
- Explanation: Here why I have used netmask 255.255.255.255 because it means to allow only one host i.e System A. Gateway 0.0.0.0 means has no gateway.
Step-3)Adding System B and System C IP address in the System A route table.
- We need to gather the IP addresses of System B and System C
- Now we need to add these IP addresses to the System A routing table.
Output
- Let’s ping the System.
- That’s great it's working 😃.
- Now let’s test connectivity to System B — System C
- That’s also great it is not working, why it is not working because we haven’t added the IP addresses of System B and System C to each other 😄.