Quick Answer: A DB9 to RJ45 modular adapter does one of two jobs, and they are wired differently. For a console port it presents a rollover pinout: RJ45 pin 1 to DB9 pin 8, pin 2 to pin 7, pin 3 to pin 6, pin 4 and 5 to pin 5, and the sequence mirrors from pin 6 to pin 1. For a serial extender it presents pins 2, 3 and 5 of the DB9 onto one pair and one earth. Get the two confused and you feed plus or minus 12 V of RS-232 into a 3.3 V console circuit, which usually destroys the port.
The decision is decided by what sits at the far end of the RJ45, not by the DB9. A switch console expects a rollover cable with 9600 baud, 8 data bits, no parity and one stop bit; a serial device expects a straight or null modem mapping with hardware handshake available. Both cost the same, and both look identical in a bag, so label them at the time of build.
Identify the device before choosing the adapter
Read the silkscreen next to the port. A console port is usually marked CONSOLE or COM and expects 9600 baud; a serial port on a controller is marked COM1 or RS-232 and may run at 19200 or 38400. If the manual mentions an RJ45 console with a Cisco-style pinout, the rollover adapter applies.
| RJ45 pin | DB9 pin | Signal | Direction |
|---|
| 1 | 8 | clear to send | into console |
| 2 | 7 | data set ready | into console |
| 3 | 6 | receive data | into console |
| 4, 5 | 5 | signal earth | common |
| 6 | 3 | transmit data | out of console |
Voltage levels and the damage risk
RS-232 is not TTL
An RS-232 driver swings between plus 12 V and minus 12 V, with plus 3 V to plus 15 V read as a space. A console UART runs at 3.3 V and cannot survive a negative 12 V on its receive pin for more than a few milliseconds. Check the adapter with a meter before connecting anything expensive.
Null modem or straight through
Two devices of the same class, both wired as data terminal equipment, need pins 2 and 3 crossed. A device and a modem do not. Most modular adapters are sold straight, so a null modem version or a crossover jumper is a separate item.
Where the RJ45 end lands
The modular side is an 8P8C socket, the same shell as data cabling but not the same wiring. If the run passes through a structured cabling patch panel, terminate it on a dedicated rj45 keystone jack in a labelled port and keep it out of the data subnet, or a technician will eventually patch it into a switch. Note also that wider shells exist: rj50 vs rj45 differ by two contacts, and rj12 vs rj45 by width, so a 6 position plug will not seat in an 8 position jack without damage.
Serial reach and cable choice
RS-232 at 9600 baud is reliable to about 15 metres (50 ft) on ordinary cable, and to 30 metres at 19200 with low capacitance stock. Beyond that, convert to RS-485, which reaches 1200 metres at 100 kbit/s, or use a serial device server on the network. Do not try to extend RS-232 over 100 metres of Cat 6 without a converter; the capacitance kills the edges.
Practical scenarios
- Situation: a managed switch with an RJ45 console and a laptop with no serial port – use a USB to rollover adapter set and confirm pin 3 reaches pin 6 before plugging in.
- Situation: a lab instrument with a DB9 at 19200 baud, 4 metres from a terminal – a straight modular adapter plus a null modem jumper is enough; no converter needed.
- Situation: a pump controller 60 metres (200 ft) from the panel – move to RS-485 with 120 ohm termination at both ends rather than stretching RS-232.
- Situation: a rack where console cables vanish during maintenance – build them to length, label both ends, and keep the DB9 hoods screwed down.
FAQ
Will a DB9 to RJ45 adapter work for Ethernet?
No. The adapter carries three or four serial signals at a few volts; Ethernet needs four impedance controlled pairs and transformer isolation. Plugging one into a switch port produces no link and risks damage to the serial device.
What baud rate should be used on a console?
9600 baud with 8 data bits, no parity and 1 stop bit covers most switches and routers. A few appliances use 115200, so try both before assuming the cable is faulty.
How can the pinout be checked safely?
Use a multimeter on continuity with both ends unplugged, then measure the DB9 pin 3 to pin 5 voltage while the far device is off. Anything above 5 V means the adapter is passing RS-232 levels and must not meet a console port.