Lessons · Network switches · two boxes, one address
Two boxes, one address
The management address is in the configuration, so a restored replacement has the address the old box still has if the old box is still on.
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
Every session lands on one of them at random, and the one you reach is not necessarily the one you are looking at -- including the session you would use to fix it.
How to think about it
Take the old box off the network before the new one goes on. It is the same physical act as the swap: the uplink comes out of one before it goes into the other.
Worked example
enableIn.
configure terminalThe address that travels in the file.
interface vlan 1The management interface.
ip address 10.1.1.9 255.255.255.0This line is configuration, so a restore puts it on the new box too.
exitOut.
exitAnd out.
show ip interface briefWhere the switch answers. One address, one box -- keep it that way.
Your turn
Show the management addresses this switch answers on.
show ip interface
Console into a switch
The trap
Leaving the old switch powered and patched 'just in case'. That is what the bench is for; the rack is not a safe place to park it.