Knowledge · Term
What is configuration drift?
Configuration drift is the gap between the configuration a network device should have according to your agreed standard and the configuration that actually runs on it. It builds up gradually, through manual fixes, outages and many hands, and usually goes unnoticed until it causes an outage or shows up in an audit.
Where drift comes from
- Manual fixes during an outage. Someone adds an ACL rule or changes a route at night and never comes back to clean it up.
- Replacements and new devices. A config from a template or an old device misses the changes of recent months.
- Many teams and contractors. Each makes changes their own way, and the standard lives in a document nobody opens.
- A changed standard. A new NTP or syslog server goes into the documentation but not onto every device.
Drift and an ordinary change
A change is deliberate: someone planned, approved and pushed it. Drift is a state in which the device differs from the standard, however that came about. An approved change that never made it into the standard also becomes drift, so the standard has to be updated together with the changes.
What it risks
- Outages that are hard to explain. Two "identical" switches behave differently because one still has the old QoS policy.
- Security gaps. Some devices still run Telnet or SNMPv2c with an old community.
- Audit findings. Under NIS2 you have to show that devices meet your standards, not just that a standard exists.
- Risky changes. A change drafted for the standard may behave differently on a device that deviates from it.
How to detect drift
- Store every configuration version of every device, automatically and after every change.
- Describe the standard: shared rules (NTP, syslog, AAA, hardening) and the expected configuration per device type.
- Compare the running config against the standard on every collection, not once a quarter.
- For each deviation, decide: fix the device, update the standard, or knowingly accept an exception.
How to organise the collection and versioning itself is covered in Switch and router config backup.
How Gravity does it
- The running config of every device collected over SSH with a read-only account, with passwords masked on site.
- Every version kept; the device view shows the running config, the standard and the differences between them.
- Standards (NTP, syslog, hardening rules) described once and checked on every device, with waivers and a version history of the standard.
- A fix for a deviation drafted as a change for approval, pushed with commit confirmed and verified.
Common questions
Is configuration drift always a mistake?
Not always. Some deviations are deliberate, such as a different config at a site with an unusual link. What matters is that every deviation is known and knowingly accepted as an exception, not discovered by chance during an outage.
How often should you check for drift?
On every config collection, so at least daily and after every change. A quarterly check shows the state of one day, while drift grows every day.
How is a golden config different from a backup?
A backup is a copy of what is on the device. A golden config describes what should be on it. Drift is the difference between the two.
See Gravity at the 2027 premiere
Join the list and we will send the premiere date and early access to the free Lab edition for testing.