If either of these is true, the gateway forwards the packet via the shortest path directly towards that network. However, if the gateway does not recognize the packet destination network and does not know which direction it should be sent to get it closer to its destination, then the gateway will direct the packet to its own default gateway. This process will continue until a gateway is reached that does not have its own default gateway parameter is set, or until a gateway is found that knows a route that can reach the destination network.
This would be similar to a person setting off on a cross-country road trip without a map (or GPS) in hand. If the person wanted to drive from Los Angeles to Boston, they could get directions to Salt Lake City, and then upon arrival in Salt Lake City, they could get directions to Denver, and then get directions in Denver to Kansas City and so on until they finally got directions in New York City on how to get to Boston.
When they started in Los Angeles, they did not know how to get to Boston, however, en route to Boston, they kept getting updated directions on how to get closer to their destination until they actually encountered their destination. This is how the default gateway concept works. Your computer does not need to know how to contact the destination computer, it only needs to know how to get to the default gateway. That, and a little bit of faith, gets the packet to its final destination.
Learn more about this author, Alan Fernald.
Click here to send this author comments or questions.
Below are the top articles rated and ranked by Helium members on:
by John Carter
To understand what default gateway is one should have a complete knowledge of what is a ‘gateway’. The gateway
Let's assume you have an address you want to get to, but you have no directions on how to get there. A GPS system could
by Alan Fernald
Have you ever thought about how your computer can route messages to a system on the other side of the world in less than
A default gateway is only a small part of that higher topic of IP networking and, as an application engineer for many years,
Add your voice
Know something about What is a default gateway??
We want to hear your view.
Write now!
Cast your vote!
Click for your side.
Featured Partner
House Rabbit Society is a volunteer-based international non-profit organization with two primary goals: 1) To r...more
hide