Hone

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

enable
In.
configure terminal
The address that travels in the file.
interface vlan 1
The management interface.
ip address 10.1.1.9 255.255.255.0
This line is configuration, so a restore puts it on the new box too.
exit
Out.
exit
And out.
show ip interface brief
Where the switch answers. One address, one box -- keep it that way.

Your turn

Show the management addresses this switch answers on.

show ip interface 

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.

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