Study FAQ
When does an IPv4 static routing design need a default route?
Also asked as 2
- When is 0.0.0.0/0 used instead of a more-specific IPv4 route?
- Do two switches with explicit routes to each other's subnets also need a default route?
Answer
An IPv4 default route, 0.0.0.0/0, is used when no more-specific installed route matches the destination. In an isolated two-switch design with explicit routes for every intended remote subnet, those prefixes already supply the required forwarding and return decisions. The design needs a default only if it should also forward otherwise unmatched traffic to an appropriate upstream router.
For example, a route to 203.0.113.0/24 wins over the default for traffic to 203.0.113.10. If A points its default at B and B points its default back at A, a packet matching only those defaults can loop until its TTL expires. Before adding a default, identify an upstream that can route the intended destinations, check the return path, and compare the selected routes for both known and otherwise unmatched destinations.
Full explanation
HPE6-A86: Implementing Inter-VLAN and Static Routing
Study guide · HPE6-A86
Read the full explanation