Lessons · Network switches · checking you can still get in
The console cannot prove remote access
You are typing down a serial cable. It would work if every network setting on the box were wrong, which is exactly why it proves nothing about SSH.
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
A hostname and a domain name arrive with the configuration. The key does not, because a key is not configuration -- and lines that need one are refused as the file replays.
How to think about it
Generate the key, give the box its address and its way out, then open a session from where support actually sits. Not from the closet.
Worked example
enableIn.
configure terminalConfiguring.
hostname CLOSET-3A key is named after the box, so the box needs its name first.
ip domain-name hone.localAnd its domain, for the same reason.
crypto key generate rsaThe step that is not in any backup.
interface vlan 1The management interface.
ip address 10.20.4.7 255.255.255.0An address to be reached on.
exitOut.
ip default-gateway 10.20.4.1And a way out of its own subnet, which is what support needs.
endDone.
show ip interface briefVlan1 is up with an address. That is as far as the console can take you.
Your turn
Generate the key pair SSH needs.
crypto key generate
Console into a switch
The trap
Proving SSH from a laptop in the same closet. A neighbour on the same subnet reaches the switch without a gateway at all.