(Answer) (Category) Cisco CCIE Certification and CCNP Certification FAQs :
How do I make the router return an error message when a connection fails?
See "Suppressing Messages on Async Lines"

http://cisco.com/en/US/tech/tk801/tk36/technologies_configuration_example09186a0080093ffe.shtml
sean@ertw.com

Example
 ! 3.3.3.3 doesn't exist, so connections to testrtr will fail
 r0(config)#ip host testrtr 2009 3.3.3.3
Testing without busy-message:

 r0#testrtr
 Translating "testrtr"
 Trying testrtr (3.3.3.3, 2009)... 
 % Destination unreachable; gateway or host down

Set up a busy-message for testrtr:

 r0#conf t
 Enter configuration commands, one per line.  End with CNTL/Z.
 r0(config)#busy-message testrtr *
 Enter TEXT message.  End with the character '*'.
 Can't connect to testrtr
 *

Give it a shot:

 r0#testrtr
 Translating "testrtr"
Can't connect to testrtr

sean@ertw.com
[Append to This Answer]
Previous: (Answer) Why doesn't IS-IS work in a hub and spoke configuration?
Next: (Answer) How do I override the hostname prompt?
This document is: http://ertw.com/cgi-bin/fom?file=52
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ...