cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
333
Views
0
Helpful
7
Replies

Does Traffic go to Default Gateway before a host, both ways?

Robk13
Level 1
Level 1

Hello, I had a question that I can't find an answer to.. It is a dumb question I should know.

If PC1 wants to reach the internet, does all of it's outbound traffic have to go to it's routed interface (default gateway) first, or can it go from PC - Router A - Internet. 

For Inbound, same question, can it go from internet > Router A > PC1, or does the traffic have to go to the routed interface router first, like Internet > Router A > Default Gateway Router > Router A > PC1? 

 

Anything that may help me understand this better would be much appreciated. Thank you very much! 

 

Robk13_1-1727814079310.png

 

 

7 Replies 7

@Robk13 

 Yes, the traffic must pass through the gateway when living the PC. The turn traffic, not necessary.

But, your scenario is not good because you have a router(layer3 device) between your PC and your Gateway, this is not usuall. Unless your router A here is performing only layer2 connectivity, your gateway should be connected to the switch.

 

 But, answering your question, yes, exit traffic from PC will pass through the gaterway. Because the PC does not know how to send traffic to the internet, so, it send it to the gateway.

The return traffic is a different situation. When the traffic comes from the internet and hit the Router A towards PC1, if the Router A knows how to reach PC1, it will send the traffic to PC1 and not to gateway.

 

But again, this is a very  bad scenario.

FlavioMiranda_0-1727816019895.png