Context
A server with two network interfaces begins sending outbound traffic through the management network. Both links can be healthy while the chosen route is wrong for the application's design. NetworkManager stores persistent connection profiles, and the kernel uses active routing state. Those two views should be compared before changing a gateway.
Prepare the host's interface map, intended primary path, management access method and a known destination address. Have console recovery available before applying network changes remotely. The commands here inspect state; reconnecting a profile or altering routes can interrupt the very session used for administration.
Inspect destination-specific routing
- Run
ip route showand, where relevant,ip -6 route show. Record default routes, metrics and interfaces. Then useip route get 203.0.113.10with an appropriate real destination for your environment; the documentation address is only a placeholder. This asks about a particular lookup rather than assuming the first displayed default explains all traffic. - Read
nmcli connection show --activeand inspect the relevant named profiles withnmcli connection show 'profile-name'. Compare gateway,ipv4.route-metric,ipv4.never-defaultand their IPv6 equivalents. A device can receive a DHCP gateway even when the operator remembers configuring only a static application address elsewhere. - Inspect routing rules with
ip rule showwhen source-specific paths or multiple routing tables are part of the design. An application's selected source address, a more specific route or a policy rule can override expectations based on a default-route metric alone. Compare the failing application's destination and source with a working administrative probe.
An illustrative profile surprise
In an illustrative backup server, a newly activated management connection receives a DHCP default route with a preferable metric. Backups then traverse a smaller management uplink. Deleting the active route manually fixes one test but the route returns on reconnect. The persistent profile's routing intent must be corrected, and IPv6 behavior needs a separate review if enabled.
| Observation | Diagnostic view | Possible explanation |
|---|---|---|
| Wrong default returns after reconnect | NetworkManager connection profile | Persistent automatic route |
| One destination differs from others | ip route get and specific routes | More specific match |
| Source address changes result | Routing rules and tables | Policy-based selection |
| IPv4 fixed, some clients still fail | IPv6 routes and application preference | Separate address-family path |
Correct the intended routing policy
If a connection must never supply a default route, evaluate its documented never-default setting. If it is a deliberate fallback uplink, a reviewed metric may express preference more accurately. These choices have different meanings: a high metric keeps a candidate route, while forbidding a default removes that role from the connection.
Apply a narrow profile change through the environment's tested procedure, preserving the prior profile and recovery path. Validate it on a console or equivalent safe connection. Retest destination lookup, actual application traffic and management reachability. A successful ping alone does not verify a stateful application's source address or return path.
Document route ownership
Keep a connection-to-network-role map and record whether DHCP may introduce gateways. Monitor unexpected default-route changes and critical outbound transaction success. Recheck profile behavior after network restarts during a planned window, because persistence is part of acceptance. Clouvenix Linux administration can help make multi-interface routing choices explicit in the server SOP.
Technical reference
NetworkManager connection settings and IP configuration properties.