Banners are one of the important things for any device that allows remote access either for administration or for user access. They serve their purpose of warning any unauthorised users and make them aware that the device or the server is protected and being monitored and also provide a quick snapshot of what the system is and what is it used for. For example, we use banners for security warning and the device details and the service/application related to it.
Adding a Banner to Cisco Router or a Catalyst switch running Cisco IOS is all a matter of one simple command.
The command "banner motd" run from the Global Configuration mode is used to add a banner onto the switch router. The syntax is
ciscorouter(config)# banner motd <block start char> <Banner message> <block end char>
where <block start char> & <block end char> marks the text between them as the text for banner. This is a single character and should not be a part of the Banner message. Basically IOS counts all text after the "block start char" and before the "block end char" as valid text for the banner and ignores anything beyond that.
An example:
ciscorouter(config)# banner motd ^
###############################################################
# No doughnuts here, run away!!! #
# #
# My Best Company #
# ———————————— #
# #
# Name: WANROUTER1 #
# Location: HQ #
# Model: Cisco 2620 #
# Serial No. XXXXXXXXXX #
# #
# WARNING, unauthorised access to this network is prohibited. #
# #
# Unauthorised access will lead to prosecution according to #
# the Law #
###############################################################^
In the above "^" marks the beginning and end of the text.
Once the banner is added, save the running-config to the startup-config
ciscorouter# wr mem
This should do!!!
good info.
nice presentation
Thanks FYI 🙂