BaudBuddy

Sending a break to Cisco equipment, and why it usually fails

Password recovery needs a real break condition, not a keystroke. Why some adapters cannot produce one, why switches do not use it at all, and the recovery sequence for both.

You are locked out of a router. The fix is documented everywhere: power cycle it, send a break within sixty seconds, and you land in ROM monitor. So you power cycle it, press whatever your terminal calls Send Break, and watch it boot normally. Again. And again.

There are three separate reasons that happens, and only one of them is timing.

A break is not a character

This is the part most guides skip, and it explains almost everything else.

Every byte on a serial line is a start bit, eight data bits and a stop bit. A break condition is the line held in the space state for longer than one complete frame. It is not a byte. There is no value you can transmit that produces it, because it is defined as the absence of framing rather than the presence of data.

Which means a terminal that offers Send Break but actually transmits 0xFF, or a string of nulls, will never work and will never tell you why. It looks like it did something. The router disagrees.

It also means the adapter has to cooperate. Asserting a break is a specific operation on the USB serial chip, and not every chip implements it. FTDI parts are reliable. Some of the cheaper clones are not, and a few will accept the call and do nothing. If break never works on one adapter and works immediately on another, you have found your answer and it was never the timing.

Switches do not use break at all

Here is where a lot of afternoons go.

Break for password recovery is a router procedure. On most Catalyst switches there is no break sequence, because there is a physical button on the front, and holding it is the recovery mechanism.

If you are staring at a 2960 sending breaks into it, nothing will ever happen, and the internet will keep telling you to send breaks harder. The switch procedure is at the bottom of this page.

Router recovery, start to finish

For an ISR or similar, with a console cable in and a terminal at 9600 8N1, no flow control.

  1. Power cycle the router.
  2. Send a break within about sixty seconds. You should land at rommon 1 >.
  3. Tell it to ignore the startup config:
rommon 1 > confreg 0x2142
rommon 2 > reset
  1. It boots without the saved configuration. Decline the setup dialog.
  2. Load the real config into memory, where you can edit it:
Router> enable
Router# copy startup-config running-config
  1. Set a password you know:
Router# configure terminal
Router(config)# enable secret NewSecretHere
  1. Bring the interfaces back up. This is the step that gets missed. Loading the startup config this way leaves interfaces administratively down, so if you skip it you will restore the router to a working password and no connectivity, which is a memorable way to end a maintenance window.
Router(config)# interface GigabitEthernet0/0
Router(config-if)# no shutdown
  1. Put the config register back, or it will ignore its own config on every future boot:
Router(config)# config-register 0x2102
Router(config)# end
Router# write memory

Worth saying plainly: 0x2142 means “ignore startup config”. Leaving it set is a fault you will not notice until the next power cut, at which point the device comes up bare and nobody remembers why.

Catalyst switch recovery

No break involved.

  1. Unplug power.
  2. Hold the MODE button on the front.
  3. Plug the power back in, keeping MODE held. Release it when the LED above port 1 goes out, or after about fifteen seconds. You want the switch: prompt.
  4. Then:
switch: flash_init
switch: rename flash:config.text flash:config.old
switch: boot
  1. The switch boots without its config. Get to enable, put the config back and edit the password:
Switch# rename flash:config.old flash:config.text
Switch# copy flash:config.text system:running-config
Switch# configure terminal
Switch(config)# enable secret NewSecretHere
Switch(config)# end
Switch# write memory

Renaming rather than deleting is the habit worth keeping. If something goes wrong halfway, the configuration is still on the flash under another name.

The timing problem, and how to beat it

Assume you have a terminal that sends a genuine break and an adapter that can assert one. You still have to land it inside the window, and on some platforms that window is a couple of seconds rather than sixty.

Pressing a key combination while watching boot messages scroll is a poor way to hit a two second target. The reliable approach is to send a break repeatedly across the whole boot, once a second, starting before you apply power, and watch the terminal so you can stop the moment the prompt appears.

That is what BaudBuddy’s repeated break does. It asserts a real break condition on a timer while the session stays live in front of you.

The BaudBuddy connection sheet, showing 9600 baud, 8 data bits, no parity, one stop bit and flow control set to none

Console defaults for Cisco gear: 9600 8-N-1 with no flow control. The summary in the bottom left is the setting people most often get wrong, because a terminal defaulting to hardware flow control will sit there in silence.

If the app cannot assert a break on the adapter you have plugged in, it says so rather than pretending. That is a small thing until it is three in the morning and you are trying to work out whether the problem is the cable, the adapter, the timing or the procedure.

Quick checks before you blame the procedure

  • Is it a router (break) or a switch (MODE button)?
  • Does your terminal send a real break, or transmit something?
  • Can the adapter assert one? Try a known good FTDI cable.
  • Are you at 9600 8N1 with no flow control?
  • Are you inside the window? Try repeating the break rather than timing it.
  • On a terminal server, does the far end forward the break? Raw TCP will not. RFC 2217 will, if the server implements it.

These procedures vary by product family and software release. Confirm the exact recovery procedure and its operational impact in Cisco’s documentation for the device before changing a production system.

Sources