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

Mihir Patel
3 min readDec 17, 2020

For create this topology I will use three different Machine A , B , C

System A :

System A can ping to Machine A and B so , We crate routing table as the Machine A can create packet for only Two machine .

Machine A IP : 192.168.30.1/24

Command use for provide this ip in Machine :

ifconfig 192.168.30.1/24 enp0s3

Now configure Routing table so can generate only two packet

route add -net 192.168.30.0/30 enp0s3 and route -n

Now System B :

I created IP (192.168.30.2)which remains in the range of System A and also I created Routing Table in such a way that System B can create packets only for one IP .

Command use for provide this ip in Machine :

ifconfig 192.168.30.2/24 enp0s3

Now configure Routing table so can generate only one packet For system A :

route add -net 192.168.30.0/31 enp0s3 and route -n

Now System C :

I Created IP (192.168.30.3)which remains in the range of System A and also I created Routing Table in such a way that System C can create packets only for one IP System A

Command use for provide this ip in Machine :

ifconfig 192.168.30.3/24 enp0s3

Now configure Routing table so can generate only one packet For system A :

route add -net 192.168.30.0/31 enp0s3 and route -n

Now System A and B Ping each other , vic-versa and System A and C ping each other , vic versa .

But we can not ping System C to System B

Thank you

--

--