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.f

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]