This is the latest article from our company’s “Dear John” column, where my Dad answers questions from customers, readers and partners. Yes, I said my Dad – he taught me everything I know and, while I can’t get him to write regularly on a blog, I’ll certainly share any public articles he puts out for you to enjoy ;)
I thought this was well worth sharing. So often we see misconfigured devices at customer sites- one of the most frequent being the improper use of default gateway configurations versus default routes. I’ve probably spent ten hours just in the past couple of weeks explaining this concept to various clients.
—
Dear John: Default Gateway vs. Default Route?
Excerpt from a column by John Jabbusch, CAD, Inc.
Carolina Advanced Digital, Inc. November 2009 Newsletter
Q: When should I use a default gateway instead of a default route?
A: Based upon the source and nature of the question, I am proceeding with the assumption that the question was made in reference to network switches. The short answer is that a default gateway typically is used to direct traffic destined for a “foreign” network (i.e. a network other than the one to which the switch belongs) off the switch to a “gateway” device on the same network as the switch.
A switch that does not perform routing will use a default gateway. On an HP ProCurve switch from the global configuration context the command would look like ip default-gateway 192.168.1.1.
On a switch that contains addresses that reside in two or more networks (meaning VLANs with IP addresses), the switch is almost universally routing at least between the internal VLANs and most likely routing between the “next hop” device and the switch VLAN directly connected to that device. A switch (or really any device) that is routing will need to specify the “gateway address” as a default route. Again, on an HP ProCurve switch from the global configuration context this would be something like ip route 0.0.0.0 0.0.0.0 192.168.1.1.
[I have abridged the answer here to comply with space requirements for the newsletter and so there is more to this topic than I have provided here, such as what effect there is upon route tables and route propagation, but those things are beyond the scope of this short forum. -John]# # #