Configure Banner in Cisco devices
A banner is a message presented to a user who is using the Cisco switch. Based on the type of banner you configured for use, the message will be shown to users of Cisco switch. Cisco IOS routers support a number of banners, such as:
- MOTD banner: When users connect to the router, the "Message Of The Day (MOTD)" banner is presented.
- Login banner: The login banner is displayed right before the authentication prompt.
- Exec banner: The Exec banner appears before the user sees the exec prompt.
- Incoming banner: These banners are displayed for users who connect through reverse telnet.
This article is about how to configure banner on multiple Cisco devices simultaneously in Network Configuration Manager application using configlets. If you don't have NCM installed, please click here to download and install the application.
Steps to configure banner through CLI.
- Login to the device using SSH / TELNET and go to enable mode.
- Go into the config mode.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
- Use below command to configure banner for required banner types (motd / login / exec)
Router(config)#banner motd #Unauthorized access to this device is prohibited!#
- Exit config mode
Router(config)#exit
Router#
- Copy the running configuration into startup configuration using the below command
Router#write memory
Building configuration... [OK]
Router#
Corresponding configlet can be created in NCM application as shown in below screenshot.
Also you can click the below button to download the Configlet as XML and import it into NCM application using file import option.
Download Configlet XML
SHA256 value
f2801362f88288e56a72d1a3e1172a6f9d149936391abf1a3cfa8eca2763867a
Click to copy SHA256 value
Configlet Name |
Configure Banner Cisco |
Description |
This configlet is used to configure banner on cisco devices with required banner types. |
Execution Mode |
Advanced script execution mode |
Configlet Content |
<command>config t</command>
<command prompt='$NO_RESPONSE' timeout='5'>banner
$BANNER_TYPE $DELIMITING_CHAR</command>
<command prompt='$NO_RESPONSE' timeout='5'>$BANNER_LINE_1</command>
<command prompt='$NO_RESPONSE' timeout='5'>$BANNER_LINE_2</command>
<command prompt='$NO_RESPONSE' timeout='5'>$BANNER_LINE_3</command>
<command>$DELIMITING_CHAR</command>
<command>exit</command>
<command>write memory</command>
|