Stop the Router trying to telnet to typos!

Quick config to stop the annoying problem of your cisco equipment trying to telnet to your typos like below

Router#shwo
Translating "shwo"...domain server (255.255.255.255)

Translating "shwo"...domain server (255.255.255.255)
(255.255.255.255)% Unknown command or computer name, or unable to find computer address

...Annoying....

Adding the following stops the box trying to connect by using the preferred transport config on the line interfaces.

Router(config)#line con 0
Router(config-line)#transport preferred none
Router(config)#line vty 0 15
Router(config-line)#transport preferred none

Now you can see the router shows the command as an error rather than trying to connect to it!

Router#shwo
^

% Invalid input detected at '^' marker.

Or you could just not typo....(not an option for me sadly)

m00nie :)