background image
Command-Line Interface
211
a banner will give them the information you want them to have. There are
four different banners available:
Router(config)#banner ?
LINE c banner-text c, where 'c' is a delimiting
character
exec Set EXEC process creation banner
incoming Set incoming terminal line banner
login Set login banner
motd Set Message of the Day banner
Message of the day (MOTD) is the most extensively used banner. It gives
a message to every person dialing into or connecting to the router via Telnet,
auxiliary port, or through a console port.
Router(config)#banner motd ?
LINE c banner-text c, where 'c' is a delimiting character
Router(config)#banner motd #
Enter TEXT message. End with the character '#'.
$ Acme.com network, then you must disconnect immediately.
#
Router(config)#^Z
Router#
00:25:12: %SYS-5-CONFIG_I: Configured from console by
console
Router#exit
Router con0 is now available
Press RETURN to get started.
If you are not authorized to be in Acme.com network, then
you must disconnect immediately.
Router>
The preceding MOTD banner tells anyone connecting to the router that
if they're not on the guest list, get lost! The part to understand is the delim-
iting character--the thing that's used to tell the router when the message
is done. You can use any character you want for it, but you can't use the
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com