rollover cable

term

networkingIT support

Kept in this browser · My desk

A flat eight-wire cable with RJ-45 plugs wired in reverse order at the two ends (pin 1 to 8, 2 to 7, and so on), used with a DB-9 or USB adapter to connect a terminal to the RJ-45 console port of network equipment.

The rollover cable is the console cable that often comes in the box: Juniper's recovery procedure calls it the 'Ethernet rollover cable (supplied with the router)'. The console port is a DTE serial port on an RJ-45 socket; reversing the pins brings its transmit line (pin 3) to the far end's pin 6, where the terminal adapter maps it to the computer's receive line. Use a straight Ethernet patch cable instead and transmit meets transmit: nothing appears. Settings are almost always 9600 baud, 8N1, no flow control. It is not a crossover cable, which swaps pairs rather than reversing all eight pins.

What it is. A rollover (or rolled) cable is an eight-conductor cable terminated with RJ-45 plugs in which the order of the wires at one end is the reverse of the other. Cisco's cabling guide defines it plainly: "In a rolled cable, the colored wires at one end of the cable are in the reverse sequence", so pin 1 meets pin 8, 2 meets 7, 3 meets 6, 4 meets 5, and so on back to 8 meeting 1. With an RJ-45 to DB-9 (or DB-25) adapter on the far end, or as a single RJ-45 to DB-9 or RJ-45 to USB cable, it connects a laptop or console server to the console port of a router, switch or firewall.

Why it is wired that way. The console port on most network equipment is an RS-232 serial port presented on an RJ-45 socket and wired as data terminal equipment (DTE). Cisco's pinout for that port is: 1 CTS (clear to send), 2 DTR (data terminal ready), 3 TxD (transmit data), 4 GND, 5 GND, 6 RxD (receive data), 7 DSR (data set ready), 8 RTS (request to send). Follow the data: the console transmits on pin 3; the roll delivers it to pin 6 at the far end; the terminal adapter maps that to the computer's receive line, and the reverse path works the same way. A straight patch cable would connect transmit to transmit and receive to receive, and the screen stays blank. Cisco lists the combinations that work, a rolled cable with a DTE adapter to a terminal, a rolled cable with a modem adapter to a modem, a straight cable with a non-modem DCE adapter to a terminal, and an RJ-45 to DB-9 cable, and adds: "These are the only setups that work."

Settings. The cable carries no configuration, but the terminal must match the port. Cisco documents 9600 baud, 8 data bits, no parity and 1 or 2 stop bits depending on the router, and states that "The console port does not support modem control or hardware flow control". Juniper's recovery procedure uses an "Ethernet rollover cable (supplied with the router)" with an RJ-45 to DB-9 adapter and the settings 9600, 8 data bits, no parity, 1 stop bit, no flow control. Linux servers use the same convention, with 9600n8 as the kernel's default and 115200 as its maximum. At 9600 baud with ten bit times per character, a console moves 960 characters a second.

History and standards. RFC 3871 (September 2004) took "the classic RS232 serial port" as the model for the console every large-network device must have, valued for being "simply a hardware specification", ubiquitous and independent of the network, and required that using it "MUST NOT require proprietary devices, protocol extensions or specific client software" and that its default communication parameters be published. The RJ-45 form of that port, with its rolled cable, is the de facto industry practice that satisfies it; laptops lost their DB-9 ports, so the far end today is usually a USB serial adapter, and many devices now add a USB or Mini-USB console port, which Juniper's guidance treats as another port to secure.

USB on both ends. On the computer side a USB serial adapter appears as a serial device; on Linux the kernel's own documentation names "ttyUSB0 for the first USB serial device" in the console= syntax. On the equipment side, some devices now have a USB console in addition to, or instead of, the RJ-45 port: Juniper documents a Mini-USB Type-B console port on its SRX320, SRX340 and SRX345 firewalls and a command to disable the mini-USB ports, because the same port could otherwise be used to attach storage. The rollover cable is unnecessary there, but the serial settings and the security considerations are the same.

What goes wrong. A straight or crossover Ethernet cable used by mistake (the crossover swaps pairs, it does not reverse all eight pins). A USB serial adapter without a driver. Wrong speed, which shows as garbage rather than silence. Two devices connected with a rolled cable but no adapter. And the security point: a console cable left plugged in is an open door, since the console is the route to password recovery; Junos can log out the console session when the data carrier is lost (log-out-on-disconnect), which is off by default.

Neighbours. The framing on the line is the UART's; the socket is an RJ45 8P8C jack; the crossover cable is a different Ethernet cable; console servers terminate rollover cables in bulk for out-of-band management.

Also known as: rolled cable, console cable, cisco console cable, rj-45 to db-9 console cable

← Back to R Back to the glossary