Search

What is IAC (Interpret as Command) in TELNET

TELNET commands and options are sent along with data stream. TELNET commands are identified by setting the most significant (left-most) bit as 1. In TELNET, IAC (Interpret As Command) is a special command used for negotiating and signaling between TELNET client and TELNET server. IAC (Interpret As Command) is a special command code 255 in decimals (FF in hexadecimals). The meaning of IAC (Interpret As Command) in telnet is to treat the next byte as command, not as data.

The data from TELNET client to TELNET server except 0xFF are transmitted as is. IAC (Interpret As Command) points that next byte is a command, not data. IAC (Interpret as Command) is repeated two times (think it as escape character) if that is appeared in normal data stream.

Please refer below Wireshark packet capture screenshot.

iac-interpret-as-command.jpg

The 0xff marked in above image is the special TELNET IAC (Interpret As Command). Here IAC (Interpret As Command) points that the next byte 0xfb (251 in decimals), is a TELNET command, not data.

Related Tutorials
What is TELNET
TELNET modes of operation
TELNET NVT (Network Virtual Terminal)
TELNET Commands and Options
TELNET Negotiation
How to install TELNET server in Windows Server using Server Manager
How to install TELNET server in Windows Server using PowerShell
How to start TELNET service in Windows Server
How to connect to Cisco Router using TELNET
How to install TELNET Client in Windows 10
How to use telnet command on Windows and telnet command options
How to test ports using TELNET
Why TELNET is not secure