Hone

Lessons · Network switches · a config that does not fit the box

A configuration that does not fit the box

A port the chassis does not have is not a port, and the line naming it is refused -- whether the mismatch is the count or the interface names.

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

The hostname and the uplink land either way, so a mismatch looks like a success. A 48-port config on a 24-port spare, or a Gigabit config on a FastEthernet box, both leave you with a switch that reads right and is not.

How to think about it

Read `show version` and `show inventory` on the replacement first. If the names differ, fix the file at a desk with a search and replace, before the copy.

Worked example

enable
In.
configure terminal
This box's ports are GigabitEthernet.
interface gi0/1
Accepted.
exit
Out.
interface fa0/1
The same port number, the wrong family. Refused.
exit
Out.
show interfaces status
What this chassis actually has, which is the list the file has to match.

Your turn

List what ports this chassis actually has.

show  status

The trap

Using a smaller spare and not telling anybody. It can be the right call at two in the morning; it cannot be invisible.

Practise a config that does not fit the box on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.