The only time traffic will reach the default gateway is if the destination address does not reside on the local network. Therefore, if the Linux box is on the same network, traffic won't attempt to use the default gateway.
A switch operates at the datalink layer and not the network layer (as a...