Hone

Lessons · Network switches · saving it, last

Save last, and mean it

Everything you have done lives in memory. The switch boots from a different file, and until you copy one onto the other, a reload undoes the whole evening.

Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.

What it is for

That is also the reason to wait. Before you save, a reload is a free undo. After it, the state you would return to is the one you just wrote.

How to think about it

Verify first -- VLANs, ports, reachability -- and save when there is nothing left you would want to take back.

Worked example

enable
In.
configure terminal
Configuring.
hostname CLOSET-3
A change, in memory.
end
Done.
show startup-config
Refused, and the refusal is the lesson: there is nothing saved to show.
copy running-config startup-config
From the live one, to the one that boots.
show startup-config | include hostname
Now it exists, and the name is in it. That is what survives the power cut.

Your turn

Save the running configuration so it survives a power cut.

copy running-config 

The trap

Saving as you go. Everywhere else that is a good habit; during the twenty minutes you are proving a restore it throws away your undo.

Practise saving it, last on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.