// the problem was operational, not theoretical

The physical side of a rack migration is visible. Routing dependencies are less obvious. A production network can have two top-of-rack switches, redundant host attachments and a healthy Layer 2 control plane while its northbound routing still depends on static next hops written for an earlier layout. That was the starting point for this stage of the Server ReRACK programme.

Service subnets already had stable first-hop gateways, and changing those gateways alongside upstream routing would have increased the number of things that could fail at once. At the firewall, return paths and legacy interface dependencies also had to be accounted for. Merely adding another uplink would increase the port count; it would not ensure that traffic selected the intended forward and return paths.

My objective was therefore specific: move production service routing from manually preferred static paths to OSPF, one service VRF at a time, without changing the workload gateway or forcing a network-wide cutover.

// a path per TOR, not a single shared escape route

Each service retained its own VRF on the dual top-of-rack fabric. The workload subnet continued to use its existing HSRP virtual gateway. Each TOR had a routed transit to the firewall for that VRF, while a separate inter-TOR routed transit provided an alternative route-exchange path. The firewall ran FRR OSPF and originated the default route. Service-facing SVIs were passive: their connected prefixes could be advertised without attempting to form adjacencies with hosts.

This separation mattered. The two firewall-facing transits were not merely duplicate Ethernet connections: they were distinct routed paths that had to be visible in the correct VRF and installed in the forwarding table. On the firewall side, FRR route knowledge and operating-system kernel route installation were separate verification targets.

Migration from static next-hop preference to per-service OSPF routing — logical, not port-accurate

Figure 1. Migration from static next-hop preference to per-service OSPF routing. Generic labels intentionally conceal production service identities. Diagram is logical, not port-accurate.

// make before break

I used a working implementation template that divided each conversion into controlled gates. First, capture the original state: routes on both TORs, neighbour status, return routes on the firewall and the current next hops. Second, build and validate the new routed firewall transit, including the matching firewall-side interface and policy. Third, establish OSPF on the firewall-facing and inter-TOR transits while preserving the existing preferred static path. Only after neighbour and route checks did the cutover change route preference.

The deployment used OSPF area 0 for the relevant service transits. Firewall-facing adjacencies were tuned to 1-second hello and 4-second dead timers; the inter-TOR adjacency stayed at 10/40. Those settings describe this implementation, not a blanket recommendation to apply aggressive hello/dead values to every network. They require compatible neighbours and careful fault-domain consideration.

After OSPF learned the default path, each TOR's local firewall-facing static default was moved to administrative distance 250. With an OSPF-learned default at the normal OSPF distance of 110, the learned route could become preferred while a deliberately less-preferred local static route remained configured. The migration was then verified against the actual selected route, not simply against whether the OSPF process was running.

// service 1 as the reference

The first converted service provided a reusable implementation sequence. I checked the existing static and firewall return-path behaviour, introduced the second routed transit, enabled the dynamic adjacencies and inspected the learned and installed routes. After raising the static default's preference value to AD 250, the expected OSPF route could be selected while retaining a local fallback.

The corresponding firewall-side return route had to be checked at two levels: FRR's routing view and the firewall operating system's installed route table. A route visible in a protocol database is not sufficient if it is not installed in the kernel or if a firewall rule prevents the return packets from reaching their destination.

I repeated the technique across the remaining service VRFs in staged windows, with recorded completion of the later conversions by 13 October. The important result was the reproducible procedure: each service had a documented baseline, a bounded change, verification checks and a defined rollback action.

// a route-preference illustration

The following example intentionally describes the routing decision instead of reproducing a complete NX-OS command. The real implementation used service-specific next hops and routing context; those are withheld here.

Route candidate Administrative distance Expected state
OSPF-learned default 110 Preferred while present
Static default via local firewall transit 250 Floating fallback

The table is an illustrative route-selection model, not a paste-ready configuration. Specific platform syntax must be checked before reuse.

// neighbour state is not forwarding proof

At least four different observations mattered during cutover: an OSPF adjacency reaching FULL, the desired prefix being advertised, the route being selected and installed, and traffic successfully completing the outward and return trip. Each observation answers a different question.

A neighbour can be FULL while the selected default remains static. FRR can know a route that the kernel has not installed. A successful ping can miss an application-specific firewall or return-routing issue. My acceptance checks therefore included both TOR route preference and firewall forwarding state, plus service reachability. I deliberately performed these checks service by service so unexpected outcomes had a narrower change window and clearer rollback.

The migration also exposed the limits of simplistic redundancy claims. A floating static default pointing across the peer TOR is not equivalent to the local fallback. The reference design avoided mirrored cross-TOR floating defaults on both switches because loss of both firewall uplinks could create a forwarding loop. Each TOR instead retained its own local firewall-facing fallback. The presence of a fallback route is a design safeguard; it is not evidence that every multi-failure scenario has been tested.

// what I'd make instinctive

I previously applied the same make-before-break discipline on a single service VRF; applying it service-by-service across the fabric produced the same lessons with some new specifics.

The strongest lesson was to decouple the workload gateway from the upstream routing change. Preserving HSRP gateway addressing kept host reconfiguration out of the OSPF cutover.

Second, introducing the new path before moving traffic provided a meaningful checkpoint rather than treating "adjacency FULL" as a finish line.

Third, route preference needed explicit inspection; an administrative distance change is not complete until the installed next hop is checked.

Fourth, return routing and firewall policy were as important as the outbound default.

Finally, the individual service windows made regression and rollback manageable without committing every tenant network at once.

There are limits to the record. The September firewall baseline included legacy static entries, but this case study does not claim all historical static routes were eliminated. Nor does it claim that every reported adjacency total was independently reconstructed from one synchronized capture, or that all possible failure combinations were tested. Those questions require a separate failover analysis. What this stage did establish is a repeatable, controlled method for replacing static route preference with dynamic routing in a live segmented environment.

// a repeatable operational pattern

Before the change, know the selected route and its return path. During the change, establish and verify an alternative path before changing preference. Afterwards, check what the forwarding plane installed and whether the workload still communicates in both directions. Save and sign off only after those checks. For this migration, the protocol was OSPF, but the operational discipline is useful well beyond OSPF.