0

I am trying to setup a single sender, single bottleneck and single receiver network.

Network Image

The router in the image is a computer that has ip_forwarding enabled. PC1 has the default gateway set to the IP address of PC2.

PC1 and PC2 are on the same subnetwork (10.32.20.*) and PC3 is on a different subnet(10.32.21.*).

Yet, only occasionally does data flow through PC2, the router. The data seems to be flowing directly between PC1 and PC3 via the switch.

My question is how to ensure that traffic flows through the router and doesn't flow directly at the switch.

1 Answers1

0

I would guess that the behaviour you are seeing is caused by ICMP redirects.

When PC1 first sends a packet it goes to PC2. PC2 then sends an ICMP redirect informing PC1 that PC2 is actually on the same network despite being in a different IP subnet.

If my guess it correct you should be able to fix things by either disabling sending of ICMP redirects on PC2 or disabling reception of ICMP redirects on PC1.

Peter Green
  • 4,056
  • 10
  • 29