Network devices: back up, compare and safely change switches and routers
Korthveil can look after the switches and routers behind it. It keeps a login for each device, reads its model, software and neighbours, backs up its running configuration, keeps every copy as an encrypted version, and tells you when the configuration changed outside Korthveil. Restores and changes go through a preview, a confirm timer, a check that the device still answers, and your confirmation: if you do not confirm, the device puts its old configuration back by itself (a few brands without a confirm timer are put back by Korthveil instead; see sections 7 and 8).
Not tested yet. No switch or router has been tested with Korthveil so far. The page lists each platform and what its profile is built from (answers recorded from the vendor's virtual edition, or the vendor's documentation); nothing more is claimed until a real or vendor-provided virtual device of that brand has passed.
Every address below is an example; use your own.
At a glance:
| What | Where |
|---|---|
| Turn the add-in on | System › Add-ins, Network devices, or the switch at the top of Network › Network devices |
| Add a device | Network › Network devices, Devices, Add device (or Add from Switch management) |
| Trust a device's key | The device's line, Read key, then Trust this key |
| Shared logins | Network › Network devices, Stored logins |
| Backups, versions, drift | The device's Details, Configuration versions |
| Schedule and confirm timer | Network › Network devices, Backups and safety |
| One change on many devices (VLAN, NTP, syslog, SNMPv3, AAA, firmware) | Network › Network devices, tab Network-wide changes |
| Device groups, baselines and their drift | Network › Network devices, tab Baselines |
| Ports, VLANs and PoE over SNMP | Network › Switches (unchanged) |
| Where each device sits | Network › Devices › Network map |
| Alerts | Monitoring › Alerts (and mail, phone and the other channels you set up) |
1. What you need
- A switch or router that Korthveil can reach on its management address, IPv4 or IPv6: SSH (port 22), NETCONF (830), or HTTPS for RESTCONF and brand APIs (443).
- Some brands use two ways in. Aruba AOS-CX, MikroTik RouterOS and VyOS with an API key use the port you give for HTTPS and reach SSH on port 22. Juniper Junos uses the port for NETCONF. A UniFi controller is reached on 8443 and an Omada controller on 8043, unless its address names another port.
- Cisco NX-OS uses the port you give for NX-API (HTTPS, 443 by default; turn it on with
feature nxapi) and reaches SSH on port 22 only to copy a version for a restore. HPE Comware, Dell OS10, Aruba ProVision and Ruckus ICX (FastIron) use the port for SSH. - A Cisco Meraki MS switch is changed through the Meraki Dashboard, not the switch itself: give the Dashboard API with the switch's serial number as the address (
https://api.meraki.com/?serial=Q2XX-XXXX-XXXX, an example), a Dashboard API key as the token, and trust the API's certificate.
- An account on the device. Give it only the rights Korthveil needs: read access is enough for backups and inventory; changes and restores need configuration rights.
- Optional: an SNMPv3 user (SHA-2 and AES) for a generic device, so Korthveil can read its name, uptime and LLDP neighbours.
Web-only "smart" switches and unmanaged switches cannot be managed. Add them anyway with Not manageable and a reason, so they appear in the list and on the map.
2. Add a device
- Open Network › Network devices and enable the add-in.
- Under Devices, press Add device. A switch you already poll under Network › Switches can be picked from Add from Switch management instead: its name, address and console user are copied; type its password again.
- Enter the Management address, choose the Platform (for example Arista EOS or VyOS; Generic SSH device when it is not listed) and the Kind (switch or router).
- Choose a Stored login, or enter the device's own User and Password (or an SSH private key).
- Leave Allow changes off for now: Korthveil then only backs up, compares and restores.
- Press Save to pending changes and commit.
3. Trust the device's key
Korthveil never sends a login to a device whose key you have not confirmed.
- Open the device's line and press Read key. Korthveil connects without signing in and shows the SSH host key (for example
SHA256:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU) or the certificate fingerprint. - On the device's own console, show its key (for example
show ip sshorshow crypto key mypubkey, depending on the brand) and compare. - Press Trust this key and commit. Korthveil now backs the device up and reads its inventory. A device reached over both SSH and HTTPS (for example Aruba AOS-CX or VyOS) shows both keys: trust each one.
If a device later shows a different key, Korthveil stops connecting to it and raises an alert. Trust the new key only if the device was replaced or reset; otherwise something may be pretending to be it.
4. Backups and versions
- Korthveil reads the running configuration on a schedule (Back up every, default 24 hours), after every change it makes, and when you press Back up now.
- A copy identical to the newest version adds no version; lines that change on every read (time stamps) are left out of the comparison.
- Versions are kept encrypted. The key is on the firewall, outside its database, so a copy of the database or a configuration export does not contain readable device configurations.
- Versions kept per device (default 50) limits the history; the approved version is always kept.
- Press View to read a version. Passwords, secrets, keys, SNMP communities and password hashes are shown as
<masked>.
5. Approve a version and watch for drift
- Press Details on the device's line.
- Read the newest version and press Approve when it is the configuration you want.
- From then on, a backup that differs from the approved version shows as drift on the page and on the network map, and raises an alert (turn it off with Alert when a configuration drifts).
- Press Compare approved with newest to see what changed. A change only in a masked value says so.
- Approve the new version if the change was wanted, or restore the approved one.
A change made through Korthveil and confirmed by you becomes the approved version by itself.
6. Restore a version
Restore needs the device's brand connector; without one, the version can still be viewed and compared.
- In Details, press Restore on the version.
- Read the preview: what the device will get compared with its running configuration.
- If the restore changes a line that holds the device's management address, Korthveil warns that it could lose the device. Switch on I understand; go ahead anyway only when you are sure.
- Press Restore with a confirm timer. Korthveil connects again and checks that the device still answers.
- Press Confirm before the timer ends. Without a confirmation, or when the device no longer answers, the device rolls back by itself.
7. Make a change
Changes need a brand connector for the platform and Allow changes on for the device.
- Switch on Allow changes for the device and commit.
- In Details, under Changes, choose the change (for example a VLAN) and enter its settings, one per line (
id=30,name=Cameras). - Press Preview and read the diff. Change kinds the device does not offer are listed with the reason.
- A change that would cut Korthveil's management path (the interface, VLAN, ACL entry or route it reaches the device on) is refused unless you confirm the warning.
- Press Apply with a confirm timer, wait for "still answers", and press Confirm.
How each brand goes back when you do not confirm
| Platform | What happens without your confirmation |
|---|---|
| Cisco IOS-XE, Juniper Junos, Arista EOS, Aruba AOS-CX | The device's own confirm timer (revert timer, commit confirmed, commit timer, checkpoint) puts the old configuration back by itself. |
| VyOS | commit-confirm: VyOS goes back by itself, but to its saved configuration, not the one it was running (seen on a VyOS lab router). So Korthveil refuses a change while VyOS has changes that are committed but not saved, and names them: save them on the router (save) or undo them first. If the change cuts Korthveil's own connection while it is committed, VyOS still goes back by itself when the time runs out. |
| MikroTik RouterOS | Before the change Korthveil saves an encrypted backup on the router and schedules it to be loaded (the router restarts) when the confirm time runs out, and again at the next start. RouterOS safe mode is not used: its API has none, and on a lab router a change that cut the management connection inside safe mode took about 16 minutes to be undone. A change that leaves firewall rules pointing at an interface it removed (RouterOS marks them invalid and does not bind them again) is undone at once. |
| Cisco NX-OS | Before the change the switch gets a one-time scheduled job that rolls back to a checkpoint taken just before. A command the switch refuses undoes the whole change at once. Korthveil turns on feature scheduler for this. |
| HPE Comware | configuration commit delay: the switch goes back by itself. A refused command shortens the delay to one minute. |
| Aruba ProVision, Ruckus ICX (FastIron) | These switches have no confirm timer. The change is made but not saved, and the switch is told to restart after the confirm time; it comes back from its saved configuration. The restart interrupts traffic through the switch for a few minutes. Korthveil refuses a change while the switch has changes that are not saved, because the restart would undo them too. |
| Dell OS10 | OS10 has no confirm timer. The change is one transaction (a refused command discards all of it), and Korthveil keeps the commands that undo it and sends them when you do not confirm. This works only while Korthveil still reaches the switch; the change is saved only when you confirm, so a restart also undoes it. |
| UniFi, TP-Link Omada, Cisco Meraki MS | The controller or Dashboard has no confirm timer. Korthveil keeps the old settings and puts them back through the controller or Dashboard; this works only while Korthveil reaches it. |
Some Meraki settings belong to the whole Dashboard network, not to one switch: the switch ACL, syslog, SNMP and turning spanning tree on or off. The preview says so. Meraki has no VLAN list, NTP setting or switch logins to change: those changes are listed as not offered, with the reason.
8. Switches and routers: more brands
These platforms are new in 1.7.7. Like the others, they are built from each vendor's documentation and have not been tested on a real device yet.
| Platform | How Korthveil reaches it | How a change is undone when you do not confirm |
|---|---|---|
| FortiSwitch (through the managing FortiGate) | The FortiGate's REST API (HTTPS 443) | Korthveil puts the old port settings and VLANs back through the FortiGate |
| NETGEAR M4300 / M4350 (local management) | SSH | Korthveil sends the undo commands; the change is saved only when you confirm |
| TP-Link JetStream (standalone) | SSH | Korthveil sends the undo commands; the switch also restarts with its saved configuration when its restart timer runs out |
| Zyxel switches (standalone) | SSH | Korthveil sends the undo commands; the change is saved only when you confirm |
| Ubiquiti EdgeSwitch | SSH | Korthveil sends the undo commands; the change is saved only when you confirm |
| Ubiquiti EdgeOS (EdgeRouter) | SSH | commit-confirm: the EdgeRouter restarts with its old configuration by itself |
| Juniper SRX / MX (routing) | NETCONF (830) | commit confirmed: Junos rolls back by itself |
Add a FortiSwitch. Create a REST API administrator on the FortiGate (an administrator profile with read and write rights for the switch controller and for network interfaces, with Korthveil's address as a trusted host) and copy its API key. In Korthveil, add the device with the platform FortiSwitch (through the managing FortiGate), the address https://<FortiGate>:443/?switch=<switch serial number>&vdom=root, and the API key as the device's token. Trust the FortiGate's certificate. VLANs you add are FortiLink VLANs on the FortiGate, so every switch on that FortiLink can use them. NTP, syslog, SNMP, spanning tree and logins of managed FortiSwitches are set on the FortiGate for all of them and are not changed from here.
Switches without a confirm timer (NETGEAR, Zyxel, EdgeSwitch, JetStream). Korthveil sends the change to the running configuration only and saves it (write memory or copy running-config startup-config) when you press Confirm. If you do not confirm in time, Korthveil sends the undo commands it prepared before the change. This works only while Korthveil still reaches the switch: if it does not, restart the switch and it comes back with its saved configuration. JetStream switches do this by themselves: Korthveil sets a restart timer (reboot-schedule) before the change and cancels it when you confirm. A refused command undoes what was already sent at once.
Not offered, and why. The Platforms table lists every change kind each brand does not offer, with the reason. In short:
- NETGEAR Insight and Zyxel Nebula cloud management: the vendors publish no API for configuring switches this way. Put the switch in local (standalone) management to manage it from Korthveil.
- TP-Link switches adopted by Omada: use the TP-Link Omada switching platform with the Omada controller instead; a switch in Omada mode ignores direct changes.
- Juniper SRX / MX: Korthveil changes routing (static routes for IPv4 and IPv6), firewall filters, aggregated links, NTP, syslog, SNMPv3, RADIUS/TACACS+ and accounts. VLANs, access and trunk ports and spanning tree are left to EX/QFX switches (Juniper Junos); SRX security policies and zones are not changed.
- EdgeRouter: access and trunk ports need the built-in switch (switch0 on the ER-X, ER-X-SFP, ER-10X and ER-12). TACACS+ and spanning tree are not offered.
Port names. NETGEAR and JetStream ports are written like 1/0/5, EdgeSwitch ports like 0/5, Zyxel ports as numbers (5), FortiSwitch ports like port5, EdgeRouter ports like eth2, and Junos ports like ge-0/0/2. Port channels are lag1 (NETGEAR, EdgeSwitch), Po1 (JetStream), T1 (Zyxel) and bond0 (EdgeRouter).
9. Change many devices at once
The Network-wide changes tab makes one change on many switches and routers. Each device needs a brand connector and Allow changes on, like a single change.
| Change | What it does |
|---|---|
| VLAN everywhere | Creates the VLAN on every chosen device, and adds it to the trunk ports you enter for each device. The VLANs a trunk already carries are read from the device and kept. A trunk whose VLAN list the brand does not give (it may carry all VLANs) is left out with that reason. |
| NTP | Sets 1 to 4 time servers (IPv4 or IPv6 addresses or names), replacing the ones the device has. |
| Syslog to Korthveil | Sends the device's log to Korthveil's LAN address (with the Syslog server add-in on, Monitoring › Logs & audit › Syslog server) or another server, at the level you choose. |
| SNMPv3 | Adds an SNMPv3 user with SHA-256 and AES-128 or AES-256, or removes it. The passwords are used for this round only and never stored. |
| AAA | Signs administrators in through RADIUS or TACACS+ servers, for example Korthveil's NAC. The device's local sign-in stays as the fallback unless you turn it off, so a NAC outage does not lock everyone out. |
| Firmware round | Updates the software one device at a time (see below). |
- Choose the change and the devices: every device, a device group (tab Baselines), or devices you pick.
- Press Preview on every device. Each device's connector prepares the change; press Preview on a line to read that device's diff (secrets are masked). Devices that cannot take it are listed with the reason and left out.
- Lockout check: a device whose change would cut Korthveil's management path (the interface, VLAN, ACL entry or route Korthveil reaches it on) is marked cuts management. The round does not start until you switch on Go ahead for each such device, with the reason shown.
- Press Start. Korthveil changes one device at a time: the change with the confirm timer, the check that the device still answers, then the confirmation and a backup that becomes the approved version.
- The round stops at the first failure. A device that did not answer is not confirmed, so it rolls back by itself when its timer ends; the devices after it are not started. Stop after this device ends a round once the current device is done.
A preview must be started within 10 minutes. Every step (preview, start, each device, stop, end) is in the Audit trail.
Firmware rounds follow the Wi-Fi firmware rounds: Korthveil backs up the configuration, starts the update, waits until the device answers on the new version (Wait for each device, 5 to 60 minutes, default 20), rolls it back where the brand can, and stops at the first failure. A device whose connector does not offer firmware updates is listed with that reason.
| Platform | Firmware rounds |
|---|---|
| UniFi switching | The version the UniFi controller offers for the switch, installed through the controller. No rollback: the switch keeps one image. |
| TP-Link Omada switching | The newest version the Omada controller offers for the switch (its online upgrade). No rollback through the controller. |
| MikroTik RouterOS | The newest RouterOS of the router's update channel (the router must reach MikroTik's update server). No rollback: a downgrade needs the older packages uploaded first. |
| Every other platform | Not offered by the connector yet. Cisco Meraki updates switch firmware for a whole Dashboard network at once, not one switch at a time; Arista EOS, Cisco NX-OS and the others install an image file you copy to the switch first, which a round does not do yet. |
Firmware rounds are built from each vendor's documentation and have not been tested on a real device yet. Korthveil installs only the version the device or its controller offers; you can name it under Version, and a round refuses any other.
10. Baselines across devices
A baseline says what every device of a group must have, in the same form as the multi-site baselines: an exact value, one of several values, or a range.
- In the Baselines tab, press Add group, name it and switch on its devices.
- Press Add baseline, switch on the groups that follow it (a device follows one baseline at most), and add items:
| Item | Read from | How Review and push sets it |
|---|---|---|
| Software version, model | the inventory | not pushed (use a firmware round for the version) |
| VLANs, number of VLANs | the ports and the configuration | adds the missing VLANs; a push never removes a VLAN |
| NTP servers, number of NTP servers | the configuration | sets the NTP servers |
| Syslog servers, number of syslog servers | the configuration | sets the syslog servers (level info) |
| SNMPv3 users, RADIUS servers, TACACS+ servers | the configuration | not pushed: they need passwords or shared secrets, so use the network-wide SNMPv3 or AAA change |
- Press Save to pending changes and commit.
Drift lists each device with its items: ok, differs, or not given when Korthveil cannot read that part on the platform (for example the JSON configurations of Aruba AOS-CX, UniFi and Omada switches; those items are never counted as drift). Lists compare without order. Drift is checked after every backup; Check now backs up and reads every following device again. A device that differs raises an alert while drift alerts are on.
Review and push never changes anything by itself: it prepares the changes for the differing items on each device and shows them as a network-wide round, which you read and start as in section 9.
11. The network map
Network › Devices › Network map shows the managed switches and routers with the firewall, the access points and the devices, linked by LLDP/CDP and the switches' address tables. A dot on each managed device shows its state: green approved and answering, amber drift, red unreachable or key changed, grey not checked yet or not manageable. Press a device for its details and a link back to Network devices.
12. Security
- Logins are typed secrets: never in logs, exports, diagnostics or support bundles. A stored administrator login is still a real risk if the firewall itself is taken over: use a device account with limited rights.
- In FIPS mode Korthveil uses only validated algorithms (ECDH P-256/384/521 key exchange, AES-GCM and AES-CTR ciphers, SHA-2 MACs, ECDSA or RSA host keys; TLS 1.2 or newer with ECDHE and AES-GCM) and refuses older SSH ciphers. Outside FIPS mode it still never uses CBC, RC4 or SHA-1 MACs.
- Every action (read key, backup, view, compare, approve, preview, apply, confirm, roll-back, restore, network-wide previews and rounds, baseline checks and reviews) is in the Audit trail at the bottom of the page, with who did it.
13. Troubleshooting
| What you see | What to do |
|---|---|
| waiting for key | Read the key and trust it (section 3), then commit. |
| key changed | The device showed another key. Check the device; trust the new key only if it was replaced or reset. |
| unreachable | Check the address, the port and that the firewall's own traffic may reach the device. The error says what the device answered. |
| refused the sign-in | Check the user, password or key, and the account's rights on the device. |
| offers no SSH algorithm allowed in FIPS mode | Update the device's software or turn on its strong-crypto setting (for example ip ssh server algorithm on IOS, strong-crypto=yes on RouterOS). |
| A device is excluded from a network-wide round | The line says why: not manageable, paused, key not trusted, Allow changes off, no brand connector, the change kind not offered, or a trunk port that is missing or whose VLANs are not given. |
| A round failed | The failed device's line says what happened; it was not confirmed and rolls back by itself. Fix the cause and preview again: devices already done keep their change. |
| A baseline item shows not given | Korthveil does not read that part on this platform; it is not drift. |
| changes and restore … need its brand connector | The platform has no connector yet in this version: backups and comparisons work; restore by hand from a viewed version. |