imbizcorp
Close menu

Understanding Network Infrastructure · Part 4 · How do we use these principles to design a real network?

How should switches and routers be configured for redundancy?

BY IM Business Platform Co., Ltd. PUB 2026-09-06 UPD 2026-10-24 VERIFY Standards and official sources

In a two-tier network connecting several wiring closets, each access device can have paths to both distribution devices, D1 and D2. But are two cables or two devices enough to keep work going during a failure? Let's separate the switches' physical connections, the endpoints' gateway, upstream routing, and connection state to see which functions need a backup—and what must take them over.

Back to contents

What work must continue when a device fails? ↑

Redundancy is designed to keep essential work going through equipment failures and maintenance. Before installing a second device, decide which failures the design must withstand and what work must continue.

A small office might tolerate the time needed to swap in a spare. But if PC-A must keep completing transactions with the internal server App-S, waiting for a replacement may not be acceptable. Work with the people responsible for the business process to distinguish a brief failure to establish new connections from losing work already in progress.

Separate the failure scenarios, too. A cut cable, a switch losing power, and a router losing its uplink leave different functions and paths unavailable. Work may also need to continue during planned software maintenance. For each scenario, the design should list both the functions that stop and those that must keep working.

In the two-tier example, A1 has separate L3 connections to D1 and D2. The design provides a path to the server through D2 if D1 fails. But if PC-A connects only to A1, it cannot retain access when A1 fails. Mark both the surviving path after a D1 failure and the disconnected endpoints after an A1 failure. That makes the protection provided by the two uplinks clear.

If both devices depend on the same power source or conduit, a power outage or conduit damage can take both down. Keep the dependencies identified in failure-domain design in view here as well. Providing a backup for one device and separating shared causes of failure are different preparations; testing one does not verify the other.

The same dual-uplink design can produce different outcomes depending on what fails. On the left, D1 fails. On the right, A1 fails—the only device PC-A connects to. Having healthy devices upstream does not, by itself, preserve PC-A's access.

↔ Scroll horizontally to explore the diagram.

Surviving an upstream failure does not guarantee endpoint accessTwo failures in the same routed-access design: on the left, D1 fails while PC-A and A1 remain up. Traffic can continue through D2 if routes, policy, and capacity support it. On the right, A1 fails. PC-A loses its only connection even though D1, D2, and App-S remain up. Another device cannot replace the failed A1's physical ports.Surviving an upstream failure does not guarantee endpoint accessD1 fails · Check the D2 pathA1 fails · PC-A loses accessPC-AA1D1 · FailedD2 · UpApp-SPC-AA1 · FailedD1 · UpD2 · UpApp-SA1–D1 path unavailableA1-only endpoints lose accessOrange: example request after failure / Red dashed: lost path / Gray: physical connectionsDevices and roles in the diagramDevice shapes identify types and roles. A grouped symbol does not specify a device count or a required set of products.D1 fails · PC-AConnection to A1 remainsD1 fails · A1Gateway remainsD1 fails · D1 failedOne upstream path lostD1 fails · D2 upAlternate pathD1 fails · App-SCheck both directions, policy, and capacityA1 fails · PC-ANo usable connectionA1 fails · A1 failedPhysical access lostA1 fails · D1 upUpstream device remainsA1 fails · D2 upUpstream device remainsA1 fails · App-SHealthy upstream; PC-A disconnectedThe left side does not guarantee uninterrupted service. Check detection, path changes, replies, session state, and shared power or conduit failures separately.
Two failures in the same routed-access design: on the left, D1 fails while PC-A and A1 remain up. Traffic can continue through D2 if routes, policy, and capacity support it. On the right, A1 fails. PC-A loses its only connection even though D1, D2, and App-S remain up. Another device cannot replace the failed A1's physical ports.

Two switches or two cables: what's the difference? ↑

Link redundancy addresses a connection failure; device redundancy addresses the loss of functions a device provides. If both cables terminate on the same switch, both paths become unavailable when that switch loses power.

Bundling several links between two switches into an EtherChannel allows traffic to use the remaining members if one link fails. But capacity decreases, and the assignment of flows to links can change. The relationship between combined link capacity and a single flow's speed is the same as in the link-aggregation article.

The situation changes if the links terminate on two independent switches. A supported stack or multichassis technology must make them act as one logical peer before you can design link aggregation across them under those supported conditions. Connecting cables to any two switches and enabling LACP does not automatically create one bundle.

With independent devices connected by L2 paths, STP may block forwarding on some paths to prevent loops. Having an alternate path does not mean both links carry traffic normally. For the two-tier example's L3 uplinks, STP is not the path-selection mechanism: routing selects the paths. Keep the behavior of L2 and L3 alternatives separate.

A stack cannot move a disconnected endpoint's cable to another port. If PC-A connects only to A1, losing power to A1 removes its physical access. Healthy endpoints and uplinks on A2 do not let PC-A communicate. Decide separately whether critical endpoints need their own alternate connections.

Give cable failure, switch failure, and a broken stack connection separate rows in the test plan. In each test, check the endpoints' ports, AP power, uplinks, and management access. Verify control-plane switchover and state retention on the actual model, software, and connections. A result from one product does not apply to every stack.

Compare two cables to the same switch with uplinks distributed across stack members. Even on the right, PC-A loses access if it connects only to A1 and A1 fails.

↔ Scroll horizontally to explore the diagram.

A broken cable and a failed switch leave different connectionsOn the left, both cables terminate on one upstream device; if it fails, both paths disappear. On the right, uplinks are distributed across a supported stack. If A1 fails, PC-A loses its sole connection to A1, but PC-B and the uplink on A2 can remain available.A broken cable and a failed switch leave different connectionsA. Two links, one upstream deviceB. Supported stack, split uplinksAccess switchUpstream · FailedA1 · FailedA2 · UpUpstreamSurvives a cable failure—not the shared device failingA2 cannot restore A1's failed physical portsDevices and roles in the diagramDevice shapes identify types and roles. A grouped symbol does not specify a device count or a required set of products.Design A · Access switchEndpoint links can remain upDesign A · Upstream failedBoth links lose their far endDesign B · A1 failedPC-A loses its only connectionDesign B · A2 upPC-B stays connectedDesign B · UpstreamSurviving linkTest shared power, conduit, and control failures separately. The product and connection design must support the stack or MEC configuration.
On the left, both cables terminate on one upstream device; if it fails, both paths disappear. On the right, uplinks are distributed across a supported stack. If A1 fails, PC-A loses its sole connection to A1, but PC-B and the uplink on A2 can remain available.

Gateway failure: where does the PC send traffic? ↑

If a default gateway fails, a PC needs another device to take over that gateway role to keep communicating. To explain this, we'll use a separate L2 access design, not the earlier two-tier configuration. The PC's VLAN extends to both GW1 and GW2.

Suppose PC-A is 10.60.10.21/24 and its default gateway is the virtual IP address 10.60.10.1. First-hop redundancy protocols such as HSRP and VRRP allow routers to take over the role of this virtual gateway. An L3 switch that supports the same function can act as a router here, too.

Normally, GW1 holds the active role and forwards traffic sent to the virtual gateway. In a typical virtual-MAC configuration, PC-A sends frames to the virtual MAC associated with that virtual IP. The diagram's virtual MAC illustrates that relationship; it does not imply that HSRP and VRRP use the same address format.

When GW2 detects GW1's failure and takes over, PC-A can keep its gateway IP setting and continue using the same virtual gateway. The switches must forward the virtual MAC toward the new device, whose routing and policy must also be correct. Even after the active role changes, frames may take time to start reaching the new device.

This change does not automatically copy NAT mappings, firewall connection state, or VPN cryptographic state. First-hop redundancy provides endpoints with a gateway they can continue to use. In the two-tier example, however, that gateway is A1: a D1 failure is not automatically the PC's HSRP failover. Both designs may use an alternate path after a failure, but the gateway location and the function being transferred differ.

In first-hop tests, record the PC's gateway information, the active role, the forwarding location of the virtual MAC, and the actual request and reply paths. Consult each protocol's documentation for its terminology and behavior. Use HSRP's Active and Standby labels, and VRRP's role names, according to that protocol's own states and transition procedures.

This diagram uses a separate PC VLAN extended to GW1 and GW2 at L2. It shows GW2 taking over the virtual gateway role after GW1 fails.

↔ Scroll horizontally to explore the diagram.

Separate L2 design: GW2 takes over the virtual gateway from GW1PC-A's virtual gateway is 10.60.10.1. GW1 normally forwards the traffic; after failure detection and a role change, GW2 takes over. The PC's gateway IP and its virtual-MAC association stay the same, but MAC forwarding and upstream routing must now lead to the new device. This is not the two-tier example, where A1 is the gateway.Separate L2 design: GW2 takes over the virtual gateway from GW1Normal · GW1 provides the virtual gatewayPC-AGW1 · ForwardingGW2 · ReadyPC: virtual IP → virtual MAC / Actual MAC format depends on the protocolHere, the VLAN extends to both gatewaysGW1 fails · GW2 takes overPC-AGW1 · FailedGW2 · ForwardingPC: virtual IP → virtual MAC / Actual MAC format depends on the protocolMAC forwarding, routing, and policy must alignDevices and roles in the diagramDevice shapes identify types and roles. A grouped symbol does not specify a device count or a required set of products.Normal · PC-A10.60.10.21/24Default GW 10.60.10.1Normal · GW1 forwardingVirtual-MAC roleCurrently held hereNormal · GW2 readyVirtual-MAC roleReady to take overGW1 fails · PC-A10.60.10.21/24Default GW 10.60.10.1GW1 fails · GW1 failedVirtual-MAC roleNo longer servingGW1 fails · GW2 forwardingVirtual-MAC roleRole taken overCheck HSRP and VRRP behavior and virtual-MAC formats separately. First-hop failover does not synchronize NAT, firewall, or VPN state.
PC-A's virtual gateway is 10.60.10.1. GW1 normally forwards the traffic; after failure detection and a role change, GW2 takes over. The PC's gateway IP and its virtual-MAC association stay the same, but MAC forwarding and upstream routing must now lead to the new device. This is not the two-tier example, where A1 is the gateway.

Gateway up, upstream path down: what happens? ↑

A device being up does not mean it can reach the destination. A PC may receive a reply from its gateway, yet the business operation can still fail if that gateway has lost its path to the server.

In the earlier L2 comparison, suppose GW1's user-facing interface stays up but its uplink fails. If that failure is not among the conditions monitored by the first-hop protocol, GW1 may remain active. The configuration must specify which interfaces, routes, or reachability checks to track and how their results affect the role.

If GW1 can route around the failed uplink, it may continue serving as the gateway. Distinguish the current active device choosing another healthy path from transferring the gateway role itself. Tracking something unrelated to the actual business path can trigger an unnecessary switchover or miss a real failure.

Back in the two-tier routed-access example, PC-A's gateway remains A1. What changes is the upstream path through D1. A1 must detect the failure, update its routes, and apply the change to forwarding before sending through D2. After checking the route in the RIB, verify that the FIB reflects it and that actual packets take the new path.

The server's return route and policy for A1's subnet must also work through D2. Once you have confirmed requests leaving through D2, check that replies return as well. Path tracking and first-hop redundancy can complement each other, but enabling them does not prove end-to-end communication works.

Now return to the two-tier routed-access design. After D1 fails, PC-A's gateway stays on A1. Only A1's upstream path to the server changes to D2.

↔ Scroll horizontally to explore the diagram.

Two-tier design: A1 stays the gateway when D1 failsPC-A's connection to A1 and its gateway remain available. A1 removes the path through D1 and forwards through D2. Replies must also be able to return through D2 and A1. D2 is not taking over the PC's virtual gateway in this example.Two-tier design: A1 stays the gateway when D1 failsEndpoint's first hopUpstream paths and shared servicesPC-AA1D1 · UnavailableD2 · In useServicesUpdate RIB → Apply to FIB → Check repliesAn A1 failure is separate: PC-A's sole connection to A1 is not protectedDevices and roles in the diagramDevice shapes identify types and roles. A grouped symbol does not specify a device count or a required set of products.PC-A10.60.10.21/24A1Gateway 10.60.10.1First-hop role unchangedD1 · UnavailableConnection and path lostD2 · In useAlternate upstream routingServicesForward to App-SReturn to A1's subnetAn illustrative D1-failure comparison. Test switchover timing, load, and policy in the actual environment.
PC-A's connection to A1 and its gateway remain available. A1 removes the path through D1 and forwards through D2. Replies must also be able to return through D2 and A1. D2 is not taking over the PC's virtual gateway in this example.

New packets get through—so why do existing connections fail? ↑

An alternate path may exist, but users may still need to reconnect if the state required by existing connections is missing. Record when packets start getting through again separately from when the application finishes its work.

If edge device E1 translates the address and port for PC-A's Internet connection, replies need that mapping. Replacement edge device E2 may know the route but not the mapping, leaving it unable to return replies for an existing flow to the original endpoint. This is a NAT issue; distinguish it from internal traffic that uses no NAT.

For a stateful firewall, check connection state; for a VPN, check security-association state as well. Implementations differ in what they synchronize, when they do so, and which connections survive a switchover. HSRP, VRRP, and a routing change do not synchronize that state by themselves.

For a teaching timeline, place the failure at 0ms, detection at 40ms, selection of a new route at 120ms, a test packet's successful round trip at 180ms, and completion of a business transaction at 900ms. These are neither test results nor product guarantees. The invented values show that detection, route selection, packet round trips, and business recovery can finish at different times after the same failure.

Business recovery can take longer because of retransmissions, new connections, authentication, or an application's retry delay. Measure to identify the cause; do not count all the time until a transaction finishes as routing convergence. Test existing connections separately from work started by a new user to distinguish the effect on each.

The results should identify the connection types and business operations tested. Distinguish a successful save from a simple response. Some packets may return while other sessions remain broken. Record which work continued and which required reconnection so operators can see both the protection provided and the remaining problems.

For the same failure, the diagram marks detection, route selection, a packet round trip, and business completion at separate times. It shows why the entire interval up to business completion should not be reported as routing convergence.

↔ Scroll horizontally to explore the diagram.

Packet round trips and business completion are different milestonesThis teaching timeline separates failure at 0ms, detection at 40ms, new-route selection at 120ms, a successful test-packet round trip at 180ms, and business-transaction completion at 900ms. These are not measurements or guaranteed product performance.Packet round trips and business completion are different milestonesIllustrative times, not measurements0 msFailure40 msDetected120 msNew route selected180 msTest-packet round trip900 msBusiness transaction doneIllustrative times; spacing is not to scale. Do not combine network convergence and application recovery into one number.
This teaching timeline separates failure at 0ms, detection at 40ms, new-route selection at 120ms, a successful test-packet round trip at 180ms, and business-transaction completion at 900ms. These are not measurements or guaranteed product performance.

Can the remaining side handle the load and enforce policy? ↑

After a failure, check not just whether a path exists, but whether the remaining resources can carry the same work. If the design relied on spare capacity spread across two devices, losing one may eliminate that headroom.

In the two-tier example, each access device's 8Gbps demand uses 80% of its one remaining 10Gbps link to D2. The three access devices' combined 24Gbps uses 60% of D2's 40Gbps service connection. The same failure leaves different headroom on access and aggregation links, so one ratio cannot establish that the whole network has enough capacity.

When connectivity returns, reconnections and deferred work can arrive together, creating more traffic than usual. Record drops and delay on each link alongside business-completion times, and check CPU load, session limits, and circuit bottlenecks. A low average utilization can hide a brief overload; look for intervals the measurements may have missed.

Measure capacity through security devices with the required policies and inspection enabled. Higher throughput obtained by disabling inspection or allowing blocked guest traffic is not throughput under the required security conditions. Test representative allowed and denied traffic under the same conditions on both the normal and replacement devices.

Work may resume while only one device or path remains, leaving less protection against the next failure. Report the surviving path's load, the impact of another failure, and the repair and return plan separately. Distinguishing restored service from restored redundancy helps set the right urgency for further maintenance.

Can a repaired device return without disrupting work? ↑

Returning a repaired device is more than powering it on. Routes, roles, and state change again: it is a second transition. A successful failover does not remove the need to test the return separately.

First, check that D1 or GW1 returns with software, configuration, and policy matching the current operating baseline. It may be missing changes applied to D2 during the incident. Do not stop at checking that neighbors have formed and links are up; verify that the device is ready to handle traffic with the current configuration and policies.

With preemption or automatic route restoration configured, traffic may move as soon as the device reconnects. Check the product documentation and current configuration for automatic-return conditions, delays, and manual controls. Schedule the work and assign people to watch routes and traffic so an apparently simple cable connection does not cause another outage. The business representative checking existing sessions should also be ready at the transition.

After the return, recheck existing connections, new requests, both traffic directions, load, and traffic that must remain denied. If results differ from expectations, follow the approved stop criteria and roll back to the alternate operating state. Do not test a return without the management path and configuration needed to roll it back.

In the final record, distinguish normal operation, operation on the alternate path, preparation for return, and the protection available after return. Apply the same criteria to the next article's core design for multiple blocks. When adding a core, first identify the failures to withstand and the functions other devices must take over. In design validation, record only what was actually observed.

Operating on D2 alone is different from restoring redundancy with D1 back in service. Also decide which state to return to if the reintroduction causes a problem.

↔ Scroll horizontally to explore the diagram.

Verify restored service and restored redundancy separatelyWhen D1 fails, D2 carries the work. Check the repaired D1's configuration and policy before reconnecting it. If reintroduction causes problems, return to the prepared D2-only operating state.Verify restored service and restored redundancy separatelyStateService and protectionConditions for the next stepNormalD1 and D2 paths availableBaseline routes and loadD1 failed / D2 in useService may return without redundancyWatch capacity and next-failure riskPrepare D1's returnCheck config, policy, state, accessTraffic-shift triggers and stop criteriaVerify after returnCheck service and original protectionIf needed, roll back to approved backupCheck whether this configuration returns automatically. Reconnecting equipment and restoring business operations are not the same event.
When D1 fails, D2 carries the work. Check the repaired D1's configuration and policy before reconnecting it. If reintroduction causes problems, return to the prepared D2-only operating state.

Glossary↑

This is a list of key terms used in this article; their definitions are available in the full glossary.

network convergencenetwork convergence
Failure Domainfailure domain
L2 AccessLayer 2 access
Routed Accessrouted access
HSRPHot Standby Router Protocol
PCPC
serverserver
VLANVLAN
firewallfirewall
Stateful Filteringstateful filtering
NAT MappingNAT mapping
NATNAT
Network Accessnetwork access
Core Networkcore network
endpointendpoint
gatewaygateway
IPIP
packetpacket
VPNVPN
L2Layer 2
L3Layer 3
Default Gatewaydefault gateway
FIBFIB
RIBRIB
routingrouting
VRRPVRRP
LACPLACP
Port Aggregationlink aggregation
switch stackswitch stack
STPSTP
switchswitch
portport
device portdevice port
APwireless access point

Scope and references

The technical principles draw on the official documents below. Device layouts, addresses, loads, and timing values identified as examples are for explanation—not field measurements or guaranteed product performance.

Before applying the design, check support for your devices and software, then test the behavior your environment requires.